hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 61 * + col1 AS col1 FROM tab1 AS cor0
----
2867
305
854

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT ALL CAST( - AVG ( 48 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL CAST ( - AVG ( 48 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-48

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

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

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

query II rowsort
SELECT + 43 * col0 + col1, col2 * + 33 + + 89 + col1 AS col0 FROM tab2 AS cor0
----
2029
899
2829
1486
3292
2070

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

skipif mysql # not compatible
query II rowsort label-6
SELECT ALL + ( - + ( + COUNT ( * ) ) ) AS col1, - 48 FROM tab2 AS cor0
----
-3
-48

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

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

query I rowsort
SELECT DISTINCT col2 * + + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 90 < NULL
----

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

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

query I rowsort
SELECT DISTINCT 96 * + col2 * col0 FROM tab2
----
101568
245760
417600

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 15 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + ( - + 5 )
----

query I rowsort
SELECT DISTINCT 66 * col0 FROM tab2 AS cor0
----
3036
4224
4950

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-17
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT col1 IN ( - 15, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT col1 IN ( - 15, CAST ( NULL AS REAL ) )
----

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

skipif mysql # not compatible
query I rowsort label-18
SELECT COUNT ( * ) * + 2 FROM tab1
----
6

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col1 * - col2 * - - 84 + - 38 FROM tab1 AS cor0
----
123862
12617770
1580506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-22
SELECT - COUNT( * ) DIV + + COUNT( * ) + - + 49 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-22
SELECT - COUNT ( * ) / + + COUNT ( * ) + - + 49 FROM tab0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + + + 55 col1 FROM tab0
----
56
56
56

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-24
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * + - 4 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-24
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) * + - 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - COUNT( * ) - 33 AS col0 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-25
SELECT - COUNT ( * ) - 33 AS col0 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT + COUNT( col2 ) - + - 96 * 20 FROM tab0
----
1923

skipif mysql # not compatible
query I rowsort label-26
SELECT + COUNT ( col2 ) - + - 96 * 20 FROM tab0
----
1923

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 77 * ( - col0 ) * + - col0 >= NULL
----

query I rowsort
SELECT - + col2 * - - ( + + 98 ) FROM tab2 AS cor0
----
-2254
-3920
-5684

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

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

query I rowsort
SELECT ALL + 15 AS col0 FROM tab2 AS cor0
----
15
15
15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT DISTINCT + SUM( - + col2 ) AS col2 FROM tab1 WHERE NOT + col0 * - 96 + + - CAST( NULL AS SIGNED ) + - 49 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT + SUM ( - + col2 ) AS col2 FROM tab1 WHERE NOT + col0 * - 96 + + - CAST ( NULL AS INTEGER ) + - 49 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - + 37 col1 FROM tab0
----
-2664
-2664
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT + MAX( - + col2 ) * - 80 FROM tab1
----
4720

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT + MAX ( - + col2 ) * - 80 FROM tab1
----
4720

query II rowsort
SELECT + col1 * - - ( col0 ), - col2 AS col1 FROM tab1
----
425
-59
4277
-68
714
-96

query II rowsort
SELECT DISTINCT - 6, - 23 - + col1 AS col1 FROM tab0 AS cor0
----
-6
-104
-6
-24
-6
-44

query I rowsort
SELECT - 97 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-38
SELECT + + COUNT( CAST( + col2 AS SIGNED ) ) AS col0, + 53 + - 77 AS col0 FROM tab0 AS cor0
----
3
-24

skipif mysql # not compatible
query II rowsort label-38
SELECT + + COUNT ( CAST ( + col2 AS INTEGER ) ) AS col0, + 53 + - 77 AS col0 FROM tab0 AS cor0
----
3
-24

query I rowsort
SELECT + 62 * + + 45 AS col1 FROM tab0 AS cor0
----
2790
2790
2790

query I rowsort
SELECT ALL - 79 + 49 FROM tab0 AS cor0
----
-30
-30
-30

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

query I rowsort
SELECT - col0 * + col2 FROM tab0 WHERE ( ( NULL ) <> - + col1 * + 2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-44
SELECT DISTINCT col2 AS col1, + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-44
SELECT DISTINCT col2 AS col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

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

query I rowsort
SELECT ALL - 10 AS col0 FROM tab1 cor0
----
-10
-10
-10

query I rowsort
SELECT - - col2 * 2 + + - 73 * + - col0 AS col0 FROM tab0 AS cor0
----
1189
6371
7279

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT - 74 DIV + MAX( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-50
SELECT - 74 / + MAX ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT ALL 36 DIV + - col2 - - col0 * col0 AS col2 FROM tab0
----
225
7566
9409

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL 36 / + - col2 - - col0 * col0 AS col2 FROM tab0
----
225
7566
9409

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 IN ( - 27, col1 * 57 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT DISTINCT col1 + + 88 DIV col1 * col1 FROM tab0
----
105
162
89

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT col1 + + 88 / col1 * col1 FROM tab0
----
105
162
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT ALL ( CAST( NULL AS SIGNED ) ) + ( 88 ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-54
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + ( 88 ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-55
SELECT DISTINCT + col2 + - + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + col2 + - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 61 * + col0 <> + 90 * + 80 / 41 * - col0 AND NOT NULL IS NULL
----

query I rowsort
SELECT + col1 + + col1 * 74 FROM tab1 AS cor0
----
1050
3525
375

query I rowsort
SELECT - + col2 + + ( 68 ) AS col0 FROM tab0 AS cor0
----
-31
21
58

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

query I rowsort
SELECT DISTINCT - - 35 AS col0 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT 92 + - + 99 + - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-16

skipif mysql # not compatible
query I rowsort label-61
SELECT 92 + - + 99 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-16

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-66
SELECT - COUNT( - - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-66
SELECT - COUNT ( - - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - COUNT( * ) col0 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-68
SELECT - COUNT ( * ) col0 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT ALL 15 * + - 79 FROM tab0
----
-1185
-1185
-1185

query I rowsort
SELECT DISTINCT col0 * + ( + - col2 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT col0 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND - + 11
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-72
SELECT DISTINCT MAX( col1 ) AS col2, - MIN( col1 ) FROM tab1
----
47
-5

skipif mysql # not compatible
query II rowsort label-72
SELECT DISTINCT MAX ( col1 ) AS col2, - MIN ( col1 ) FROM tab1
----
47
-5

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 50 * + col1 + 42 AS col0 FROM tab2 AS cor0
----
2592
3392
3892

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT ALL - 49 * + + 72 DIV + - COUNT( * ) + 76 * - - COUNT( * ) FROM tab0
----
1404

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL - 49 * + + 72 / + - COUNT ( * ) + 76 * - - COUNT ( * ) FROM tab0
----
1404

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

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

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

skipif mysql # not compatible
query I rowsort label-80
SELECT + COUNT ( * ) / + - 61 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-81
SELECT DISTINCT ( - COUNT( DISTINCT col2 ) ) AS col1, - 11 col1 FROM tab0 AS cor0
----
-3
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-81
SELECT DISTINCT ( - COUNT ( DISTINCT col2 ) ) AS col1, - 11 col1 FROM tab0 AS cor0
----
-3
-11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-83
SELECT - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-83
SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT col0 - + 49 AS col2 FROM tab1 AS cor0
----
2
36
42

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN ( ( - + 66 ) * + 43 ) AND NULL )
----

query I rowsort
SELECT DISTINCT col2 * - 49 FROM tab1 AS cor0
----
-2891
-3332
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT DISTINCT + col1 DIV col0 AS col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT + col1 / col0 AS col0 FROM tab0
----
0
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT - 76 DIV + col0 + + ( 58 ) * 46 AS col0 FROM tab1
----
2667
2668
2668

skipif mysql # not compatible
query I rowsort label-89
SELECT - 76 / + col0 + + ( 58 ) * 46 AS col0 FROM tab1
----
2667
2668
2668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-90
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 + - + col0 + + + 29 + col2 * + col0 + + col1 - + - col0 + + col2 - - col1 * - 83 * - + ( - - col1 ) * - 32 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 + - + col0 + + + 29 + col2 * + col0 + + col1 - + - col0 + + col2 - - col1 * - 83 * - + ( - - col1 ) * - 32 AS col2 FROM tab1
----
NULL

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

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

query I rowsort
SELECT ALL + 4 + 15 AS col0 FROM tab0
----
19
19
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT ALL col2 * - CAST( col2 AS SIGNED ) FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL col2 * - CAST ( col2 AS INTEGER ) FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT 51 * COUNT( * ) AS col2 FROM tab1 cor0
----
153

skipif mysql # not compatible
query I rowsort label-95
SELECT 51 * COUNT ( * ) AS col2 FROM tab1 cor0
----
153

query II rowsort
SELECT DISTINCT - 91 * + ( 65 ) - col1, col1 FROM tab0 AS cor0
----
-5916
1
-5936
21
-5996
81

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL - MIN( - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - MIN ( - col1 ) FROM tab1 cor0
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT MIN( ALL + col2 ) - 22 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT MIN ( ALL + col2 ) - 22 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND + col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT MAX( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-102
SELECT MAX ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 <> ( NULL )
----

query II rowsort
SELECT DISTINCT col1 AS col2, + 26 FROM tab1
----
14
26
47
26
5
26

query II rowsort
SELECT col2, col1 - - 33 FROM tab2
----
23
84
40
110
58
100

query I rowsort
SELECT 79 * + - 10 AS col1 FROM tab1
----
-790
-790
-790

query II rowsort
SELECT - 46 AS col0, + col2 + + 70 AS col2 FROM tab2
----
-46
110
-46
128
-46
93

query II rowsort
SELECT DISTINCT col1, col0 * - - col1 AS col0 FROM tab2
----
51
2346
67
5025
77
4928

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

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

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

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

query I rowsort
SELECT ALL + col0 * + - ( + 22 ) FROM tab2 cor0
----
-1012
-1408
-1650

query I rowsort
SELECT ALL - col1 * - col0 * - 7 AS col0 FROM tab2 cor0
----
-16422
-34496
-35175

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-117
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 51 - 89 BETWEEN + - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-117
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 51 - 89 BETWEEN + - CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-118
SELECT - - col2 + col2 + 1 DIV - col2, col1 * + col2 AS col2 FROM tab0 AS cor0
----
198
99
20
210
94
3807

skipif mysql # not compatible
query II rowsort label-118
SELECT - - col2 + col2 + 1 / - col2, col1 * + col2 AS col2 FROM tab0 AS cor0
----
198
99
20
210
94
3807

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 94 <> 76 + - 44 + + - col0 / col1 * + col0
----

query I rowsort
SELECT DISTINCT + 19 * + + col2 AS col2 FROM tab0 AS cor0
----
1881
190
893

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT DISTINCT + 80 DIV - + 85 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT + 80 / - + 85 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT + + 89 AS col0 FROM tab0 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL - COUNT( * ) + MAX( - ( col2 ) ) * - COUNT( * ) * + 93 + - ( COUNT( DISTINCT col0 ) ) FROM tab0
----
2784

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL - COUNT ( * ) + MAX ( - ( col2 ) ) * - COUNT ( * ) * + 93 + - ( COUNT ( DISTINCT col0 ) ) FROM tab0
----
2784

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 77 + + - col2 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( 42 ) < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT ALL + col1 FROM tab1 WHERE NOT NULL > + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + col1 FROM tab1 WHERE NOT NULL > + CAST ( NULL AS INTEGER ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT COUNT( * ) * + + 18 + - - COUNT( 45 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-132
SELECT COUNT ( * ) * + + 18 + - - COUNT ( 45 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
171

query I rowsort
SELECT - 99 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

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

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

query I rowsort
SELECT + - col0 * - col0 * - col0 + - - col0 AS col2 FROM tab0 AS cor0
----
-3360
-658416
-912576

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

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 76 * - ( - - col0 ) IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 13 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-142
SELECT DISTINCT + ( col0 ) col1, col1 DIV - - col2 - + 43 DIV 6 DIV 74 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-142
SELECT DISTINCT + ( col0 ) col1, col1 / - - col2 - + 43 / 6 / 74 FROM tab1
----
51
0
85
0
91
0

query I rowsort
SELECT - 95 + - 10 AS col0 FROM tab2
----
-105
-105
-105

query I rowsort
SELECT ALL col1 * + 68 FROM tab1 AS cor0
----
3196
340
952

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

query II rowsort
SELECT + col2, 19 FROM tab0
----
10
19
47
19
99
19

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-147
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT DISTINCT + ( ( COUNT( DISTINCT - ( - 25 ) ) ) ) * - MAX( DISTINCT - 53 ) AS col2 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT + ( ( COUNT ( DISTINCT - ( - 25 ) ) ) ) * - MAX ( DISTINCT - 53 ) AS col2 FROM tab1
----
53

query I rowsort
SELECT + col2 - - 28 AS col1 FROM tab0
----
127
38
75

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

query I rowsort
SELECT - 26 + col1 - - col2 * + 91 AS col2 FROM tab1 AS cor0
----
5348
6209
8724

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 >= - + ( + - 61 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * + + ( + col1 ) AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-157
SELECT * FROM tab1 WHERE NOT + 76 < CAST( - ( + - col0 ) AS SIGNED ) - + + col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-157
SELECT * FROM tab1 WHERE NOT + 76 < CAST ( - ( + - col0 ) AS INTEGER ) - + + col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-159
SELECT DISTINCT - ( + + COUNT ( * ) ) * - - COUNT ( * ) col0 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE 77 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 58 * col2 FROM tab0 AS cor0
----
2726
5742
580

query I rowsort
SELECT ALL col0 * + 30 FROM tab2
----
1380
1920
2250

query I rowsort
SELECT DISTINCT - 34 * 39 FROM tab2
----
-1326

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL OR NOT ( NULL ) > NULL
----

query I rowsort
SELECT - - 96 + - ( 47 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 72 * 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-6624

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

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

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab1 AS cor0 WHERE NULL <= + col0 + - col1
----

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

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

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

query I rowsort
SELECT + col0 + + 73 + + col2 * col1 * - + col2 * + - col0 AS col2 FROM tab2 AS cor0
----
1241153
16904248
7884937

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT - 39 + SUM( + + col2 ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT - 39 + SUM ( + + col2 ) FROM tab2 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + - col0 * + col1 col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-177
SELECT ALL + col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> + + 25 + - ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> + + 25 + - ( - col2 )
----

query I rowsort
SELECT - 87 * + ( col0 ) FROM tab2
----
-4002
-5568
-6525

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-180
SELECT ALL + col1, 17 * - - col1 - CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL + col1, 17 * - - col1 - CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + 85 * col1 AS col0 FROM tab1
----
1190
3995
425

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

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT MIN ( - - 6 ) AS col2 FROM tab0
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-184
SELECT ALL - + col2 + - CAST( NULL AS SIGNED ) AS col0, 60 FROM tab1 AS cor0
----
NULL
60
NULL
60
NULL
60

skipif mysql # not compatible
query II rowsort label-184
SELECT ALL - + col2 + - CAST ( NULL AS INTEGER ) AS col0, 60 FROM tab1 AS cor0
----
NULL
60
NULL
60
NULL
60

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

query I rowsort
SELECT DISTINCT - 49 * 12 FROM tab2 cor0 WHERE - 66 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 18 + col1 + + + 92 AS col2 FROM tab1
----
-146
-707
7

query I rowsort
SELECT ALL - 6 + col2 FROM tab2
----
17
34
52

onlyif mysql # DIV for integer division: 
query III rowsort label-189
SELECT DISTINCT + col2 + col2 DIV - - col1 AS col1, + col1 * - 94 AS col2, + + col2 col0 FROM tab1
----
9 values hashing to c5cc7211e446c4a51b25a4b5fe605406

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-189
SELECT DISTINCT + col2 + col2 / - - col1 AS col1, + col1 * - 94 AS col2, + + col2 col0 FROM tab1
----
9 values hashing to c5cc7211e446c4a51b25a4b5fe605406

query III rowsort
SELECT * FROM tab0 WHERE + - col0 < - col2
----
87
21
10

query I rowsort
SELECT DISTINCT - col2 * col1 * - 19 - + col0 FROM tab2
----
22241
58456
73759

query I rowsort
SELECT ALL col2 - 31 AS col0 FROM tab1
----
28
37
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-193
SELECT - + ( - 55 ) col1, + COUNT( ALL - - col0 ) * + + COUNT( * ) * CAST( NULL AS SIGNED ) + - 33 AS col1 FROM tab1 AS cor0
----
55
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-193
SELECT - + ( - 55 ) col1, + COUNT ( ALL - - col0 ) * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 33 AS col1 FROM tab1 AS cor0
----
55
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT + COUNT( DISTINCT 6 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-195
SELECT + COUNT ( DISTINCT 6 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT MAX( ALL + ( - 24 ) ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT MAX ( ALL + ( - 24 ) ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-200
SELECT ALL - - COUNT ( * ) AS col1, + 56 FROM tab1 AS cor0
----
3
56

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

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

query I rowsort
SELECT col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

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

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( - col0 - - 44 )
----

query I rowsort
SELECT DISTINCT - - 63 * col0 AS col2 FROM tab1 AS cor0
----
3213
5355
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT DISTINCT COUNT( * ) * - + MIN( - col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT COUNT ( * ) * - + MIN ( - col0 ) FROM tab1
----
273

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - - col1 + + + 27 FROM tab0 AS cor0
----
127
155
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-213
SELECT ALL + col1 DIV col1 * 55 FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL + col1 / col1 * 55 FROM tab1
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT + COUNT( * ) + 35 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-214
SELECT + COUNT ( * ) + 35 FROM tab0
----
38

query I rowsort
SELECT DISTINCT col0 + - 67 AS col2 FROM tab1
----
-16
18
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-216
SELECT ALL ( - 91 ) + + 38 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL ( - 91 ) + + 38 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 + ( col2 ) col1 FROM tab0
----
-20
-57
32

query I rowsort
SELECT DISTINCT 16 + - + col2 FROM tab2
----
-24
-42
-7

query I rowsort
SELECT ALL + 79 FROM tab2 WHERE NULL IS NULL
----
79
79
79

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

skipif mysql # not compatible
query I rowsort label-221
SELECT COUNT ( * ) + + - 21 * + MIN ( ALL - - col1 ) AS col1 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-222
SELECT DISTINCT - + COUNT( * ) AS col0, - 64 AS col2 FROM tab2 AS cor0 WHERE NOT + 7 + + 33 + - col2 < NULL
----
0
-64

skipif mysql # not compatible
query II rowsort label-222
SELECT DISTINCT - + COUNT ( * ) AS col0, - 64 AS col2 FROM tab2 AS cor0 WHERE NOT + 7 + + 33 + - col2 < NULL
----
0
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 81 / - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-224
SELECT DISTINCT col2 * col1 DIV + 96 + + 99, col1 AS col2 FROM tab2
----
111
51
131
77
139
67

skipif mysql # not compatible
query II rowsort label-224
SELECT DISTINCT col2 * col1 / + 96 + + 99, col1 AS col2 FROM tab2
----
111
51
131
77
139
67

query I rowsort
SELECT ALL - col2 - + - col0 AS col1 FROM tab0
----
-2
-32
77

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

query II rowsort
SELECT col2, - 93 FROM tab0 cor0
----
10
-93
47
-93
99
-93

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-231
SELECT CAST( NULL AS SIGNED ) col2, - 27 FROM tab0 AS cor0
----
NULL
-27
NULL
-27
NULL
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-231
SELECT CAST ( NULL AS INTEGER ) col2, - 27 FROM tab0 AS cor0
----
NULL
-27
NULL
-27
NULL
-27

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

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

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + 61 * - - COUNT ( * ) FROM tab0
----
183

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

query II rowsort
SELECT ALL + 73 AS col1, - 52 AS col0 FROM tab1 WHERE NOT - col0 - + 25 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE + col1 = + ( 57 )
----

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

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

query I rowsort
SELECT + col2 + - col0 * - - col2 AS col0 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1 cor0
----
95
95
95

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

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

query I rowsort
SELECT col2 + col2 * + col1 * - 40 - col0 FROM tab0 AS cor0
----
-152248
-3958
-8477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-243
SELECT + col0 + ( - CAST( 56 AS SIGNED ) ) FROM tab1 AS cor0
----
-5
29
35

skipif mysql # not compatible
query I rowsort label-243
SELECT + col0 + ( - CAST ( 56 AS INTEGER ) ) FROM tab1 AS cor0
----
-5
29
35

query I rowsort
SELECT ALL col0 * 4 + ( - ( + - 46 ) ) FROM tab2 cor0
----
230
302
346

query I rowsort
SELECT ALL - 30 + - col0 AS col0 FROM tab1 AS cor0
----
-115
-121
-81

query I rowsort
SELECT + + col1 + - 46 FROM tab0 AS cor0
----
-25
-45
35

query I rowsort
SELECT DISTINCT col2 + 92 FROM tab0 AS cor0
----
102
139
191

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

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT ALL + col2 DIV col1 + + col2 + 19 + col0 * col0 FROM tab0
----
291
7598
9626

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + col2 / col1 + + col2 + 19 + col0 * col0 FROM tab0
----
291
7598
9626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-250
SELECT + COUNT( + col1 ) DIV + + 25 - - 62 * - MAX( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-2914

skipif mysql # not compatible
query I rowsort label-250
SELECT + COUNT ( + col1 ) / + + 25 - - 62 * - MAX ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-2914

query I rowsort
SELECT DISTINCT + col2 * - - ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT - col1 * - - 54 IS NULL
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-252
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON + - ( + CAST( NULL AS SIGNED ) ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-252
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON + - ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL col0 * + - 81 FROM tab0 AS cor0
----
-1215
-7047
-7857

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

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT + col1 DIV + col0 + + col1 * + 3 * - ( + col2 ) FROM tab0 cor0
----
-11416
-297
-630

skipif mysql # not compatible
query I rowsort label-255
SELECT + col1 / + col0 + + col1 * + 3 * - ( + col2 ) FROM tab0 cor0
----
-11416
-297
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 * - - col1 col1 FROM tab0 AS cor0
----
-1281
-4941
-61

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

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 59 IN ( col2 )
----
-51
-91

query II rowsort
SELECT DISTINCT 30 AS col2, + col2 * 57 AS col2 FROM tab1
----
30
3363
30
3876
30
5472

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT DISTINCT + SUM( ALL - 29 ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT + SUM ( ALL - 29 ) AS col2 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + MAX( 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-262
SELECT + MAX ( 21 ) FROM tab0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col1 FROM tab0
----
49
49
49

query I rowsort
SELECT 75 FROM tab2 WHERE NOT + col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 17
----

query I rowsort
SELECT DISTINCT - 9 FROM tab2 WHERE NOT + - col0 >= NULL
----

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

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

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

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

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

query II rowsort
SELECT ALL - col2 * - col2, - col0 AS col0 FROM tab2 AS cor0
----
1600
-64
3364
-75
529
-46

query I rowsort
SELECT - 83 + - - col2 FROM tab1 AS cor0 WHERE NOT 0 NOT BETWEEN NULL AND + 44
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10
-47
-99

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

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

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

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

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

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

query I rowsort
SELECT 79 * - 40 + - 57 - + ( col2 ) AS col1 FROM tab2 AS cor0
----
-3240
-3257
-3275

query II rowsort
SELECT ALL + col0 * + 6 - - 71 AS col1, col0 FROM tab1 AS cor0
----
377
51
581
85
617
91

query I rowsort
SELECT ALL + 62 + + 34 FROM tab0 AS cor0
----
96
96
96

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

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

query I rowsort
SELECT ALL + col1 + - + col2 * col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

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

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

query I rowsort
SELECT DISTINCT col2 + + + 17 FROM tab2 AS cor0
----
40
57
75

query II rowsort
SELECT + 54, ( - 38 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 74 + - - col1 AS col1 FROM tab0
----
155
75
95

query I rowsort
SELECT ALL 76 - - - col1 FROM tab2
----
-1
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 99 col0 FROM tab1
----
-5841
-6732
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT col1 + + CAST( + ( col0 ) AS SIGNED ) * - 65 FROM tab1
----
-3301
-5520
-5868

skipif mysql # not compatible
query I rowsort label-290
SELECT col1 + + CAST ( + ( col0 ) AS INTEGER ) * - 65 FROM tab1
----
-3301
-5520
-5868

query I rowsort
SELECT ALL + 22 - - col2 AS col0 FROM tab1
----
118
81
90

query I rowsort
SELECT - 2 FROM tab1, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 65 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-295
SELECT ALL COUNT( * ) - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL COUNT ( * ) - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT ALL - COUNT( DISTINCT 87 ) + 46 AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - COUNT ( DISTINCT 87 ) + 46 AS col2 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT SUM( DISTINCT col0 ) AS col2 FROM tab0 WHERE NOT col1 + - col1 * col0 < - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT SUM ( DISTINCT col0 ) AS col2 FROM tab0 WHERE NOT col1 + - col1 * col0 < - 48
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT CAST( col0 AS SIGNED ) + - col2 * col0 FROM tab1
----
-4845
-4930
-6097

skipif mysql # not compatible
query I rowsort label-299
SELECT CAST ( col0 AS INTEGER ) + - col2 * col0 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT ALL + COUNT( ALL - 34 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL + COUNT ( ALL - 34 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 33 + - ( col1 - + col1 ) / 19 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-302
SELECT - ( CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 WHERE - 18 BETWEEN col0 AND - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-302
SELECT - ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 WHERE - 18 BETWEEN col0 AND - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL - 4 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-307
SELECT col1 + + ( CAST( + 40 AS DECIMAL ) ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-307
SELECT col1 + + ( CAST ( + 40 AS REAL ) ) FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 IN ( + col1 + + col0 )
----

query I rowsort
SELECT + col0 - - 98 AS col1 FROM tab1 WHERE 37 - - col0 * 40 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-311
SELECT DISTINCT + col2 DIV - col2 - + col2 DIV 81 AS col0 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT + col2 / - col2 - + col2 / 81 AS col0 FROM tab1
----
-1
-2

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-313
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE col1 BETWEEN ( + 8 ) AND NULL
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL 13 + COUNT( * ) AS col0 FROM tab0 cor0
----
16

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL 13 + COUNT ( * ) AS col0 FROM tab0 cor0
----
16

query I rowsort
SELECT ALL - col1 + 84 FROM tab2 AS cor0
----
17
33
7

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL MAX( + 40 ) + - 30 AS col2 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL MAX ( + 40 ) + - 30 AS col2 FROM tab2 AS cor0
----
10

query I rowsort
SELECT DISTINCT - ( + 19 ) * col0 + 22 FROM tab1 WHERE ( NULL ) BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT DISTINCT - 67 + MIN( + col2 + CAST( 11 AS SIGNED ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - 67 + MIN ( + col2 + CAST ( 11 AS INTEGER ) ) AS col0 FROM tab1
----
3

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

query I rowsort
SELECT - col2 FROM tab2 WHERE - col2 + - 8 * - 25 <> NULL
----

query I rowsort
SELECT DISTINCT - 55 * 60 FROM tab2 WHERE NOT + col1 IS NULL
----
-3300

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

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE NOT + col2 >= + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-325
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE NOT + col2 >= + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE - 45 NOT BETWEEN + col1 * 87 AND ( NULL )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-326
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE - 45 NOT BETWEEN + col1 * 87 AND ( NULL )
----
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT DISTINCT + - col0 DIV - 56 + col2 AS col1 FROM tab1 cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + - col0 / - 56 + col2 AS col1 FROM tab1 cor0
----
60
69
96

query I rowsort
SELECT + - 45 * + 71 FROM tab1 AS cor0
----
-3195
-3195
-3195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) * + 93 FROM tab2 AS cor0
----
-2139
-3720
-5394

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) * + 93 FROM tab2 AS cor0
----
-2139
-3720
-5394

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

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

query I rowsort
SELECT ALL - col2 + 9 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-38
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL 31 + + MAX( DISTINCT col0 ) AS col0 FROM tab1
----
122

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL 31 + + MAX ( DISTINCT col0 ) AS col0 FROM tab1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT - 75 * - - ( + 77 ) - + MAX( + 64 ) FROM tab1
----
-5839

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT - 75 * - - ( + 77 ) - + MAX ( + 64 ) FROM tab1
----
-5839

query I rowsort
SELECT 74 AS col0 FROM tab0 WHERE NULL <= ( + 25 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 + + 10 )
----

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

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

query I rowsort
SELECT + - col0 + - 6 + col1 * - col0 AS col1 FROM tab1 cor0
----
-4374
-516
-771

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT - col0 * 34 DIV - 5 FROM tab1 AS cor0
----
346
578
618

skipif mysql # not compatible
query I rowsort label-341
SELECT - col0 * 34 / - 5 FROM tab1 AS cor0
----
346
578
618

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT 53 BETWEEN + 24 AND ( col1 )
----
59
68
96

query I rowsort
SELECT ALL - 29 * + col1 AS col2 FROM tab2
----
-1479
-1943
-2233

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-346
SELECT DISTINCT + MAX( ALL - 14 ) DIV 37 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT + MAX ( ALL - 14 ) / 37 FROM tab2 AS cor0
----
0

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

query II rowsort
SELECT ALL - 98 AS col0, - col2 + - - col1 AS col0 FROM tab2 AS cor0
----
-98
28
-98
37
-98
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-349
SELECT + - MIN( ALL + CAST( + 49 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-349
SELECT + - MIN ( ALL + CAST ( + 49 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-351
SELECT ALL + CAST( 42 AS SIGNED ) FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + CAST ( 42 AS INTEGER ) FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT + 56 * 59 AS col2 FROM tab1
----
3304

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

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT COUNT( DISTINCT - col1 ) * 36 FROM tab0 WHERE NOT - + col0 + + col2 * col0 NOT BETWEEN col0 AND ( 28 )
----
0

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT COUNT ( DISTINCT - col1 ) * 36 FROM tab0 WHERE NOT - + col0 + + col2 * col0 NOT BETWEEN col0 AND ( 28 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 96 * - + col1 + + 24 <= ( col2 * - 50 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-356
SELECT ALL + AVG ( ALL + + CAST( NULL AS DECIMAL ) ) * 44 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + AVG ( ALL + + CAST ( NULL AS REAL ) ) * 44 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + ( col1 ) - + col0 / - col1 FROM tab1 WHERE NOT - 1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT DISTINCT + COUNT( + col2 ) * COUNT( * ) FROM tab1 WHERE NOT ( NULL ) >= col2 + col1
----
0

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT + COUNT ( + col2 ) * COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) >= col2 + col1
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 * + ( col0 ) col2 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT - col0 + + col0 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
2536
7135
8143

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

query I rowsort
SELECT col0 - + col0 * - col0 * col1 AS col1 FROM tab2 AS cor0
----
107962
315456
376950

query I rowsort
SELECT ( 82 ) - + 78 AS col1 FROM tab1 AS cor0
----
4
4
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 4 = ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IS NULL AND ( col2 * - - col2 ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT - + 59 + - col0 FROM tab2 AS cor0
----
-105
-123
-134

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 77 col0 FROM tab1 AS cor0
----
77

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT + 50 + - col0 + + col1 DIV + 71 + col0 FROM tab2
----
50
50
51

skipif mysql # not compatible
query I rowsort label-372
SELECT + 50 + - col0 + + col1 / + 71 + col0 FROM tab2
----
50
50
51

onlyif mysql # DIV for integer division: 
query I rowsort label-373
SELECT + ( 26 ) * - col0 + + 85 DIV + ( + col1 ) AS col1 FROM tab1
----
-1320
-2193
-2365

skipif mysql # not compatible
query I rowsort label-373
SELECT + ( 26 ) * - col0 + + 85 / + ( + col1 ) AS col1 FROM tab1
----
-1320
-2193
-2365

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT col2 DIV 98 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-374
SELECT col2 / 98 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-375
SELECT col1 + + - 49 + + + col0 + + col2 * ( CAST( + ( + col1 ) AS SIGNED ) - col2 ) FROM tab1 WHERE NULL IS NULL
----
-1339
-3145
-7856

skipif mysql # not compatible
query I rowsort label-375
SELECT col1 + + - 49 + + + col0 + + col2 * ( CAST ( + ( + col1 ) AS INTEGER ) - col2 ) FROM tab1 WHERE NULL IS NULL
----
-1339
-3145
-7856

query I rowsort
SELECT ALL col2 * + col0 * - - col2 + col0 FROM tab1
----
295970
420875
470067

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col0 - - ( + col2 ), ( 12 ) col0 FROM tab1 cor0
----
4345
12
484
12
810
12

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - MIN( + ( - col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT - MIN ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query III rowsort
SELECT + col1 * 31, col0 AS col2, + col1 * + col0 + col2 AS col2 FROM tab0
----
9 values hashing to 77bc547df8c04d2065d4de7989bbc933

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-386
SELECT DISTINCT - 56 DIV + col2 * - + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - 56 / + col2 * - + col2 FROM tab1
----
0

query I rowsort
SELECT col2 * - - 40 AS col2 FROM tab2
----
1600
2320
920

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-389
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * - col1 * - 9 + + col2 ) BETWEEN 78 * CAST( col1 AS SIGNED ) * 80 AND ( CAST( NULL AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-389
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * - col1 * - 9 + + col2 ) BETWEEN 78 * CAST ( col1 AS INTEGER ) * 80 AND ( CAST ( NULL AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT SUM( + 84 ) * - 83 FROM tab2
----
-20916

skipif mysql # not compatible
query I rowsort label-390
SELECT SUM ( + 84 ) * - 83 FROM tab2
----
-20916

query I rowsort
SELECT col1 * - 3 AS col2 FROM tab2
----
-153
-201
-231

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT ALL 23 AS col2, - COUNT( * ) AS col1 FROM tab0
----
23
-3

skipif mysql # not compatible
query II rowsort label-392
SELECT ALL 23 AS col2, - COUNT ( * ) AS col1 FROM tab0
----
23
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col0 FROM tab1
----
10
10
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-394
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-394
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT DISTINCT - - COUNT( * ) AS col1, - 81 FROM tab1 AS cor0
----
3
-81

skipif mysql # not compatible
query II rowsort label-395
SELECT DISTINCT - - COUNT ( * ) AS col1, - 81 FROM tab1 AS cor0
----
3
-81

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT + ( col1 ) * CAST( - - col2 AS SIGNED ) + - - CAST( + + col2 AS SIGNED ) + - col1 AS col0 FROM tab1
----
1426
3217
349

skipif mysql # not compatible
query I rowsort label-399
SELECT + ( col1 ) * CAST ( - - col2 AS INTEGER ) + - - CAST ( + + col2 AS INTEGER ) + - col1 AS col0 FROM tab1
----
1426
3217
349

query I rowsort
SELECT col2 * - + 4 + - - col1 AS col2 FROM tab2
----
-165
-41
-83

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

query II rowsort
SELECT + - col0 * - - 16, col2 AS col2 FROM tab2 AS cor0
----
-1024
40
-1200
58
-736
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 78 * ( + - ( 6 ) ) col0 FROM tab1 AS cor0
----
468
468
468

query I rowsort
SELECT + + col1 * + + 60 * - col0 AS col0 FROM tab0 AS cor0
----
-109620
-5820
-72900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-405
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT - ( - 56 ) / 67 + - + 11 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT - ( - 56 ) / 67 + - + 11 < + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 66 * col1 + - - col1 FROM tab2 AS cor0
----
3417
4489
5159

query I rowsort
SELECT - 48 + - 20 * - col1 FROM tab1 AS cor0 WHERE + ( col1 ) - col0 NOT BETWEEN + + col0 AND + - col1 + + 41
----
232
52
892

query I rowsort
SELECT - ( - - 29 ) FROM tab2 AS cor0
----
-29
-29
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT SUM( - col1 ) - + 91 - - COUNT( * ) AS col2 FROM tab0
----
-191

skipif mysql # not compatible
query I rowsort label-410
SELECT SUM ( - col1 ) - + 91 - - COUNT ( * ) AS col2 FROM tab0
----
-191

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

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

query II rowsort
SELECT DISTINCT - col0 AS col2, ( - - 50 ) FROM tab2
----
-46
50
-64
50
-75
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col0 - + - 36 * + col1 col0 FROM tab2 WHERE + 8 IS NOT NULL
----
1836
2412
2772

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 40 * - 90 BETWEEN NULL AND - + col0
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-416
SELECT ALL COUNT( * ) AS col2, + 7 * - MAX( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
3
-539

skipif mysql # not compatible
query II rowsort label-416
SELECT ALL COUNT ( * ) AS col2, + 7 * - MAX ( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
3
-539

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

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT - MAX( + + ( - col2 ) ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-418
SELECT - MAX ( + + ( - col2 ) ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-177

query II rowsort
SELECT ALL col0, - 93 * + + col2 + - col1 AS col2 FROM tab0
----
15
-4452
87
-951
97
-9208

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-421
SELECT DISTINCT CAST( NULL AS SIGNED ), - COUNT( * ) * + - 4 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-421
SELECT DISTINCT CAST ( NULL AS INTEGER ), - COUNT ( * ) * + - 4 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( - col0 ) col2 FROM tab2 AS cor0
----
-8
13
5

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

query I rowsort
SELECT ALL col0 + + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT - col0 * CAST( + 15 AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
-1305
-1455
-225

skipif mysql # not compatible
query I rowsort label-425
SELECT - col0 * CAST ( + 15 AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 26 + + COUNT( * ) AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-426
SELECT 26 + + COUNT ( * ) AS col1 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT 67 + - COUNT( * ) AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-427
SELECT 67 + - COUNT ( * ) AS col2 FROM tab2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT - 70 DIV col2 + - + 99 DIV - + ( - col0 ) + + + col2 * col0 DIV ( 3 ) AS col0 FROM tab1
----
1631
1669
2060

skipif mysql # not compatible
query I rowsort label-428
SELECT - 70 / col2 + - + 99 / - + ( - col0 ) + + + col2 * col0 / ( 3 ) AS col0 FROM tab1
----
1631
1669
2060

query I rowsort
SELECT 74 + + ( + - col2 ) + col0 FROM tab1
----
100
29
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-430
SELECT * FROM tab0 cor0 WHERE - col1 / + + CAST( NULL AS DECIMAL ) * + + 16 * + + col2 < NULL
----

skipif mysql # not compatible
query III rowsort label-430
SELECT * FROM tab0 cor0 WHERE - col1 / + + CAST ( NULL AS REAL ) * + + 16 * + + col2 < NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - col1 + + 8 - + col0 + - - col2 + + col1 FROM tab2 AS cor0
----
2637
4547
5990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-432
SELECT ALL - col2 * 15 * + col1, - CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1485
-97
-3150
-87
-57105
-15

skipif mysql # not compatible
query II rowsort label-432
SELECT ALL - col2 * 15 * + col1, - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1485
-97
-3150
-87
-57105
-15

query I rowsort
SELECT DISTINCT - col0 + - col2 + - col1 FROM tab1 AS cor0
----
-149
-161
-206

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

query I rowsort
SELECT + col1 - - - col0 AS col0 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-436
SELECT + 90 * col1 FROM tab1 AS cor0 WHERE CAST( + ( + - 31 ) AS SIGNED ) = - ( + + col2 )
----

skipif mysql # not compatible
query I rowsort label-436
SELECT + 90 * col1 FROM tab1 AS cor0 WHERE CAST ( + ( + - 31 ) AS INTEGER ) = - ( + + col2 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-437
SELECT DISTINCT + - col2 / col2 col1 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-438
SELECT ALL + COUNT( * ) DIV + COUNT( DISTINCT 59 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + COUNT ( * ) / + COUNT ( DISTINCT 59 ) FROM tab1 cor0
----
3

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

query I rowsort
SELECT - col1 * col0 * col0 * + - col1 AS col2 FROM tab1 cor0
----
180625
18292729
509796

query I rowsort
SELECT ALL + 12 FROM tab1 WHERE ( + col2 ) BETWEEN NULL AND 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-442
SELECT + 69 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT + 69 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 72 ) AS col0 FROM tab1
----
72

query I rowsort
SELECT DISTINCT 9 * + col1 AS col2 FROM tab0
----
189
729
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-445
SELECT ALL * FROM tab1 WHERE NOT - CAST( col0 AS SIGNED ) * - col0 = NULL
----

skipif mysql # not compatible
query III rowsort label-445
SELECT ALL * FROM tab1 WHERE NOT - CAST ( col0 AS INTEGER ) * - col0 = NULL
----

query I rowsort
SELECT ALL col0 * + col2 * 66 FROM tab0
----
46530
57420
633798

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + MIN( - ( - - col0 ) ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-448
SELECT + MIN ( - ( - - col0 ) ) AS col2 FROM tab0
----
-97

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

query I rowsort
SELECT + 51 AS col0 FROM tab2 WHERE NOT 80 IS NULL
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL - ( + - 52 ) + + + CAST( + 95 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7ea90b86e1b35d6116fcda7346d04909

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - ( + - 52 ) + + + CAST ( + 95 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7ea90b86e1b35d6116fcda7346d04909

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 43 AND + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT + 5 + - + 62 + - COUNT( * ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 5 + - + 62 + - COUNT ( * ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT ALL col2 * + - 20 FROM tab1 AS cor0
----
-1180
-1360
-1920

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

query I rowsort
SELECT ALL 94 + col1 FROM tab2
----
145
161
171

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col0 FROM tab1
----
144
147
159

query II rowsort
SELECT + 56 AS col1, + 30 FROM tab0
----
56
30
56
30
56
30

query II rowsort
SELECT - 12 AS col2, ( + col0 ) + col1 FROM tab1
----
-12
138
-12
65
-12
90

query I rowsort
SELECT DISTINCT col2 * + + ( - col0 ) * 69 * - - 7 + + col1 FROM tab0
----
-340434
-420189
-4638248

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE + col1 + - 93 * - col2 <= NULL
----

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

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

query I rowsort
SELECT 11 - - col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col1 ) * - - 50 * + col0 + 27 col2 FROM tab2 AS cor0
----
117327
246427
251277

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT col1 DIV - 60 + - - col2 DIV 53 AS col0 FROM tab0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-469
SELECT col1 / - 60 + - - col2 / 53 AS col0 FROM tab0
----
-1
0
1

query I rowsort
SELECT DISTINCT - 65 * - 9 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
585

query I rowsort
SELECT - col0 + + col1 + + col2 AS col0 FROM tab0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT COUNT( * ) * - 73 AS col2 FROM tab2 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-472
SELECT COUNT ( * ) * - 73 AS col2 FROM tab2 cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-473
SELECT DISTINCT - 1 DIV + CAST( 89 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - 1 / + CAST ( 89 AS INTEGER ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-474
SELECT * FROM tab0 AS cor0 WHERE NOT 34 + + CAST( + ( + col1 ) AS SIGNED ) * - ( + 11 ) * + col1 + col1 / + ( col2 ) / - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-474
SELECT * FROM tab0 AS cor0 WHERE NOT 34 + + CAST ( + ( + col1 ) AS INTEGER ) * - ( + 11 ) * + col1 + col1 / + ( col2 ) / - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 75 * - col1, 2 - - 34 )
----

query I rowsort
SELECT ALL + col1 * col1 * + col0 * - col2 + - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-125455
-13669336
-959653

query I rowsort
SELECT + col1 * + col1 * col0 AS col2 FROM tab0 AS cor0
----
38367
97
98415

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

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

query II rowsort
SELECT col1 * + col0 AS col2, - 7 + + ( + + col0 ) FROM tab2 AS cor0
----
2346
39
4928
57
5025
68

query I rowsort
SELECT + 10 * + - 1 + - col1 FROM tab1 AS cor0
----
-15
-24
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT MAX( DISTINCT 26 ) * + 88 FROM tab0 AS cor0
----
2288

skipif mysql # not compatible
query I rowsort label-481
SELECT MAX ( DISTINCT 26 ) * + 88 FROM tab0 AS cor0
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-482
SELECT - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT MAX( ALL 67 ) col0 FROM tab2
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-484
SELECT MAX ( ALL 67 ) col0 FROM tab2
----
67

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

query I rowsort
SELECT DISTINCT 50 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-487
SELECT + + MAX( ALL + - col1 ) col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-487
SELECT + + MAX ( ALL + - col1 ) col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-5
3

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 < + 11 + - 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-2615
-7230
-8328

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL - SUM( DISTINCT - 67 ) + - - 0 AS col2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - SUM ( DISTINCT - 67 ) + - - 0 AS col2 FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT ALL CAST( + 23 AS SIGNED ) AS col0 FROM tab1
----
23
23
23

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL CAST ( + 23 AS INTEGER ) AS col0 FROM tab1
----
23
23
23

query I rowsort
SELECT DISTINCT - col1 * - 33 * + 33 AS col2 FROM tab2
----
55539
72963
83853

query I rowsort
SELECT DISTINCT 34 * - col0 - - col2 FROM tab0
----
-2948
-3199
-463

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 97 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 39 * + 8 FROM tab1
----
-312
-312
-312

query I rowsort
SELECT 67 + 53 / - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 49 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-100
-116
-126

query I rowsort
SELECT - 52 * + 84 FROM tab0 AS cor0
----
-4368
-4368
-4368

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

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

query I rowsort
SELECT + col1 - - + 66 FROM tab0
----
147
67
87

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT + 14 - - + col0 IS NULL
----
15
87
97

query I rowsort
SELECT + 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - 90 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # DIV for integer division: 
query II rowsort label-508
SELECT col1 AS col1, + 28 DIV - - col2 AS col2 FROM tab0
----
1
0
21
2
81
0

skipif mysql # not compatible
query II rowsort label-508
SELECT col1 AS col1, + 28 / - - col2 AS col2 FROM tab0
----
1
0
21
2
81
0

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

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

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

query I rowsort
SELECT ALL + + 18 * 0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 84 * col0 * + - 68 * - + col0 * col2 AS col1 FROM tab2 AS cor0
----
1863540000
277991616
935854080

query I rowsort
SELECT 55 * - 2 FROM tab1
----
-110
-110
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT - SUM( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT - SUM ( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-515
SELECT ALL 43 * - 75, + ( COUNT( * ) ) AS col0 FROM tab2
----
-3225
3

skipif mysql # not compatible
query II rowsort label-515
SELECT ALL 43 * - 75, + ( COUNT ( * ) ) AS col0 FROM tab2
----
-3225
3

onlyif mysql # DIV for integer division: 
query II rowsort label-516
SELECT col0 DIV 85 AS col2, 8 FROM tab1
----
0
8
1
8
1
8

skipif mysql # not compatible
query II rowsort label-516
SELECT col0 / 85 AS col2, 8 FROM tab1
----
0
8
1
8
1
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT 88 DIV + - 78 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-518
SELECT 88 / + - 78 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 * col2 col0 FROM tab0
----
-2961
-6237
-630

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

query II rowsort
SELECT col0 * - + col0 * - col2 AS col0, + 36 AS col0 FROM tab2
----
163840
36
326250
36
48668
36

query II rowsort
SELECT DISTINCT + 95 * 26 * - col0 AS col0, col1 * + 32 FROM tab2
----
-113620
1632
-158080
2464
-185250
2144

query I rowsort
SELECT col0 + 66 * + + 32 * col1 AS col0 FROM tab2
----
107758
141579
162688

query I rowsort
SELECT ALL - 54 AS col2 FROM tab1 cor0
----
-54
-54
-54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-527
SELECT - CAST( 90 AS SIGNED ) DIV - 91 + + + ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-527
SELECT - CAST ( 90 AS INTEGER ) / - 91 + + + ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT - col1 DIV - col2 + - 84 AS col2 FROM tab2 AS cor0
----
-82
-83
-83

skipif mysql # not compatible
query I rowsort label-530
SELECT - col1 / - col2 + - 84 AS col2 FROM tab2 AS cor0
----
-82
-83
-83

query II rowsort
SELECT ALL + col0, 32 + - - col1 FROM tab0 AS cor0
----
15
113
87
53
97
33

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

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

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

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

query II rowsort
SELECT col0, 78 * - + 38 FROM tab1 AS cor0
----
51
-2964
85
-2964
91
-2964

query I rowsort
SELECT DISTINCT - col0 + + 58 AS col0 FROM tab0
----
-29
-39
43

query I rowsort
SELECT - + col2 + - col2 AS col0 FROM tab2 WHERE + 72 NOT IN ( col0 + - + col0, 51 * - 98 - + 41 )
----
-116
-46
-80

query II rowsort
SELECT DISTINCT ( + + col0 ), col2 + - 89 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-539
SELECT ( - ( + ( + - CAST( NULL AS SIGNED ) ) ) ), 10 AS col0 FROM tab1
----
NULL
10
NULL
10
NULL
10

skipif mysql # not compatible
query II rowsort label-539
SELECT ( - ( + ( + - CAST ( NULL AS INTEGER ) ) ) ), 10 AS col0 FROM tab1
----
NULL
10
NULL
10
NULL
10

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

query I rowsort
SELECT DISTINCT + col2 - + 68 FROM tab1
----
-9
0
28

query I rowsort
SELECT DISTINCT 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 34 * - - col2 FROM tab0
----
1598
3366
340

query I rowsort
SELECT DISTINCT 66 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
66

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-553
SELECT DISTINCT - 97 DIV + + ( CAST( 94 AS SIGNED ) ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT - 97 / + + ( CAST ( 94 AS INTEGER ) ) AS col1 FROM tab1
----
-1

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

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

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

query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT ( 83 ) + - COUNT( * ) FROM tab0, tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT ( 83 ) + - COUNT ( * ) FROM tab0, tab1 AS cor0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT ALL col0 + + 23 DIV + col2 AS col0 FROM tab0
----
15
89
97

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL col0 + + 23 / + col2 AS col0 FROM tab0
----
15
89
97

query I rowsort
SELECT ( - 85 ) * col1 FROM tab0
----
-1785
-6885
-85

query I rowsort
SELECT ALL + 33 * - col0 * - 28 + 8 FROM tab1 WHERE NOT - col0 * + + 30 * + - col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - 53 - ( col1 ) AS col2 FROM tab0 AS cor0
----
-134
-54
-74

query I rowsort
SELECT DISTINCT + 69 * - 33 FROM tab2 AS cor0
----
-2277

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 <> - col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col2 + col2 AS col0, 73 AS col1 FROM tab0 AS cor0
----
0
73
0
73
0
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - - ( col1 ) col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT ALL + 2 * + MAX( ALL - - ( + col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL + 2 * + MAX ( ALL - - ( + col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

query I rowsort
SELECT ALL 44 + 47 + - - 38 AS col1 FROM tab0 AS cor0
----
129
129
129

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT MAX( DISTINCT ( + 55 ) ) + + - SUM( ALL - col2 ) FROM tab2
----
176

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT MAX ( DISTINCT ( + 55 ) ) + + - SUM ( ALL - col2 ) FROM tab2
----
176

query I rowsort
SELECT col2 + 65 FROM tab2
----
105
123
88

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL - MAX( DISTINCT + col0 ) + + 24 AS col0 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL - MAX ( DISTINCT + col0 ) + + 24 AS col0 FROM tab0
----
-73

query I rowsort
SELECT DISTINCT col2 + 24 FROM tab0
----
123
34
71

query I rowsort
SELECT DISTINCT - col1 - + - ( col0 ) * - col0 FROM tab1
----
-2615
-7230
-8328

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - 31
----

query I rowsort
SELECT ALL - - col2 - - 92 * - 78 * + col0 FROM tab0 cor0
----
-107593
-624302
-695973

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL - SUM( 45 ) col0 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-575
SELECT ALL - SUM ( 45 ) col0 FROM tab0 AS cor0
----
-135

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + + col0 + + col1 * - - col2 > ( + ( + - 23 ) )
----

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

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

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

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

query I rowsort
SELECT + - 1 * - 25 + - + col0 AS col2 FROM tab1 AS cor0
----
-26
-60
-66

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

query I rowsort
SELECT DISTINCT - ( 41 ) * col2 + col1 AS col0 FROM tab1 AS cor0
----
-2414
-2741
-3922

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * - col0 + + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT COUNT( * ) * - - MAX( ALL + col0 ) col0 FROM tab1
----
273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT + MIN( DISTINCT + + 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT + MIN ( DISTINCT + + 47 ) FROM tab0
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT - COUNT( * ) * 60 AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-586
SELECT - COUNT ( * ) * 60 AS col1 FROM tab2
----
-180

query I rowsort
SELECT ALL + 11 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

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

query I rowsort
SELECT ALL + 96 * - + col2 * - col1 AS col0 FROM tab2 cor0
----
112608
295680
373056

query I rowsort
SELECT 29 + + 55 AS col2 FROM tab2 AS cor0
----
84
84
84

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 20 col0 FROM tab1
----
100
280
940

query I rowsort
SELECT ALL - 92 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-92
-92
-92

query I rowsort
SELECT DISTINCT 50 * - 41 AS col1 FROM tab1 cor0
----
-2050

onlyif mysql # DIV for integer division: 
query I rowsort label-596
SELECT DISTINCT + 61 DIV + col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT + 61 / + col1 FROM tab2 AS cor0
----
0
1

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

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT col0 / - - col2 AS col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE ( 20 IS NULL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-600
SELECT 98 / + 87 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT + - MIN( - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-601
SELECT + - MIN ( - col1 ) FROM tab1 cor0
----
47

query I rowsort
SELECT ALL - - col0 + col1 + + 14 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
1325
1949
209

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

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

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

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT - 23 + - ( - COUNT ( ALL + 29 ) ) + - MIN ( - - col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ( + SUM( col2 ) ) - - + COUNT( * ) AS col0 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-605
SELECT ( + SUM ( col2 ) ) - - + COUNT ( * ) AS col0 FROM tab0
----
159

query I rowsort
SELECT + col2 * ( + + col0 ) * + col2 - - col2 FROM tab0
----
33182
8710
950796

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL + + COUNT( * ) FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE + col0 IS NULL
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-611
SELECT ALL - + 92 * - COUNT ( ALL col1 ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----
0

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

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

query I rowsort
SELECT ALL + col0 * - ( - + col1 ) + col0 AS col0 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
1230
1914
194

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT + COUNT( + 2 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + COUNT ( + 2 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + ( col0 ) * + - col1 col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT DISTINCT + col1 * - - 84 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1764
6804
84

onlyif mysql # DIV for integer division: 
query II rowsort label-620
SELECT col2, col2 + col2 * - - col1 * + - 16 + + + col0 DIV 73 * col1 col1 FROM tab1 AS cor0
----
59
-4656
68
-51021
96
-21408

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-620
SELECT col2, col2 + col2 * - - col1 * + - 16 + + + col0 / 73 * col1 col1 FROM tab1 AS cor0
----
59
-4656
68
-51021
96
-21408

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT col0 FROM tab1 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) NOT BETWEEN + col0 AND ( col0 * - 34 - - ( - + 36 ) + + col1 )
----

skipif mysql # not compatible
query I rowsort label-622
SELECT col0 FROM tab1 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) NOT BETWEEN + col0 AND ( col0 * - 34 - - ( - + 36 ) + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT COUNT( * ) * 23 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-623
SELECT COUNT ( * ) * 23 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT ALL + 9 * - - ( + CAST( NULL AS SIGNED ) ) + 23 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-624
SELECT ALL + 9 * - - ( + CAST ( NULL AS INTEGER ) ) + 23 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL ( - 85 ) + - COUNT( * ) - MIN( + col2 ) AS col0 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL ( - 85 ) + - COUNT ( * ) - MIN ( + col2 ) AS col0 FROM tab1
----
-147

query I rowsort
SELECT 40 + + col0 * col0 AS col1 FROM tab0
----
265
7609
9449

query I rowsort
SELECT col2 + + 19 FROM tab2
----
42
59
77

query I rowsort
SELECT ALL 32 * + + 74 FROM tab2
----
2368
2368
2368

query I rowsort
SELECT - 68 + - + col0 FROM tab2 AS cor0
----
-114
-132
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT + CAST( AVG ( ALL - col1 ) AS SIGNED ) FROM tab2 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-630
SELECT + CAST ( AVG ( ALL - col1 ) AS INTEGER ) FROM tab2 cor0
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT + COUNT( * ) - - - MIN( - + col0 ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-632
SELECT + COUNT ( * ) - - - MIN ( - + col0 ) AS col0 FROM tab0
----
100

query I rowsort
SELECT + col1 - 70 AS col0 FROM tab1 AS cor0
----
-23
-56
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 11 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - col1 * 74 * + 48 + - col0 AS col0 FROM tab1 AS cor0
----
-167035
-17845
-49779

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

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 + 39 + - 68 AS col1 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT 8 * 27 * + col2 * + col0 AS col1 FROM tab1
----
1057536
1083240
1336608

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

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

query II rowsort
SELECT DISTINCT - 94 + + col2 - col2 AS col1, - 42 FROM tab0 WHERE NOT + ( - col0 ) >= + col1 + 96
----
-94
-42

query I rowsort
SELECT ALL - 19 * col0 FROM tab2
----
-1216
-1425
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT DISTINCT - 86 DIV - - col2 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT - 86 / - - col2 AS col0 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * - 98 * + col1 * - - 46 * + col1 col2 FROM tab1
----
-4417840
-49790860
-563500

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

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

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

query I rowsort
SELECT DISTINCT 91 * + - 67 FROM tab1
----
-6097

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT 25 DIV - col0 * - col0 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-648
SELECT 25 / - col0 * - col0 col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-649
SELECT ( + col1 ) DIV - - col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-649
SELECT ( + col1 ) / - - col1 AS col0 FROM tab2
----
1
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 90 col1 FROM tab0 AS cor0
----
90
90
90

query II rowsort
SELECT DISTINCT col2 + + 54 - + 63 AS col0, 48 FROM tab2 AS cor0
----
14
48
31
48
49
48

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - MAX( 46 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-653
SELECT - MAX ( 46 ) FROM tab2 AS cor0
----
-46

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

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

query II rowsort
SELECT col0 AS col0, 87 * 57 FROM tab0
----
15
4959
87
4959
97
4959

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

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

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

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

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 WHERE + 4 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT DISTINCT + CAST( - + ( - 2 ) AS SIGNED ) + col0 AS col1 FROM tab1
----
53
87
93

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT + CAST ( - + ( - 2 ) AS INTEGER ) + col0 AS col1 FROM tab1
----
53
87
93

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

skipif mysql # not compatible
query I rowsort label-660
SELECT COUNT ( col1 ) AS col0 FROM tab1
----
3

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

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

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

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

query I rowsort
SELECT - ( + 43 ) - + + 18 FROM tab1 AS cor0
----
-61
-61
-61

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

query I rowsort
SELECT ALL col0 + + 69 * - - col2 * col2 FROM tab1
----
240274
319147
635955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-667
SELECT + col1 FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * + ( - + col0 ) * 52 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-667
SELECT + col1 FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * + ( - + col0 ) * 52 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - ( + + ( - col2 ) ) - - col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ( col0 ) * - 19 FROM tab2 AS cor0
----
-1216
-1425
-874

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

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT + COUNT( ALL ( - col0 ) ) * 71 + - 79 FROM tab2 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-671
SELECT + COUNT ( ALL ( - col0 ) ) * 71 + - 79 FROM tab2 AS cor0
----
134

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 >= + + 43
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - col1 * - - col1 AS col1 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63 * + ( + + col1 ), col0 col2 FROM tab0
----
1323
87
5103
15
63
97

query I rowsort
SELECT ALL 2 * + col2 * + - ( - - col1 ) * - col0 * col2 * + - col1 FROM tab0
----
-1901394
-434797470
-7673400

query I rowsort
SELECT ALL + col0 * - + 4 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT ALL + 56 * + col2 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( + - col1 ) NOT BETWEEN + 23 * + 83 * - - ( + + 76 ) + + 58 AND - col2
----

query I rowsort
SELECT DISTINCT 49 * + col0 AS col0 FROM tab0
----
4263
4753
735

query II rowsort
SELECT ALL + col2, col0 FROM tab1
----
59
85
68
91
96
51

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

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

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

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

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

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

query I rowsort
SELECT - 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT + COUNT( * ) * ( - 66 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-594

skipif mysql # not compatible
query I rowsort label-687
SELECT + COUNT ( * ) * ( - 66 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT + + COUNT( - 7 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-688
SELECT + + COUNT ( - 7 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + + col2 * + 49 FROM tab1 AS cor0
----
2891
3332
4704

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

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

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

query I rowsort
SELECT + 52 AS col0 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT + + 64 * 25 * + col2 AS col0 FROM tab0 AS cor0
----
158400
16000
75200

query I rowsort
SELECT ALL - col0 + + + ( 65 ) FROM tab2 AS cor0
----
-10
1
19

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

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

query II rowsort
SELECT ALL - ( col1 ) * col1 + col1, col0 AS col2 FROM tab1 AS cor0
----
-182
51
-20
85
-2162
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT 35 + - - COUNT( * ) FROM tab1, tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-698
SELECT 35 + - - COUNT ( * ) FROM tab1, tab2 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-699
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 * - + 0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-699
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 * - + 0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL - 17 * - - COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL - 17 * - - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT + ( - col0 ) DIV col1 + - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1347
-312
-3197

skipif mysql # not compatible
query I rowsort label-701
SELECT + ( - col0 ) / col1 + - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1347
-312
-3197

query I rowsort
SELECT DISTINCT + col2 + 37 * - ( + col2 ) FROM tab2 AS cor0
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT SUM( col1 ) - + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-703
SELECT SUM ( col1 ) - + COUNT ( * ) FROM tab0
----
100

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 = col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL - SUM( - 66 ) col1 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-705
SELECT ALL - SUM ( - 66 ) col1 FROM tab0 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-706
SELECT ALL + + col0 AS col0, col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-706
SELECT ALL + + col0 AS col0, col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL - + 53 * - + col1 * + col0 FROM tab0 AS cor0
----
5141
64395
96831

query I rowsort
SELECT DISTINCT 95 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL col0 * + 99 FROM tab0
----
1485
8613
9603

query I rowsort
SELECT DISTINCT + 98 * + 73 FROM tab0
----
7154

query I rowsort
SELECT DISTINCT - 92 * + col0 FROM tab2
----
-4232
-5888
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT - 11 * - - COUNT( * ) AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-713
SELECT - 11 * - - COUNT ( * ) AS col0 FROM tab1
----
-33

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-714
SELECT - col0 / col2 col0 FROM tab1
----
-1
-1
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 24 IN ( + + col0 * + + ( - - 52 ), 58 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-717
SELECT - - 80 * + ( + COUNT( * ) ) AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
720
9

skipif mysql # not compatible
query II rowsort label-717
SELECT - - 80 * + ( + COUNT ( * ) ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
720
9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-719
SELECT DISTINCT 97 DIV - COUNT( * ) AS col0 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT 97 / - COUNT ( * ) AS col0 FROM tab0
----
-32

query I rowsort
SELECT DISTINCT + 53 * - 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1431

query I rowsort
SELECT ALL - + col2 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND + 21
----

query I rowsort
SELECT DISTINCT col2 * - col0 * - col2 AS col1 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT + - SUM( - + col1 ) * + 22 AS col0 FROM tab0 AS cor0
----
2266

skipif mysql # not compatible
query I rowsort label-723
SELECT + - SUM ( - + col1 ) * + 22 AS col0 FROM tab0 AS cor0
----
2266

query I rowsort
SELECT 71 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-725
SELECT SUM ( - - ( - ( - col0 ) ) ) AS col1 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-726
SELECT ALL + 65 + - MIN( + 41 ) * + + COUNT( * ), ( 67 ) AS col2 FROM tab2
----
-58
67

skipif mysql # not compatible
query II rowsort label-726
SELECT ALL + 65 + - MIN ( + 41 ) * + + COUNT ( * ), ( 67 ) AS col2 FROM tab2
----
-58
67

query I rowsort
SELECT ALL - ( col1 ) + + + 85 AS col2 FROM tab2
----
18
34
8

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

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL MAX ( + col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT - ( - SUM( ALL col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-729
SELECT - ( - SUM ( ALL col1 ) ) FROM tab2
----
195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT DISTINCT MAX( - col0 ) - + - 35 AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT MAX ( - col0 ) - + - 35 AS col2 FROM tab0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT CAST( NULL AS SIGNED ) - - 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT CAST ( NULL AS INTEGER ) - - 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + col0 + col0 col2 FROM tab1 AS cor0
----
14
102
47
182
5
170

query I rowsort
SELECT + col2 + - 58 AS col1 FROM tab0 AS cor0
----
-11
-48
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-735
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 54 * - 87 IN ( + ( - col1 ) / - col2 * - CAST( - + col1 AS SIGNED ), col0, + - 35 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-735
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 54 * - 87 IN ( + ( - col1 ) / - col2 * - CAST ( - + col1 AS INTEGER ), col0, + - 35 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - COUNT( * ) + 31 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-738
SELECT - COUNT ( * ) + 31 FROM tab0 cor0
----
28

query I rowsort
SELECT col1 * + 68 FROM tab1
----
3196
340
952

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL - + MIN( DISTINCT 34 ) AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - + MIN ( DISTINCT 34 ) AS col1 FROM tab0 AS cor0
----
-34

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-745
SELECT DISTINCT + ( COUNT ( * ) ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT COUNT( * ) * - + 85 AS col1 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-746
SELECT COUNT ( * ) * - + 85 AS col1 FROM tab1
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT COUNT( ALL 59 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-747
SELECT COUNT ( ALL 59 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - - 14 - - - 10 + + - COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-748
SELECT - - 14 - - - 10 + + - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
4

query I rowsort
SELECT DISTINCT + 15 + + - col0 + + 0 AS col1 FROM tab0 AS cor0
----
-72
-82
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-750
SELECT + CAST( NULL AS DECIMAL ) + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-750
SELECT + CAST ( NULL AS REAL ) + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-751
SELECT DISTINCT COUNT( ALL - col2 ) * ( 98 ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + + col0 * col1 > + 50
----
0

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT COUNT ( ALL - col2 ) * ( 98 ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + + col0 * col1 > + 50
----
0

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

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT - col0 IN ( col2 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ( COUNT( * ) ) FROM tab1 WHERE ( - col2 ) NOT IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-754
SELECT ( COUNT ( * ) ) FROM tab1 WHERE ( - col2 ) NOT IN ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT MIN( ALL 16 ) + + ( - 31 + + 39 ) col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-755
SELECT MIN ( ALL 16 ) + + ( - 31 + + 39 ) col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT ( col2 * + col1 ) IN ( + 58 )
----
-14
-47
-5

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( 94 ) IS NULL
----
59
68
96

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

query I rowsort
SELECT ALL - col2 + + 97 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
29
38

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

query I rowsort
SELECT + 94 FROM tab1 WHERE NOT 24 >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 FROM tab0
----
-2162
-90
-9702

query I rowsort
SELECT + col2 * 99 FROM tab1
----
5841
6732
9504

query I rowsort
SELECT 24 * + col0 AS col0 FROM tab0
----
2088
2328
360

query I rowsort
SELECT col2 - - ( + col1 ) * + 64 FROM tab1
----
3076
379
992

query I rowsort
SELECT DISTINCT col0 + col0 FROM tab1 WHERE col1 NOT BETWEEN col1 AND + col0
----

query I rowsort
SELECT DISTINCT + col2 + - 13 * + col0 FROM tab1
----
-1046
-1115
-567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 57 col2 FROM tab1
----
3363
3876
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL - MIN( + col0 ) + SUM( ALL col2 ) * COUNT( * ) FROM tab0
----
453

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - MIN ( + col0 ) + SUM ( ALL col2 ) * COUNT ( * ) FROM tab0
----
453

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 37 < - col0 * col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN ( col0 * + col1 ) AND ( NULL )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT + CAST( - 43 AS SIGNED ) * + 41 FROM tab2
----
-1763
-1763
-1763

skipif mysql # not compatible
query I rowsort label-775
SELECT + CAST ( - 43 AS INTEGER ) * + 41 FROM tab2
----
-1763
-1763
-1763

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

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

query I rowsort
SELECT - col0 FROM tab1 WHERE col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL 88 / COUNT ( * ) AS col0 FROM tab1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 - + col1 col0 FROM tab2 AS cor0 WHERE - col2 BETWEEN - col1 * - col0 + 58 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + 20 AS col1 FROM tab2 AS cor0
----
-1160
-460
-800

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

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

query I rowsort
SELECT DISTINCT + col1 * + 11 AS col2 FROM tab1 AS cor0
----
154
517
55

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + 63 * 14 IS NULL
----

query I rowsort
SELECT - 86 * + col2 FROM tab0 AS cor0
----
-4042
-8514
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + MIN( 11 ) AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + MIN ( 11 ) AS col2 FROM tab1
----
11

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT ALL 4 DIV - COUNT( * ) col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-787
SELECT ALL 4 / - COUNT ( * ) col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT - COUNT( * ) * - 10 AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-788
SELECT - COUNT ( * ) * - 10 AS col0 FROM tab2
----
30

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col1 + - ( col0 ) NOT BETWEEN col1 - - 6 * 65 AND + col1 * + 60
----

query I rowsort
SELECT 39 * + col0 FROM tab2 AS cor0 WHERE NOT ( ( + col0 ) ) IN ( - col1 - col1 )
----
1794
2496
2925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col0 FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 63 / - 29 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-792
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 63 / - 29 + col2 )
----
0

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

query I rowsort
SELECT - col0 + 31 * col2 FROM tab1 AS cor0 WHERE NOT ( 40 ) IS NULL
----
1744
2017
2925

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT CAST( NULL AS SIGNED ) * 35 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT CAST ( NULL AS INTEGER ) * 35 FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL 88 AS col0 FROM tab2 WHERE NOT ( col2 - + col1 ) NOT BETWEEN - col1 / col2 + 73 AND NULL
----

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

query I rowsort
SELECT + col1 * col0 FROM tab2 AS cor0 WHERE NOT ( col2 * - col1 ) IS NULL
----
2346
4928
5025

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

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

query I rowsort
SELECT DISTINCT - 47 + + col1 + 56 * - ( col2 ) * 24 AS col2 FROM tab2 AS cor0
----
-30908
-53730
-77932

query I rowsort
SELECT DISTINCT col2 + col1 * - col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT + col1 + + ( - col1 ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 63 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
63

query I rowsort
SELECT 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

query II rowsort
SELECT - - col2 AS col2, + 55 * + + col2 * ( + 8 * col0 ) + + col0 FROM tab1 AS cor0
----
59
2206685
68
2722811
96
2154291

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT col1 * - col1 + + - col1 + col2 DIV - col2 FROM tab2 cor0
----
-2653
-4557
-6007

skipif mysql # not compatible
query I rowsort label-810
SELECT col1 * - col1 + + - col1 + col2 / - col2 FROM tab2 cor0
----
-2653
-4557
-6007

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL - ( + 8 ) + COUNT( * ) AS col2 FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - ( + 8 ) + COUNT ( * ) AS col2 FROM tab2 cor0
----
-5

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 <= - - 24
----

query I rowsort
SELECT ALL - + col0 + - 12 * col1 FROM tab2 AS cor0
----
-658
-879
-988

query II rowsort
SELECT - 84, + col1 AS col0 FROM tab2 AS cor0
----
-84
51
-84
67
-84
77

query III rowsort
SELECT * FROM tab1 WHERE ( + + col0 ) <= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-818
SELECT ALL - COUNT( * ) + COUNT( * ) / + 45 * - COUNT( * ) / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL - COUNT ( * ) + COUNT ( * ) / + 45 * - COUNT ( * ) / + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT 60 - + + col2 FROM tab2
----
2
20
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col2 - col0 col0 FROM tab2
----
-1219
-3144
-3961

query II rowsort
SELECT + 29 + - 82 AS col1, + 37 AS col2 FROM tab2
----
-53
37
-53
37
-53
37

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

query I rowsort
SELECT + col2 * - + ( col0 ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

query I rowsort
SELECT + 22 * ( ( + col2 ) ) * - col2 FROM tab2 AS cor0
----
-11638
-35200
-74008

query I rowsort
SELECT DISTINCT - 74 * col1 FROM tab0 AS cor0
----
-1554
-5994
-74

query I rowsort
SELECT DISTINCT - col1 * - 8 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
14616
776
9720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 * + + 69 col2 FROM tab0
----
152421
676269
6900

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 37 * - col0 IN ( - col2 + + 76 )
----
3

skipif mysql # not compatible
query I rowsort label-832
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 37 * - col0 IN ( - col2 + + 76 )
----
3

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

query I rowsort
SELECT + 10 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
10
10
10

query I rowsort
SELECT DISTINCT - col1 * + 4 AS col1 FROM tab1 AS cor0
----
-188
-20
-56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 65 - - 78 IN ( - 29 )
----

query II rowsort
SELECT DISTINCT - 43 AS col2, col2 FROM tab2 AS cor0
----
-43
23
-43
40
-43
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ( + MIN( - - 80 ) ) FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-839
SELECT ( + MIN ( - - 80 ) ) FROM tab0 cor0
----
80

query I rowsort
SELECT ALL - 85 FROM tab1 AS cor0 WHERE - col1 * - 47 IS NULL
----

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

query I rowsort
SELECT col2 * - 89 FROM tab2
----
-2047
-3560
-5162

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - col2 IN ( col0 * 13 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT DISTINCT 15 DIV col0 * - - col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT 15 / col0 * - - col0 AS col1 FROM tab1
----
0

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

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

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT - + 23 <> NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, ( - - 65 ) AS col0 FROM tab0
----
1
65
21
65
81
65

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + COUNT( * ) + + MIN( ALL - col1 ) col2 FROM tab0
----
-78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT ( CAST( + col2 AS SIGNED ) ) + + 40 FROM tab0 AS cor0
----
139
50
87

skipif mysql # not compatible
query I rowsort label-850
SELECT ( CAST ( + col2 AS INTEGER ) ) + + 40 FROM tab0 AS cor0
----
139
50
87

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

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

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

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

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

query I rowsort
SELECT ALL + - col1 * - col0 + + + 19 AS col1 FROM tab1 AS cor0
----
4296
444
733

query I rowsort
SELECT - + 68 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT DISTINCT col2 + - + 21 FROM tab0
----
-11
26
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 76, col0 )
----

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN ( 25 * 22 / ( + - 0 ) + 46 ) AND col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT - 59 + - 85 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-314

skipif mysql # not compatible
query I rowsort label-859
SELECT - 59 + - 85 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-314

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT + - 58 * + COUNT( * ) + + 74 + + + 34 AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-860
SELECT + - 58 * + COUNT ( * ) + + 74 + + + 34 AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT + - col2 + + + 0 * col1 * col1 AS col2 FROM tab0 cor0 WHERE 33 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT COUNT( * ) FROM tab2 WHERE - + col1 NOT IN ( - + col0, - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-864
SELECT COUNT ( * ) FROM tab2 WHERE - + col1 NOT IN ( - + col0, - col2 )
----
3

query I rowsort
SELECT ALL 74 - + - col2 FROM tab1
----
133
142
170

query I rowsort
SELECT DISTINCT col0 + - - col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT 92 - - COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT 92 - - COUNT ( * ) FROM tab0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT DISTINCT - col2 DIV - col2 + col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT - col2 / - col2 + col1 FROM tab1
----
15
48
6

query I rowsort
SELECT DISTINCT col0 * 59 - col1 * + 36 * - col0 * + col0 FROM tab0
----
344447
5727297
656985

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT - 19 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-870
SELECT - 19 / + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT - SUM( - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-871
SELECT - SUM ( - col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT - col0 BETWEEN ( 36 ) AND ( NULL )
----
23
40
58

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT DISTINCT MAX( + - 18 ) * + COUNT( * ) AS col0 FROM tab0, tab0 AS cor0 WHERE ( NULL ) > - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT MAX ( + - 18 ) * + COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0 WHERE ( NULL ) > - 81
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col1 FROM tab1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT COUNT( * ) DIV COUNT( + 3 ) DIV 35 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT COUNT ( * ) / COUNT ( + 3 ) / 35 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / col2 + + 73 IN ( - + 97 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 43 < NULL
----

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

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

query I rowsort
SELECT DISTINCT + - 41 AS col2 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT - ( - 5 ) * - 50 + + 84 AS col0 FROM tab1
----
-166
-166
-166

query I rowsort
SELECT + col2 * + + 25 FROM tab1
----
1475
1700
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-885
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV - SUM( + CAST( + - ( - - col1 ) AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-885
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / - SUM ( + CAST ( + - ( - - col1 ) AS INTEGER ) ) AS col1 FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-887
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col1 * 84 IS NULL
----

skipif mysql # not compatible
query III rowsort label-887
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 * 84 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 <= col2
----
15
81
47
97
1
99

query I rowsort
SELECT - + col1 * - + col1 * - - col0 + - col0 AS col0 FROM tab2 AS cor0
----
119600
336600
379392

query I rowsort
SELECT + - ( + - col0 ) + - 52 + - col1 AS col0 FROM tab0 AS cor0
----
-118
14
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 58 >= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 * - - col2 * - - 89 * + + 60 + - 25 + - col2 col0 FROM tab0 AS cor0
----
11796069
52337217
533986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-893
SELECT ALL + 47 + MAX( col2 ) + + 0 DIV COUNT( * ) * + - 13 * - + MAX( DISTINCT ( 86 ) ) DIV COUNT( * ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + 47 + MAX ( col2 ) + + 0 / COUNT ( * ) * + - 13 * - + MAX ( DISTINCT ( 86 ) ) / COUNT ( * ) FROM tab2
----
105

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / - - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, + 54 AS col2 FROM tab2
----
23
54
40
54
58
54

query I rowsort
SELECT - - 50 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL ( + col0 ) - + + 5 FROM tab1 cor0
----
46
80
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) + + 76 AS col2 FROM tab2 AS cor0
----
1
12
30

query II rowsort
SELECT 33 AS col2, 13 FROM tab0 AS cor0
----
33
13
33
13
33
13

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-903
SELECT ALL col0 + - 11 + - col0 DIV 96 * - col0 * + col2 + + 19 col1, ( + - 85 ) FROM tab0 AS cor0
----
23
-85
95
-85
9708
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-903
SELECT ALL col0 + - 11 + - col0 / 96 * - col0 * + col2 + + 19 col1, ( + - 85 ) FROM tab0 AS cor0
----
23
-85
95
-85
9708
-85

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 81 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
81

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

skipif mysql # not compatible
query II rowsort label-911
SELECT ALL 7 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
7
3

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

query I rowsort
SELECT ALL 75 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
75
75
75

query I rowsort
SELECT DISTINCT + col0 * + 9 * + ( - col1 ) + + + col1 FROM tab0 AS cor0
----
-10854
-16422
-872

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

query I rowsort
SELECT DISTINCT + 76 + - col2 AS col1 FROM tab0 AS cor0
----
-23
29
66

query I rowsort
SELECT col2 FROM tab1 WHERE + - col0 IN ( + col1 + col1 * - col0, - col1, + - 30, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT DISTINCT + col0 DIV 57 + + 79 + - col2 AS col2 FROM tab2
----
22
40
56

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + col0 / 57 + + 79 + - col2 AS col2 FROM tab2
----
22
40
56

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT ALL + + AVG ( - ( - - col0 ) ) AS col2 FROM tab2 WHERE NOT + CAST( - 49 AS SIGNED ) NOT BETWEEN - col1 * + ( + col2 ) + - + col1 + col0 + + col0 AND - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + + AVG ( - ( - - col0 ) ) AS col2 FROM tab2 WHERE NOT + CAST ( - 49 AS INTEGER ) NOT BETWEEN - col1 * + ( + col2 ) + - + col1 + col0 + + col0 AND - 70
----
NULL

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

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

query I rowsort
SELECT ALL + 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + + col1 col2 FROM tab0 AS cor0
----
-66
66
96

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-927
SELECT * FROM tab1 AS cor0 WHERE CAST( + - col2 AS SIGNED ) = - col0
----

skipif mysql # not compatible
query III rowsort label-927
SELECT * FROM tab1 AS cor0 WHERE CAST ( + - col2 AS INTEGER ) = - col0
----

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

query II rowsort
SELECT ALL col2 + col1, - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 4 * 89 * + ( - ( - + col1 ) ) FROM tab1 cor0
----
-16732
-1780
-4984

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-932
SELECT - col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT - col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 88 - + col0 * - 23 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-934
SELECT ALL - + COUNT( * ) DIV SUM( - 47 ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - + COUNT ( * ) / SUM ( - 47 ) AS col0 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > col2
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-938
SELECT - 60 AS col2, COUNT( * ) DIV - 20 * 60 AS col2 FROM tab2
----
-60
0

skipif mysql # not compatible
query II rowsort label-938
SELECT - 60 AS col2, COUNT ( * ) / - 20 * 60 AS col2 FROM tab2
----
-60
0

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

query II rowsort
SELECT - 50, col0 * + 6 AS col2 FROM tab1
----
-50
306
-50
510
-50
546

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL + SUM( DISTINCT + - 62 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL + SUM ( DISTINCT + - 62 ) FROM tab1
----
-62

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 7 ) <> ( - 59 )
----

query II rowsort
SELECT - ( + 23 ) + - col1, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + + - col2 * + + 62 > NULL
----

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

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

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

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

query II rowsort
SELECT col2 * + + col0, + ( + + col2 ) AS col1 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT ALL + + 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - 15 * + - col2 + - + col1 AS col2 FROM tab0
----
129
1484
624

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL + + MIN( + + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL + + MIN ( + + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < + 0
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT ALL - col0 DIV col2 + + col1 + + ( + col1 ) AS col0 FROM tab2
----
100
133
153

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL - col0 / col2 + + col1 + + ( + col1 ) AS col0 FROM tab2
----
100
133
153

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT ALL - COUNT( * ) AS col0, - 61 - - 66 + 61 FROM tab1 WHERE ( + + 72 ) <= NULL
----
0
66

skipif mysql # not compatible
query II rowsort label-955
SELECT ALL - COUNT ( * ) AS col0, - 61 - - 66 + 61 FROM tab1 WHERE ( + + 72 ) <= NULL
----
0
66

query II rowsort
SELECT - col2 AS col1, - 10 AS col0 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 37 col0 FROM tab1 AS cor0
----
105
133
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-958
SELECT ALL - CAST( MIN( DISTINCT + 12 ) AS SIGNED ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - CAST ( MIN ( DISTINCT + 12 ) AS INTEGER ) FROM tab0 AS cor0
----
-12

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

query I rowsort
SELECT 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, + 23 * col2 col0 FROM tab2 cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
-46
529
-64
920
-75
1334

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - + 45 - - + 98 + + - 26 col0, 6 FROM tab1 AS cor0
----
2367
6
3897
6
4167
6

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

query I rowsort
SELECT DISTINCT - col0 * - + col2 * 96 + + col0 AS col0 FROM tab2 AS cor0
----
101614
245824
417675

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT - col2 DIV + - col2 + + 99 FROM tab1 AS cor0
----
100
100
100

skipif mysql # not compatible
query I rowsort label-968
SELECT - col2 / + - col2 + + 99 FROM tab1 AS cor0
----
100
100
100

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

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

query I rowsort
SELECT DISTINCT col1 * - + 63 FROM tab2
----
-3213
-4221
-4851

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

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL + - CAST ( NULL AS INTEGER ) / + col0 * - 93 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-976
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
-1

query I rowsort
SELECT - 96 * + + 50 FROM tab2
----
-4800
-4800
-4800

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 88 BETWEEN NULL AND - ( 83 ) * - + 99
----

query I rowsort
SELECT - ( - - 16 ) FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT ALL 92 * 67 + - 9 DIV - col1 FROM tab0 AS cor0
----
6164
6164
6173

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL 92 * 67 + - 9 / - col1 FROM tab0 AS cor0
----
6164
6164
6173

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

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT DISTINCT + - col0 DIV 86 + + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
47
9
98

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT + - col0 / 86 + + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
47
9
98

query I rowsort
SELECT - 64 * - - col0 + - 12 FROM tab0 AS cor0
----
-5580
-6220
-972

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-985
SELECT - 74 + + ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-71

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

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

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col1 FROM tab1 WHERE 89 + + col0 IS NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + col1 - - col2 * col2 FROM tab1
----
3906
8901
9930

query I rowsort
SELECT ALL - col0 * + - col0 AS col0 FROM tab2 WHERE - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 < - col0 * - 72 + + 93 * col2 / - - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + - + 93 FROM tab1
----
-25
-34
3

query I rowsort
SELECT col1 + + 90 AS col1 FROM tab1
----
104
137
95

query II rowsort
SELECT + ( - col1 ) AS col0, col2 * + - col0 * - - col2 FROM tab1
----
-14
-470016
-47
-420784
-5
-295885

query I rowsort
SELECT DISTINCT col0 * - 64 AS col2 FROM tab1
----
-3264
-5440
-5824

query I rowsort
SELECT + 10 * - + col1 FROM tab1 cor0
----
-140
-470
-50

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-997
SELECT ALL + + MIN( + CAST( col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + + MIN ( + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
23

query II rowsort
SELECT + col2 AS col2, + col1 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT DISTINCT - SUM( DISTINCT + col2 ) * - 29 FROM tab2 AS cor0
----
3509

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT - SUM ( DISTINCT + col2 ) * - 29 FROM tab2 AS cor0
----
3509

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1000
SELECT ALL - col2, - col2 * CAST( + 74 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-4366
-68
-5032
-96
-7104

skipif mysql # not compatible
query II rowsort label-1000
SELECT ALL - col2, - col2 * CAST ( + 74 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-4366
-68
-5032
-96
-7104

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT ALL - + col2 * - CAST( 42 AS SIGNED ) * col1 FROM tab1 AS cor0
----
12390
134232
56448

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - + col2 * - CAST ( 42 AS INTEGER ) * col1 FROM tab1 AS cor0
----
12390
134232
56448

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + 40 * + - COUNT( * ) AS col1 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-1003
SELECT + 40 * + - COUNT ( * ) AS col1 FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-1004
SELECT ALL COUNT( * ) * - - 53, COUNT( * ) AS col0 FROM tab1
----
159
3

skipif mysql # not compatible
query II rowsort label-1004
SELECT ALL COUNT ( * ) * - - 53, COUNT ( * ) AS col0 FROM tab1
----
159
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1005
SELECT ALL 89 DIV + col1 AS col0 FROM tab0
----
1
4
89

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL 89 / + col1 AS col0 FROM tab0
----
1
4
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT COUNT( 67 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1006
SELECT COUNT ( 67 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 80 * - col0 * col0 FROM tab2
----
-169280
-327680
-450000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1008
SELECT ALL + SUM( - col0 ) DIV - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL + SUM ( - col0 ) / - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
75

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1010
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1010
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1011
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - + 14 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1011
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - + 14 IS NOT NULL
----

query I rowsort
SELECT + 74 + + col2 - 54 AS col0 FROM tab2
----
43
60
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 3 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) <= + 13
----
94
94
94

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + + col0 ) <> 86
----

query I rowsort
SELECT ALL - + 41 + + col2 AS col1 FROM tab1 AS cor0
----
18
27
55

query I rowsort
SELECT - col1 * + col1 + + col1 AS col2 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT - - ( 73 ) FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT 43 - + col2 AS col1 FROM tab0
----
-4
-56
33

query I rowsort
SELECT ALL ( + - col1 ) + - + ( - - col0 ) AS col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT 26 + 51 FROM tab1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1023
SELECT DISTINCT 46 AS col1, col2 * + - col2 * CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-1023
SELECT DISTINCT 46 AS col1, col2 * + - col2 * CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0
----
46
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT + SUM( DISTINCT + col0 ) - - ( - 24 ) + - - MIN( ALL + col0 ) FROM tab0
----
190

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT + SUM ( DISTINCT + col0 ) - - ( - 24 ) + - - MIN ( ALL + col0 ) FROM tab0
----
190

query I rowsort
SELECT DISTINCT - col0 - col2 + - + col1 AS col2 FROM tab1 AS cor0
----
-149
-161
-206

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 64 <> ( NULL )
----

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

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

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

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 78 AND - col0
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1034
SELECT - 55 + - 85 col2, + ( + COUNT( * ) ) col0 FROM tab2 AS cor0 WHERE NOT - 81 NOT BETWEEN + - col1 AND - col0 * col0
----
-140
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1034
SELECT - 55 + - 85 col2, + ( + COUNT ( * ) ) col0 FROM tab2 AS cor0 WHERE NOT - 81 NOT BETWEEN + - col1 AND - col0 * col0
----
-140
0

query I rowsort
SELECT DISTINCT col0 * + - col2 * - col2 FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1036
SELECT * FROM tab1 WHERE NOT - col0 * - 53 + + col2 + col1 + - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-1036
SELECT * FROM tab1 WHERE NOT - col0 * - 53 + + col2 + col1 + - CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL col0 * - + 8 FROM tab1
----
-408
-680
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT + SUM( 12 ) * - SUM( DISTINCT + + col0 ) FROM tab2
----
-6660

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT + SUM ( 12 ) * - SUM ( DISTINCT + + col0 ) FROM tab2
----
-6660

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

query I rowsort
SELECT ALL - + col2 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 17 * + + col0 AS col0 FROM tab0
----
1479
1649
255

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1044
SELECT DISTINCT - - SUM ( DISTINCT + + 98 ) col0 FROM tab1 cor0
----
98

query II rowsort
SELECT DISTINCT - + 99, col2 FROM tab2 AS cor0
----
-99
23
-99
40
-99
58

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
51
-249696
85
-426275
91
-563108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT CAST( - + ( + - 60 ) AS SIGNED ) * - col0 + col2 FROM tab0 AS cor0
----
-5210
-5721
-853

skipif mysql # not compatible
query I rowsort label-1048
SELECT CAST ( - + ( + - 60 ) AS INTEGER ) * - col0 + col2 FROM tab0 AS cor0
----
-5210
-5721
-853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL CAST( NULL AS SIGNED ) + 62 * - - ( - 25 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL CAST ( NULL AS INTEGER ) + 62 * - - ( - 25 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT ALL - SUM( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL - SUM ( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
-121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL 66 + + COUNT( * ) * - 16 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL 66 + + COUNT ( * ) * - 16 FROM tab1 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - COUNT( * ) - - - MAX( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1053
SELECT - COUNT ( * ) - - - MAX ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
48

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

query I rowsort
SELECT col0 + + 35 - + col0 AS col2 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT - ( + 37 ) + + col2 FROM tab2 AS cor0
----
-14
21
3

query I rowsort
SELECT DISTINCT + col2 + + + col0 + - 52 * + 29 FROM tab2 AS cor0
----
-1375
-1404
-1439

query I rowsort
SELECT DISTINCT + 35 * - 6 + - - col2 * 23 AS col2 FROM tab2 cor0
----
1124
319
710

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT ALL - ( + - col2 ) DIV col2 + - + 36 FROM tab1
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - ( + - col2 ) / col2 + - + 36 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - col1 - - 74 + + col1 + - + col1 FROM tab0
----
-7
53
73

query I rowsort
SELECT ALL + 49 * - col1 + - col1 AS col0 FROM tab1
----
-2350
-250
-700

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1064
SELECT DISTINCT CAST( NULL AS SIGNED ) * AVG ( ALL - 44 ) + 28 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( ALL - 44 ) + 28 AS col0 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT col2 - - - col0 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL + SUM( + 71 ) AS col2 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL + SUM ( + 71 ) AS col2 FROM tab0
----
213

query I rowsort
SELECT ALL + + 14 * + col0 FROM tab2 AS cor0
----
1050
644
896

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 * col1 col2 FROM tab2
----
-2499
-3283
-3773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ( - 41 ) * + col1 * + - 93 AS col0 FROM tab1
----
179211
19065
53382

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT + + SUM( ALL 67 ) * COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT + + SUM ( ALL 67 ) * COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col0 >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-1075
SELECT DISTINCT + col0 AS col1, 94 col2, - 22 DIV ( 24 ) - - 69 AS col2 FROM tab1 AS cor0
----
9 values hashing to 9b35add462e7504d0f65197d3fdb5210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1075
SELECT DISTINCT + col0 AS col1, 94 col2, - 22 / ( 24 ) - - 69 AS col2 FROM tab1 AS cor0
----
9 values hashing to 9b35add462e7504d0f65197d3fdb5210

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 <= col1
----

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

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

query I rowsort
SELECT DISTINCT - col0 * col0 + col0 AS col2 FROM tab0 cor0
----
-210
-7482
-9312

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

query I rowsort
SELECT - ( 70 ) * col1 FROM tab2 cor0
----
-3570
-4690
-5390

query I rowsort
SELECT DISTINCT + - ( - - ( col2 ) ) FROM tab2 cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 16 col2 FROM tab1 AS cor0
----
-16

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1085
SELECT * FROM tab0 WHERE NOT - + CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1085
SELECT * FROM tab0 WHERE NOT - + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1086
SELECT - MAX ( DISTINCT + col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT ALL + COUNT( DISTINCT col2 ) * + - 92 AS col0 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL + COUNT ( DISTINCT col2 ) * + - 92 AS col0 FROM tab0
----
-276

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT 77 DIV 45 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1088
SELECT 77 / 45 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1089
SELECT * FROM tab2 WHERE NOT + col1 + col1 + CAST( NULL AS DECIMAL ) * - + 74 - ( + 94 ) * - 72 / + col2 * - + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1089
SELECT * FROM tab2 WHERE NOT + col1 + col1 + CAST ( NULL AS REAL ) * - + 74 - ( + 94 ) * - 72 / + col2 * - + col2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT + COUNT( ALL - 46 ) * 67 AS col0 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-1091
SELECT + COUNT ( ALL - 46 ) * 67 AS col0 FROM tab1
----
201

query II rowsort
SELECT DISTINCT col2, col0 + + col0 - + col1 AS col1 FROM tab1 WHERE NOT - 69 IS NULL OR - - 55 + 9 IS NULL
----
59
165
68
135
96
88

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

query I rowsort
SELECT DISTINCT + 38 * - + col1 FROM tab0
----
-3078
-38
-798

query I rowsort
SELECT - 19 * + ( + col1 ) * col1 + col1 + - col0 FROM tab0 cor0 WHERE NULL > col1 * + col2
----

query II rowsort
SELECT 39 + + + 83, + col0 AS col1 FROM tab1 AS cor0
----
122
51
122
85
122
91

query I rowsort
SELECT ALL col2 * + - col1 * - - col0 * - + col0 + 61 - - col2 FROM tab0 AS cor0
----
1589561
856683
931651

query I rowsort
SELECT 0 + + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + ( + 59 ) - 46 + - - 97 AS col0 FROM tab2
----
110
110
110

query I rowsort
SELECT ALL - 73 * - + 9 + col1 FROM tab0 AS cor0
----
658
678
738

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 61 IS NOT NULL
----

query II rowsort
SELECT col1 AS col2, + col2 * 48 * - col0 + col0 * - col0 + + col2 * - 43 FROM tab0 AS cor0
----
1
-474610
21
-49759
81
-36086

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - + MIN( DISTINCT - col0 ) * + 29 FROM tab2 AS cor0
----
2175

skipif mysql # not compatible
query I rowsort label-1103
SELECT - + MIN ( DISTINCT - col0 ) * + 29 FROM tab2 AS cor0
----
2175

query II rowsort
SELECT + - ( + + col1 ) - + + ( + 35 ), - col1 * col1 AS col2 FROM tab2 AS cor0
----
-102
-4489
-112
-5929
-86
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT 76 * - ( + + ( + 46 ) ) + + + COUNT( * ) FROM tab2
----
-3493

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT 76 * - ( + + ( + 46 ) ) + + + COUNT ( * ) FROM tab2
----
-3493

onlyif mysql # DIV for integer division: 
query I rowsort label-1106
SELECT DISTINCT col0 DIV + 3 FROM tab2
----
15
21
25

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT col0 / + 3 FROM tab2
----
15
21
25

query I rowsort
SELECT DISTINCT - 93 + + + ( col2 ) + 32 + - + col0 * + col1 AS col2 FROM tab2
----
-2384
-4949
-5028

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT ALL + COUNT( DISTINCT - 43 ) * - 91 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL + COUNT ( DISTINCT - 43 ) * - 91 FROM tab2
----
-91

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1114
SELECT ALL - - ( col0 ), - 26 FROM tab0 AS cor0 WHERE CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-1114
SELECT ALL - - ( col0 ), - 26 FROM tab0 AS cor0 WHERE CAST ( + col2 AS INTEGER ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT + 88 AS col0 FROM tab1 cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT DISTINCT 10 / + col1 * + col1 * 14 + CAST( NULL AS SIGNED ) + - - 38 + + + 33 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1119
SELECT DISTINCT 10 / + col1 * + col1 * 14 + CAST ( NULL AS INTEGER ) + - - 38 + + + 33 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - + col2 AS col1 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT CAST( + COUNT( * ) AS SIGNED ) + + + ( + + COUNT( * ) ) + - + 1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-1121
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + + ( + + COUNT ( * ) ) + - + 1 FROM tab0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col0 + - - col2 col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + - SUM( - - col1 ) col0 FROM tab0 AS cor0
----
-100

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 13, - col2 )
----

query I rowsort
SELECT DISTINCT 2 * - col2 - - col0 FROM tab2 AS cor0
----
-16
-41
0

query I rowsort
SELECT + col1 + 55 AS col2 FROM tab1 AS cor0
----
102
60
69

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

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT col0 / - + col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT ALL - col1 * + 43, 67 AS col1 FROM tab1 AS cor0
----
-2021
67
-215
67
-602
67

query I rowsort
SELECT - col2 + - col0 + col1 * 99 + ( - + col2 ) FROM tab1 AS cor0
----
1143
292
4426

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT - SUM( ALL + col0 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT - SUM ( ALL + col0 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
597

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT COUNT( * ) * - SUM( ALL - col2 ) AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-1134
SELECT COUNT ( * ) * - SUM ( ALL - col2 ) AS col2 FROM tab0
----
468

query I rowsort
SELECT ALL col0 * ( - + col0 ) * - col1 AS col0 FROM tab0
----
158949
18225
9409

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * - + 16 col0 FROM tab0
----
1216

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

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

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

query II rowsort
SELECT + + col2, + 81 * + + 7 FROM tab1 AS cor0
----
59
567
68
567
96
567

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * - 64 <> - col1 - ( + - col2 ) )
----

query II rowsort
SELECT ALL 60, col1 * - col2 FROM tab1 WHERE NOT ( NULL = NULL )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1148
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1148
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT ALL + ( - - 85 ) + col1 FROM tab2
----
136
152
162

query I rowsort
SELECT ALL 33 + + 90 FROM tab0
----
123
123
123

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1155
SELECT ALL - col1, 5 * - + 48 - - + 75 + - col0 * 50 * col0 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) / + col1 * - + 23 * + 7 * - 70 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL - col1, 5 * - + 48 - - + 75 + - col0 * 50 * col0 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) / + col1 * - + 23 * + 7 * - 70 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - col2 * + + col2 * col1 + - col0 FROM tab2
----
-1241080
-16904175
-7884864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * ( - + col0 ) * + 32 + + col1 col0, - col1 + + 93 AS col2 FROM tab0
----
-3103
92
-38799
12
-58443
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT ( + - 58 ) * - + MIN( + col1 ) FROM tab1 cor0
----
290

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT ( + - 58 ) * - + MIN ( + col1 ) FROM tab1 cor0
----
290

query I rowsort
SELECT - - 83 * - 2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8859380f1b978fa4273797c5a0a6adf9

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

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

query I rowsort
SELECT DISTINCT - + col2 * + ( + col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

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

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

skipif mysql # not compatible
query I rowsort label-1164
SELECT - COUNT ( * ) / - + 56 AS col2 FROM tab0 cor0
----
0

query II rowsort
SELECT + 34, 94 AS col0 FROM tab1 AS cor0
----
34
94
34
94
34
94

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1168
SELECT DISTINCT col1 * 91 AS col2, + col1 DIV + col2 FROM tab0
----
1911
2
7371
1
91
0

skipif mysql # not compatible
query II rowsort label-1168
SELECT DISTINCT col1 * 91 AS col2, + col1 / + col2 FROM tab0
----
1911
2
7371
1
91
0

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

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

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

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

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

query I rowsort
SELECT ( - - 94 ) FROM tab1
----
94
94
94

query I rowsort
SELECT DISTINCT 80 * col0 * + - col0 + + col1 FROM tab2
----
-169229
-327603
-449933

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT 25 * - + COUNT( * ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT 25 * - + COUNT ( * ) AS col0 FROM tab1
----
-75

query I rowsort
SELECT ALL - 92 * + + 55 AS col1 FROM tab0
----
-5060
-5060
-5060

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

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

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

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

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

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

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

query I rowsort
SELECT - 48 * - col2 + + 15 FROM tab1
----
2847
3279
4623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + - - col2 col0 FROM tab1
----
21
54
82

query III rowsort
SELECT * FROM tab0 WHERE + 51 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1185
SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + + col2 col0 FROM tab0 AS cor0
----
-100
-2209
-9801

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

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

query I rowsort
SELECT DISTINCT - 10 + col1 AS col1 FROM tab2
----
41
57
67

query I rowsort
SELECT 33 - - col2 - + + col1 * + + col1 FROM tab2
----
-2545
-4398
-5856

query I rowsort
SELECT + 86 * + 16 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to b38d2bcbf848d137f3f0a90391e39555

query I rowsort
SELECT col2 * col0 + col1 * - 37 FROM tab2
----
-289
-829
1871

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

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

query I rowsort
SELECT - - 5 AS col2 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL + SUM( + 86 ) AS col2 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + SUM ( + 86 ) AS col2 FROM tab0 AS cor0
----
258

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 IN ( - - 0, - 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL + SUM( + - 91 ) AS col0 FROM tab2 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + SUM ( + - 91 ) AS col0 FROM tab2 cor0
----
-273

query I rowsort
SELECT DISTINCT + 20 * 81 FROM tab1 AS cor0
----
1620

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

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

query I rowsort
SELECT ALL 89 * + 88 * + 46 FROM tab1
----
360272
360272
360272

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 33 ) col0 FROM tab2
----
-33

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

query I rowsort
SELECT ALL + - 22 FROM tab2 WHERE + col2 IS NULL
----

query II rowsort
SELECT + + col1 AS col1, + 31 * + 58 AS col2 FROM tab0 WHERE NOT NULL IS NULL AND NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1207
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL < - CAST( NULL AS SIGNED ) * 89
----

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL < - CAST ( NULL AS INTEGER ) * 89
----

query II rowsort
SELECT col2, col0 * + col0 AS col0 FROM tab0 AS cor0
----
10
7569
47
225
99
9409

query II rowsort
SELECT + col2, - col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT DISTINCT + SUM( ALL - col2 ) + - 20 AS col0 FROM tab1 AS cor0 WHERE - col2 + + - 12 > - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT + SUM ( ALL - col2 ) + - 20 AS col0 FROM tab1 AS cor0 WHERE - col2 + + - 12 > - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT col2 + - - col1 DIV - 52 AS col0 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-1211
SELECT col2 + - - col1 / - 52 AS col0 FROM tab0
----
10
46
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT + - 72 * - ( + + MAX( col0 ) ) FROM tab1 AS cor0
----
6552

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + - 72 * - ( + + MAX ( col0 ) ) FROM tab1 AS cor0
----
6552

query II rowsort
SELECT ( + 33 ) / - - 11, col0 + + col2 AS col0 FROM tab2 cor0 WHERE NULL >= col0
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > - 28 + col2 + + col0
----
87
21
10

query I rowsort
SELECT ALL - + ( + 36 ) + col2 AS col2 FROM tab0 AS cor0
----
-26
11
63

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1220
SELECT + ( 90 ) DIV + COUNT( DISTINCT + col1 ) col0 FROM tab0 AS cor0
----
30

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

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

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

query II rowsort
SELECT col2, col0 * + 33 FROM tab2
----
23
1518
40
2112
58
2475

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

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL col2 / + + col0 * + - ( + + CAST ( NULL AS INTEGER ) ) - + 6 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - 9 AS col2 FROM tab1
----
42
76
82

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

query I rowsort
SELECT ALL 7 - + col1 AS col0 FROM tab2
----
-44
-60
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT - CAST( - 95 AS SIGNED ) + 93 FROM tab0 AS cor0
----
188
188
188

skipif mysql # not compatible
query I rowsort label-1227
SELECT - CAST ( - 95 AS INTEGER ) + 93 FROM tab0 AS cor0
----
188
188
188

query I rowsort
SELECT ALL + col1 * - 63 + 74 FROM tab0 AS cor0
----
-1249
-5029
11

query I rowsort
SELECT + ( - col1 ) + - 49 FROM tab1 cor0
----
-54
-63
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL 78 * + COUNT( * ) AS col2 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 78 * + COUNT ( * ) AS col2 FROM tab0
----
234

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( 67 )
----

query I rowsort
SELECT + 23 + - col0 * + ( col2 ) AS col2 FROM tab0
----
-682
-847
-9580

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

query I rowsort
SELECT DISTINCT - 53 - + col0 * col2 AS col2 FROM tab0
----
-758
-923
-9656

query I rowsort
SELECT - col2 - - 14 AS col1 FROM tab1
----
-45
-54
-82

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

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

query I rowsort
SELECT + col2 - 10 AS col0 FROM tab0
----
0
37
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1238
SELECT DISTINCT * FROM tab1 WHERE ( CAST( 14 AS SIGNED ) ) IN ( col0 * + ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1238
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( 14 AS INTEGER ) ) IN ( col0 * + ( col0 ) )
----

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE 81 IN ( + col2 + 86 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col1 FROM tab2 WHERE NULL NOT IN ( col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-51
-85
-91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT 68 DIV col0 - + col1 FROM tab2
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-1245
SELECT 68 / col0 - + col1 FROM tab2
----
-50
-67
-76

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

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

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

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

query I rowsort
SELECT ALL + 83 - - 88 FROM tab2 WHERE NOT col0 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < - 22 * - ( - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL MAX( col2 ) / 59 col2 FROM tab1 cor0 WHERE ( col0 + - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1251
SELECT ALL MAX ( col2 ) / 59 col2 FROM tab1 cor0 WHERE ( col0 + - col1 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * 27 + 24 * - 19 AS col0 FROM tab1 AS cor0
----
-321
-78
813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1253
SELECT ALL 87 * - col0 + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1290
-7482
-8342

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL 87 * - col0 + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1290
-7482
-8342

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

query I rowsort
SELECT + col0 * col2 AS col1 FROM tab1 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - SUM( 4 ) * 15 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-1256
SELECT - SUM ( 4 ) * 15 FROM tab0
----
-180

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

skipif mysql # not compatible
query I rowsort label-1257
SELECT - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( + ( col1 ) )
----

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

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

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

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

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

query I rowsort
SELECT + col0 + ( - ( col2 ) ) FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT + 47 * + col1 FROM tab0 cor0
----
3807
47
987

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col1 - 81 / 64
----

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

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL + CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 90 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT 47 BETWEEN + 60 AND col1
----
4140
5760
6750

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT - ( + 5 ) + + col0 DIV col1 FROM tab2 AS cor0
----
-4
-5
-5

skipif mysql # not compatible
query I rowsort label-1266
SELECT - ( + 5 ) + + col0 / col1 FROM tab2 AS cor0
----
-4
-5
-5

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + - col1 IS NULL
----

query I rowsort
SELECT ALL + 43 * + ( col0 ) FROM tab2 AS cor0
----
1978
2752
3225

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT 68 * - CAST( - 17 AS SIGNED ) + - col2 AS col1 FROM tab2 WHERE - col1 IN ( 44 )
----

skipif mysql # not compatible
query I rowsort label-1271
SELECT 68 * - CAST ( - 17 AS INTEGER ) + - col2 AS col1 FROM tab2 WHERE - col1 IN ( 44 )
----

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

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

query I rowsort
SELECT - col2 + + 17 FROM tab1
----
-42
-51
-79

query I rowsort
SELECT - col1 * + 82 + - col2 * col0 AS col1 FROM tab1 WHERE - 9 IS NOT NULL
----
-10042
-5425
-6044

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT ALL + ( - CAST( 62 AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT ( 65 + - col1 * col2 ) IS NOT NULL OR 4 NOT BETWEEN NULL AND - 34 - - 8
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + ( - CAST ( 62 AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT ( 65 + - col1 * col2 ) IS NOT NULL OR 4 NOT BETWEEN NULL AND - 34 - - 8
----
-62
-62
-62

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT 46 * + 89 * - 50 FROM tab0
----
-204700
-204700
-204700

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL 38 - 32 + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL 38 - 32 + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT + MAX( + - 88 ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-1280
SELECT + MAX ( + - 88 ) AS col1 FROM tab1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT + COUNT( + col1 ) - 78 col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 68 + col2 ) AND NULL OR 64 > + CAST( - 56 AS SIGNED ) + + col0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1281
SELECT + COUNT ( + col1 ) - 78 col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 68 + col2 ) AND NULL OR 64 > + CAST ( - 56 AS INTEGER ) + + col0
----
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-1283
SELECT MIN ( - 3 ) AS col0 FROM tab2 AS cor0
----
-3

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT DISTINCT col2 DIV + + ( col2 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT col2 / + + ( col2 ) FROM tab0 AS cor0
----
1

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 62 AS col1 FROM tab2
----
-2852
-3968
-4650

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT col2 * 86 < ( 51 )
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT MAX( ALL - 68 ) AS col2 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT MAX ( ALL - 68 ) AS col2 FROM tab0
----
-68

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

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

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 44 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT DISTINCT - col2 * 72 FROM tab2 AS cor0 WHERE 30 * + col2 * CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT - col2 * 72 FROM tab2 AS cor0 WHERE 30 * + col2 * CAST ( col2 AS INTEGER ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1299
SELECT DISTINCT SUM( + 42 ) DIV 66 AS col1 FROM tab1 cor0
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1300
SELECT ALL + MAX( + + col0 ) + - SUM( DISTINCT CAST( ( 33 ) AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL + MAX ( + + col0 ) + - SUM ( DISTINCT CAST ( ( 33 ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
58

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

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

query II rowsort
SELECT + col1 AS col0, 94 + + + col1 AS col1 FROM tab1 AS cor0
----
14
108
47
141
5
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT - COUNT( * ) + + SUM( col1 ) AS col2 FROM tab0 WHERE NOT + 29 / + col1 - - 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT - COUNT ( * ) + + SUM ( col1 ) AS col2 FROM tab0 WHERE NOT + 29 / + col1 - - 26 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1306
SELECT DISTINCT * FROM tab2 WHERE + 57 = - col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1306
SELECT DISTINCT * FROM tab2 WHERE + 57 = - col2 + CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT - COUNT( * ) * COUNT( ALL 25 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1308
SELECT - COUNT ( * ) * COUNT ( ALL 25 ) FROM tab2
----
-9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col2 col0 FROM tab0 WHERE NOT ( - + col2 ) > + col0
----
-2
-32
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1311
SELECT - 44 * CAST( NULL AS DECIMAL ) * - - 16 * + ( + col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT - 44 * CAST ( NULL AS REAL ) * - - 16 * + ( + col2 ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) + + - col1 + - col2 + + 48 * + col1 * + 74 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) + + - col1 + - col2 + + 48 * + col1 * + 74 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT + MIN( ( - col1 ) ) * COUNT( * ) + 74 AS col0 FROM tab0
----
-169

skipif mysql # not compatible
query I rowsort label-1314
SELECT + MIN ( ( - col1 ) ) * COUNT ( * ) + 74 AS col0 FROM tab0
----
-169

query I rowsort
SELECT DISTINCT ( 96 ) * - - col0 * col0 AS col2 FROM tab0
----
21600
726624
903264

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 59 * col2 )
----

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

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

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

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = - 47
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT ALL 62 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col1 BETWEEN - 81 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL 62 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col1 BETWEEN - 81 AND ( NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 78 + + + 5 AS col0 FROM tab2 AS cor0
----
NULL

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

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

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

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

query I rowsort
SELECT + + 56 * + - col1 AS col0 FROM tab1 AS cor0
----
-2632
-280
-784

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT - + COUNT( * ) * + 70 * SUM( ALL + - 10 ) + - 21 - 69 * ( 43 * 44 ) AS col1 FROM tab0 AS cor0
----
-124269

skipif mysql # not compatible
query I rowsort label-1330
SELECT - + COUNT ( * ) * + 70 * SUM ( ALL + - 10 ) + - 21 - 69 * ( 43 * 44 ) AS col1 FROM tab0 AS cor0
----
-124269

query I rowsort
SELECT + col2 - + col1 + 79 - - 37 AS col2 FROM tab2
----
107
79
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + 80 - ( COUNT( * ) ) AS col0 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 80 - ( COUNT ( * ) ) AS col0 FROM tab1
----
77

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1335
SELECT CAST( NULL AS DECIMAL ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT CAST ( NULL AS REAL ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 18 AS col2, col2 * - col2 FROM tab1 AS cor0
----
18
-3481
18
-4624
18
-9216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1337
SELECT CAST( NULL AS DECIMAL ) * COUNT( - 17 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT CAST ( NULL AS REAL ) * COUNT ( - 17 ) FROM tab1 AS cor0
----
NULL

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT - ( - + ( - col1 ) ), 35 + - 97 + 68 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL + COUNT( - 26 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL + COUNT ( - 26 ) FROM tab0 cor0
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT DISTINCT - col1 DIV + 94 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT - col1 / + 94 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL - COUNT( * ) col1 FROM tab1 AS cor0 WHERE 23 * col2 + - 79 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1347
SELECT ALL - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE 23 * col2 + - 79 IS NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ALL COUNT( * ) + + 1 * 33 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL COUNT ( * ) + + 1 * 33 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL + 43 * - MAX( DISTINCT - col0 ) AS col2 FROM tab1
----
2193

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + 43 * - MAX ( DISTINCT - col0 ) AS col2 FROM tab1
----
2193

onlyif mysql # aggregate syntax: 
query II rowsort label-1353
SELECT DISTINCT - 88 AS col2, COUNT( * ) * + COUNT( * ) FROM tab0
----
-88
9

skipif mysql # not compatible
query II rowsort label-1353
SELECT DISTINCT - 88 AS col2, COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-88
9

query I rowsort
SELECT + 61 + col2 FROM tab0
----
108
160
71

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

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

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

query I rowsort
SELECT ALL ( - + 64 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 53 ) IS NOT NULL
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT ALL + COUNT( * ) AS col0, 24 AS col0 FROM tab0, tab0 AS cor0
----
9
24

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL + COUNT ( * ) AS col0, 24 AS col0 FROM tab0, tab0 AS cor0
----
9
24

query I rowsort
SELECT + col1 * - col0 + - col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

query II rowsort
SELECT + 59 + + col1, col1 FROM tab0 AS cor0
----
140
81
60
1
80
21

query I rowsort
SELECT - 41 * - col0 + - 51 AS col2 FROM tab1 AS cor0
----
2040
3434
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT COUNT( * ) * + MIN( ALL 75 ) + 25 FROM tab2 AS cor0
----
250

skipif mysql # not compatible
query I rowsort label-1362
SELECT COUNT ( * ) * + MIN ( ALL 75 ) + 25 FROM tab2 AS cor0
----
250

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE NOT 63 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT MAX ( - ( col0 ) ) FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 11 + + col1 col0, col2 AS col2 FROM tab2 cor0
----
40
23
56
58
66
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + ( + 17 ) NOT BETWEEN NULL AND - + 5
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1367
SELECT ALL col0, - 16 + + 15 DIV + 24 FROM tab0
----
15
-16
87
-16
97
-16

skipif mysql # not compatible
query II rowsort label-1367
SELECT ALL col0, - 16 + + 15 / + 24 FROM tab0
----
15
-16
87
-16
97
-16

query I rowsort
SELECT ALL + col0 - 97 FROM tab1
----
-12
-46
-6

query I rowsort
SELECT DISTINCT col0 + 98 + 26 * - - col0 FROM tab1
----
1475
2393
2555

query I rowsort
SELECT DISTINCT + 10 * + - 43 FROM tab0
----
-430

query I rowsort
SELECT ALL col2 * - + ( - 88 ) FROM tab2
----
2024
3520
5104

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

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

query I rowsort
SELECT DISTINCT 30 * + + ( - col0 ) FROM tab0
----
-2610
-2910
-450

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

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE - 15 BETWEEN + 6 - - col0 AND NULL
----

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

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

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

skipif mysql # not compatible
query III rowsort label-1377
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( + CAST ( ( + col2 ) AS INTEGER ) )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col2 BETWEEN - 16 AND 7 )
----

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

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

query I rowsort
SELECT + col1 * ( + col2 ) AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT DISTINCT + 0 DIV col1 * 60 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT + 0 / col1 * 60 AS col1 FROM tab2
----
0

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

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

query I rowsort
SELECT 37 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT + COUNT( * ) * 10 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-1385
SELECT + COUNT ( * ) * 10 FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT - - col0 + + - col0 DIV 85 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1386
SELECT - - col0 + + - col0 / 85 AS col0 FROM tab2 AS cor0
----
46
64
75

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

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

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

query I rowsort
SELECT DISTINCT - - 23 * - + col2 * + - 78 FROM tab1 AS cor0
----
105846
121992
172224

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - ( COUNT( DISTINCT 77 ) ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1390
SELECT - ( COUNT ( DISTINCT 77 ) ) AS col0 FROM tab2 AS cor0
----
-1

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

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

query I rowsort
SELECT DISTINCT col0 + - 17 * col0 AS col2 FROM tab1
----
-1360
-1456
-816

query II rowsort
SELECT col0 * col0 AS col2, col0 + col1 + - - col1 FROM tab0
----
225
177
7569
129
9409
99

query I rowsort
SELECT ALL col0 + - + 47 AS col1 FROM tab0
----
-32
40
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT ( + + col2 ) DIV col0 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1395
SELECT ( + + col2 ) / col0 + col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT COUNT( * ) DIV 38 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT COUNT ( * ) / 38 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT 37 * - + 84 * + COUNT( * ) FROM tab1
----
-9324

skipif mysql # not compatible
query I rowsort label-1397
SELECT 37 * - + 84 * + COUNT ( * ) FROM tab1
----
-9324

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

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

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

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

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

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

query I rowsort
SELECT + 68 + + + 34 AS col1 FROM tab1
----
102
102
102

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + col0 * - 21 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 * col2 - - - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query II rowsort
SELECT ALL col0 AS col0, + col1 + - ( 75 ) FROM tab1 cor0
----
51
-61
85
-70
91
-28

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - - 89 col2 FROM tab0 AS cor0
----
-136
-188
-99

query I rowsort
SELECT ALL + col0 * - - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
2601
7225
8281

query I rowsort
SELECT + col1 - - + 39 AS col2 FROM tab1 AS cor0
----
44
53
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab1 AS cor0 WHERE NOT - col2 * col1 * + col1 - - ( 76 ) BETWEEN + col1 * - col1 AND col0
----
-57
-57
-57

query I rowsort
SELECT 1 * + + 23 FROM tab2 AS cor0
----
23
23
23

query II rowsort
SELECT + col2 * - col1, col2 + + 1 + + + col0 + - col0 * - col2 AS col0 FROM tab1
----
-1344
5044
-295
5160
-3196
6348

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

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

query I rowsort
SELECT DISTINCT - + 84 AS col0 FROM tab1 AS cor0
----
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL ( + 68 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

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

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

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

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

query I rowsort
SELECT ALL + 26 FROM tab2 cor0 WHERE ( 42 ) IS NOT NULL
----
26
26
26

query I rowsort
SELECT ALL + ( - - col2 ) * col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT - 48 + - 35 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT DISTINCT - 93 + + col0 AS col0 FROM tab1 AS cor0
----
-2
-42
-8

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col1 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL 67 + - COUNT( + + col0 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL 67 + - COUNT ( + + col0 ) FROM tab2
----
64

query I rowsort
SELECT - 13 FROM tab1 WHERE - col0 NOT IN ( - col0 + col0, + col1 )
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * + - MIN( ALL - + 97 ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * + - MIN ( ALL - + 97 ) AS col1 FROM tab1
----
288

query I rowsort
SELECT ALL + col0 + + - col0 + + col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL COUNT( * ) * + 68 * - 47 FROM tab2
----
-9588

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL COUNT ( * ) * + 68 * - 47 FROM tab2
----
-9588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * - col1 col2 FROM tab2
----
-4080
-5360
-6160

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT - 75 * ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-1434
SELECT - 75 * ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-225

query I rowsort
SELECT ALL + col0 * 63 FROM tab0 AS cor0
----
5481
6111
945

query I rowsort
SELECT DISTINCT 55 * - - col1 * 85 - - + ( - 70 ) FROM tab2 AS cor0
----
238355
313155
359905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1437
SELECT ( - col2 ) * - col1 + - - CAST( + col2 AS SIGNED ) FROM tab2
----
1196
3120
3944

skipif mysql # not compatible
query I rowsort label-1437
SELECT ( - col2 ) * - col1 + - - CAST ( + col2 AS INTEGER ) FROM tab2
----
1196
3120
3944

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

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

query II rowsort
SELECT + 4 * + + col1 AS col1, 71 * + + col2 AS col1 FROM tab2 AS cor0
----
204
1633
268
4118
308
2840

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT - 49 DIV - + ( + col0 ) AS col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT - 49 / - + ( + col0 ) AS col2 FROM tab0 AS cor0
----
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT ALL + + col0 DIV - 40 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + + col0 / - 40 AS col2 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT - MIN( ALL - col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1443
SELECT - MIN ( ALL - col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT ALL 56 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query II rowsort
SELECT + col0, 74 FROM tab0
----
15
74
87
74
97
74

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

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - MAX( 33 ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-1447
SELECT - MAX ( 33 ) FROM tab1
----
-33

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - col2, - col0 AS col2 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT + 58 * COUNT( DISTINCT + 53 ) * - 7 + - - COUNT( * ) * - 44 FROM tab2
----
-538

skipif mysql # not compatible
query I rowsort label-1453
SELECT + 58 * COUNT ( DISTINCT + 53 ) * - 7 + - - COUNT ( * ) * - 44 FROM tab2
----
-538

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1456
SELECT ALL - col0 + col1 * - col0 / CAST( NULL AS SIGNED ), col0 * + col0 + col0 + - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
2088
NULL
4043
NULL
5575

skipif mysql # not compatible
query II rowsort label-1456
SELECT ALL - col0 + col1 * - col0 / CAST ( NULL AS INTEGER ), col0 * + col0 + col0 + - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
2088
NULL
4043
NULL
5575

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

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

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

query I rowsort
SELECT ALL + col0 * col1 + col0 * - 63 AS col2 FROM tab0
----
-3654
-6014
270

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

skipif mysql # not compatible
query I rowsort label-1460
SELECT - MIN ( ALL 50 ) AS col1 FROM tab1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT + col2 * CAST( - + col2 AS SIGNED ) AS col0 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-1461
SELECT + col2 * CAST ( - + col2 AS INTEGER ) AS col0 FROM tab2
----
-1600
-3364
-529

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

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL COUNT ( * ) + - - COUNT ( - col1 ) FROM tab1
----
6

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

skipif mysql # not compatible
query III rowsort label-1463
SELECT ALL * FROM tab0 WHERE NOT + 90 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) + + col1 * - 17 * - + col0
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col1 + - 87 >= - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL 24 / col1 FROM tab0 AS cor0
----
0
1
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT DISTINCT - 7 + - + COUNT( * ) + + + 32 * - 42 AS col2 FROM tab0 AS cor0
----
-1354

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT - 7 + - + COUNT ( * ) + + + 32 * - 42 AS col2 FROM tab0 AS cor0
----
-1354

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT COUNT( * ) + - - MAX( - + 80 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1468
SELECT COUNT ( * ) + - - MAX ( - + 80 ) FROM tab0 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + + 24 col2 FROM tab0 AS cor0 WHERE NOT - ( - 54 ) IS NULL
----
1128
2376
240

query I rowsort
SELECT ALL + 43 * col1 + - col2 FROM tab0 AS cor0
----
-56
3436
893

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 52 * col1 <> - col0 * - + col1
----

query I rowsort
SELECT ALL + col2 * - 29 + + col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 + - ( 22 ) + - col0 / + 71 + - 39 )
----

query I rowsort
SELECT + + 2 * + 73 AS col1 FROM tab0 AS cor0
----
146
146
146

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 + col2 NOT IN ( + col0 * - ( + - 81 ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT ALL + + col0 DIV + - col0 + + col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + + col0 / + - col0 + + col2 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1480
SELECT ( - 72 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1480
SELECT ( - 72 ) / COUNT ( * ) FROM tab2 AS cor0
----
-24

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

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

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

query I rowsort
SELECT ALL 91 - + col0 FROM tab1 AS cor0 WHERE 68 * col0 < NULL
----

query I rowsort
SELECT DISTINCT 14 * + col0 AS col2 FROM tab0
----
1218
1358
210

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

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

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

skipif mysql # not compatible
query I rowsort label-1486
SELECT - COUNT ( ALL + 75 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1487
SELECT ( - col1 ) * - - CAST( NULL AS SIGNED ), 3 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
62
NULL
71
NULL
99

skipif mysql # not compatible
query II rowsort label-1487
SELECT ( - col1 ) * - - CAST ( NULL AS INTEGER ), 3 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
62
NULL
71
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT DISTINCT - SUM( - col1 ) AS col1 FROM tab0 WHERE + 98 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT - SUM ( - col1 ) AS col1 FROM tab0 WHERE + 98 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1489
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1489
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 88 * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
1973
3443
5037

query II rowsort
SELECT + col1, col0 AS col0 FROM tab1 AS cor0 WHERE + col0 + 69 IS NOT NULL
----
14
51
47
91
5
85

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1493
SELECT * FROM tab1 AS cor0 WHERE - col2 * CAST( NULL AS SIGNED ) * 15 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1493
SELECT * FROM tab1 AS cor0 WHERE - col2 * CAST ( NULL AS INTEGER ) * 15 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT + 59 + + CAST( - - 47 AS SIGNED ) + - MIN( - col2 ) FROM tab1
----
202

skipif mysql # not compatible
query I rowsort label-1494
SELECT + 59 + + CAST ( - - 47 AS INTEGER ) + - MIN ( - col2 ) FROM tab1
----
202

query III rowsort
SELECT ALL * FROM tab0 WHERE 14 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + + 65 AS col0 FROM tab1
----
116
150
156

query I rowsort
SELECT + 40 * - col0 AS col2 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT SUM( 68 ) FROM tab0 WHERE - col2 + + 99 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT SUM ( 68 ) FROM tab0 WHERE - col2 + + 99 >= NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 - col0 AS col1, - 22 AS col1 FROM tab1
----
-23
-22
-26
-22
45
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT - - SUM( ALL 51 ) * COUNT( + + 88 ) AS col0 FROM tab0 AS cor0
----
459

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT - - SUM ( ALL 51 ) * COUNT ( + + 88 ) AS col0 FROM tab0 AS cor0
----
459

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT ALL 88 DIV + col0 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1502
SELECT ALL 88 / + col0 col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1503
SELECT DISTINCT * FROM tab2 WHERE ( - CAST( - col2 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1503
SELECT DISTINCT * FROM tab2 WHERE ( - CAST ( - col2 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT DISTINCT 75 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT 75 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT DISTINCT col0 DIV 99 * - + col2 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1507
SELECT DISTINCT col0 / 99 * - + col2 col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1508
SELECT CAST( - MIN( DISTINCT col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1508
SELECT CAST ( - MIN ( DISTINCT col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT + 28 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1509
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT + 28 IS NOT NULL
----
0

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

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

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

query I rowsort
SELECT - + col1 * - - 43 FROM tab1 AS cor0
----
-2021
-215
-602

query I rowsort
SELECT + 56 * + col1 AS col1 FROM tab2 cor0
----
2856
3752
4312

query II rowsort
SELECT col0 * + - col0, col1 AS col2 FROM tab1
----
-2601
14
-7225
5
-8281
47

query I rowsort
SELECT + 30 * + col2 AS col0 FROM tab2
----
1200
1740
690

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

query I rowsort
SELECT DISTINCT + col2 * - - 66 AS col0 FROM tab2
----
1518
2640
3828

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL - - MAX( + ( - + 47 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - - MAX ( + ( - + 47 ) ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 <= col1
----
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 <= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL - 26 + + - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1522
SELECT ALL - 26 + + - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
-26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1525
SELECT col2 * - + 41 + CAST( NULL AS SIGNED ) AS col0, 45 * + col2 FROM tab2
----
NULL
1035
NULL
1800
NULL
2610

skipif mysql # not compatible
query II rowsort label-1525
SELECT col2 * - + 41 + CAST ( NULL AS INTEGER ) AS col0, 45 * + col2 FROM tab2
----
NULL
1035
NULL
1800
NULL
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT 66 + + 7 + + COUNT( * ) * + + 37 FROM tab2
----
184

skipif mysql # not compatible
query I rowsort label-1526
SELECT 66 + + 7 + + COUNT ( * ) * + + 37 FROM tab2
----
184

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1527
SELECT ( - COUNT ( * ) ) col0 FROM tab0 AS cor0 WHERE 50 IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + - ( + MAX( ALL + 82 ) ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1529
SELECT + - ( + MAX ( ALL + 82 ) ) FROM tab1 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 95 - - col1 + - col1 * + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT COUNT( + 41 ) - + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1531
SELECT COUNT ( + 41 ) - + COUNT ( * ) AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 84 + + col2 NOT BETWEEN + 86 * 42 + - col1 AND - - col0 AND ( 18 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - + col2 col0 FROM tab2
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 5 col1 FROM tab2
----
51
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT + MIN( ALL + col2 ) - - 36 - COUNT( * ) - + + 66 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-1535
SELECT + MIN ( ALL + col2 ) - - 36 - COUNT ( * ) - + + 66 FROM tab1
----
26

query I rowsort
SELECT - col2 FROM tab0 WHERE + + col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL col2 - - col0 * - + 99 + + - 59 AS col2 FROM tab0
----
-1497
-8662
-9563

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 * - 64 + col0 + - + col1 IN ( 65 * ( col1 ) + - col1, - col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT MIN( DISTINCT - ( - CAST( + 19 AS SIGNED ) ) ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + ( - 81 ) FROM tab1
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col1 + - 93 col2 FROM tab2 WHERE NOT + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-1542
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 12 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1545
SELECT DISTINCT + + SUM( ALL + + col2 ) AS col1, - COUNT( * ) + + ( - MIN( ALL + - col0 ) ) AS col1 FROM tab1 AS cor0
----
223
88

skipif mysql # not compatible
query II rowsort label-1545
SELECT DISTINCT + + SUM ( ALL + + col2 ) AS col1, - COUNT ( * ) + + ( - MIN ( ALL + - col0 ) ) AS col1 FROM tab1 AS cor0
----
223
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col2 / + 81 <> - 51
----
-3

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col2 / + 81 <> - 51
----
-3

query I rowsort
SELECT col2 * + 37 AS col0 FROM tab0 cor0
----
1739
3663
370

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

query I rowsort
SELECT DISTINCT - - col0 * - col0 * col0 FROM tab1 cor0 WHERE NULL NOT IN ( col2 * col2 * - col0, + col0 * + - 29, col0 )
----

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

query I rowsort
SELECT 25 * 95 AS col2 FROM tab2
----
2375
2375
2375

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT ALL + 12 DIV + - 82 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1555
SELECT ALL + 12 / + - 82 col0 FROM tab0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT MAX( DISTINCT + col0 ) AS col1 FROM tab1 WHERE NOT ( + 44 <= - - 90 + - - 67 * - + 7 )
----
91

skipif mysql # not compatible
query I rowsort label-1557
SELECT MAX ( DISTINCT + col0 ) AS col1 FROM tab1 WHERE NOT ( + 44 <= - - 90 + - - 67 * - + 7 )
----
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
14

query I rowsort
SELECT col0 + 42 AS col2 FROM tab0
----
129
139
57

query I rowsort
SELECT - - col0 + - - 34 AS col2 FROM tab2 AS cor0
----
109
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL + ( + - 39 ) - + COUNT( * ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL + ( + - 39 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-42

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 83 + + - col2 < + col1
----
87
21
10

onlyif mysql # DIV for integer division: 
query II rowsort label-1565
SELECT - - 37 DIV - col0 + + col0 * col0 AS col2, - 10 * + col2 AS col1 FROM tab0 AS cor0
----
223
-470
7569
-100
9409
-990

skipif mysql # not compatible
query II rowsort label-1565
SELECT - - 37 / - col0 + + col0 * col0 AS col2, - 10 * + col2 AS col1 FROM tab0 AS cor0
----
223
-470
7569
-100
9409
-990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT - - 85 + COUNT( * ) FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-1567
SELECT - - 85 + COUNT ( * ) FROM tab0 cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col0 col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT 68 + + col0 * col0 - + col1 FROM tab1 AS cor0
----
2655
7288
8302

query I rowsort
SELECT DISTINCT 16 + + - 83 FROM tab1 cor0
----
-67

query I rowsort
SELECT ALL - - 32 + + 51 * + col2 FROM tab1 AS cor0 WHERE ( NOT - - col1 < + col2 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT DISTINCT + MAX( + ( - CAST( NULL AS SIGNED ) ) ) + - - MAX( col1 ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT COUNT( * ) * + 62 AS col0 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-1574
SELECT COUNT ( * ) * + 62 AS col0 FROM tab1
----
186

query I rowsort
SELECT - col2 + 46 FROM tab1 WHERE - ( - - 73 ) IS NOT NULL
----
-13
-22
-50

query II rowsort
SELECT ALL 43, - col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 95 col1 FROM tab2 cor0
----
-2185
-3800
-5510

query I rowsort
SELECT ALL 31 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query III rowsort
SELECT * FROM tab0 WHERE NOT + 89 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 7 ) FROM tab1 AS cor0
----
-7
-7
-7

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 95 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT ALL MAX( - ( 54 ) ) AS col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL MAX ( - ( 54 ) ) AS col2 FROM tab2 AS cor0
----
-54

query II rowsort
SELECT DISTINCT col0 AS col1, col0 * col1 FROM tab2 cor0
----
46
2346
64
4928
75
5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( - - col0, 91, - + 39, 73 - + - col2 * + col2 )
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * - - col0 + - 8 IS NOT NULL
----

query I rowsort
SELECT 94 * + + col1 AS col2 FROM tab2
----
4794
6298
7238

query I rowsort
SELECT DISTINCT - 51 + + - col2 FROM tab2
----
-109
-74
-91

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

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT - 38 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - + 30 / - 34 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 77 + col2 FROM tab0 AS cor0
----
-30
-67
22

query I rowsort
SELECT + - 72 + + 70 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-1602
SELECT + 32 + + col0 * col2 DIV + col0, - col2 col1 FROM tab2 AS cor0
----
55
-23
72
-40
90
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1602
SELECT + 32 + + col0 * col2 / + col0, - col2 col1 FROM tab2 AS cor0
----
55
-23
72
-40
90
-58

query I rowsort
SELECT + 39 + - + col0 FROM tab2 cor0
----
-25
-36
-7

query I rowsort
SELECT - col1 + + 59 + col0 AS col2 FROM tab2
----
46
54
67

query I rowsort
SELECT - 94 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT col2 + col1 DIV col2 + - + col1 + + col0 FROM tab0
----
-18
195
78

skipif mysql # not compatible
query I rowsort label-1606
SELECT col2 + col1 / col2 + - + col1 + + col0 FROM tab0
----
-18
195
78

query I rowsort
SELECT + 38 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query II rowsort label-1608
SELECT ALL - 37 AS col1, 53 * COUNT( * ) + COUNT( ALL - col0 ) col0 FROM tab1
----
-37
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1608
SELECT ALL - 37 AS col1, 53 * COUNT ( * ) + COUNT ( ALL - col0 ) col0 FROM tab1
----
-37
162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1609
SELECT ALL - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + 17 FROM tab2 WHERE 92 <= NULL
----

skipif mysql # not compatible
query II rowsort label-1609
SELECT ALL - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + 17 FROM tab2 WHERE 92 <= NULL
----

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

query I rowsort
SELECT DISTINCT 36 * - col2 FROM tab0
----
-1692
-3564
-360

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1614
SELECT ALL 5 DIV - col2 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL 5 / - col2 + + col2 FROM tab1 AS cor0
----
59
68
96

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

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

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

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( - + ( - - col2 ) ) * - - 71 IS NULL
----

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

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

query I rowsort
SELECT - col1 - - 49 AS col2 FROM tab2 AS cor0
----
-18
-2
-28

query I rowsort
SELECT + col0 - + - 50 FROM tab1
----
101
135
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-1621
SELECT col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NOT + col2 * - 67 - - col0 + + col2 = col1 + - 55 + 39 * + col1 + col1 * - + ( col2 ) - - 39 * - col2 * + 36 / - + 83
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= ( col1 ) / + + col1 + col2
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= ( col1 ) / + + col1 + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT COUNT( DISTINCT + - 55 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT COUNT ( DISTINCT + - 55 ) FROM tab0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1626
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ), + 73 * - + 70 AS col0 FROM tab0 AS cor0
----
NULL
-5110

skipif mysql # not compatible
query II rowsort label-1626
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ), + 73 * - + 70 AS col0 FROM tab0 AS cor0
----
NULL
-5110

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT 88, COUNT( - + col2 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
88
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1627
SELECT 88, COUNT ( - + col2 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
88
0

query I rowsort
SELECT ALL - col0 + - 82 AS col0 FROM tab2 AS cor0
----
-128
-146
-157

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL <> NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1630
SELECT - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL - + COUNT( ALL + 93 ) + + 41 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL - + COUNT ( ALL + 93 ) + + 41 FROM tab2 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1632
SELECT CAST( + 40 AS SIGNED ) + + + col2 FROM tab1
----
108
136
99

skipif mysql # not compatible
query I rowsort label-1632
SELECT CAST ( + 40 AS INTEGER ) + + + col2 FROM tab1
----
108
136
99

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1635
SELECT ALL * FROM tab1 WHERE NOT + col2 <> CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1635
SELECT ALL * FROM tab1 WHERE NOT + col2 <> CAST ( - col0 AS REAL )
----

query I rowsort
SELECT + 81 + col2 + - + col2 FROM tab0
----
81
81
81

query III rowsort
SELECT * FROM tab0 WHERE - 61 = 7
----

query I rowsort
SELECT col0 + - col0 + + + 40 * + + col0 * - col2 * + 52 AS col2 FROM tab1
----
-10183680
-10431200
-12871040

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT - 35 + COUNT( * ) col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1640
SELECT DISTINCT - 35 + COUNT ( * ) col0 FROM tab0 AS cor0
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ( + - 13 ) - - ( - - MAX( DISTINCT col0 ) ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1643
SELECT ( + - 13 ) - - ( - - MAX ( DISTINCT col0 ) ) FROM tab0
----
84

query III rowsort
SELECT * FROM tab1 WHERE + 50 / 43 <= NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NULL >= col2
----

query II rowsort
SELECT + 55 + col2 AS col2, 66 FROM tab0
----
102
66
154
66
65
66

query I rowsort
SELECT ALL + - col0 + + col2 FROM tab0 cor0 WHERE NOT - 36 - col1 IS NULL
----
-77
2
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 13 <> + - 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 + col1 AS col2 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT - - COUNT( * ) * + SUM( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - - COUNT ( * ) * + SUM ( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
468

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT DISTINCT col1 DIV + 81 + - 84 + - col1 * - col0 col1 FROM tab1 AS cor0
----
341
4193
630

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1651
SELECT DISTINCT col1 / + 81 + - 84 + - col1 * - col0 col1 FROM tab1 AS cor0
----
341
4193
630

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1658
SELECT - + 83, CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-83
-10
-83
-47
-83
-99

skipif mysql # not compatible
query II rowsort label-1658
SELECT - + 83, CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-83
-10
-83
-47
-83
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT ALL - COUNT( * ) * - COUNT( * ) - + CAST( NULL AS SIGNED ) + - + AVG ( - col1 ) * 71 FROM tab1 AS cor0 WHERE - col0 * + ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + - + AVG ( - col1 ) * 71 FROM tab1 AS cor0 WHERE - col0 * + ( col0 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 13 + - + ( - col2 ) * - 25 col1 FROM tab0 AS cor0
----
-122
-2462
23

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

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

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - COUNT ( * ) * COUNT ( * ) + + MIN ( + + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 21 - - col1 + - - col1 BETWEEN + - col2 AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT DISTINCT - 79 - + col1 + - - 35 + + - col2 DIV 90 + 79 AS col0 FROM tab2
----
-16
-32
-42

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - 79 - + col1 + - - 35 + + - col2 / 90 + 79 AS col0 FROM tab2
----
-16
-32
-42

query I rowsort
SELECT 58 + - 86 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT DISTINCT + ( MIN( DISTINCT - + 32 ) ) - 89 AS col0 FROM tab0
----
-121

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + ( MIN ( DISTINCT - + 32 ) ) - 89 AS col0 FROM tab0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN + 15 - + col0 AND + 54 + ( col2 ) / col0
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + - col1 - - - 52 FROM tab2 cor0
----
-103
-119
-129

query I rowsort
SELECT ( + 86 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 84 / - col2 * - col0 + - 23 - + col0
----

query I rowsort
SELECT + ( + + 12 ) * col2 + - - 99 * col2 * - col1 * - 25 * + 58 FROM tab2 cor0
----
168384426
442134480
557835996

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

query I rowsort
SELECT - 43 * + col2 FROM tab0 AS cor0
----
-2021
-4257
-430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( 83 ) + - col2 col0 FROM tab0 AS cor0
----
3854
8118
820

query I rowsort
SELECT ALL - col1 * - - col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT MAX( + + col0 ) AS col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1676
SELECT MAX ( + + col0 ) AS col2 FROM tab1 cor0
----
91

query I rowsort
SELECT ALL + 73 * col0 AS col0 FROM tab0
----
1095
6351
7081

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1679
SELECT ALL ( + COUNT( * ) ) DIV + 57 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL ( + COUNT ( * ) ) / + 57 FROM tab1
----
0

query II rowsort
SELECT - + col2 + col2 AS col0, - col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( + - 80 ) FROM tab1
----
-80
-80
-80

query I rowsort
SELECT 11 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT - MAX( - col2 ) AS col2 FROM tab0 WHERE NOT + col0 * - 53 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - MAX ( - col2 ) AS col2 FROM tab0 WHERE NOT + col0 * - 53 IS NULL
----
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1684
SELECT DISTINCT col0 * ( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT col0 * ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT col1 DIV + - 76 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT col1 / + - 76 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1686
SELECT + col2 DIV col2 * col1 AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1686
SELECT + col2 / col2 * col1 AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT + + MIN( + 99 ) * + 51 - 86 FROM tab2 AS cor0
----
4963

skipif mysql # not compatible
query I rowsort label-1687
SELECT + + MIN ( + 99 ) * + 51 - 86 FROM tab2 AS cor0
----
4963

query I rowsort
SELECT - ( - + 0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 / + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT - + 89 AS col2 FROM tab0 cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL + - CAST( + COUNT( - 46 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + - CAST ( + COUNT ( - 46 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT DISTINCT + - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT + - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1694
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - ( - 6 ) + col2 FROM tab1
----
102
65
74

query I rowsort
SELECT ALL col1 * - col0 + + col1 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT DISTINCT - 46 - + col2 FROM tab1
----
-105
-114
-142

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + 29 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60 col0, col2 FROM tab1
----
60
59
60
68
60
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - + ( 52 ) AND + col0 + - col0 * + + col0
----

query I rowsort
SELECT DISTINCT - 85 + - 79 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col1 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL 17 * + + MIN( ALL + + 99 ) AS col0 FROM tab1 AS cor0
----
1683

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL 17 * + + MIN ( ALL + + 99 ) AS col0 FROM tab1 AS cor0
----
1683

query I rowsort
SELECT DISTINCT ( + 47 ) FROM tab0 AS cor0
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1705
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - - 87 + - + 35 >= - - col2 + + + 83
----

query I rowsort
SELECT DISTINCT col1 + col2 + col2 AS col2 FROM tab2 AS cor0 WHERE col2 IN ( - col1, 72 / col1, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT DISTINCT col0 * + CAST( + + col2 AS SIGNED ) * - col0 FROM tab2
----
-163840
-326250
-48668

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT col0 * + CAST ( + + col2 AS INTEGER ) * - col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL - 12 * + + 93 FROM tab2
----
-1116
-1116
-1116

query I rowsort
SELECT 47 * + col0 AS col2 FROM tab2
----
2162
3008
3525

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT - ( + COUNT( * ) ) * COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1712
SELECT - ( + COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab2
----
-9

query II rowsort
SELECT - col2 AS col1, col1 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT ALL - - 66 AS col1, 86 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
66
89

skipif mysql # not compatible
query II rowsort label-1714
SELECT ALL - - 66 AS col1, 86 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
66
89

query II rowsort
SELECT DISTINCT - 70 AS col1, - col0 FROM tab0 AS cor0
----
-70
-15
-70
-87
-70
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1716
SELECT - 28 AS col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

skipif mysql # not compatible
query II rowsort label-1716
SELECT - 28 AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

query I rowsort
SELECT ALL - col0 + - col1 * col1 AS col2 FROM tab0
----
-528
-6576
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 > 64 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 58 = ( - col1 * + col1 - + 34 )
----

query I rowsort
SELECT 56 * 14 AS col1 FROM tab1
----
784
784
784

query I rowsort
SELECT ALL 54 - + 59 * 93 FROM tab0
----
-5433
-5433
-5433

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT DISTINCT COUNT( * ) * 90 AS col1 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT COUNT ( * ) * 90 AS col1 FROM tab2
----
270

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL BETWEEN col0 AND col1
----

query I rowsort
SELECT col2 + - 77 AS col0 FROM tab1
----
-18
-9
19

query I rowsort
SELECT DISTINCT + 74 + 36 FROM tab0
----
110

query I rowsort
SELECT ALL - 27 + + col2 FROM tab0 WHERE 90 NOT BETWEEN ( + 24 * ( 2 ) ) AND NULL
----

query I rowsort
SELECT 16 FROM tab0 WHERE NOT 81 + col0 IS NULL
----
16
16
16

query I rowsort
SELECT ( - col1 ) + 49 FROM tab1
----
2
35
44

query III rowsort
SELECT * FROM tab0 WHERE - 6 / + col0 > ( col2 )
----

query I rowsort
SELECT - col0 * 64 + - col1 FROM tab0
----
-1041
-5589
-6209

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT COUNT( * ) - + 50 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1734
SELECT COUNT ( * ) - + 50 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT - col1 * ( col2 * + 79 ) AS col2 FROM tab2
----
-243320
-306994
-92667

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT COUNT( 44 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1736
SELECT COUNT ( 44 ) FROM tab0
----
3

query I rowsort
SELECT ALL 80 + - col2 FROM tab0 WHERE - ( 71 ) IS NOT NULL
----
-19
33
70

query I rowsort
SELECT ALL col0 + col1 FROM tab0 WHERE col1 <> ( NULL )
----

query I rowsort
SELECT DISTINCT 27 + col0 FROM tab0
----
114
124
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT - ( col2 ) DIV - col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1740
SELECT - ( col2 ) / - col2 AS col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1741
SELECT + 17 DIV - COUNT( * ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-1741
SELECT + 17 / - COUNT ( * ) FROM tab2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1742
SELECT DISTINCT COUNT( - col0 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT COUNT ( - col0 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - COUNT( * ) * MIN( col2 ) AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-1743
SELECT - COUNT ( * ) * MIN ( col2 ) AS col1 FROM tab2
----
-69

query I rowsort
SELECT ALL - col0 - 56 FROM tab2
----
-102
-120
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL + 50 + COUNT( * ) AS col1 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL + 50 + COUNT ( * ) AS col1 FROM tab1
----
53

query I rowsort
SELECT - 32 AS col0 FROM tab2 AS cor0 WHERE ( col1 ) + - 27 <= ( - col0 )
----

query I rowsort
SELECT DISTINCT col1 * - 72 AS col1 FROM tab0 cor0
----
-1512
-5832
-72

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT + COUNT( - 54 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + COUNT ( - 54 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + 70 - + 63 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + 70 - + 63 >= NULL
----

query I rowsort
SELECT 81 + 53 * + col0 AS col1 FROM tab2 AS cor0
----
2519
3473
4056

query I rowsort
SELECT ( + 14 ) FROM tab1 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT DISTINCT - CAST( 22 AS SIGNED ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT - CAST ( 22 AS INTEGER ) FROM tab1
----
-22

query I rowsort
SELECT DISTINCT 29 * - col2 AS col1 FROM tab1 AS cor0 WHERE - col0 - - col2 NOT BETWEEN + 68 + - col2 AND NULL
----
-1711
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + MAX( ALL col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1755
SELECT + MAX ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 80 BETWEEN + 19 AND - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 27
----

query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 + + col2 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col0 ) + col1 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col0 + + col2 )
----

query I rowsort
SELECT ALL 36 AS col2 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT 36 * - + col1 AS col0 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT ( - 70 ) FROM tab1
----
-70
-70
-70

query I rowsort
SELECT + 6 FROM tab0 WHERE NOT ( + col1 + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - ( col1 ) ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT - col0 + col0 AS col0 FROM tab0 WHERE NOT ( col0 ) + col0 * ( 82 + CAST( 15 AS SIGNED ) ) IN ( - col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT - col0 + col0 AS col0 FROM tab0 WHERE NOT ( col0 ) + col0 * ( 82 + CAST ( 15 AS INTEGER ) ) IN ( - col1 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) < NULL
----

query I rowsort
SELECT 16 * - 66 * + col2 FROM tab2
----
-24288
-42240
-61248

query I rowsort
SELECT ALL - col2 * 18 FROM tab1 WHERE - 65 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - col2 * col0 IS NOT NULL
----

query I rowsort
SELECT 23 + + 21 AS col1 FROM tab0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + ( 69 ) ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT ALL - CAST( - - MIN( DISTINCT col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - CAST ( - - MIN ( DISTINCT col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1775
SELECT ALL * FROM tab2 WHERE NOT + - 93 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1775
SELECT ALL * FROM tab2 WHERE NOT + - 93 <= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT - col2 + CAST( + 84 AS SIGNED ) FROM tab2 AS cor0
----
26
44
61

skipif mysql # not compatible
query I rowsort label-1776
SELECT - col2 + CAST ( + 84 AS INTEGER ) FROM tab2 AS cor0
----
26
44
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) <= col1
----
15
81
47
87
21
10

query I rowsort
SELECT - + 10 + + col1 * col1 FROM tab2 AS cor0
----
2591
4479
5919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT col1 * - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT col1 * - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 95 + col2 AS col0 FROM tab0 AS cor0
----
-48
-85
4

query I rowsort
SELECT ALL - col0 * 97 FROM tab2 AS cor0
----
-4462
-6208
-7275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1782
SELECT * FROM tab0 AS cor0 WHERE - CAST( col1 AS SIGNED ) * col0 > + CAST( NULL AS SIGNED ) * + ( col1 )
----

skipif mysql # not compatible
query III rowsort label-1782
SELECT * FROM tab0 AS cor0 WHERE - CAST ( col1 AS INTEGER ) * col0 > + CAST ( NULL AS INTEGER ) * + ( col1 )
----

query I rowsort
SELECT DISTINCT 70 + + col0 FROM tab1 AS cor0
----
121
155
161

query I rowsort
SELECT ALL + + col0 * - + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL + MIN( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23

query I rowsort
SELECT - + col1 - - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 17 AS col0 FROM tab1 WHERE - col0 NOT BETWEEN ( + 80 * ( + col2 ) ) AND NULL
----
-17
-17
-17

query I rowsort
SELECT DISTINCT + 45 + + col1 - - col2 FROM tab1
----
109
155
160

query I rowsort
SELECT - + 63 AS col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col1 - + + 68 FROM tab2
----
-119
-135
-145

query I rowsort
SELECT ALL col2 * - - 59 - + + 78 FROM tab0
----
2695
512
5763

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 * - col1 NOT BETWEEN 49 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT ALL + 98 FROM tab2 AS cor0 WHERE col0 BETWEEN + col2 AND + 40 + - CAST( - 20 + + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + 98 FROM tab2 AS cor0 WHERE col0 BETWEEN + col2 AND + 40 + - CAST ( - 20 + + col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 48 + - - 45 BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT ALL - 22 DIV - col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - 22 / - col2 AS col1 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 18 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL MIN( ALL - col0 ) * - MIN( ALL + - col2 ) FROM tab2 cor0
----
-4350

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL MIN ( ALL - col0 ) * - MIN ( ALL + - col2 ) FROM tab2 cor0
----
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT DISTINCT 27 AS col0 FROM tab0 AS cor0 WHERE ( col2 / - + CAST( + col2 AS SIGNED ) * col2 + col1 ) IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT 27 AS col0 FROM tab0 AS cor0 WHERE ( col2 / - + CAST ( + col2 AS INTEGER ) * col2 + col1 ) IS NOT NULL
----
27

query I rowsort
SELECT ALL 25 AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN 26 AND NULL
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT ALL + - CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL + - CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 - - 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - COUNT( * ) + - 61 - - - COUNT( * ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - COUNT ( * ) + - 61 - - - COUNT ( * ) FROM tab2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT ( - ( + col0 ) ) DIV col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1806
SELECT ( - ( + col0 ) ) / col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 * - 48 + + col1 AS col0 FROM tab0 WHERE NOT NULL <> col0
----

query II rowsort
SELECT ALL + col0, 8 FROM tab0
----
15
8
87
8
97
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT DISTINCT - MIN( DISTINCT + + col0 ), - COUNT( * ) col1 FROM tab2
----
-46
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1809
SELECT DISTINCT - MIN ( DISTINCT + + col0 ), - COUNT ( * ) col1 FROM tab2
----
-46
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT NULL >= ( + + CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT NULL >= ( + + CAST ( NULL AS INTEGER ) + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT ( - - CAST( NULL AS SIGNED ) ) / - 0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT ( - - CAST ( NULL AS INTEGER ) ) / - 0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 34 * - col0 FROM tab2
----
-1564
-2176
-2550

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( 57 / + col1 ) = NULL )
----

query I rowsort
SELECT ALL + + col2 + + 43 AS col1 FROM tab2 cor0
----
101
66
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL - 2 * - - COUNT( 86 ) + 85 AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - 2 * - - COUNT ( 86 ) + 85 AS col0 FROM tab0 AS cor0
----
79

query I rowsort
SELECT + - ( - 98 ) FROM tab0 AS cor0 WHERE ( 93 ) IN ( + col2, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT - col0 + + col2 DIV - 3 FROM tab2
----
-53
-77
-94

skipif mysql # not compatible
query I rowsort label-1817
SELECT - col0 + + col2 / - 3 FROM tab2
----
-53
-77
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT + ( + COUNT( * ) ) - - 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
64

skipif mysql # not compatible
query I rowsort label-1818
SELECT + ( + COUNT ( * ) ) - - 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
64

query II rowsort
SELECT DISTINCT col0 + + col2, + col0 FROM tab2
----
104
64
133
75
69
46

query I rowsort
SELECT col1 * 62 + col0 FROM tab1
----
3005
395
919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1821
SELECT DISTINCT - col0 - - - col0 FROM tab0 WHERE NOT NULL IN ( - CAST( 7 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - col0 - - - col0 FROM tab0 WHERE NOT NULL IN ( - CAST ( 7 AS INTEGER ) )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE ( + col0 + - 76 + - col1 ) NOT IN ( - col0 )
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT + CAST( - - 94 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif mysql # not compatible
query I rowsort label-1823
SELECT + CAST ( - - 94 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1824
SELECT DISTINCT - col0 - - ( - 91 ) + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - col0 - - ( - 91 ) + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 13 IN ( + 34 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT ALL col2 DIV + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL col2 / + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + + 38 - - col1 * + col2 FROM tab1 AS cor0
----
1396
3281
338

query I rowsort
SELECT + col1 * - - col2 - - 4 + - col2 AS col2 FROM tab2 cor0
----
1154
3044
3832

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT - COUNT( * ) + - 12 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT - COUNT ( * ) + - 12 FROM tab1 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 49 BETWEEN - ( + + col2 ) AND ( 54 )
----
97
1
99

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NULL <= + col2
----

query I rowsort
SELECT ALL col2 + - 52 FROM tab2
----
-12
-29
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 7 col1 FROM tab0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1834
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( * ) AS col0 FROM tab0 WHERE NULL < NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1834
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 WHERE NULL < NULL
----
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 - + 47 IN ( + 45 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * 65 FROM tab0 cor0
----
-3055
-6435
-650

onlyif mysql # DIV for integer division: 
query I rowsort label-1838
SELECT ALL col0 DIV - 16 FROM tab2 AS cor0
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL col0 / - 16 FROM tab2 AS cor0
----
-2
-4
-4

query I rowsort
SELECT + - 28 * + col2 + ( + ( + 91 ) ) FROM tab1 AS cor0
----
-1561
-1813
-2597

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1840
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1841
SELECT - MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 / 18 * + 27 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1842
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 / 18 * + 27 IS NOT NULL
----

query I rowsort
SELECT - - 97 FROM tab2 AS cor0 WHERE NOT 53 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 * + + 39 + - - 48 col1 FROM tab2 AS cor0
----
192240
196023
91542

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1845
SELECT - - col0, + CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-1845
SELECT - - col0, + CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1846
SELECT - 4 DIV - - col1 * - col0 col2, + col1 * + + col0 FROM tab2 AS cor0
----
0
2346
0
4928
0
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1846
SELECT - 4 / - - col1 * - col0 col2, + col1 * + + col0 FROM tab2 AS cor0
----
0
2346
0
4928
0
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT + ( + col2 ) DIV - 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1847
SELECT + ( + col2 ) / - 79 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 IN ( 17, col2 - - 70 * col0 + + - 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT + 55 DIV + col1 + col1 FROM tab2 AS cor0
----
52
67
77

skipif mysql # not compatible
query I rowsort label-1850
SELECT + 55 / + col1 + col1 FROM tab2 AS cor0
----
52
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT + MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT + MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT - - 31 AS col0 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT ALL col0 + - - 30 FROM tab0
----
117
127
45

query I rowsort
SELECT ALL col2 * - - 16 FROM tab2
----
368
640
928

query I rowsort
SELECT - 84 + + - ( - col0 ) + + 4 FROM tab0
----
-65
17
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL MIN( DISTINCT - 19 ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL MIN ( DISTINCT - 19 ) AS col2 FROM tab0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT col1 * col1 AS col1 FROM tab1 AS cor0 WHERE ( col2 + + + 14 + + - 32 * + - 51 / + CAST( - - col0 AS SIGNED ) NOT IN ( 84 * + col1 ) )
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-1857
SELECT col1 * col1 AS col1 FROM tab1 AS cor0 WHERE ( col2 + + + 14 + + - 32 * + - 51 / + CAST ( - - col0 AS INTEGER ) NOT IN ( 84 * + col1 ) )
----
196
2209
25

query I rowsort
SELECT - col1 * ( col0 ) FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1859
SELECT 63 col1, MIN( - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
63
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1859
SELECT 63 col1, MIN ( - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
63
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 88 col1 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT col1 FROM tab2 WHERE + col1 + - + col0 = col2
----

query II rowsort
SELECT ALL - + 51, col0 FROM tab0 AS cor0
----
-51
15
-51
87
-51
97

query I rowsort
SELECT + + col1 + 85 + + col2 AS col2 FROM tab1 AS cor0
----
149
195
200

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT - + MAX( ALL - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - + MAX ( ALL - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL COUNT( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT 5 NOT BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT 5 NOT BETWEEN NULL AND col0
----
0

query I rowsort
SELECT DISTINCT + + 36 FROM tab2 AS cor0 WHERE col1 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT COUNT( ALL + 78 ) AS col2, 66 FROM tab0
----
3
66

skipif mysql # not compatible
query II rowsort label-1868
SELECT COUNT ( ALL + 78 ) AS col2, 66 FROM tab0
----
3
66

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT - ( 82 ) * - MAX( DISTINCT + - col1 ) FROM tab2
----
-4182

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - ( 82 ) * - MAX ( DISTINCT + - col1 ) FROM tab2
----
-4182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col0 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT - 92 * COUNT( * ) + + 23 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2
----
23

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - 92 * COUNT ( * ) + + 23 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT + 28 DIV - 79 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1874
SELECT + 28 / - 79 col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 47 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + 53 + - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-1876
SELECT + 53 + - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 4 NOT IN ( 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL + SUM( ALL - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ALL + COUNT( * ) + - COUNT( * ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1879
SELECT ALL + COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - + 38, col1 AS col0 FROM tab1 AS cor0
----
-38
14
-38
47
-38
5

query I rowsort
SELECT DISTINCT + ( - - col1 ) * + col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT 34 FROM tab1 AS cor0 WHERE NOT NULL < - 88
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col1 col2, - 56 FROM tab0
----
210
-56
3807
-56
99
-56

query I rowsort
SELECT ALL 53 * - 42 + + ( 29 ) AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT 13 + col1 FROM tab2
----
64
80
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col0 FROM tab2 WHERE - col1 * - ( + 71 ) IS NULL
----

query I rowsort
SELECT col1 * - 14 AS col0 FROM tab2
----
-1078
-714
-938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1890
SELECT - col1 * + ( + - CAST( NULL 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-1890
SELECT - col1 * + ( + - CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1891
SELECT DISTINCT + col2 DIV + col0, col2 FROM tab0
----
0
10
1
99
3
47

skipif mysql # not compatible
query II rowsort label-1891
SELECT DISTINCT + col2 / + col0, col2 FROM tab0
----
0
10
1
99
3
47

query I rowsort
SELECT 61 + - 96 FROM tab0 cor0
----
-35
-35
-35

query I rowsort
SELECT - + col2 + 2 FROM tab0 AS cor0
----
-45
-8
-97

query I rowsort
SELECT - col0 + - - 68 AS col0 FROM tab0
----
-19
-29
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT ALL ( - CAST( - col2 AS SIGNED ) ) * + col2 + - col1 - + - 9 FROM tab1
----
3485
4586
9211

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL ( - CAST ( - col2 AS INTEGER ) ) * + col2 + - col1 - + - 9 FROM tab1
----
3485
4586
9211

query I rowsort
SELECT ALL - col1 + 76 * - col2 FROM tab0
----
-3653
-7525
-781

query II rowsort
SELECT DISTINCT + col0 AS col2, - 43 AS col1 FROM tab1
----
51
-43
85
-43
91
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1898
SELECT * FROM tab1 AS cor0 WHERE + CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1898
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT ALL - CAST( - - 50 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - CAST ( - - 50 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT + - col1 - + col1 + 37 DIV + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-1901
SELECT + - col1 - + col1 + 37 / + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL SUM( DISTINCT 95 ) AS col2 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL SUM ( DISTINCT 95 ) AS col2 FROM tab0 AS cor0
----
95

query II rowsort
SELECT DISTINCT + 43, + 81 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT SUM( + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1904
SELECT SUM ( + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 10 * + - col2 * col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1290240
-174050
-2173280

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( 96, col0, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT DISTINCT + + 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-1907
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 86 AS col2 FROM tab0 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 > + - ( - + 72 )
----
15
81
47
87
21
10

query II rowsort
SELECT ALL - 9 AS col1, - col2 FROM tab2
----
-9
-23
-9
-40
-9
-58

query I rowsort
SELECT + 65 * + - col1 FROM tab1
----
-3055
-325
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 60, col0 - + col0 col2 FROM tab2
----
60
0
60
0
60
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= + 12 * + ( - col0 ) * 57 + col2
----

query II rowsort
SELECT - 79, col0 AS col1 FROM tab0 AS cor0
----
-79
15
-79
87
-79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + COUNT( ( - - col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1915
SELECT + COUNT ( ( - - col2 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1916
SELECT ( CAST( NULL AS SIGNED ) ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1916
SELECT ( CAST ( NULL AS INTEGER ) ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL SUM( + 74 ) FROM tab0 AS cor0 WHERE NULL < col0 / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL SUM ( + 74 ) FROM tab0 AS cor0 WHERE NULL < col0 / - 13
----
NULL

query II rowsort
SELECT + col1 AS col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 1 * - 13, + col2 col0 FROM tab0 AS cor0
----
13
10
13
47
13
99

query I rowsort
SELECT ALL - 61 * + 38 AS col2 FROM tab1 AS cor0
----
-2318
-2318
-2318

query I rowsort
SELECT ALL + 98 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT - - 29 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1922
SELECT - - 29 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 20 + + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1924
SELECT + col2 DIV - + col1 AS col0, - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-99
-1
0
-1
0
-1

skipif mysql # not compatible
query II rowsort label-1924
SELECT + col2 / - + col1 AS col0, - col0 / col0 AS col1 FROM tab0 AS cor0
----
-99
-1
0
-1
0
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * + col1 col0 FROM tab0 AS cor0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT - MIN( ( - - col0 ) ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1926
SELECT - MIN ( ( - - col0 ) ) col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT + MAX( DISTINCT + 89 ) AS col1, + ( 78 ) AS col2 FROM tab1 AS cor0
----
89
78

skipif mysql # not compatible
query II rowsort label-1927
SELECT + MAX ( DISTINCT + 89 ) AS col1, + ( 78 ) AS col2 FROM tab1 AS cor0
----
89
78

query I rowsort
SELECT DISTINCT - col2 + + + col0 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT - col0 + + col1 AS col2, col1 FROM tab1 AS cor0
----
-37
14
-44
47
-80
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + - 81 col2 FROM tab0 cor0
----
-34
-71
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - 90 * col0 - ( 38 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL <> 0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - 59 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - 52 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1936
SELECT ALL + ( - 55 ) + - col0 AS col0, + col0 DIV col2 FROM tab0
----
-142
8
-152
0
-70
0

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL + ( - 55 ) + - col0 AS col0, + col0 / col2 FROM tab0
----
-142
8
-152
0
-70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL - 65 + + COUNT( * ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - 65 + + COUNT ( * ) FROM tab0 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT ALL col2 - - + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL col2 - - + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL - MIN( + - 87 ) - + - 97 FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL - MIN ( + - 87 ) - + - 97 FROM tab0
----
184

query I rowsort
SELECT DISTINCT + - ( 82 ) * col0 FROM tab0 AS cor0
----
-1230
-7134
-7954

query I rowsort
SELECT - ( - 50 ) FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 < col2 + - - 36
----

query I rowsort
SELECT DISTINCT - 83 * - ( - - 22 ) FROM tab1 cor0 WHERE ( + col1 ) * + col0 IS NOT NULL
----
1826

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 80
----
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 80
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - ( + MIN( + col0 ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1946
SELECT - ( + MIN ( + col0 ) ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT + SUM( + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + SUM ( + col0 ) AS col2 FROM tab2
----
185

query II rowsort
SELECT + col1 AS col1, col1 + + - 54 * - 4 + - 60 FROM tab0
----
1
157
21
177
81
237

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT + MAX( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1949
SELECT + MAX ( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab0 WHERE 29 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 12 AS col1 FROM tab1
----
-14
12
-47
12
-5
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT col2 DIV col0 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1952
SELECT col2 / col0 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ( MAX( DISTINCT + col2 ) ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1953
SELECT ( MAX ( DISTINCT + col2 ) ) AS col0 FROM tab0
----
99

query I rowsort
SELECT ALL - 92 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - col0 + - col2, col1 )
----

query II rowsort
SELECT DISTINCT + col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL 23 * + 10 AS col2 FROM tab1 cor0
----
230
230
230

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL - MIN( ALL 76 ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - MIN ( ALL 76 ) FROM tab1
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1958
SELECT + col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT + col2 + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT + 47 + + - 7 FROM tab2
----
40
40
40

query I rowsort
SELECT col1 * + + col1 + col2 AS col1 FROM tab2
----
2624
4547
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT + ( - SUM( + 98 ) ) + - 32 AS col0 FROM tab2
----
-326

skipif mysql # not compatible
query I rowsort label-1962
SELECT + ( - SUM ( + 98 ) ) + - 32 AS col0 FROM tab2
----
-326

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND ( + 93 )
----

query I rowsort
SELECT DISTINCT - - 93 AS col2 FROM tab1 cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1965
SELECT ALL 76 * - - CAST( ( + col2 ) AS SIGNED ), col2 + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < - col2
----

skipif mysql # not compatible
query II rowsort label-1965
SELECT ALL 76 * - - CAST ( ( + col2 ) AS INTEGER ), col2 + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < - col2
----

query II rowsort
SELECT + col0 AS col2, col1 + - 90 FROM tab0 AS cor0
----
15
-9
87
-69
97
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, col1 col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, 19 AS col2 FROM tab2 AS cor0
----
-46
19
-64
19
-75
19

query I rowsort
SELECT col0 * - - col1 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL - col2 * + + col1 + + 25 FROM tab2
----
-1148
-3055
-3861

query I rowsort
SELECT ALL col1 - + + 90 + - - col1 AS col2 FROM tab2
----
12
44
64

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL < ( NULL ) AND col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1973
SELECT + CAST( NULL AS DECIMAL ) * - + col1 - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT + CAST ( NULL AS REAL ) * - + col1 - + col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col1 + + + col2 - - col0 AS col0, + col1 FROM tab1
----
149
5
161
14
206
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 + + col1 <> + 58 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL + + COUNT( * ) * + 33 AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + + COUNT ( * ) * + 33 AS col1 FROM tab1 AS cor0
----
99

query I rowsort
SELECT col2 * col0 + - 53 AS col0 FROM tab0 AS cor0
----
652
817
9550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - - 72 ) + - 34 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - - 72 ) + - 34 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + - 52 col0 FROM tab2 AS cor0
----
-6
12
23

query I rowsort
SELECT DISTINCT col0 * - + col1 - + col1 + 43 AS col1 FROM tab2
----
-2354
-4962
-5049

onlyif mysql # aggregate syntax: 
query II rowsort label-1983
SELECT DISTINCT + 10 - + - COUNT( * ) AS col0, - COUNT( * ) + + 62 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
19
53

skipif mysql # not compatible
query II rowsort label-1983
SELECT DISTINCT + 10 - + - COUNT ( * ) AS col0, - COUNT ( * ) + + 62 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
19
53

query I rowsort
SELECT 2 + - + 15 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 81 * + - 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 82 * col1 * col0 AS col2 FROM tab0 AS cor0
----
-149814
-7954
-99630

query I rowsort
SELECT ALL col1 * col1 - + + col1 + - ( - 92 ) FROM tab2 cor0
----
2642
4514
5944

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT DISTINCT + - col2 DIV - + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + - col2 / - + col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - COUNT( * ) * - MAX( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1990
SELECT - COUNT ( * ) * - MAX ( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - ( - - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1991
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - ( - - col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + SUM( - + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1992
SELECT + SUM ( - + col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT DISTINCT - 23, + col0 FROM tab2 cor0
----
-23
46
-23
64
-23
75

query I rowsort
SELECT col0 * 28 + + col2 + - col2 AS col2 FROM tab2 AS cor0
----
1288
1792
2100

query II rowsort
SELECT col0, col2 AS col1 FROM tab0 cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - 50 * + col1 + - ( ( - + 62 ) ) FROM tab2 AS cor0
----
-2488
-3288
-3788

query II rowsort
SELECT + 73 * - + 98 AS col2, col0 + - 43 FROM tab2
----
-7154
21
-7154
3
-7154
32

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND ( col0 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 73 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL SUM( DISTINCT + + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL SUM ( DISTINCT + + col0 ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT 39 * - - col0 FROM tab1
----
1989
3315
3549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col0 FROM tab1
----
-40

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / - - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT - 97 * COUNT( * ) FROM tab0 WHERE NOT 82 <= + + 50 + + - 42 + + 8
----
-291

skipif mysql # not compatible
query I rowsort label-2004
SELECT - 97 * COUNT ( * ) FROM tab0 WHERE NOT 82 <= + + 50 + + - 42 + + 8
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2005
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT + col1 * + 24 AS col2 FROM tab2
----
1224
1608
1848

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2007
SELECT + 52 + + AVG ( ALL + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT + 52 + + AVG ( ALL + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 67 + - - col1 FROM tab2 cor0
----
118
134
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL + + 47 + COUNT( - col0 ) * 7 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL + + 47 + COUNT ( - col0 ) * 7 FROM tab1 AS cor0
----
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 91 IS NOT NULL
----

query I rowsort
SELECT ALL - 1 * - - 28 AS col0 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL col1 * + 11 + - col2 AS col2 FROM tab0 AS cor0
----
-88
221
844

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - 52 * - 83 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - 52 * - 83 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + - MIN( - 18 ) * + COUNT( * ) + + ( 72 ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2014
SELECT + - MIN ( - 18 ) * + COUNT ( * ) + + ( 72 ) FROM tab1 AS cor0
----
126

query I rowsort
SELECT ALL - 93 + col1 FROM tab2 AS cor0
----
-16
-26
-42

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + ( col0 ) AS col0 FROM tab0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 61 FROM tab0
----
10
61
47
61
99
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 43 ) + 23 + 12 col1 FROM tab2
----
-8

query I rowsort
SELECT DISTINCT - col0 * 68 * + col0 FROM tab1
----
-176868
-491300
-563108

query I rowsort
SELECT ALL + col2 * + + col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT - 30 * + 49 FROM tab0
----
-1470
-1470
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT COUNT( DISTINCT - 6 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2023
SELECT COUNT ( DISTINCT - 6 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT ALL - 37 * 13 DIV + col0 AS col1 FROM tab0
----
-32
-4
-5

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - 37 * 13 / + col0 AS col1 FROM tab0
----
-32
-4
-5

query I rowsort
SELECT + col0 - + ( col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 97 * - col0 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 27 * - 95 * + ( MAX( ALL + col1 ) ) FROM tab0 AS cor0
----
-207765

skipif mysql # not compatible
query I rowsort label-2028
SELECT 27 * - 95 * + ( MAX ( ALL + col1 ) ) FROM tab0 AS cor0
----
-207765

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT DISTINCT 28 DIV - + 7 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT 28 / - + 7 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NOT col2 + - - col1 NOT BETWEEN - - 42 AND + - 43 + 89
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 47 * + - 60 + + col2 + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT + - SUM( - 57 ) AS col1 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + - SUM ( - 57 ) AS col1 FROM tab2 AS cor0
----
171

query II rowsort
SELECT DISTINCT col1 * + col0 AS col0, col2 - - + 33 AS col0 FROM tab0 AS cor0
----
1215
80
1827
43
97
132

query I rowsort
SELECT DISTINCT - col0 * + 89 FROM tab0
----
-1335
-7743
-8633

query III rowsort
SELECT * FROM tab0 WHERE NOT - 44 NOT BETWEEN ( NULL ) AND - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL 88 * + + COUNT( * ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL 88 * + + COUNT ( * ) AS col1 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL - 36 * + COUNT( + - col2 ) AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - 36 * + COUNT ( + - col2 ) AS col2 FROM tab2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT + ( + col2 ) DIV + + ( - 33 ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT + ( + col2 ) / + + ( - 33 ) FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2040
SELECT 48 DIV - SUM( + - 76 ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT 48 / - SUM ( + - 76 ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL SUM( - - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL SUM ( - - col2 ) FROM tab0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2042
SELECT ALL + COUNT( * ) col1, CAST( - - COUNT( * ) AS SIGNED ) col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2042
SELECT ALL + COUNT ( * ) col1, CAST ( - - COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
3
3

query II rowsort
SELECT + 96 + + col1, col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
101
5
110
14
143
47

query I rowsort
SELECT DISTINCT col2 * 62 + + + col1 + - ( col1 ) FROM tab0 AS cor0
----
2914
6138
620

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 78 IS NULL
----

query II rowsort
SELECT DISTINCT - col2, - 15 + + col0 AS col2 FROM tab2 AS cor0
----
-23
31
-40
49
-58
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT - + col2 * + + CAST( + col2 AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
-1560
-3306
-506

skipif mysql # not compatible
query I rowsort label-2047
SELECT - + col2 * + + CAST ( + col2 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
-1560
-3306
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + - 42 col1 FROM tab1 AS cor0
----
-28
-37
5

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 * col0 + + + col0 + 55 / - + col0 * - + 40 * + - col1 * + col1 < NULL
----

query I rowsort
SELECT - col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - ( - 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-2053
SELECT ALL - - 75 * + + col0 col1, 14 DIV + col1 * - col0 FROM tab2 AS cor0
----
3450
0
4800
0
5625
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2053
SELECT ALL - - 75 * + + col0 col1, 14 / + col1 * - col0 FROM tab2 AS cor0
----
3450
0
4800
0
5625
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT - + 71 FROM tab0 cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL + COUNT( - + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + COUNT ( - + col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL - + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2058
SELECT - CAST( NULL AS SIGNED ) - - col0 + - col0 AS col1, - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-2058
SELECT - CAST ( NULL AS INTEGER ) - - col0 + - col0 AS col1, - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - MIN( - col2 ) AS col0 FROM tab1 WHERE - - col1 >= - - col2 * + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT - MIN ( - col2 ) AS col0 FROM tab1 WHERE - - col1 >= - - col2 * + + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2060
SELECT 18 - col0 + + CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT 18 - col0 + + CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + + 11 FROM tab0
----
-36
-88
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT + col0 DIV 60 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2062
SELECT + col0 / 60 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1
1

query I rowsort
SELECT ALL - - 83 AS col0 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT + ( - MAX( ALL + 48 ) ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-2064
SELECT + ( - MAX ( ALL + 48 ) ) AS col1 FROM tab1
----
-48

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 56 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT col2 * + col1 * + 47 * - ( - - col2 ) FROM tab1 AS cor0
----
-10214416
-6064128
-818035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT + - CAST( - + col2 AS SIGNED ) * + 28 FROM tab0 AS cor0
----
1316
2772
280

skipif mysql # not compatible
query I rowsort label-2067
SELECT + - CAST ( - + col2 AS INTEGER ) * + 28 FROM tab0 AS cor0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ALL - + COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL - + COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 * + 34 AS col1 FROM tab1 AS cor0
----
-1734
-2890
-3094

query I rowsort
SELECT DISTINCT col1 + 97 AS col0 FROM tab2 AS cor0
----
148
164
174

query II rowsort
SELECT + ( + + col1 ), - col0 * + + col2 AS col2 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT - 70 * COUNT( * ) AS col2 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT - 70 * COUNT ( * ) AS col2 FROM tab0
----
-210

query I rowsort
SELECT DISTINCT + + 55 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2074
SELECT ALL col0 DIV - 90 AS col0, - 61 * - col1 + - + col2 AS col0 FROM tab0
----
-1
-38
0
1271
0
4894

skipif mysql # not compatible
query II rowsort label-2074
SELECT ALL col0 / - 90 AS col0, - 61 * - col1 + - + col2 AS col0 FROM tab0
----
-1
-38
0
1271
0
4894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT + 11 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT + 11 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 13 * - col0 + + 5 FROM tab0
----
-1126
-1256
-190

query I rowsort
SELECT 39 * - - ( + col1 ) FROM tab1 AS cor0
----
1833
195
546

query I rowsort
SELECT 63 + + + 73 AS col0 FROM tab0 AS cor0 WHERE col1 * - col0 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT - MAX( + + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - MAX ( + + col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab1 AS cor0 WHERE - col1 + - col2 + + + col0 + - 70 / - - col0 * + - 38 * - col1 IN ( 48, 12 + + + 92, + - col0 + - - 35 )
----

query I rowsort
SELECT DISTINCT + - 7 + + 2 * - + col2 AS col2 FROM tab0 AS cor0
----
-101
-205
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT COUNT( - 44 ) + - 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

skipif mysql # not compatible
query I rowsort label-2083
SELECT COUNT ( - 44 ) + - 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT - col2 + + + col1 * + - 83 - ( + + 22 ) + - col0 - - 38 * + col0 * - + col2 + - ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT - col2 + + + col1 * + - 83 - ( + + 22 ) + - col0 - - 38 * + col0 * - + col2 + - ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT ALL - + COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL - + COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - col1 + + - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - COUNT( * ) + 99 col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2087
SELECT - COUNT ( * ) + 99 col2 FROM tab2 AS cor0
----
96

query II rowsort
SELECT ALL - - 11 AS col1, 4 AS col0 FROM tab2 AS cor0
----
11
4
11
4
11
4

query I rowsort
SELECT ALL col0 + + 76 FROM tab1 cor0
----
127
161
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 42 col2 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT ALL + ( 55 ) * 2 + + col0 AS col2 FROM tab0
----
125
197
207

query I rowsort
SELECT DISTINCT - 37 * + - col0 FROM tab2
----
1702
2368
2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT DISTINCT - ( + + CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - ( + + CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab2 cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT + + ( - col1 ) FROM tab1 cor0 WHERE NOT - CAST( + - col1 AS SIGNED ) * + ( col1 ) NOT BETWEEN col2 * + 30 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2095
SELECT + + ( - col1 ) FROM tab1 cor0 WHERE NOT - CAST ( + - col1 AS INTEGER ) * + ( col1 ) NOT BETWEEN col2 * + 30 AND NULL
----

query I rowsort
SELECT ALL 38 AS col0 FROM tab1 cor0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) * + col1 col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + 40 + + col2 AS col0 FROM tab0 AS cor0
----
139
50
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + col1 + + 46 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - + col2 ) * col2 IS NULL
----

query I rowsort
SELECT ALL - 41 AS col1 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT COUNT( * ) + + MAX( + col0 ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT COUNT ( * ) + + MAX ( + col0 ) AS col2 FROM tab2
----
78

query II rowsort
SELECT 2, col2 FROM tab1
----
2
59
2
68
2
96

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + 94 / - col2 + + 25 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 - + 26 * + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT DISTINCT + COUNT( col0 ) AS col1, - COUNT( * ) * 75 + - + 24 AS col0 FROM tab2
----
3
-249

skipif mysql # not compatible
query II rowsort label-2106
SELECT DISTINCT + COUNT ( col0 ) AS col1, - COUNT ( * ) * 75 + - + 24 AS col0 FROM tab2
----
3
-249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT 4 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN + col0 + - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2107
SELECT 4 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN + col0 + - col1 AND NULL
----

query I rowsort
SELECT col1 + - 39 FROM tab0 cor0
----
-18
-38
42

query I rowsort
SELECT 65 + 29 FROM tab0
----
94
94
94

query I rowsort
SELECT - col0 + - ( col0 ) - - + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2111
SELECT 54 + + 45 AS col1, - COUNT( * ) AS col2 FROM tab0
----
99
-3

skipif mysql # not compatible
query II rowsort label-2111
SELECT 54 + + 45 AS col1, - COUNT ( * ) AS col2 FROM tab0
----
99
-3

query I rowsort
SELECT DISTINCT col0 + - ( col0 ) * + col1 AS col1 FROM tab0
----
-1200
-1740
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT ALL + col1 - 49 * col2 DIV + - col2 FROM tab0 AS cor0
----
130
50
70

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + col1 - 49 * col2 / + - col2 FROM tab0 AS cor0
----
130
50
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 >= ( + col0 )
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT + - ( col0 ) - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT + - ( col0 ) - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT + + COUNT( * ) - + - COUNT( * ) AS col0, + COUNT( DISTINCT 16 ) FROM tab1 AS cor0
----
6
1

skipif mysql # not compatible
query II rowsort label-2117
SELECT + + COUNT ( * ) - + - COUNT ( * ) AS col0, + COUNT ( DISTINCT 16 ) FROM tab1 AS cor0
----
6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT MIN( col2 ) - + COUNT( * ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2118
SELECT MIN ( col2 ) - + COUNT ( * ) FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT + COUNT( ALL + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT + COUNT ( ALL + - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL - MAX( + + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL - MAX ( + + col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT - CAST( + - 77 AS SIGNED ) AS col1 FROM tab0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-2121
SELECT - CAST ( + - 77 AS INTEGER ) AS col1 FROM tab0
----
77
77
77

query I rowsort
SELECT 82 * col2 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab1 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 93 * col2 IS NULL
----

query I rowsort
SELECT ALL + - col2 * + - col2 FROM tab1 AS cor0
----
3481
4624
9216

query II rowsort
SELECT - 57 * + 68 + 6, col0 * - - col2 - - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 64 / - - col0 ) AND + 55 * + ( + - col0 ) * + col1 + + ( - 86 ) NOT IN ( 47, 64 * + 3 * + col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL <= - 38 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 16 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 35 * + col2 col2 FROM tab2 AS cor0
----
-1400
-2030
-805

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab1 cor0
----
-95

query I rowsort
SELECT ALL - col0 * - 66 + - 95 * - 91 + - - col2 AS col0 FROM tab2 AS cor0
----
11704
12909
13653

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE col2 * - 80 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 * + col0 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
-705
81
-870
21
-9603
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2136
SELECT + COUNT( * ) + 27 DIV - 73 AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2136
SELECT + COUNT ( * ) + 27 / - 73 AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 93 * + + col2 + + col1 * - col0 * col1 FROM tab2 cor0
----
-117507
-331281
-375736

query I rowsort
SELECT ALL col1 * 9 * col1 + + + col2 + 19 * + col2 * + - col1 FROM tab1 AS cor0
----
-23676
-40775
-5321

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT DISTINCT + 99 + + col0 DIV + col0 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + 99 + + col0 / + col0 FROM tab1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT - 19 + - COUNT( * ) * + 97 FROM tab2
----
-310

skipif mysql # not compatible
query I rowsort label-2141
SELECT - 19 + - COUNT ( * ) * + 97 FROM tab2
----
-310

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT DISTINCT COUNT( * ), - COUNT( * ) col1 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2142
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) col1 FROM tab1
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT 73 + col0 + + col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT 73 + col0 + + col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 92 * 98 FROM tab0
----
9016

query III rowsort
SELECT * FROM tab2 WHERE + 79 / + + col1 + - col0 / col0 * - 91 < NULL
----

query I rowsort
SELECT - col0 * + 11 AS col1 FROM tab2
----
-506
-704
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL + ( MIN( ALL + 23 ) ) * + 91 AS col1 FROM tab2 AS cor0
----
2093

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL + ( MIN ( ALL + 23 ) ) * + 91 AS col1 FROM tab2 AS cor0
----
2093

query I rowsort
SELECT DISTINCT 12 * col1 FROM tab2 AS cor0
----
612
804
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT - 96 * - - col2 - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-5749
-6619
-9267

skipif mysql # not compatible
query I rowsort label-2149
SELECT - 96 * - - col2 - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-5749
-6619
-9267

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - MIN( DISTINCT + - col0 ) col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2150
SELECT - MIN ( DISTINCT + - col0 ) col1 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + + col0 ) - + + 45 FROM tab2
----
1
19
30

query I rowsort
SELECT ALL - - 92 * - 57 FROM tab0 AS cor0
----
-5244
-5244
-5244

query II rowsort
SELECT DISTINCT col2, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT ALL COUNT( * ) AS col2, - 60 AS col1 FROM tab0, tab1 AS cor0
----
9
-60

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL COUNT ( * ) AS col2, - 60 AS col1 FROM tab0, tab1 AS cor0
----
9
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT - 59 * - COUNT( * ) AS col2 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - 59 * - COUNT ( * ) AS col2 FROM tab0
----
177

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 81 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col1 FROM tab2 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2160
SELECT ALL - ( - + MAX( ALL + 70 ) ) DIV MIN( ALL col2 ) + - + 7 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - ( - + MAX ( ALL + 70 ) ) / MIN ( ALL col2 ) + - + 7 AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + COUNT( DISTINCT + col1 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2161
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * col0 + + col2 col2 FROM tab2 cor0
----
2415
3368
3958

query I rowsort
SELECT + + col2 * 19 AS col0 FROM tab2 AS cor0
----
1102
437
760

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col1 * + + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - + col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 22 ) NOT BETWEEN ( - + col1 ) AND + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 / + 79 IS NULL
----

query II rowsort
SELECT ALL 15 + - col1 AS col1, 14 FROM tab2
----
-36
14
-52
14
-62
14

query II rowsort
SELECT ALL + col0 + col0 + - ( + 17 ), - col2 AS col1 FROM tab0
----
13
-47
157
-10
177
-99

query I rowsort
SELECT ALL - 63 AS col0 FROM tab0 WHERE + 31 NOT BETWEEN NULL AND - col1
----
-63
-63
-63

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 87 * - col2 AND 17 / - 42
----

query I rowsort
SELECT col1 - col0 * + 75 FROM tab2
----
-3399
-4723
-5558

query I rowsort
SELECT ALL col0 * - ( - col2 ) FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - 32 + COUNT( + + 71 ) AS col2 FROM tab2 WHERE NOT NULL = + col1 * + + col1
----
-32

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - 32 + COUNT ( + + 71 ) AS col2 FROM tab2 WHERE NOT NULL = + col1 * + + col1
----
-32

query I rowsort
SELECT ALL col2 * + 83 FROM tab2
----
1909
3320
4814

query I rowsort
SELECT ALL ( - ( - 54 ) ) + - 26 * - 74 * - col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT COUNT( * ) + - + 32 col0 FROM tab0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2179
SELECT COUNT ( * ) + - + 32 col0 FROM tab0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2180
SELECT DISTINCT col2 * + - CAST( col1 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT col2 * + - CAST ( col1 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col2 * ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2182
SELECT DISTINCT CAST( - - CAST( MIN( col1 ) AS DECIMAL ) AS SIGNED ) + - MIN( - 29 ) FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT CAST ( - - CAST ( MIN ( col1 ) AS REAL ) AS INTEGER ) + - MIN ( - 29 ) FROM tab1 cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT ALL + col1 + + + col2 + CAST( + - 16 AS SIGNED ) FROM tab0 AS cor0
----
112
15
84

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + col1 + + + col2 + CAST ( + - 16 AS INTEGER ) FROM tab0 AS cor0
----
112
15
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT DISTINCT + ( MAX( ALL - 37 ) ) + - 90 AS col1 FROM tab2
----
-127

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT + ( MAX ( ALL - 37 ) ) + - 90 AS col1 FROM tab2
----
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT ALL col2 DIV - col2 + + - 90 AS col1 FROM tab1
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL col2 / - col2 + + - 90 AS col1 FROM tab1
----
-91
-91
-91

query I rowsort
SELECT DISTINCT col0 * + col0 * + + 1 * col2 AS col2 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT + 41 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 68 AND - + col1
----

query II rowsort
SELECT + col2 AS col0, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT - 40 * - COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT - 40 * - COUNT ( * ) FROM tab2 AS cor0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL - COUNT( * ) / CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2190
SELECT ALL - COUNT ( * ) / CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + 59 - - col1 FROM tab2 cor0 WHERE NOT 26 IS NOT NULL
----

query II rowsort
SELECT ALL 16, + 11 AS col0 FROM tab0 AS cor0
----
16
11
16
11
16
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT + COUNT( * ) * - - 64 * 36 FROM tab0 AS cor0
----
6912

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT + COUNT ( * ) * - - 64 * 36 FROM tab0 AS cor0
----
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT 41 * ( SUM( - col2 ) ) AS col2 FROM tab2
----
-4961

skipif mysql # not compatible
query I rowsort label-2195
SELECT 41 * ( SUM ( - col2 ) ) AS col2 FROM tab2
----
-4961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * col1 col2 FROM tab2
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT + COUNT( * ) + - 24 + - 61 AS col1 FROM tab2 WHERE NOT col0 >= NULL
----
-85

skipif mysql # not compatible
query I rowsort label-2197
SELECT + COUNT ( * ) + - 24 + - 61 AS col1 FROM tab2 WHERE NOT col0 >= NULL
----
-85

query I rowsort
SELECT DISTINCT 8 * - 12 * col0 AS col2 FROM tab0
----
-1440
-8352
-9312

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT ALL + 48 DIV + - col1 AS col1 FROM tab1
----
-1
-3
-9

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + 48 / + - col1 AS col1 FROM tab1
----
-1
-3
-9

query I rowsort
SELECT ALL - col1 * + ( - col0 ) AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT DISTINCT + COUNT( * ) * SUM( - 78 ) FROM tab1
----
-702

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT + COUNT ( * ) * SUM ( - 78 ) FROM tab1
----
-702

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 15 - 64 NOT IN ( 33 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 <> NULL
----

query I rowsort
SELECT ALL - + col2 * - 22 + 72 FROM tab0 AS cor0
----
1106
2250
292

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + ( + MIN( ALL - 68 ) ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2205
SELECT + ( + MIN ( ALL - 68 ) ) FROM tab0 AS cor0
----
-68

query II rowsort
SELECT ALL - - col2 AS col2, + ( col2 ) FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT ALL MAX( DISTINCT col1 ) DIV + 67 + - 76 AS col2 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL MAX ( DISTINCT col1 ) / + 67 + - 76 AS col2 FROM tab1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT MAX( ALL + - 57 ) AS col2 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-2208
SELECT MAX ( ALL + - 57 ) AS col2 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 - col1 / - + 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 42 FROM tab1 AS cor0 WHERE NOT col2 + 9 IS NULL
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( - col1 ) IS NOT NULL AND NOT 0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT - col2 / - 55 + + + col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT - col2 / - 55 + + + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - + 53 AS col1 FROM tab1 cor0
----
-104
-138
-144

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2215
SELECT DISTINCT - 76 * - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - 76 * - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - - col0 + + 61
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN 95 * - 37 AND 99 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL 99 + MAX( DISTINCT + col0 ) AS col0 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL 99 + MAX ( DISTINCT + col0 ) AS col0 FROM tab2
----
174

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE - 83 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT - col0 * + - ( + col0 ) FROM tab0 WHERE NULL IS NULL
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT - 75, MIN( ALL - + 50 ) AS col1 FROM tab1
----
-75
-50

skipif mysql # not compatible
query II rowsort label-2221
SELECT - 75, MIN ( ALL - + 50 ) AS col1 FROM tab1
----
-75
-50

query I rowsort
SELECT ALL col0 - - col1 + 25 AS col0 FROM tab0
----
121
123
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT + MAX( ALL + 75 ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-2223
SELECT + MAX ( ALL + 75 ) AS col1 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT - COUNT( * ) * - 17 col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2224
SELECT - COUNT ( * ) * - 17 col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT 10 * COUNT( ALL col1 ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2225
SELECT 10 * COUNT ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( + col1 * - col0 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( + col1 * - col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 83 + + col0 FROM tab1
----
134
168
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT ALL - COUNT( * ) DIV 30 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - COUNT ( * ) / 30 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 61 col2 FROM tab0
----
-40
-60
20

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1 * 27 )
----

query I rowsort
SELECT col1 + 51 AS col2 FROM tab0
----
132
52
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - COUNT( * ) * COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2233
SELECT - COUNT ( * ) * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( 13 / + col0 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT 57 FROM tab0 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
57
57
57

skipif mysql # not compatible
query I rowsort label-2236
SELECT 57 FROM tab0 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
57
57
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT DISTINCT + 32 DIV - COUNT( * ) + COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + 32 / - COUNT ( * ) + COUNT ( * ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT MIN( - ( + col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT MIN ( - ( + col0 ) ) AS col2 FROM tab1
----
-91

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE + col2 IN ( - 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + MIN( + 34 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + MIN ( + 34 ) FROM tab0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col2 FROM tab1
----
67
67
67

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * 36 + 20 ) < ( 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 95 FROM tab0 AS cor0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ALL col0 + 49 FROM tab1 AS cor0
----
100
134
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL col1 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL col1 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ( COUNT( * ) ) + 59 * 87 AS col1 FROM tab2
----
5136

skipif mysql # not compatible
query I rowsort label-2246
SELECT ( COUNT ( * ) ) + 59 * 87 AS col1 FROM tab2
----
5136

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2247
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL
----
-9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 ON ( NULL ) >= ( NULL ) WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 72 AS col1 FROM tab1 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2250
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + ( CAST( NULL AS SIGNED ) ) >= ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-2250
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + ( CAST ( NULL AS INTEGER ) ) >= ( - col0 )
----

query I rowsort
SELECT DISTINCT - col1 + - 28 AS col0 FROM tab2 AS cor0
----
-105
-79
-95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) IN ( 17 / col2 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE - 74 * ( col1 ) <= - ( 39 ) * col0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 * col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 24 - col1 AS col2 FROM tab0
----
-105
-25
-45

query I rowsort
SELECT 83 - + - 41 AS col0 FROM tab2
----
124
124
124

query I rowsort
SELECT col1 - - 51 AS col0 FROM tab1
----
56
65
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 - + col1 col0 FROM tab1
----
42
51
9

query I rowsort
SELECT + col1 * col0 - + 6 FROM tab0
----
1209
1821
91

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab2 WHERE - 28 >= ( - 34 - + 77 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL MAX( - + col2 ) col1 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2261
SELECT ALL MAX ( - + col2 ) col1 FROM tab2
----
-23

query I rowsort
SELECT ALL - col1 + 54 FROM tab2
----
-13
-23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT MAX( DISTINCT 67 ) * + ( 90 ) AS col2 FROM tab2 WHERE col0 * - col1 + 32 IS NOT NULL
----
6030

skipif mysql # not compatible
query I rowsort label-2263
SELECT MAX ( DISTINCT 67 ) * + ( 90 ) AS col2 FROM tab2 WHERE col0 * - col1 + 32 IS NOT NULL
----
6030

query I rowsort
SELECT ALL 16 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * 64 FROM tab2 AS cor0 WHERE NOT NULL > - 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT DISTINCT + col1 / - col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 31 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT + col1 / - col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 31 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 * 49 - col0 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * - - 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 70 AS col1, ( col1 ) AS col1 FROM tab0 AS cor0
----
70
1
70
21
70
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2270
SELECT 75 * ( - ( - 29 ) + + CAST( - COUNT( * ) AS SIGNED ) ) + 16 FROM tab2 AS cor0 WHERE NOT + 40 <> NULL
----
2191

skipif mysql # not compatible
query I rowsort label-2270
SELECT 75 * ( - ( - 29 ) + + CAST ( - COUNT ( * ) AS INTEGER ) ) + 16 FROM tab2 AS cor0 WHERE NOT + 40 <> NULL
----
2191

query I rowsort
SELECT - ( 37 ) AS col1 FROM tab2 AS cor0
----
-37
-37
-37

query II rowsort
SELECT ALL - + col1 AS col1, - col2 AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + ( - 65 ) ) IN ( col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + + MAX( DISTINCT - col2 ) col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2274
SELECT + + MAX ( DISTINCT - col2 ) col2 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT ALL - CAST( + + 74 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - CAST ( + + 74 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-74
-74
-74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 0 )
----

query I rowsort
SELECT ALL + - 75 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - + col0 * - - col1 - - 71 AS col1 FROM tab1 AS cor0
----
-354
-4206
-643

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + - col0 NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( col1 * - ( + 47 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT + MIN( + - col0 ) * COUNT( * ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + MIN ( + - col0 ) * COUNT ( * ) FROM tab0
----
-291

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 27 * + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT COUNT( * ) * - 86 AS col2 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT COUNT ( * ) * - 86 AS col2 FROM tab0
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + - col1 ) + - 61 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-10
16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + SUM( + - col1 ) * + - 10 AS col0 FROM tab2
----
1950

skipif mysql # not compatible
query I rowsort label-2285
SELECT + SUM ( + - col1 ) * + - 10 AS col0 FROM tab2
----
1950

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2286
SELECT * FROM tab2 WHERE NOT ( + - CAST( - col0 AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2286
SELECT * FROM tab2 WHERE NOT ( + - CAST ( - col0 AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab0 WHERE col1 BETWEEN ( NULL ) AND ( NULL ) AND col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT ALL + col0 FROM tab0 WHERE + + CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + col0 FROM tab0 WHERE + + CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2289
SELECT CAST( col0 AS SIGNED ) DIV ( col2 ) + + 32 AS col2 FROM tab1
----
32
33
33

skipif mysql # not compatible
query I rowsort label-2289
SELECT CAST ( col0 AS INTEGER ) / ( col2 ) + + 32 AS col2 FROM tab1
----
32
33
33

query I rowsort
SELECT - col0 + 12 FROM tab2 AS cor0 WHERE NOT 22 >= + col1
----
-34
-52
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL 41 * - - COUNT( * ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL 41 * - - COUNT ( * ) FROM tab1 AS cor0
----
123

query I rowsort
SELECT - col0 * - + ( - + col1 ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT ALL - + col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-1
-21
-81

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 33 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT 17 + - - ( - 8 ) DIV 40 + - col1 AS col0 FROM tab0
----
-4
-64
16

skipif mysql # not compatible
query I rowsort label-2297
SELECT 17 + - - ( - 8 ) / 40 + - col1 AS col0 FROM tab0
----
-4
-64
16

query I rowsort
SELECT - col0 + + + col2 AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT SUM( ALL + 20 ) * 30 * + 95 + - COUNT( * ) FROM tab0 AS cor0
----
170997

skipif mysql # not compatible
query I rowsort label-2299
SELECT SUM ( ALL + 20 ) * 30 * + 95 + - COUNT ( * ) FROM tab0 AS cor0
----
170997

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2300
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2300
SELECT ALL - CAST ( NULL AS REAL ) AS col2, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 13 * col0 BETWEEN NULL AND ( NULL ) AND NOT 40 + col0 / col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col2 FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL - ( + MIN( col2 ) ) * + - 67 FROM tab2 AS cor0
----
1541

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL - ( + MIN ( col2 ) ) * + - 67 FROM tab2 AS cor0
----
1541

query I rowsort
SELECT + + 53 + col2 AS col1 FROM tab1 AS cor0
----
112
121
149

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2305
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - CAST( - - 71 AS SIGNED ) ) >= - col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2305
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - CAST ( - - 71 AS INTEGER ) ) >= - col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE 46 / - - col1 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT 27 / - col2 AS col1, col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) IN ( + 35, - ( + 2 ) / 75 )
----

query I rowsort
SELECT 55 * 90 FROM tab1 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL COUNT( * ) * 14 AS col2 FROM tab1, tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL COUNT ( * ) * 14 AS col2 FROM tab1, tab1 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - COUNT( DISTINCT + col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2311
SELECT - COUNT ( DISTINCT + col0 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT DISTINCT - 92 * + - MIN( 29 ) + + 77 AS col2, COUNT( * ) AS col0 FROM tab1
----
2745
3

skipif mysql # not compatible
query II rowsort label-2313
SELECT DISTINCT - 92 * + - MIN ( 29 ) + + 77 AS col2, COUNT ( * ) AS col0 FROM tab1
----
2745
3

query I rowsort
SELECT - ( - - 75 ) AS col2 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT + 58 * - + col1 FROM tab1
----
-2726
-290
-812

query I rowsort
SELECT 93 - - col2 FROM tab1
----
152
161
189

query I rowsort
SELECT DISTINCT - 93 - col2 FROM tab1
----
-152
-161
-189

query II rowsort
SELECT DISTINCT col2 AS col2, col0 * - - col2 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT DISTINCT + + 97 FROM tab0 AS cor0 WHERE NOT + CAST( - 34 AS SIGNED ) * - col1 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + + 97 FROM tab0 AS cor0 WHERE NOT + CAST ( - 34 AS INTEGER ) * - col1 IS NULL
----
97

query I rowsort
SELECT DISTINCT + + col0 + - col1 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + + col0, col0 * + - col1 )
----

query I rowsort
SELECT DISTINCT + 97 * col2 FROM tab0
----
4559
9603
970

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE - 49 / - col2 - - ( - col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE - 49 / - col2 - - ( - col2 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT COUNT( 39 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2323
SELECT COUNT ( 39 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 57 FROM tab1 AS cor0 WHERE NOT 57 * - 39 + - col0 BETWEEN - col1 AND - col0 * - col1 * 13 + col1 * 78
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE 59 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2326
SELECT ALL - AVG ( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL - AVG ( ALL - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT MIN( + 38 ) + + 42 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT MIN ( + 38 ) + + 42 FROM tab1
----
80

query II rowsort
SELECT - 64 AS col2, - 41 AS col2 FROM tab1
----
-64
-41
-64
-41
-64
-41

query I rowsort
SELECT DISTINCT col1 + + col2 + + col2 FROM tab0 WHERE NOT - col1 = NULL
----

query II rowsort
SELECT - ( - col2 ) * + 70 + + + col1, - col1 AS col0 FROM tab0
----
3371
-81
6931
-1
721
-21

query I rowsort
SELECT 94 * - + 78 AS col1 FROM tab1
----
-7332
-7332
-7332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT + 45 / + col0 * + col0 * + col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT + 45 / + col0 * + col0 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2334
SELECT * FROM tab1 WHERE + - col1 + + + 59 < col2 * + 8 * - + CAST( col0 AS SIGNED ) - - 99 * - col0
----

skipif mysql # not compatible
query III rowsort label-2334
SELECT * FROM tab1 WHERE + - col1 + + + 59 < col2 * + 8 * - + CAST ( col0 AS INTEGER ) - - 99 * - col0
----

query I rowsort
SELECT ALL - - 64 FROM tab1 WHERE NOT + - col2 - - col2 NOT BETWEEN + col0 AND - col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL - 90 * - MAX( ALL - 54 ) AS col0 FROM tab1 AS cor0
----
-4860

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - 90 * - MAX ( ALL - 54 ) AS col0 FROM tab1 AS cor0
----
-4860

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN + 27 * + col0 - - ( ( col2 ) ) * + 45 AND - + 90 + 82
----

query I rowsort
SELECT + col2 * - - 9 FROM tab0 AS cor0
----
423
891
90

query II rowsort
SELECT 33, col0 + - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT DISTINCT + - 17 DIV + 51 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT + - 17 / + 51 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 12 - + - 23 AS col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT - + col1 * + ( + ( col2 ) ) - - - 70 FROM tab0 cor0
----
-169
-280
-3877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT ALL - 27 + - CAST( NULL AS SIGNED ) * - col2 / col2 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - 27 + - CAST ( NULL AS INTEGER ) * - col2 / col2 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT + + col1 - + col0 - - 79 - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT + + col1 - + col0 - - 79 - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 - - col1 AS col0, + 58 AS col2 FROM tab0 AS cor0
----
108
58
96
58
98
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT COUNT( * ) - - + ( + + 4 ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT COUNT ( * ) - - + ( + + 4 ) AS col1 FROM tab1
----
7

query I rowsort
SELECT ALL col0 * - - col1 AS col2 FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 18 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT + SUM( DISTINCT 69 ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT + SUM ( DISTINCT 69 ) AS col0 FROM tab1
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT NULL > NULL )
----

query I rowsort
SELECT DISTINCT + col0 * + col2 + - ( + - col1 ) FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2353
SELECT ALL CAST( NULL AS DECIMAL ) * + + 63 * col0 * - + col0 * 36 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL CAST ( NULL AS REAL ) * + + 63 * col0 * - + col0 * 36 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT + COUNT( * ) * - + COUNT( * ) FROM tab0 WHERE NOT - 8 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2354
SELECT + COUNT ( * ) * - + COUNT ( * ) FROM tab0 WHERE NOT - 8 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2355
SELECT DISTINCT CAST( col1 AS SIGNED ), col0 * ( col2 ) + - + col1 + 15 + + 10 DIV - 49 + - - 93 AS col0 FROM tab0
----
1
9710
21
957
81
732

skipif mysql # not compatible
query II rowsort label-2355
SELECT DISTINCT CAST ( col1 AS INTEGER ), col0 * ( col2 ) + - + col1 + 15 + + 10 / - 49 + - - 93 AS col0 FROM tab0
----
1
9710
21
957
81
732

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT - - COUNT( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT - - COUNT ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND col2 - - col1
----

query I rowsort
SELECT ALL + ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2360
SELECT ALL 28 + - 16 + - col0 FROM tab2 cor0 WHERE NULL = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL 28 + - 16 + - col0 FROM tab2 cor0 WHERE NULL = CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT SUM( ALL 41 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
123

skipif mysql # not compatible
query I rowsort label-2361
SELECT SUM ( ALL 41 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
123

query II rowsort
SELECT + 18, col0 + - 25 AS col1 FROM tab2 AS cor0
----
18
21
18
39
18
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + 37 * COUNT( - 74 ) FROM tab0 cor0
----
111

skipif mysql # not compatible
query I rowsort label-2363
SELECT + 37 * COUNT ( - 74 ) FROM tab0 cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL + COUNT( * ) + 88 - 94 FROM tab1 AS cor0 WHERE col1 IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + COUNT ( * ) + 88 - 94 FROM tab1 AS cor0 WHERE col1 IS NULL
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) - + - col2 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - ( - col1 ), + 82 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2366
SELECT - + COUNT( * ), + MIN( + - col1 ) * - 65 AS col2 FROM tab2 AS cor0
----
-3
5005

skipif mysql # not compatible
query II rowsort label-2366
SELECT - + COUNT ( * ), + MIN ( + - col1 ) * - 65 AS col2 FROM tab2 AS cor0
----
-3
5005

query I rowsort
SELECT + 44 * - 26 FROM tab1 AS cor0
----
-1144
-1144
-1144

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT 35 DIV - 54 + ( + 50 ) AS col1 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT 35 / - 54 + ( + 50 ) AS col1 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - COUNT( + + 76 ) + + 79 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2369
SELECT - COUNT ( + + 76 ) + + 79 FROM tab1 AS cor0
----
76

query I rowsort
SELECT + 87 + + + col1 * 63 * + 97 FROM tab0
----
128418
495078
6198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) / + + col0 + + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) / + + col0 + + col1 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT - MIN( - - 77 ) AS col1 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT - MIN ( - - 77 ) AS col1 FROM tab0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT ALL - CAST( + 37 AS SIGNED ) AS col0 FROM tab2
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - CAST ( + 37 AS INTEGER ) AS col0 FROM tab2
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT DISTINCT + COUNT( * ) * - + 79 + - AVG ( ALL - 63 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 44 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT + COUNT ( * ) * - + 79 + - AVG ( ALL - 63 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 44 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + col1 col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT + col1 + - 30 + col0 AS col0 FROM tab2
----
111
112
67

query II rowsort
SELECT DISTINCT + col2, 68 FROM tab2
----
23
68
40
68
58
68

query I rowsort
SELECT - col2 + - + col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL + col0 + + col2 AS col2 FROM tab2 cor0 WHERE NOT - col0 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < 27 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT + 33 * COUNT( * ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT + 33 * COUNT ( * ) FROM tab2 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2382
SELECT + CAST( NULL AS SIGNED ) * - col1 + + col1, 50 * - 94 AS col1 FROM tab2 cor0
----
NULL
-4700
NULL
-4700
NULL
-4700

skipif mysql # not compatible
query II rowsort label-2382
SELECT + CAST ( NULL AS INTEGER ) * - col1 + + col1, 50 * - 94 AS col1 FROM tab2 cor0
----
NULL
-4700
NULL
-4700
NULL
-4700

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT - - COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - - COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT - + AVG ( - 59 ) - CAST( NULL AS SIGNED ) * + 10 FROM tab1 AS cor0 WHERE col0 + - 37 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT - + AVG ( - 59 ) - CAST ( NULL AS INTEGER ) * + 10 FROM tab1 AS cor0 WHERE col0 + - 37 IS NOT NULL
----
NULL

query I rowsort
SELECT + - 14 + - - col1 FROM tab2 AS cor0
----
37
53
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT + col1 * col1 FROM tab0 cor0 WHERE + col2 * - col1 - + CAST( ( - 17 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2387
SELECT + col1 * col1 FROM tab0 cor0 WHERE + col2 * - col1 - + CAST ( ( - 17 ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col2 * 25 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL + 40 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT - 14 FROM tab2 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col2 FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL COUNT( + + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL COUNT ( + + col1 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT DISTINCT + - 90 DIV + ( + + col1 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT + - 90 / + ( + + col1 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT + ( - - col0 ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE + 6 - col2 * - - col1 / col2 NOT IN ( col0 / - col2 - + + 27 )
----
3

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE + 6 - col2 * - - col1 / col2 NOT IN ( col0 / - col2 - + + 27 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT MAX( DISTINCT - 75 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2396
SELECT MAX ( DISTINCT - 75 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - - ( - col0 ) * - 48 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 46 + + 4 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT col2 + - 5 FROM tab1
----
54
63
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT + COUNT( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2400
SELECT + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2401
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-2401
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2402
SELECT col0 AS col1, + ( - CAST( - - 5 AS SIGNED ) ) FROM tab1
----
51
-5
85
-5
91
-5

skipif mysql # not compatible
query II rowsort label-2402
SELECT col0 AS col1, + ( - CAST ( - - 5 AS INTEGER ) ) FROM tab1
----
51
-5
85
-5
91
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2403
SELECT ALL + CAST( NULL AS SIGNED ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2403
SELECT ALL + CAST ( NULL AS INTEGER ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE 4 NOT IN ( 28 / - ( + col1 ) * - col2 )
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 97 ) NOT BETWEEN - col1 AND - 60 AND - col1 BETWEEN + + col2 AND - col1 + - - col2 + + - col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT - CAST( 47 AS SIGNED ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - CAST ( 47 AS INTEGER ) FROM tab2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT - col2 + - - col2 + - 73 DIV - 72 col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2407
SELECT - col2 + - - col2 + - 73 / - 72 col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT - - COUNT( ALL col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - - COUNT ( ALL col1 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - 82 - col1 + + + 21 FROM tab1 AS cor0
----
-108
-66
-75

query I rowsort
SELECT - col1 + + col0 - + - 45 FROM tab2 AS cor0
----
32
40
53

query II rowsort
SELECT DISTINCT 90 - col1, 35 AS col0 FROM tab1
----
43
35
76
35
85
35

query I rowsort
SELECT DISTINCT + col2 - col0 * - + 84 FROM tab1 cor0
----
4380
7199
7712

query II rowsort
SELECT ALL + col2 - - + 48 AS col1, 22 * + - col0 FROM tab0 AS cor0
----
147
-2134
58
-1914
95
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL - + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL - + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= - + col2 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL - SUM( ALL - 78 ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - SUM ( ALL - 78 ) FROM tab2 AS cor0
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT - - col0 DIV + - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT - - col0 / + - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT DISTINCT + ( 98 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-2419
SELECT DISTINCT + ( 98 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
98
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL + COUNT( * ) * 10 AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + COUNT ( * ) * 10 AS col2 FROM tab2
----
30

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - + 44 ) * + - col1 + + + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE col2 + + CAST( + + col0 AS SIGNED ) + + 54 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE col2 + + CAST ( + + col0 AS INTEGER ) + + 54 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT 0, - col2 AS col0 FROM tab0
----
0
-10
0
-47
0
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT + - col2 * + 43 + - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1040
-1797
-2561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT + + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2428
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT MIN( + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2429
SELECT MIN ( + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 21 / - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2431
SELECT COUNT( * ), 11 * - 64 + + 19 DIV CAST( + ( + CAST( - 86 AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
-704

skipif mysql # not compatible
query II rowsort label-2431
SELECT COUNT ( * ), 11 * - 64 + + 19 / CAST ( + ( + CAST ( - 86 AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
-704

query I rowsort
SELECT DISTINCT col2 * + 41 * - - col1 FROM tab0
----
156087
4059
8610

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) * - COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) * - COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL - MAX( ALL - ( - col2 ) ) * 83 AS col0 FROM tab2
----
-4814

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - MAX ( ALL - ( - col2 ) ) * 83 AS col0 FROM tab2
----
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 WHERE - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 WHERE - col1 < NULL
----
0

query I rowsort
SELECT DISTINCT - + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT col2 + - - col2 DIV col2 + - 78 FROM tab1 AS cor0
----
-18
-9
19

skipif mysql # not compatible
query I rowsort label-2437
SELECT col2 + - - col2 / col2 + - 78 FROM tab1 AS cor0
----
-18
-9
19

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <> - col1
----

query I rowsort
SELECT - 76 + - + 24 + + - col1 + - col0 + - 75 * - + 72 + col0 AS col2 FROM tab0 AS cor0
----
5219
5279
5299

query I rowsort
SELECT ALL col2 * col0 + - col2 FROM tab0 AS cor0
----
658
860
9504

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT ( 37 BETWEEN ( + - col2 + + col0 ) AND - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 10 / + + 88 AS col1 FROM tab2 WHERE - + col1 = NULL
----

query I rowsort
SELECT DISTINCT 67 + + col1 FROM tab0
----
148
68
88

query I rowsort
SELECT - 82 * 98 FROM tab1
----
-8036
-8036
-8036

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 IS NULL
----

query I rowsort
SELECT - 42 * 54 FROM tab2 AS cor0
----
-2268
-2268
-2268

query II rowsort
SELECT - 15 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-15
14
-15
47
-15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2448
SELECT + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * + + ( ( + 97 ) ) * + col2 + + 62 col0 FROM tab1
----
102494
63015
72618

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - + MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2450
SELECT - + MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL SUM( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL SUM ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL - SUM( col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - SUM ( col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-2453
SELECT - + COUNT( * ) AS col0, SUM( ALL + + col2 ) FROM tab1 AS cor0
----
-3
223

skipif mysql # not compatible
query II rowsort label-2453
SELECT - + COUNT ( * ) AS col0, SUM ( ALL + + col2 ) FROM tab1 AS cor0
----
-3
223

query I rowsort
SELECT + 76 * + - col2 + + + col0 AS col1 FROM tab0 AS cor0
----
-3557
-673
-7427

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 15 * + - 45 + + col2 IN ( + 46 * col0, - col0 + col0, col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 15 * + - 45 + + col2 IN ( + 46 * col0, - col0 + col0, col1 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT + col2 * col2 + - + CAST( - 44 AS SIGNED ) * ( + col0 ) - col1 + 95 FROM tab2 AS cor0
----
2597
4434
6692

skipif mysql # not compatible
query I rowsort label-2456
SELECT + col2 * col2 + - + CAST ( - 44 AS INTEGER ) * ( + col0 ) - col1 + 95 FROM tab2 AS cor0
----
2597
4434
6692

query I rowsort
SELECT ALL + ( ( - 71 ) ) * + - col1 AS col2 FROM tab1 AS cor0
----
3337
355
994

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT ( - - ( + - SUM( + + col2 ) ) ) * + COUNT( * ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT ( - - ( + - SUM ( + + col2 ) ) ) * + COUNT ( * ) FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ( - 68 ) * + - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-2459
SELECT ( - 68 ) * + - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2
----
201

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 81 + - 48 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT + COUNT( ALL 95 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2461
SELECT + COUNT ( ALL 95 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + - 23 ) col0, + col2 FROM tab2
----
-23
23
-23
40
-23
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT COUNT( * ) * + 82 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-2463
SELECT COUNT ( * ) * + 82 FROM tab0
----
246

query I rowsort
SELECT ( 53 ) * - col2 FROM tab0
----
-2491
-5247
-530

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT + 53 DIV - + 21 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 53 / - + 21 FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL + - 31 * SUM( col2 ) * 87 AS col2 FROM tab2 cor0
----
-326337

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + - 31 * SUM ( col2 ) * 87 AS col2 FROM tab2 cor0
----
-326337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2467
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 / ( CAST( NULL AS SIGNED ) ) * col1 * - 91 > + + 82
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 / ( CAST ( NULL AS INTEGER ) ) * col1 * - 91 > + + 82
----
0

query I rowsort
SELECT 72 * col1 + - col1 FROM tab0
----
1491
5751
71

query I rowsort
SELECT - - 7 AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 56 col2 FROM tab0 cor0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( col1 * + col2 - 17, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT + 92 + + + 43 + 72 - + SUM( + col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
516

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + 92 + + + 43 + 72 - + SUM ( + col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
516

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( + 96, + col1 * 57 * + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL + SUM( + col2 ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2474
SELECT ALL + SUM ( + col2 ) col0 FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT 93 DIV - 85 - + - 29 FROM tab0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2475
SELECT 93 / - 85 - + - 29 FROM tab0
----
28
28
28

query III rowsort
SELECT * FROM tab0 WHERE 99 - + col2 * col2 IS NULL
----

query I rowsort
SELECT ALL col2 / col1 AS col2 FROM tab0 WHERE NOT - col1 * + col0 + - col2 * + - col0 NOT IN ( + - col2 )
----

query II rowsort
SELECT + 91 + - col2, + col2 FROM tab2
----
33
58
51
40
68
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT DISTINCT + ( + + ( + + 91 ) ) * COUNT( * ), COUNT( * ) AS col0 FROM tab0
----
273
3

skipif mysql # not compatible
query II rowsort label-2479
SELECT DISTINCT + ( + + ( + + 91 ) ) * COUNT ( * ), COUNT ( * ) AS col0 FROM tab0
----
273
3

query I rowsort
SELECT + 57 + col1 FROM tab0
----
138
58
78

query I rowsort
SELECT col1 * - col2 + col1 + + col1 AS col1 FROM tab1
----
-1316
-285
-3102

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > 83
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT + COUNT( - 3 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2483
SELECT + COUNT ( - 3 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT - COUNT( * ) AS col1, - 93 AS col2 FROM tab1 AS cor0
----
-3
-93

skipif mysql # not compatible
query II rowsort label-2484
SELECT - COUNT ( * ) AS col1, - 93 AS col2 FROM tab1 AS cor0
----
-3
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2485
SELECT + CAST( + ( COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2485
SELECT + CAST ( + ( COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + + col2, + col0 - - col1 + 59 FROM tab1 cor0
----
59
149
68
197
96
124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2487
SELECT DISTINCT - col1 AS col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2487
SELECT DISTINCT - col1 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 69 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL - COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT - - CAST( - 74 AS SIGNED ) FROM tab2 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2490
SELECT - - CAST ( - 74 AS INTEGER ) FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - col1 * + + 93 FROM tab2 AS cor0
----
-4743
-6231
-7161

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = 18 - 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 > + - 10
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT DISTINCT - 65 AS col2, MIN( + col1 ) AS col2 FROM tab0
----
-65
1

skipif mysql # not compatible
query II rowsort label-2495
SELECT DISTINCT - 65 AS col2, MIN ( + col1 ) AS col2 FROM tab0
----
-65
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( 80 ) * + - 87 + - - 15 + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ( - - MAX( DISTINCT - - col1 ) ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2497
SELECT ( - - MAX ( DISTINCT - - col1 ) ) AS col1 FROM tab2
----
77

query I rowsort
SELECT ALL 11 + + 96 FROM tab2 AS cor0
----
107
107
107

onlyif mysql # aggregate syntax: 
query III rowsort label-2499
SELECT COUNT( * ) AS col2, + MAX( - + ( + 24 ) ) AS col0, - 96 col0 FROM tab0 AS cor0
----
3
-24
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2499
SELECT COUNT ( * ) AS col2, + MAX ( - + ( + 24 ) ) AS col0, - 96 col0 FROM tab0 AS cor0
----
3
-24
-96

query I rowsort
SELECT + 90 * + + col1 FROM tab1 AS cor0
----
1260
4230
450

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - SUM( ALL + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - SUM ( ALL + col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - 88 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

skipif mysql # not compatible
query I rowsort label-2503
SELECT - 88 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

query I rowsort
SELECT ALL + 74 + col0 FROM tab0 AS cor0
----
161
171
89

query I rowsort
SELECT DISTINCT + col1 + + + col1 AS col1 FROM tab2 cor0
----
102
134
154

query I rowsort
SELECT + - 51 * + col2 + - + col0 + + 88 + - 87 * col2 AS col0 FROM tab1 AS cor0
----
-13211
-8139
-9387

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 88 + + - 82 IS NULL
----

query I rowsort
SELECT ALL col1 + + ( + 68 ) + - col1 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2509
SELECT - col1 FROM tab1 AS cor0 WHERE - CAST( 8 AS DECIMAL ) / + 66 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2509
SELECT - col1 FROM tab1 AS cor0 WHERE - CAST ( 8 AS REAL ) / + 66 IS NULL
----

query I rowsort
SELECT ALL 21 FROM tab0 WHERE NULL >= + - col2 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL - col0 DIV - col2 - - - 13 AS col2 FROM tab2
----
-11
-12
-12

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - col0 / - col2 - - - 13 AS col2 FROM tab2
----
-11
-12
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT DISTINCT + 88 * + CAST( NULL AS SIGNED ) / - 17 * + MIN( - 75 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + 88 * + CAST ( NULL AS INTEGER ) / - 17 * + MIN ( - 75 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT 34 * + ( COUNT( DISTINCT col0 ) ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT 34 * + ( COUNT ( DISTINCT col0 ) ) FROM tab1
----
102

query I rowsort
SELECT 97 * + col1 AS col2 FROM tab1
----
1358
4559
485

onlyif mysql # DIV for integer division: 
query I rowsort label-2515
SELECT DISTINCT 0 DIV + col0 - + - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT 0 / + col0 - + - col0 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN - + ( - col1 ) + + col1 AND NULL
----

query I rowsort
SELECT ( + 36 ) * col2 AS col0 FROM tab0
----
1692
3564
360

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + - 63 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * - + ( - 61 ) * col0 FROM tab0
----
13725
461709
573949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 col2 FROM tab0
----
100
128
31

query I rowsort
SELECT + col2 - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + col1 - + col0 * col0 AS col2, - 40 FROM tab2 AS cor0
----
-2065
-40
-4019
-40
-5558
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL + + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL + + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 51 * + 54 - - col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT DISTINCT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2525
SELECT DISTINCT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT DISTINCT col1 DIV + 51 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT col1 / + 51 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT + 41 * 34 DIV - col0 AS col2 FROM tab0
----
-14
-16
-92

skipif mysql # not compatible
query I rowsort label-2527
SELECT + 41 * 34 / - col0 AS col2 FROM tab0
----
-14
-16
-92

query I rowsort
SELECT ALL - ( + col0 ) * + col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT DISTINCT + ( col1 ) DIV - - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + ( col1 ) / - - col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + + MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2530
SELECT + + MAX ( col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - + MIN( DISTINCT + 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - + MIN ( DISTINCT + 80 ) FROM tab2 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2532
SELECT ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL - SUM( + col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - SUM ( + col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT + col0 * - CAST( + - 14 AS SIGNED ) AS col2 FROM tab2
----
1050
644
896

skipif mysql # not compatible
query I rowsort label-2534
SELECT + col0 * - CAST ( + - 14 AS INTEGER ) AS col2 FROM tab2
----
1050
644
896

query I rowsort
SELECT DISTINCT + ( - + 99 ) AS col0 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + COUNT( DISTINCT - col1 ) AS col1 FROM tab0 WHERE NOT - 63 + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT + COUNT ( DISTINCT - col1 ) AS col1 FROM tab0 WHERE NOT - 63 + col1 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col2 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT ( - col1 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL <> - 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 27 / + + 57 + - col0 AS col2 FROM tab2 WHERE ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 27 / + + 57 + - col0 AS col2 FROM tab2 WHERE ( NULL IS NULL )
----
NULL

query I rowsort
SELECT col0 * + col1 * - col2 FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT + MAX( ALL + + col1 ) col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2542
SELECT DISTINCT + MAX ( ALL + + col1 ) col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2543
SELECT DISTINCT + - SUM( ALL + col1 ) + + - 4 col1, - 58 FROM tab2 cor0
----
-199
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2543
SELECT DISTINCT + - SUM ( ALL + col1 ) + + - 4 col1, - 58 FROM tab2 cor0
----
-199
-58

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE - + 81 <> - 19
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT DISTINCT col2 DIV + col0 + - + col1 AS col1 FROM tab0
----
-21
-78
0

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT col2 / + col0 + - + col1 AS col1 FROM tab0
----
-21
-78
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 * + - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ALL MIN( DISTINCT 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL MIN ( DISTINCT 69 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT - - 79 * - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-4080
-5360
-6160

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT ALL ( - col1 ) * col0 DIV - + 96 + + col0 FROM tab1 AS cor0
----
135
58
89

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL ( - col1 ) * col0 / - + 96 + + col0 FROM tab1 AS cor0
----
135
58
89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL + MIN( - 11 ) AS col0 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + MIN ( - 11 ) AS col0 FROM tab0 AS cor0
----
-11

query II rowsort
SELECT DISTINCT + col1 + - ( - col2 ) + - 93 AS col0, col1 FROM tab2 AS cor0
----
-19
51
24
77
32
67

query I rowsort
SELECT ALL col2 + - + col1 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT + 78 - + - ( - COUNT( * ) ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + 78 - + - ( - COUNT ( * ) ) FROM tab0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT + ( + 71 ) + - col1 DIV + col2 AS col2 FROM tab0
----
69
70
71

skipif mysql # not compatible
query I rowsort label-2555
SELECT + ( + 71 ) + - col1 / + col2 AS col2 FROM tab0
----
69
70
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2556
SELECT ALL 4 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL 4 + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2558
SELECT DISTINCT 71 - COUNT( * ) DIV - 90 AS col1 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT 71 - COUNT ( * ) / - 90 AS col1 FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2559
SELECT DISTINCT - ( COUNT( * ) ) AS col0, 89 AS col2 FROM tab1
----
-3
89

skipif mysql # not compatible
query II rowsort label-2559
SELECT DISTINCT - ( COUNT ( * ) ) AS col0, 89 AS col2 FROM tab1
----
-3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT + 61 * COUNT( * ) col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2560
SELECT + 61 * COUNT ( * ) col2 FROM tab0 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2561
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > - - col2 * col1 * - + CAST( + + col2 AS SIGNED ) * + + col0 + - 83
----

skipif mysql # not compatible
query III rowsort label-2561
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > - - col2 * col1 * - + CAST ( + + col2 AS INTEGER ) * + + col0 + - 83
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT - ( ( + + 9 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL + 88 * + 0 * 5 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col2 FROM tab2
----
86
86
86

query I rowsort
SELECT - 64 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL + - SUM( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL + - SUM ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 30 ) * + col2 + col2 col0 FROM tab2 AS cor0
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - + MIN( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2571
SELECT - + MIN ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + + ( + 59 ) AS col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT + ( - + col2 ), - 57 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT DISTINCT - col0 * + CAST( col0 AS SIGNED ) col2 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT DISTINCT - col0 * + CAST ( col0 AS INTEGER ) col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT + col1 + col1 AS col0 FROM tab0 WHERE NOT - + 70 - 86 * col1 IS NULL
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT ALL CAST( NULL AS SIGNED ) / - CAST( + 68 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL CAST ( NULL AS INTEGER ) / - CAST ( + 68 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT DISTINCT col0 DIV 75 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT col0 / 75 AS col0 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - + SUM( DISTINCT - - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2579
SELECT - + SUM ( DISTINCT - - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL + ( + 72 ) AS col1 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT + + MAX( DISTINCT + 42 ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2581
SELECT + + MAX ( DISTINCT + 42 ) AS col2 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT + + col2 * + - col2 + ( - 59 ) AS col0 FROM tab0 AS cor0
----
-159
-2268
-9860

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 54 / 9
----

query I rowsort
SELECT + 61 + - 66 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT col0 + col1 + + col2 AS col2 FROM tab0 cor0
----
118
143
197

query II rowsort
SELECT - 61 * + 15 * col0 * 6 + col1 AS col1, ( + col2 ) FROM tab1 AS cor0
----
-279976
96
-466645
59
-499543
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + 92 + - + COUNT( * ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2587
SELECT + 92 + - + COUNT ( * ) FROM tab1 AS cor0
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-2588
SELECT DISTINCT 92, col2 DIV - 89 AS col2 FROM tab0 AS cor0
----
92
-1
92
0

skipif mysql # not compatible
query II rowsort label-2588
SELECT DISTINCT 92, col2 / - 89 AS col2 FROM tab0 AS cor0
----
92
-1
92
0

query I rowsort
SELECT DISTINCT - - ( + col1 ) + - col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND col0 / + + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT MAX( - col0 ) + MIN( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-2590
SELECT MAX ( - col0 ) + MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-147

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - col0 > + + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 82 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - 18 + - col0 AS col0 FROM tab2
----
-64
-82
-93

query II rowsort
SELECT ALL - 79 AS col0, + 70 * - col0 AS col0 FROM tab1
----
-79
-3570
-79
-5950
-79
-6370

query II rowsort
SELECT 75 AS col0, + 68 FROM tab0
----
75
68
75
68
75
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 / + col0 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT - CAST( 83 AS SIGNED ) FROM tab0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-2597
SELECT - CAST ( 83 AS INTEGER ) FROM tab0
----
-83
-83
-83

query I rowsort
SELECT ( - + col0 ) * 47 FROM tab0
----
-4089
-4559
-705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT - SUM( ALL CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
NULL

query I rowsort
SELECT - ( + 75 ) FROM tab0 AS cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT ALL + CAST( - 89 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + CAST ( - 89 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - 98 FROM tab2 cor0
----
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < - col0 * - col2 + + col1 * - col2
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2604
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = - - 33 - - + col2 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2604
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = - - 33 - - + col2 * - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 89 AND - 3 - - col0 * col0 / - + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + SUM( DISTINCT - 29 ) AS col1 FROM tab1 cor0 WHERE NOT col1 < + + col2 * - col0
----
-29

skipif mysql # not compatible
query I rowsort label-2606
SELECT + SUM ( DISTINCT - 29 ) AS col1 FROM tab1 cor0 WHERE NOT col1 < + + col2 * - col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT col0 * + 43 - - + col2 - - col0 + - CAST( col1 AS SIGNED ) * + ( 64 ) * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
277868
31058
48132

skipif mysql # not compatible
query I rowsort label-2607
SELECT col0 * + 43 - - + col2 - - col0 + - CAST ( col1 AS INTEGER ) * + ( 64 ) * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
277868
31058
48132

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT col2 AS col0, 85 AS col0 FROM tab0
----
10
85
47
85
99
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL SUM( ALL - - 48 ) FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL SUM ( ALL - - 48 ) FROM tab2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL - SUM( ALL + col0 ) * + 16 + - ( + 61 ) AS col2 FROM tab0
----
-3245

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - SUM ( ALL + col0 ) * + 16 + - ( + 61 ) AS col2 FROM tab0
----
-3245

onlyif mysql # aggregate syntax: 
query II rowsort label-2612
SELECT DISTINCT - - 6 AS col2, - SUM( ALL + + col1 ) FROM tab1 AS cor0
----
6
-66

skipif mysql # not compatible
query II rowsort label-2612
SELECT DISTINCT - - 6 AS col2, - SUM ( ALL + + col1 ) FROM tab1 AS cor0
----
6
-66

query I rowsort
SELECT ALL 42 * + 66 + col1 * - 72 + col2 AS col2 FROM tab1 cor0
----
-544
1860
2471

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT - + COUNT( * ) + - COUNT( * ) + - 7 AS col0, 45 FROM tab1 cor0
----
-13
45

skipif mysql # not compatible
query II rowsort label-2614
SELECT - + COUNT ( * ) + - COUNT ( * ) + - 7 AS col0, 45 FROM tab1 cor0
----
-13
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT 61 - col0 + + CAST( + col1 AS SIGNED ) * + col1 * 46 + - 7 + + + col1 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 30 * + col2 * - 90
----

skipif mysql # not compatible
query I rowsort label-2615
SELECT 61 - col0 + + CAST ( + col1 AS INTEGER ) * + col1 * 46 + - 7 + + + col1 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 30 * + col2 * - 90
----

query I rowsort
SELECT ALL - col0 - + + 11 FROM tab2
----
-57
-75
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT MAX( DISTINCT + 93 ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2617
SELECT MAX ( DISTINCT + 93 ) AS col2 FROM tab2
----
93

query I rowsort
SELECT - - 49 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - + col2 FROM tab0 cor0 WHERE 89 NOT BETWEEN NULL AND + + col2
----
-10
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - COUNT( * ) - - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT - COUNT ( * ) - - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) - - + col2 + 83 IS NOT NULL OR + + col1 = + col2
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - - + col2 + 83 IS NOT NULL OR + + col1 = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT + col2 - col0 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT + col2 - col0 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) - 35 FROM tab2 AS cor0
----
16
32
42

query I rowsort
SELECT + + 9 AS col0 FROM tab1 cor0
----
9
9
9

query I rowsort
SELECT ALL + + col2 FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT col2 DIV 21 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2626
SELECT col2 / 21 AS col0 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT 66 * + 65 FROM tab1
----
4290
4290
4290

onlyif mysql # aggregate syntax: 
query II rowsort label-2628
SELECT DISTINCT 33 AS col0, MIN( DISTINCT + + col1 ) AS col2 FROM tab0
----
33
1

skipif mysql # not compatible
query II rowsort label-2628
SELECT DISTINCT 33 AS col0, MIN ( DISTINCT + + col1 ) AS col2 FROM tab0
----
33
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - 13 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 1 * col0 * col1 NOT BETWEEN ( - 49 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 49 * - col0 AS col1 FROM tab2 AS cor0
----
2254
3136
3675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2632
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT ALL ( - CAST( - AVG ( 77 ) AS SIGNED ) ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL ( - CAST ( - AVG ( 77 ) AS INTEGER ) ) FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT DISTINCT - MIN( col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT - MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT DISTINCT - ( - COUNT( * ) ) DIV COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT - ( - COUNT ( * ) ) / COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL - MAX( ALL + + 95 ) AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - MAX ( ALL + + 95 ) AS col2 FROM tab0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - - col0 ) col0 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - MIN( ( + 60 ) ) AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2639
SELECT - MIN ( ( + 60 ) ) AS col2 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2640
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( * ) + + - 24 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + - 24 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + 93 FROM tab1 AS cor0
----
46
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < + ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < + ( 94 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL SUM( 16 ) FROM tab0, tab0 cor0
----
144

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL SUM ( 16 ) FROM tab0, tab0 cor0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2644
SELECT + CAST( NULL AS SIGNED ) + 77, - col0 * - col0 AS col2 FROM tab0
----
NULL
225
NULL
7569
NULL
9409

skipif mysql # not compatible
query II rowsort label-2644
SELECT + CAST ( NULL AS INTEGER ) + 77, - col0 * - col0 AS col2 FROM tab0
----
NULL
225
NULL
7569
NULL
9409

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab1 WHERE NOT + 28 <= + ( - - col2 ) * - + 92
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT 96 + - - COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT 96 + - - COUNT ( * ) FROM tab2
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col1 FROM tab1
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2648
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab0, tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2648
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0, tab2 AS cor0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - MIN( - + ( 2 ) ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-2649
SELECT - MIN ( - + ( 2 ) ) FROM tab2
----
2

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 74 col2 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT - + COUNT( * ) * 44 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-2652
SELECT - + COUNT ( * ) * 44 FROM tab1 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT - SUM( + col1 ) * 28 * 7 AS col2 FROM tab1 AS cor0
----
-12936

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT - SUM ( + col1 ) * 28 * 7 AS col2 FROM tab1 AS cor0
----
-12936

query I rowsort
SELECT ALL col0 - - col2 * 55 FROM tab2
----
1311
2264
3265

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT ALL - COUNT( * ) AS col1, ( MIN( ALL + - 45 ) ) * - 28 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
1263

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL - COUNT ( * ) AS col1, ( MIN ( ALL + - 45 ) ) * - 28 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
1263

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 32 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 65 BETWEEN + 20 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NOT - col2 NOT IN ( + col0 - + + CAST( col1 AS SIGNED ) * - col2, + col0 ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2658
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NOT - col2 NOT IN ( + col0 - + + CAST ( col1 AS INTEGER ) * - col2, + col0 ) )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2659
SELECT DISTINCT + MAX( + col1 ) AS col1, MAX( ALL - 77 ) AS col2 FROM tab0
----
81
-77

skipif mysql # not compatible
query II rowsort label-2659
SELECT DISTINCT + MAX ( + col1 ) AS col1, MAX ( ALL - 77 ) AS col2 FROM tab0
----
81
-77

query II rowsort
SELECT + ( - 38 ), + col1 FROM tab1
----
-38
14
-38
47
-38
5

query I rowsort
SELECT DISTINCT col2 * - col2 + 25 AS col1 FROM tab1 AS cor0
----
-3456
-4599
-9191

query I rowsort
SELECT + 52 AS col1 FROM tab2 cor0
----
52
52
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2663
SELECT ALL + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) / 76 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) / 76 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 61 IS NULL
----

query I rowsort
SELECT ALL col1 * - 79 - - col0 AS col1 FROM tab2 cor0
----
-3983
-5218
-6019

query I rowsort
SELECT ALL 28 * - 63 + + 47 FROM tab1 AS cor0
----
-1717
-1717
-1717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 + - col0 col1 FROM tab0 cor0
----
-154
-164
-82

query I rowsort
SELECT ALL - - 8 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT + 39 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2671
SELECT ALL 79 + 62, - col0 DIV - 10 + + - ( + + col0 ) + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0
----
141
-166
141
-185
141
-29

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL 79 + 62, - col0 / - 10 + + - ( + + col0 ) + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0
----
141
-166
141
-185
141
-29

query I rowsort
SELECT ALL - col0 * - - 69 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT 1 DIV col0 + + + 22 FROM tab0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-2673
SELECT 1 / col0 + + + 22 FROM tab0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT COUNT( * ) * - 92 AS col2 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT COUNT ( * ) * - 92 AS col2 FROM tab1
----
-276

query I rowsort
SELECT DISTINCT - 62 - - col1 * + 23 FROM tab2
----
1111
1479
1709

query I rowsort
SELECT - 7 + + col1 FROM tab1
----
-2
40
7

query II rowsort
SELECT ALL col0, col0 - col1 FROM tab1
----
51
37
85
80
91
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2678
SELECT * FROM tab0 AS cor0 WHERE CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2678
SELECT * FROM tab0 AS cor0 WHERE CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - SUM( + + 64 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-576

skipif mysql # not compatible
query I rowsort label-2679
SELECT - SUM ( + + 64 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-576

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2680
SELECT * FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2680
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2681
SELECT DISTINCT 26 DIV + col2 + - col2 AS col1 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT 26 / + col2 + - col2 AS col1 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + COUNT( * ) col0 FROM tab1 cor0 WHERE NOT + 81 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2682
SELECT + COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT + 81 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - MIN( ALL + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2683
SELECT - MIN ( ALL + col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 * + - 71 FROM tab2 AS cor0
----
-113600
-238844
-37559

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2686
SELECT ALL ( - 67 ), - CAST( col0 AS SIGNED ) + ( + col1 ) - - 54 + col1 AS col0 FROM tab1 AS cor0
----
-67
-21
-67
31
-67
57

skipif mysql # not compatible
query II rowsort label-2686
SELECT ALL ( - 67 ), - CAST ( col0 AS INTEGER ) + ( + col1 ) - - 54 + col1 AS col0 FROM tab1 AS cor0
----
-67
-21
-67
31
-67
57

query I rowsort
SELECT 3 * + col0 FROM tab1 AS cor0
----
153
255
273

query I rowsort
SELECT DISTINCT - ( - - 13 ) * - 69 + - 46 FROM tab0 WHERE NOT - - 66 IS NULL
----
851

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT - 12 * - COUNT( * ) * + + SUM( ALL + 47 ) FROM tab0
----
5076

skipif mysql # not compatible
query I rowsort label-2689
SELECT - 12 * - COUNT ( * ) * + + SUM ( ALL + 47 ) FROM tab0
----
5076

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT MAX( - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2690
SELECT MAX ( - col2 ) AS col1 FROM tab2
----
-23

query II rowsort
SELECT DISTINCT col0 AS col1, - 2 FROM tab0
----
15
-2
87
-2
97
-2

query I rowsort
SELECT ALL 18 * + - col1 FROM tab0
----
-1458
-18
-378

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 < + col1 * - ( col1 ) - + + 6 + - 65
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + col1 > - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 44 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - col0 ) * + 92 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT ALL + 94 * - col1 * - + col1 FROM tab0
----
41454
616734
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT ALL 14 FROM tab2 WHERE ( NOT NULL < + ( - - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL 14 FROM tab2 WHERE ( NOT NULL < + ( - - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT - 61 * + - 85 AS col0 FROM tab0
----
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT MIN( + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT MIN ( + - col1 ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT - - 59, col1 FROM tab2 cor0
----
59
51
59
67
59
77

query I rowsort
SELECT - col2 * col1 + 17 * 91 FROM tab0
----
-2260
1337
1448

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - COUNT( * ) * 80 + - 86 FROM tab1
----
-326

skipif mysql # not compatible
query I rowsort label-2703
SELECT - COUNT ( * ) * 80 + - 86 FROM tab1
----
-326

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( - col2 ) * - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL MIN( DISTINCT - 19 ) col1 FROM tab2
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2705
SELECT ALL MIN ( DISTINCT - 19 ) col1 FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2706
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND + CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-2706
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND + CAST ( NULL AS INTEGER ) * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col1 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - col0 + 3 FROM tab1
----
-48
-82
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - 31 FROM tab1
----
-1581
-2635
-2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT DISTINCT + col2 FROM tab1 WHERE col0 - + col2 >= ( - col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT + col2 FROM tab1 WHERE col0 - + col2 >= ( - col1 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - ( - col0 ) + - 75 FROM tab1
----
-24
10
16

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 16 col0 FROM tab0
----
1392
1552
240

query I rowsort
SELECT ALL 11 * col0 AS col2 FROM tab2
----
506
704
825

query I rowsort
SELECT ALL - col2 * + col1 FROM tab2 WHERE ( NULL ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT MIN( col2 ) * - 4 AS col2 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-2718
SELECT MIN ( col2 ) * - 4 AS col2 FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT - ( COUNT( * ) ) * + 79 AS col1 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - ( COUNT ( * ) ) * + 79 AS col1 FROM tab0
----
-237

query I rowsort
SELECT DISTINCT + 5 * 15 FROM tab1
----
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( - 41 ) + - 99 * - 57 ) > ( + 76 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 WHERE NOT - col0 - - 71 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - col0 * col1 AS col2 FROM tab0 WHERE NOT 97 * - 99 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2724
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2724
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT - COUNT( ALL - ( + col2 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2725
SELECT - COUNT ( ALL - ( + col2 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT 18 DIV col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2726
SELECT 18 / col2 FROM tab0 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT SUM( DISTINCT - ( col1 ) ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-2727
SELECT SUM ( DISTINCT - ( col1 ) ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-106

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 50 + - 87 * + ( 26 * + col0 ) BETWEEN + 71 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 46 NOT IN ( col1 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 26 * + col2 FROM tab2 AS cor0 WHERE - 21 >= ( NULL )
----

query I rowsort
SELECT - col2 * + 89 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 94 AS col0 FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + + MAX( - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2734
SELECT + + MAX ( - col2 ) FROM tab2 cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 57 * - col0 < col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( ( + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 + - col0 AND - 27
----

query I rowsort
SELECT + col2 * col1 AS col1 FROM tab0 WHERE NOT col2 < - col1
----
210
3807
99

query I rowsort
SELECT col0 * - + 79 AS col1 FROM tab1
----
-4029
-6715
-7189

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT - ( - col2 ) DIV - 16 AS col2 FROM tab0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT - ( - col2 ) / - 16 AS col2 FROM tab0
----
-2
-6
0

query I rowsort
SELECT col1 * 68 AS col2 FROM tab2
----
3468
4556
5236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT DISTINCT - CAST( - - 19 AS SIGNED ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - CAST ( - - 19 AS INTEGER ) FROM tab2
----
-19

query I rowsort
SELECT col0 * - 14 AS col1 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT ALL col2 * + + col0 AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL - col1 * - - col1 AS col0 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col1 <> NULL OR col0 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - + ( - 69 ) + col1 AS col1 FROM tab1 AS cor0
----
116
74
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT CAST( - ( + 47 ) AS SIGNED ) * - 89 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 48 AND - 44 + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT CAST ( - ( + 47 ) AS INTEGER ) * - 89 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 48 AND - 44 + col0
----

query I rowsort
SELECT 3 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-56
-65
-93

query I rowsort
SELECT DISTINCT + 80 * col0 * - col0 + col2 FROM tab2
----
-169257
-327640
-449942

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + COUNT( + + 16 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2754
SELECT + COUNT ( + + 16 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT - col0 DIV + ( 52 ) AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT - col0 / + ( 52 ) AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL - 84 AS col2 FROM tab0 cor0
----
-84
-84
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL SUM( col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL - COUNT( * ) + 61 FROM tab1 cor0
----
58

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - COUNT ( * ) + 61 FROM tab1 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 52 - + + col2 AS col0 FROM tab0 cor0
----
-151
-62
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - + CAST( NULL AS SIGNED ) ) AND ( + col1 * 1 )
----

skipif mysql # not compatible
query I rowsort label-2763
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - + CAST ( NULL AS INTEGER ) ) AND ( + col1 * 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ( + - COUNT( * ) ) - - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT ( + - COUNT ( * ) ) - - COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT ALL 14 - 75 AS col0, 7 AS col0 FROM tab2
----
-61
7
-61
7
-61
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT 92 + - - col2 DIV col2 + - 1 + + col0 AS col0 FROM tab1
----
143
177
183

skipif mysql # not compatible
query I rowsort label-2766
SELECT 92 + - - col2 / col2 + - 1 + + col0 AS col0 FROM tab1
----
143
177
183

query I rowsort
SELECT col0 + + + 9 AS col1 FROM tab2
----
55
73
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL + 44 - + SUM( - col1 ) AS col0 FROM tab2
----
239

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + 44 - + SUM ( - col1 ) AS col0 FROM tab2
----
239

query I rowsort
SELECT ( - - col2 ) + - col1 AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - ( 47 ) AS col1 FROM tab0 WHERE ( - + col2 ) IS NULL
----

query I rowsort
SELECT 18 + - col1 * + col2 FROM tab1
----
-1326
-277
-3178

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT 58 * + 32 + col1 DIV - ( col2 ) AS col2 FROM tab2
----
1854
1855
1855

skipif mysql # not compatible
query I rowsort label-2772
SELECT 58 * + 32 + col1 / - ( col2 ) AS col2 FROM tab2
----
1854
1855
1855

query III rowsort
SELECT * FROM tab0 WHERE ( 30 * + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL - 17 - + SUM( ALL + ( + col1 ) ) FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - 17 - + SUM ( ALL + ( + col1 ) ) FROM tab0
----
-120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 = + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 * - + ( + col1 ) * - 59 + col2 * 99 + + 47 FROM tab0 AS cor0
----
-11353
-219913
4007

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= 26
----
0

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= 26
----
0

query I rowsort
SELECT DISTINCT + + 92 AS col1 FROM tab1 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL + - SUM( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + - SUM ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 84 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - ( - 91 ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT 11 FROM tab0 WHERE NOT ( + 18 ) IS NULL
----
11
11
11

query I rowsort
SELECT + 98 FROM tab2 AS cor0 WHERE NOT + col0 < NULL
----

query II rowsort
SELECT ALL - + col1, col1 + - - 12 AS col0 FROM tab1 AS cor0
----
-14
26
-47
59
-5
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 13 col2, + col0 FROM tab1 AS cor0
----
13
51
13
85
13
91

query I rowsort
SELECT DISTINCT - - 5 FROM tab2 AS cor0 WHERE NOT NULL < - 49
----

query III rowsort
SELECT col2 AS col1, + col1 * - 3 AS col1, col0 FROM tab0 AS cor0
----
9 values hashing to 313979a032d0e46b40335cd98e525d09

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 28 NOT IN ( col1, - col2 / - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT - 38 > + - ( + - 44 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2789
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT - 38 > + - ( + - 44 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - - MAX( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2790
SELECT - - MAX ( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
75

query II rowsort
SELECT - 23, 47 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 ) < NULL
----

query I rowsort
SELECT DISTINCT - 65 * col0 FROM tab0 AS cor0
----
-5655
-6305
-975

query II rowsort
SELECT ALL col0, + 21 FROM tab2
----
46
21
64
21
75
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 BETWEEN + + 55 AND - - 73 + col2 + - col2
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 BETWEEN + + 55 AND - - 73 + col2 + - col2
----
NULL
NULL

query I rowsort
SELECT col2 + + - 99 FROM tab0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL + 89 + COUNT( * ) col1 FROM tab0 WHERE NOT ( col0 ) IN ( 9 )
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2796
SELECT ALL + 89 + COUNT ( * ) col1 FROM tab0 WHERE NOT ( col0 ) IN ( 9 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT + MIN( - + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + MIN ( - + col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT 88 * - COUNT( * ) AS col2 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-2798
SELECT 88 * - COUNT ( * ) AS col2 FROM tab0
----
-264

query I rowsort
SELECT + 75 AS col1 FROM tab1 WHERE NOT ( 60 IS NULL )
----
75
75
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / - col0 <> ( - - col0 )
----

query I rowsort
SELECT DISTINCT + + col0 + + col1 AS col2 FROM tab2 WHERE NOT col2 / + 65 = NULL
----

query I rowsort
SELECT ALL 4 * - col2 FROM tab1 AS cor0
----
-236
-272
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT ALL - col0 + col2 DIV col0 FROM tab0 AS cor0
----
-12
-87
-96

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - col0 + col2 / col0 FROM tab0 AS cor0
----
-12
-87
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2804
SELECT * FROM tab1 AS cor0 WHERE 47 = - - 70 * col1 + 74 + + col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2804
SELECT * FROM tab1 AS cor0 WHERE 47 = - - 70 * col1 + 74 + + col0 + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + 2 AS col1, 93 AS col0 FROM tab0 AS cor0
----
2
93
2
93
2
93

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + 28, - col2 + + 67 + 29 * + col1 / ( - col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2807
SELECT ALL COUNT( * ) DIV - 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL COUNT ( * ) / - 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT col0 + - - 12 FROM tab2
----
58
76
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT - 45 * 80 + + COUNT( + - col1 ) FROM tab0 AS cor0
----
-3597

skipif mysql # not compatible
query I rowsort label-2809
SELECT - 45 * 80 + + COUNT ( + - col1 ) FROM tab0 AS cor0
----
-3597

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - 58 + - - COUNT( * ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2810
SELECT - 58 + - - COUNT ( * ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT ALL + - 50 * - 27 * col1 AS col1 FROM tab2 AS cor0
----
103950
68850
90450

query I rowsort
SELECT col0 + 35 * col2 - col0 FROM tab1 cor0
----
2065
2380
3360

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NULL BETWEEN col0 * - col1 + + - 38 AND + col1 + + col0
----

query I rowsort
SELECT DISTINCT - col0 + - 57 AS col2 FROM tab2 AS cor0
----
-103
-121
-132

query I rowsort
SELECT - - AVG ( ALL + col0 ) FROM tab1 WHERE + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2816
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 86 * + ( + col0 ) * - col1 - + 33 FROM tab2
----
-201789
-423841
-432183

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - 44 - - - COUNT( * ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-2818
SELECT - 44 - - - COUNT ( * ) FROM tab0
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + + ( + col2 ) + + + 65 * - 71 * + 83 * col1 ) < 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2820
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - + CAST( + col0 AS SIGNED ) / 46 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2820
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - + CAST ( + col0 AS INTEGER ) / 46 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT 18 * + + 20 * + col0 FROM tab1 AS cor0 WHERE NOT ( col0 + + CAST( NULL AS SIGNED ) ) >= + 79 * + ( + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2821
SELECT 18 * + + 20 * + col0 FROM tab1 AS cor0 WHERE NOT ( col0 + + CAST ( NULL AS INTEGER ) ) >= + 79 * + ( + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + ( - col2 )
----

query I rowsort
SELECT ALL - col0 - col0 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - ( - + COUNT( * ) ) AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT - - 75 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2826
SELECT + 40 * + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2826
SELECT + 40 * + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2827
SELECT ALL - COUNT( ALL - + CAST( - - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - COUNT ( ALL - + CAST ( - - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2828
SELECT + - COUNT( * ) DIV - 33 AS col1, CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT NULL <= col2
----
0
0

skipif mysql # not compatible
query II rowsort label-2828
SELECT + - COUNT ( * ) / - 33 AS col1, CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT NULL <= col2
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2829
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2829
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL + 17 * COUNT( + col0 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL + 17 * COUNT ( + col0 ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL ( 97 ) FROM tab2 AS cor0
----
97
97
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT - COUNT( + + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT - COUNT ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - COUNT( * ) * + 32 AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2835
SELECT - COUNT ( * ) * + 32 AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT COUNT( * ) DIV - 91 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT COUNT ( * ) / - 91 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT - CAST( NULL AS SIGNED ) * 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT - CAST ( NULL AS INTEGER ) * 54 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 47 + + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 35 * - 36 FROM tab2
----
1260
1260
1260

query I rowsort
SELECT - 1 * col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + col0 + 67 * - col2 + + ( - col2 ) + - + col0 FROM tab0 AS cor0
----
-3196
-6732
-680

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 54 >= + ( 33 ) / col2 + col2
----
75
67
58

query I rowsort
SELECT ALL 81 + - col0 + col1 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1314
-299
-3206

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT MIN( + 6 ) col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2844
SELECT MIN ( + 6 ) col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 5 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 33 col2, col0 FROM tab2
----
33
46
33
64
33
75

query I rowsort
SELECT ALL col1 * + + ( 41 ) * + + col2 * + col0 FROM tab1
----
1028075
11924276
2810304

query I rowsort
SELECT ALL - + 74 + - col0 AS col0 FROM tab2 cor0
----
-120
-138
-149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL AND NOT NULL NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + col1 + ( col2 ) AS col2 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT 93 - ( - col2 ) * + ( + col2 ) FROM tab2 AS cor0
----
1693
3457
622

query I rowsort
SELECT ALL 16 + 57 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT DISTINCT + MIN( col0 ) * - - COUNT( DISTINCT col1 ) * 90 * + 95 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT + MIN ( col0 ) * - - COUNT ( DISTINCT col1 ) * 90 * + 95 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 0 + 7 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + 91 + + COUNT( * ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2856
SELECT + 91 + + COUNT ( * ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL + col1 + - 48 FROM tab0 AS cor0
----
-27
-47
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT col0 + - col2 + + col0 DIV + + col1 AS col2 FROM tab2 AS cor0
----
18
23
24

skipif mysql # not compatible
query I rowsort label-2858
SELECT col0 + - col2 + + col0 / + + col1 AS col2 FROM tab2 AS cor0
----
18
23
24

query II rowsort
SELECT col0 * - col1 + - 36 * + 71 + col2 AS col2, 68 FROM tab2
----
-4879
68
-7444
68
-7523
68

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 85 <= + col2 * col1 + - 1 * + 55 )
----

query I rowsort
SELECT ALL + 93 * + 17 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT + SUM( ALL col1 ) + - ( - - 35 ) AS col2 FROM tab2
----
160

skipif mysql # not compatible
query I rowsort label-2862
SELECT + SUM ( ALL col1 ) + - ( - - 35 ) AS col2 FROM tab2
----
160

query I rowsort
SELECT DISTINCT + col1 + + col0 * 56 AS col2 FROM tab2
----
2627
3661
4267

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT - COUNT( * ) * 56 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - COUNT ( * ) * 56 FROM tab1
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * col0 + 67 col1 FROM tab0 AS cor0
----
1057
5809
6469

query I rowsort
SELECT DISTINCT 27 * + col1 AS col2 FROM tab1
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL + SUM( col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + SUM ( col0 ) AS col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2868
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT ALL - col0, + col2 + - col1 * 88 DIV - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
108
-85
66
-91
128

skipif mysql # not compatible
query II rowsort label-2869
SELECT ALL - col0, + col2 + - col1 * 88 / - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
108
-85
66
-91
128

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT DISTINCT + col2 DIV - 59 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT + col2 / - 59 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2871
SELECT col0 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2871
SELECT col0 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT DISTINCT col0 AS col2, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL + 26 + - 72 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + col0 + - 5 + col1 * + + 98 FROM tab2 AS cor0
----
5039
6636
7605

query I rowsort
SELECT DISTINCT + ( - AVG ( ALL - col1 ) ) * - + 48 AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT - - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT - - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col1 ) + - - col1 * + - col2 * + 62 * col1 col0 FROM tab2
----
-14703843
-16142377
-3708975

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT + MIN( ALL + col0 ) + - - 83 AS col0 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-2879
SELECT + MIN ( ALL + col0 ) + - - 83 AS col0 FROM tab0
----
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 70 = - + 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 30 + + - col1 FROM tab0
----
-51
29
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - SUM( - 91 ) * - + COUNT( * ) AS col0 FROM tab0
----
-819

skipif mysql # not compatible
query I rowsort label-2882
SELECT - SUM ( - 91 ) * - + COUNT ( * ) AS col0 FROM tab0
----
-819

onlyif mysql # DIV for integer division: 
query II rowsort label-2883
SELECT 61 DIV col1, + col2 FROM tab0 AS cor0
----
0
47
2
10
61
99

skipif mysql # not compatible
query II rowsort label-2883
SELECT 61 / col1, + col2 FROM tab0 AS cor0
----
0
47
2
10
61
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 70 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + 12 AND + col0
----

query I rowsort
SELECT ALL 44 + - 53 - + - 38 FROM tab0 cor0
----
29
29
29

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL <> + 45
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > + - ( + 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT ALL col0 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL col0 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL + MIN( ALL + col1 ) - 5 AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + MIN ( ALL + col1 ) - 5 AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + col1 * - - 62 + - col1 AS col1 FROM tab1 AS cor0
----
2867
305
854

query I rowsort
SELECT DISTINCT - + 52 + 27 * col1 * + 18 FROM tab0 AS cor0
----
10154
39314
434

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL - + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT + - 22 * + - col2 FROM tab2 AS cor0
----
1276
506
880

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL ( - + 62 ) * - COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL ( - + 62 ) * - COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
183

query I rowsort
SELECT ALL + col2 * + 15 * col2 AS col2 FROM tab0
----
147015
1500
33135

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 51, - col0 AS col2 FROM tab2
----
51
-46
51
-64
51
-75

query I rowsort
SELECT ALL - col0 * ( - col0 ) * - 68 FROM tab1
----
-176868
-491300
-563108

query II rowsort
SELECT col2, 8 FROM tab1
----
59
8
68
8
96
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL + ( - COUNT( * ) ) * - + 28 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL + ( - COUNT ( * ) ) * - + 28 FROM tab0
----
84

query II rowsort
SELECT + col2 AS col0, - col0 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 26 <= - - col1 * + + col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 39 AS col1 FROM tab0
----
1833
3861
390

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + 53 + - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 11 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * + col1, + col0 * + col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query III rowsort
SELECT * FROM tab2 WHERE NOT - 49 IN ( + 9, + col2 - - col1, col0 + + 51 + ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( col0 ) + + col2 * col2 * + col0 * col1 + 10 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
1240998
16904035
7884746

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL COUNT( * ) + - SUM( - ( - col2 ) ) - 18 FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL COUNT ( * ) + - SUM ( - ( - col2 ) ) - 18 FROM tab2 AS cor0
----
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 68 col0 FROM tab1 AS cor0
----
127
136
164

query II rowsort
SELECT 37 AS col1, + col1 * - col1 AS col0 FROM tab0
----
37
-1
37
-441
37
-6561

query I rowsort
SELECT ALL - col0 + - + col2 AS col0 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2914
SELECT ALL + MIN( 47 ) DIV - + COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + MIN ( 47 ) / - + COUNT ( * ) FROM tab1
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT 95 + + col1 AS col2 FROM tab2
----
146
162
172

query III rowsort
SELECT * FROM tab2 WHERE - 76 * 97 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 IN ( col2 + - 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + - col0 >= - col2 + + ( + col2 ) / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2920
SELECT ALL + - col0 + + col2 + - - ( - col2 ) * 81 DIV + col2 AS col1, - col0 col1 FROM tab0 cor0
----
-158
-87
-49
-15
-79
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2920
SELECT ALL + - col0 + + col2 + - - ( - col2 ) * 81 / + col2 AS col1, - col0 col1 FROM tab0 cor0
----
-158
-87
-49
-15
-79
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 + + col1 col1 FROM tab0 AS cor0
----
103
23
43

query I rowsort
SELECT DISTINCT + ( - 37 ) FROM tab2 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2923
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 - - - col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2925
SELECT ALL - + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT col2 + + - col1 + + - 87 = NULL AND NOT + 22 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL - + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT col2 + + - col1 + + - 87 = NULL AND NOT + 22 IS NULL
----

query I rowsort
SELECT col0 * + col0 - - 43 - - - ( - ( - - col0 ) ) + 59 FROM tab1
----
2754
7412
8474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 92 col1 FROM tab2 cor0
----
-92
-92
-92

query I rowsort
SELECT + 63 * - col1 FROM tab2 AS cor0
----
-3213
-4221
-4851

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT + MIN( + col0 ) - - COUNT( * ) + - - 67 - MIN( - + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + MIN ( + col0 ) - - COUNT ( * ) + - - 67 - MIN ( - + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2930
SELECT - + CAST( NULL AS SIGNED ) * + MAX( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT - + CAST ( NULL AS INTEGER ) * + MAX ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT + CAST( + 92 AS SIGNED ) col1 FROM tab2 AS cor0
----
92
92
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2931
SELECT + CAST ( + 92 AS INTEGER ) col1 FROM tab2 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT col2 AS col2 FROM tab1 WHERE NOT - CAST( 63 AS SIGNED ) NOT BETWEEN - 7 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2932
SELECT col2 AS col2 FROM tab1 WHERE NOT - CAST ( 63 AS INTEGER ) NOT BETWEEN - 7 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT SUM( DISTINCT col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2933
SELECT SUM ( DISTINCT col2 ) AS col1 FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - 31 AND + - col1 + - + col1
----

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab1
----
73

query I rowsort
SELECT ALL - - ( 85 ) FROM tab1 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab1 AS cor0 WHERE 74 + + col0 IS NULL
----

query I rowsort
SELECT + col0 * + col2 + + - 95 * 0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - col1 * - - col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT ALL col2 DIV - - col0 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL col2 / - - col0 * - col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT + 90 DIV + 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-2942
SELECT + 90 / + 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 32 * - + 16 IS NULL
----

query II rowsort
SELECT ALL - col1 AS col0, + col2 + - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-51
69
-67
133
-77
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT DISTINCT + - CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + - CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + col1 + + 0 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT DISTINCT + 89 * CAST( NULL AS SIGNED ) + - - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + 89 * CAST ( NULL AS INTEGER ) + - - col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - ( - + col0 ) + + col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - 19 + 3 AS col0 FROM tab1
----
-16
-16
-16

query III rowsort
SELECT * FROM tab2 WHERE - - 5 IS NULL
----

query I rowsort
SELECT DISTINCT - + 57 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2622
-3648
-4275

query I rowsort
SELECT ALL 52 + - + 84 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT 14 * + 15 AS col2 FROM tab2
----
210
210
210

query I rowsort
SELECT DISTINCT - ( - - ( + col1 ) ) - + - col2 * 67 AS col2 FROM tab2
----
1490
2603
3819

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL - 90 DIV - 72 FROM tab2 WHERE NOT col2 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - 90 / - 72 FROM tab2 WHERE NOT col2 IS NULL
----
1
1
1

query I rowsort
SELECT col0 * - 22 AS col1 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT + - col2 * - + 14 AS col2 FROM tab2 AS cor0
----
322
560
812

query I rowsort
SELECT DISTINCT - - ( - 32 ) + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
-112
-69
-76

query I rowsort
SELECT - col2 * col2 + + col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT - col1 - 78 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
-159
-15
-79
-97
-99
-87

query I rowsort
SELECT DISTINCT col1 * - 35 + col0 - + 45 AS col2 FROM tab2
----
-1784
-2315
-2676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT ALL - 1 * + 47 + + - COUNT( * ) + COUNT( * ) + COUNT( * ) DIV + COUNT( * ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - 1 * + 47 + + - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) / + COUNT ( * ) FROM tab1
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col1 FROM tab2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - col1, + ( col2 ) AS col0 FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2967
SELECT - col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT - col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab1 cor0
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-2970
SELECT col0 DIV 92 AS col1, + col1 * - col2 FROM tab1
----
0
-1344
0
-295
0
-3196

skipif mysql # not compatible
query II rowsort label-2970
SELECT col0 / 92 AS col1, + col1 * - col2 FROM tab1
----
0
-1344
0
-295
0
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2971
SELECT + 31 * + CAST( - + AVG ( - col1 ) AS SIGNED ) * + + 1 AS col1, + ( 64 ) + - COUNT( * ) FROM tab1
----
682
61

skipif mysql # not compatible
query II rowsort label-2971
SELECT + 31 * + CAST ( - + AVG ( - col1 ) AS INTEGER ) * + + 1 AS col1, + ( 64 ) + - COUNT ( * ) FROM tab1
----
682
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2972
SELECT DISTINCT 10 * - - COUNT( * ), - 73 col1 FROM tab1
----
30
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2972
SELECT DISTINCT 10 * - - COUNT ( * ), - 73 col1 FROM tab1
----
30
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT DISTINCT - SUM( ALL - - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT - SUM ( ALL - - col1 ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT - - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - - 67 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 17 IS NULL
----

query I rowsort
SELECT ALL col1 + + 32 * - + col2 AS col1 FROM tab2 AS cor0
----
-1203
-1789
-685

query I rowsort
SELECT - 15 + col2 FROM tab1
----
44
53
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 23 + + col2 + + - 53 * + - col1 * + col1 * + col1 FROM tab1 AS cor0
----
145505
5502664
6661

query I rowsort
SELECT - + 80 FROM tab0 AS cor0 WHERE + col1 / + col1 = NULL
----

query I rowsort
SELECT DISTINCT col2 + + 46 FROM tab2 AS cor0
----
104
69
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT ALL + - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL + - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 10 - + - col2 AS col1 FROM tab1 AS cor0
----
49
58
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT - col0 + col0 DIV - - 15 AS col2 FROM tab2
----
-43
-60
-70

skipif mysql # not compatible
query I rowsort label-2985
SELECT - col0 + col0 / - - 15 AS col2 FROM tab2
----
-43
-60
-70

query I rowsort
SELECT + col0 - + 22 FROM tab0 WHERE - - ( + + ( + + col2 ) ) IS NOT NULL
----
-7
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT COUNT( ALL - col0 ) + + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2987
SELECT COUNT ( ALL - col0 ) + + COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT - - col0 AS col0 FROM tab0 WHERE - - col1 = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT ALL col1 * - + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL col1 * - + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2990
SELECT ALL + ( + 70 ) + - 12 DIV - 58, col1 FROM tab1 AS cor0
----
70
14
70
47
70
5

skipif mysql # not compatible
query II rowsort label-2990
SELECT ALL + ( + 70 ) + - 12 / - 58, col1 FROM tab1 AS cor0
----
70
14
70
47
70
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT - ( + ( COUNT( * ) ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2991
SELECT - ( + ( COUNT ( * ) ) ) FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2993
SELECT ALL - col1 DIV + col0 AS col1, 96 * + CAST( NULL AS SIGNED ) + - ( - - 35 ) AS col1 FROM tab0 cor0
----
-5
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-2993
SELECT ALL - col1 / + col0 AS col1, 96 * + CAST ( NULL AS INTEGER ) + - ( - - 35 ) AS col1 FROM tab0 cor0
----
-5
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT - - col0 * - CAST( 93 AS SIGNED ) col1 FROM tab1 AS cor0
----
-4743
-7905
-8463

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2994
SELECT - - col0 * - CAST ( 93 AS INTEGER ) col1 FROM tab1 AS cor0
----
-4743
-7905
-8463

query I rowsort
SELECT + col0 * - - col0 - + col2 AS col1 FROM tab0 AS cor0
----
178
7559
9310

query II rowsort
SELECT - - col1 * col1 AS col2, + col1 * + col2 FROM tab1 AS cor0
----
196
1344
2209
3196
25
295

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + MAX( ALL col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + MAX ( ALL col0 ) AS col0 FROM tab0
----
97

query II rowsort
SELECT ALL + + col0, 90 FROM tab1 WHERE NOT NULL > + 15
----

query II rowsort
SELECT DISTINCT + col0, ( + - col2 ) FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL - SUM( DISTINCT + 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - SUM ( DISTINCT + 88 ) FROM tab2
----
-88

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 34
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3002
SELECT ALL - COUNT( * ) AS col0, - CAST( - - SUM( DISTINCT col2 ) AS SIGNED ) / - CAST( NULL AS SIGNED ) FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3002
SELECT ALL - COUNT ( * ) AS col0, - CAST ( - - SUM ( DISTINCT col2 ) AS INTEGER ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
-3
NULL

query I rowsort
SELECT - col1 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 34 BETWEEN - col2 AND 99 * - 6 + - + col1 + + - col0 * col1
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 col1 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT DISTINCT MAX( + 6 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT MAX ( + 6 ) AS col0 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - col1 + 2 * + + col0 AS col2 FROM tab2
----
41
51
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT DISTINCT 87 DIV - ( 68 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT 87 / - ( 68 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query II rowsort
SELECT col0 AS col1, + 47 FROM tab0 WHERE + col0 < col2
----
15
47
97
47

query I rowsort
SELECT - col0 + + col1 * - + 4 AS col0 FROM tab0 AS cor0
----
-101
-171
-339

query I rowsort
SELECT + 28 + col2 * - + col1 AS col2 FROM tab2 AS cor0
----
-1145
-3052
-3858

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 93 IS NULL
----

query I rowsort
SELECT ALL + col1 + + 95 FROM tab2 AS cor0
----
146
162
172

query I rowsort
SELECT DISTINCT + col0 * 12 AS col2 FROM tab2 AS cor0
----
552
768
900

query I rowsort
SELECT + col2 * 46 FROM tab0 AS cor0 WHERE + 3 IS NOT NULL
----
2162
4554
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 89 * + 75 FROM tab1 AS cor0
----
6675
6675
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT + COUNT( * ) - 83 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT + COUNT ( * ) - 83 FROM tab0 AS cor0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - + col0 col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3019
SELECT DISTINCT col1, CAST( 3 AS SIGNED ) col0 FROM tab0 AS cor0
----
1
3
21
3
81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3019
SELECT DISTINCT col1, CAST ( 3 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
3
21
3
81
3

query I rowsort
SELECT DISTINCT + ( - + col0 ) * + 58 FROM tab0 AS cor0
----
-5046
-5626
-870

query II rowsort
SELECT + col2 AS col1, - 3 AS col1 FROM tab0 AS cor0
----
10
-3
47
-3
99
-3

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3023
SELECT ALL + CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 / ( - 76 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + 91 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3025
SELECT + 91 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
273

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + + 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT 4 + MAX( + - col0 ) * + 76 * 19 FROM tab2
----
-66420

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT 4 + MAX ( + - col0 ) * + 76 * 19 FROM tab2
----
-66420

query I rowsort
SELECT DISTINCT + + 52 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 50 * - 37 FROM tab1
----
-1850
-1850
-1850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3030
SELECT ALL CAST( NULL AS SIGNED ) / - + 89 AS col2, - CAST( 28 AS SIGNED ) AS col1 FROM tab0
----
NULL
-28
NULL
-28
NULL
-28

skipif mysql # not compatible
query II rowsort label-3030
SELECT ALL CAST ( NULL AS INTEGER ) / - + 89 AS col2, - CAST ( 28 AS INTEGER ) AS col1 FROM tab0
----
NULL
-28
NULL
-28
NULL
-28

query I rowsort
SELECT col2 * - 91 FROM tab2
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT + MIN( DISTINCT - col2 ) * - COUNT( * ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3032
SELECT + MIN ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab2
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3033
SELECT DISTINCT + ( + + col2 ) AS col0, - ( + col0 ) * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3033
SELECT DISTINCT + ( + + col2 ) AS col0, - ( + col0 ) * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT + col1 + - 84 * + + 35 FROM tab2 AS cor0
----
-2863
-2873
-2889

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3035
SELECT col1 col0, CAST( + + col1 AS SIGNED ) + - col0 AS col1 FROM tab2
----
51
5
67
-8
77
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3035
SELECT col1 col0, CAST ( + + col1 AS INTEGER ) + - col0 AS col1 FROM tab2
----
51
5
67
-8
77
13

query I rowsort
SELECT ALL ( - ( - 82 ) ) AS col0 FROM tab1
----
82
82
82

query III rowsort
SELECT * FROM tab2 WHERE NULL <= 81
----

query I rowsort
SELECT DISTINCT + 99 * + - ( - ( col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 59 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3039
SELECT DISTINCT + + col1, col1 * + CAST( NULL AS SIGNED ) * col2 + - col0 - + col0 / - 15 AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3039
SELECT DISTINCT + + col1, col1 * + CAST ( NULL AS INTEGER ) * col2 + - col0 - + col0 / - 15 AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT ALL + - 1 col0, + COUNT( * ) FROM tab2 cor0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3040
SELECT ALL + - 1 col0, + COUNT ( * ) FROM tab2 cor0
----
-1
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - col2 * 21 * - 74 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT DISTINCT + + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT DISTINCT ( CAST( + col0 AS SIGNED ) ) + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 13 AND - - 2 * 40 - col1
----

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT ( CAST ( + col0 AS INTEGER ) ) + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 13 AND - - 2 * 40 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT DISTINCT + 96 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT + 96 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE - col0 + 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT - COUNT( * ) - - ( - + COUNT( + + col1 ) ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT - COUNT ( * ) - - ( - + COUNT ( + + col1 ) ) AS col1 FROM tab0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 3 col0 FROM tab1
----
48
82
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT - COUNT( * ) + SUM( DISTINCT - + col1 ) * - - COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
-930

skipif mysql # not compatible
query I rowsort label-3048
SELECT - COUNT ( * ) + SUM ( DISTINCT - + col1 ) * - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT - CAST( NULL AS SIGNED ) + + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT - CAST ( NULL AS INTEGER ) + + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL MIN( col2 ) + - 48 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL MIN ( col2 ) + - 48 FROM tab0
----
-38

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col1 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3052
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) + col2 AND - CAST( 78 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3052
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) + col2 AND - CAST ( 78 AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( col1 ) + 95 * - 42 * col1 AS col1 FROM tab2
----
-203439
-267263
-307153

query II rowsort
SELECT DISTINCT - ( col2 ) AS col2, col0 + - col1 + col2 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL - + 47 FROM tab2 cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 65 = - col2
----

query I rowsort
SELECT ALL - ( - - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - + col2 * - col1 + - 94 FROM tab2 cor0
----
1079
2986
3792

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab2 AS cor0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3061
SELECT ALL - 7 * - ( ( CAST( - + COUNT( * ) AS SIGNED ) ) ), + 15 * + 61 + + + COUNT( * ) AS col1 FROM tab2
----
-21
918

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL - 7 * - ( ( CAST ( - + COUNT ( * ) AS INTEGER ) ) ), + 15 * + 61 + + + COUNT ( * ) AS col1 FROM tab2
----
-21
918

query I rowsort
SELECT DISTINCT + 13 * col2 AS col0 FROM tab1
----
1248
767
884

query II rowsort
SELECT DISTINCT col2 * + - ( - col1 ) AS col2, + 79 FROM tab1
----
1344
79
295
79
3196
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT ALL 14 DIV + 83 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL 14 / + 83 FROM tab0
----
0
0
0

query I rowsort
SELECT + - ( - 89 ) FROM tab2 AS cor0
----
89
89
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 60 * + col0 FROM tab1 AS cor0
----
3060
5100
5460

query II rowsort
SELECT + - col1, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query II rowsort label-3069
SELECT ALL + 9 AS col2, col2 DIV + 72 FROM tab0 AS cor0
----
9
0
9
0
9
1

skipif mysql # not compatible
query II rowsort label-3069
SELECT ALL + 9 AS col2, col2 / + 72 FROM tab0 AS cor0
----
9
0
9
0
9
1

query I rowsort
SELECT ALL 10 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT - - 37 AS col1 FROM tab0 cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT + - col0 DIV - 81 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3072
SELECT + - col0 / - 81 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT COUNT( * ) * + + 85 + - COUNT( * ) AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT COUNT ( * ) * + + 85 + - COUNT ( * ) AS col0 FROM tab0
----
252

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 37 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT SUM( + + CAST( + col0 AS SIGNED ) ) + 90 FROM tab2
----
275

skipif mysql # not compatible
query I rowsort label-3076
SELECT SUM ( + + CAST ( + col0 AS INTEGER ) ) + 90 FROM tab2
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT DISTINCT 18 DIV COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT 18 / COUNT ( * ) AS col2 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24

query II rowsort
SELECT DISTINCT + + col2 * + col2 + - ( + col0 ) - col2 AS col1, + ( - - col0 ) AS col0 FROM tab0 AS cor0
----
2147
15
3
87
9605
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT DISTINCT + 57 + - - MIN( ALL - + 77 ) + - CAST( - 47 AS SIGNED ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT + 57 + - - MIN ( ALL - + 77 ) + - CAST ( - 47 AS INTEGER ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3081
SELECT ALL + COUNT( * ) AS col0, - 88 AS col2 FROM tab1
----
3
-88

skipif mysql # not compatible
query II rowsort label-3081
SELECT ALL + COUNT ( * ) AS col0, - 88 AS col2 FROM tab1
----
3
-88

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT + + 26 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT COUNT( * ) * + 95 AS col0 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT COUNT ( * ) * + 95 AS col0 FROM tab0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT COUNT( DISTINCT + 80 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3084
SELECT COUNT ( DISTINCT + 80 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT ( - 70 ) AS col0 FROM tab0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT DISTINCT - 80 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - 80 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3087
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3087
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL

query II rowsort
SELECT ALL col2 AS col1, + 19 + + 56 AS col1 FROM tab2
----
23
75
40
75
58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3089
SELECT ALL + COUNT( * ) AS col2, 43 AS col1 FROM tab1
----
3
43

skipif mysql # not compatible
query II rowsort label-3089
SELECT ALL + COUNT ( * ) AS col2, 43 AS col1 FROM tab1
----
3
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT COUNT( * ) * + + 73 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-3090
SELECT COUNT ( * ) * + + 73 FROM tab0 AS cor0
----
219

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE + - 38 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE + 88 IS NOT NULL OR NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - col1 * + col2 * - col0 * + - ( - - 24 ) FROM tab1
----
-1645056
-601800
-6980064

query I rowsort
SELECT 17 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT col0 DIV - + col1 AS col0 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3095
SELECT col0 / - + col1 AS col0 FROM tab0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3096
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) * - 43 + + col2 * + col2 AS col0, - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) * - 43 + + col2 * + col2 AS col0, - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
-46
NULL
-64
NULL
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 69 / - 95 * + - 82 <> NULL
----

query I rowsort
SELECT - col2 * - 1 AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE - 79 IS NULL
----

query I rowsort
SELECT ( + ( + col0 ) ) AS col2 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 AS col2, + 49 + + - 24 col2 FROM tab1
----
20
25
20
25
20
25

query I rowsort
SELECT DISTINCT 24 + + ( col1 ) AS col1 FROM tab0
----
105
25
45

query I rowsort
SELECT col0 + - - ( - col0 ) * + col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT - 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL ( - - MIN( DISTINCT - col2 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL ( - - MIN ( DISTINCT - col2 ) ) AS col1 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT col2 DIV - col2 - - col2 AS col2 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-3106
SELECT col2 / - col2 - - col2 AS col2 FROM tab0
----
46
9
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + col1 ) IS NOT NULL AND 22 * + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT - 65 * + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 = - 84
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT - 65 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 = - 84
----
0

query I rowsort
SELECT + 33 - + col1 - col1 FROM tab2 cor0
----
-101
-121
-69

query I rowsort
SELECT DISTINCT - - 71 * - 60 AS col1 FROM tab0 AS cor0
----
-4260

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT DISTINCT - col1 DIV + ( + - 94 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - col1 / + ( + - 94 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col0 * + 25 FROM tab2 AS cor0
----
-1150
-1600
-1875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46, col1 + - - col1 col1 FROM tab2 AS cor0
----
46
102
46
134
46
154

query III rowsort
SELECT * FROM tab2 WHERE NOT - 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT + 55 * + + COUNT( * ) FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-3115
SELECT + 55 * + + COUNT ( * ) FROM tab2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT - + SUM( ALL 7 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT - + SUM ( ALL 7 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT + 29 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT + 29 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE ( NOT ( + col2 / col2 <> NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT + + MAX( ALL + col0 ) + + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-3119
SELECT + + MAX ( ALL + col0 ) + + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 14 col1 FROM tab2 AS cor0
----
26
44
9

query I rowsort
SELECT ALL + col2 + - 42 AS col2 FROM tab1 AS cor0
----
17
26
54

query II rowsort
SELECT - ( - + col2 ) + - + 49 AS col0, col1 AS col2 FROM tab1 AS cor0
----
10
5
19
47
47
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT col0 + - 63 DIV + + col1 FROM tab2 AS cor0
----
45
64
75

skipif mysql # not compatible
query I rowsort label-3123
SELECT col0 + - 63 / + + col1 FROM tab2 AS cor0
----
45
64
75

query II rowsort
SELECT DISTINCT + col2 + - col1 + - col2 AS col2, + col1 + col0 AS col1 FROM tab0 AS cor0
----
-1
98
-21
108
-81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT + 23 + + 36 * + COUNT( * ) FROM tab2 cor0
----
131

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + 23 + + 36 * + COUNT ( * ) FROM tab2 cor0
----
131

query I rowsort
SELECT col2 + 36 FROM tab0
----
135
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT - 74 * - COUNT( * ) + - - MIN( - col1 ) * - - 65 AS col2 FROM tab0
----
-5043

skipif mysql # not compatible
query I rowsort label-3127
SELECT - 74 * - COUNT ( * ) + - - MIN ( - col1 ) * - - 65 AS col2 FROM tab0
----
-5043

query I rowsort
SELECT ALL - ( + - 10 ) FROM tab0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT MIN( ALL + 95 ) + 26 AS col2 FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT MIN ( ALL + 95 ) + 26 AS col2 FROM tab1
----
121

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT + + col1 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT ALL - col2 * - col0 DIV + col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - col2 * - col0 / + col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - CAST( + col0 AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT + COUNT( * ) - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 86 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT + - CAST( - - col0 AS SIGNED ) * 94 AS col1 FROM tab0 AS cor0
----
-1410
-8178
-9118

skipif mysql # not compatible
query I rowsort label-3135
SELECT + - CAST ( - - col0 AS INTEGER ) * 94 AS col1 FROM tab0 AS cor0
----
-1410
-8178
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, col1 col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT ALL + col1 DIV + 49 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + col1 / + 49 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IN ( - - col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3139
SELECT DISTINCT 13 AS col2, col1 * + CAST( NULL AS DECIMAL ) FROM tab1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-3139
SELECT DISTINCT 13 AS col2, col1 * + CAST ( NULL AS REAL ) FROM tab1
----
13
NULL

query II rowsort
SELECT + 69, col0 AS col1 FROM tab1
----
69
51
69
85
69
91

query I rowsort
SELECT ALL - 73 * - col2 FROM tab2
----
1679
2920
4234

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3143
SELECT col0 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3143
SELECT col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col1 + + col0 col2 FROM tab1
----
-51
65
-85
90
-91
138

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT ALL - COUNT( DISTINCT - 65 ) AS col2, - 3 * + - 82 AS col2 FROM tab1
----
-1
246

skipif mysql # not compatible
query II rowsort label-3145
SELECT ALL - COUNT ( DISTINCT - 65 ) AS col2, - 3 * + - 82 AS col2 FROM tab1
----
-1
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 47 col1, col0 FROM tab0 AS cor0
----
47
15
47
87
47
97

query I rowsort
SELECT DISTINCT col1 / - col1 FROM tab0 AS cor0 WHERE NOT NULL >= 31
----

query I rowsort
SELECT ALL + col0 + + 60 FROM tab0 AS cor0
----
147
157
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - col0 + + 67 * + 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL - SUM( + + col0 ) col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3151
SELECT ALL - SUM ( + + col0 ) col2 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3152
SELECT ALL - 75 + CAST( NULL AS SIGNED ), col2 * + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
123200
NULL
225388
NULL
26979

skipif mysql # not compatible
query II rowsort label-3152
SELECT ALL - 75 + CAST ( NULL AS INTEGER ), col2 * + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
123200
NULL
225388
NULL
26979

query I rowsort
SELECT DISTINCT + 21 * 54 + - + 52 AS col1 FROM tab2 AS cor0
----
1082

query I rowsort
SELECT ALL 49 * col2 AS col2 FROM tab0 WHERE + col1 * 2 IS NOT NULL
----
2303
4851
490

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT COUNT( * ) * 33 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT COUNT ( * ) * 33 FROM tab2
----
99

query I rowsort
SELECT - col2 + - 61 AS col1 FROM tab2
----
-101
-119
-84

query I rowsort
SELECT col1 FROM tab0 WHERE NULL >= + 93
----

query I rowsort
SELECT 25 + 48 FROM tab2
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT SUM( 41 ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT SUM ( 41 ) FROM tab0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL col0 * - col0 * + + CAST( NULL AS SIGNED ) * + - 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL col0 * - col0 * + + CAST ( NULL AS INTEGER ) * + - 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3161
SELECT + COUNT( ALL 45 ) DIV COUNT( ALL + + 18 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3161
SELECT + COUNT ( ALL 45 ) / COUNT ( ALL + + 18 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT - 33 * col0 * + col0 AS col1, col1 AS col1 FROM tab1 cor0
----
-238425
5
-273273
47
-85833
14

query I rowsort
SELECT DISTINCT + col0 * + 70 AS col0 FROM tab0 AS cor0
----
1050
6090
6790

query I rowsort
SELECT - col0 + 67 * - 9 FROM tab2
----
-649
-667
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT MIN( DISTINCT 29 ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-3165
SELECT MIN ( DISTINCT 29 ) AS col2 FROM tab1
----
29

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 62 * - col2 + + col0 NOT BETWEEN + ( col2 ) AND NULL
----

query I rowsort
SELECT 20 - col0 FROM tab2
----
-26
-44
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL - COUNT( DISTINCT - col2 ) * 97 + MAX( DISTINCT + col2 ) FROM tab2
----
-233

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - COUNT ( DISTINCT - col2 ) * 97 + MAX ( DISTINCT + col2 ) FROM tab2
----
-233

query I rowsort
SELECT - col2 + + col0 FROM tab0 WHERE - col1 * - 78 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL + 24 * - CAST( NULL AS SIGNED ) + + CAST( 45 - 43 AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL + 24 * - CAST ( NULL AS INTEGER ) + + CAST ( 45 - 43 AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE + col1 <> ( + col2 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT ALL + 42 + - col1 DIV - col0 AS col2 FROM tab0
----
42
42
47

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + 42 + - col1 / - col0 AS col2 FROM tab0
----
42
42
47

query I rowsort
SELECT + 19 + - 74 AS col2 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT col1 - - col0 * + col2 AS col1 FROM tab0
----
786
891
9604

query I rowsort
SELECT col2 - - 33 FROM tab1
----
101
129
92

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 25 - 30 ) IS NOT NULL
----

query I rowsort
SELECT - col1 - + col0 AS col0 FROM tab1 WHERE 68 IS NOT NULL
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NULL <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT DISTINCT 78 + - 56 / - col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN CAST( col1 AS SIGNED ) AND + col0 * col1
----

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT 78 + - 56 / - col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN CAST ( col1 AS INTEGER ) AND + col0 * col1
----

query I rowsort
SELECT ALL 35 * col2 - + col1 FROM tab1
----
2060
2333
3346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT col0 FROM tab1 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3182
SELECT col0 FROM tab1 WHERE NULL > CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT col1 - - col0 AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( col2 * col0 ) NOT IN ( 31 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3186
SELECT COUNT( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * + CAST( 94 AS DECIMAL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3186
SELECT COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * + CAST ( 94 AS REAL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + col1 + 75 FROM tab2 AS cor0
----
126
142
152

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( 10 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + 37 AS col1 FROM tab2 AS cor0
----
101
112
83

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( col0 * + 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT DISTINCT + 40 DIV col1 AS col2 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT + 40 / col1 AS col2 FROM tab1
----
0
2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + 72 * - 98 + + MAX( - col0 - col2 ) * - 59 FROM tab1 AS cor0
----
1440

skipif mysql # not compatible
query I rowsort label-3192
SELECT + 72 * - 98 + + MAX ( - col0 - col2 ) * - 59 FROM tab1 AS cor0
----
1440

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 11 - + 99 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT - col2 + + col0 DIV col2 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-3194
SELECT - col2 + + col0 / col2 FROM tab2 AS cor0
----
-21
-39
-57

query I rowsort
SELECT - col2 * col1 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT ( 5 ) * col0 + col2 DIV + col2 FROM tab1 cor0
----
256
426
456

skipif mysql # not compatible
query I rowsort label-3196
SELECT ( 5 ) * col0 + col2 / + col2 FROM tab1 cor0
----
256
426
456

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL 63 / SUM( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 56 * 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL 63 / SUM ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 56 * 65 )
----
NULL

query I rowsort
SELECT ALL + col2 + col1 * - 83 FROM tab0 AS cor0
----
-1733
-6676
16

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 40 IS NULL
----

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE 89 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * col2 + col1 col2 FROM tab2 AS cor0
----
2121
3677
5287

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT + MAX( DISTINCT - 4 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3202
SELECT + MAX ( DISTINCT - 4 ) FROM tab2
----
-4

query I rowsort
SELECT ALL col2 * - 42 + 85 AS col2 FROM tab2
----
-1595
-2351
-881

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab1 WHERE ( + col0 * + 95 ) IS NULL OR NULL NOT BETWEEN ( - 77 ) AND 32
----
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE ( + col0 * + 95 ) IS NULL OR NULL NOT BETWEEN ( - 77 ) AND 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT DISTINCT col1 - + col0 DIV - col2 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT col1 - + col0 / - col2 FROM tab1
----
14
48
6

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( col2 ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 NOT BETWEEN NULL AND ( col2 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ( - MIN( col0 ) ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3208
SELECT ( - MIN ( col0 ) ) col0 FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <= - 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL MAX( ALL + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL MAX ( ALL + col2 ) FROM tab1
----
96

query I rowsort
SELECT + 43 - - col0 FROM tab2 AS cor0
----
107
118
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col1 + + ( col1 + 44 ) col2 FROM tab0 AS cor0
----
125
45
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + + 2 + + ( col1 ) col0 FROM tab0 AS cor0
----
-187
-3724
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - ( col1 ) ) ) <= ( col1 * col0 )
----

query I rowsort
SELECT + 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + ( - COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3217
SELECT + ( - COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + col0 * - + col0 * + 16 AS col1 FROM tab1
----
-115600
-132496
-41616

query I rowsort
SELECT DISTINCT 99 * - ( + + col1 ) * + 38 AS col1 FROM tab0
----
-304722
-3762
-79002

query II rowsort
SELECT col1 AS col2, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL > + 62
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 51 * + col0 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 33 * - col2 AS col2 FROM tab0
----
-1551
-3267
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - COUNT( * ) * + 17 AS col2 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-3226
SELECT - COUNT ( * ) * + 17 AS col2 FROM tab0
----
-51

query II rowsort
SELECT ALL col2 * + 36, col1 AS col2 FROM tab0
----
1692
81
3564
1
360
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - COUNT( * ) FROM tab2 WHERE + col1 + + - 65 IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - COUNT ( * ) FROM tab2 WHERE + col1 + + - 65 IN ( col1 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 * - col1 NOT BETWEEN NULL AND 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT - COUNT( * ) * - MIN( ALL - - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT - COUNT ( * ) * - MIN ( ALL - - col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col0 * - 27 AS col1 FROM tab0
----
2349
2619
405

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT col1 DIV + 1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3232
SELECT col1 / + 1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - + col1 + col1 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * 61 * - col2 >= ( NULL )
----

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * - - col1 col2 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT - 69 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 + - col1 AS col2, - col0 FROM tab0 cor0
----
-11
-87
-34
-15
98
-97

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT + col1 / - 24 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col1 IS NULL ) OR NOT ( + 18 ) IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
6

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT col0 / CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3243
SELECT col0 / CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 61 - - - col1 - 32 * + 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE col2 * + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3245
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 * + col1 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 / + col1 * - + col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT ALL - 60 + - col0 DIV - col2 FROM tab2 AS cor0
----
-58
-59
-59

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL - 60 + - col0 / - col2 FROM tab2 AS cor0
----
-58
-59
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = ( - - ( col1 ) * + ( col1 ) / col2 - - 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 - + 41 col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT + 56 - + col1 * + - col2 * col1 * + col2 AS col0 FROM tab0 cor0
----
14493305
44156
9857

query I rowsort
SELECT ALL + col2 + ( col1 ) + + + 17 * 97 FROM tab1 AS cor0
----
1713
1759
1764

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3253
SELECT ALL ( + 42 ) + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL ( + 42 ) + + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 24 + + col0 FROM tab1
----
27
61
67

query I rowsort
SELECT 76 + - col2 - ( 78 ) * + 12 FROM tab2
----
-883
-900
-918

query III rowsort
SELECT * FROM tab2 WHERE + + ( + 32 ) * - + col2 >= - + col2
----

query I rowsort
SELECT col1 FROM tab1 WHERE ( + - col2 + + col2 * 52 * col0 + + 49 * col1 ) BETWEEN col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT 38 + + ( + + COUNT( * ) ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT 38 + + ( + + COUNT ( * ) ) FROM tab2
----
41

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( + 44 )
----

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 AS col1 FROM tab2
----
46
-23
64
-40
75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 55 * - col2 - - col1 - 22, col1 col2 FROM tab0
----
-2526
81
-5466
1
-551
21

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab0 cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3263
SELECT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT - - MIN( DISTINCT - 24 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - - MIN ( DISTINCT - 24 ) FROM tab0 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col0 ) <= + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL - SUM( - col1 ) col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3266
SELECT ALL - SUM ( - col1 ) col1 FROM tab2 AS cor0
----
195

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 34 ) IS NOT NULL
----

query I rowsort
SELECT - - col0 * - + 16 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1360
-1456
-816

query I rowsort
SELECT ALL 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT col1 - 20 * - 10 AS col1 FROM tab2 cor0 WHERE NOT col0 * col2 IS NULL
----
251
267
277

onlyif mysql # aggregate syntax: 
query II rowsort label-3271
SELECT + + ( + COUNT( * ) ) col2, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3271
SELECT + + ( + COUNT ( * ) ) col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL COUNT( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL COUNT ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT 22 + - col0 BETWEEN col0 AND + + col0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col0 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT + - 88 + + 2 + col0 * - 8 * ( col1 ) FROM tab0 AS cor0
----
-14702
-862
-9806

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - col0 - col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT - 28 + ( - - COUNT( ALL - + col2 ) ) AS col0 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-3277
SELECT - 28 + ( - - COUNT ( ALL - + col2 ) ) AS col0 FROM tab1
----
-25

query I rowsort
SELECT ALL 29 * 3 AS col2 FROM tab1
----
87
87
87

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 8 * col0 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - + col1 AS col1, + 0 AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-51
0
-67
0
-77
0

query II rowsort
SELECT ALL col0 AS col2, 44 AS col0 FROM tab1
----
51
44
85
44
91
44

query II rowsort
SELECT 98 AS col0, col1 AS col2 FROM tab2 AS cor0
----
98
51
98
67
98
77

query II rowsort
SELECT ALL col2 * col0, - col2 - + col1 + - ( ( + - 11 ) ) AS col1 FROM tab2
----
1058
-63
2560
-106
4350
-114

query II rowsort
SELECT + 69 + 14, + col2 FROM tab1
----
83
59
83
68
83
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3285
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT - - 7 + + col2 AS col2 FROM tab2 AS cor0
----
30
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + - COUNT( * ) + 7 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-3287
SELECT + - COUNT ( * ) + 7 FROM tab1 cor0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3288
SELECT * FROM tab1 AS cor0 WHERE CAST( - - col0 AS DECIMAL ) BETWEEN - col1 AND + - col0
----

skipif mysql # not compatible
query III rowsort label-3288
SELECT * FROM tab1 AS cor0 WHERE CAST ( - - col0 AS REAL ) BETWEEN - col1 AND + - col0
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= - 3 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 + - 78 col0, col2 AS col0 FROM tab2 AS cor0
----
-101
23
-118
40
-136
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 74 / - - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL - + SUM( DISTINCT + 17 ) - - 64 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - + SUM ( DISTINCT + 17 ) - - 64 FROM tab0 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT CAST( NULL AS SIGNED ) - ( - col2 ) + + col0 * + ( + col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT CAST ( NULL AS INTEGER ) - ( - col2 ) + + col0 * + ( + col0 ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - 63 AS col0, ( col2 ) + - - col0 AS col2 FROM tab2
----
-63
104
-63
133
-63
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3296
SELECT col0 * - CAST( 91 AS SIGNED ) * - col2 - 83 DIV + 20 col1 FROM tab2
----
232956
395846
96274

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3296
SELECT col0 * - CAST ( 91 AS INTEGER ) * - col2 - 83 / + 20 col1 FROM tab2
----
232956
395846
96274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT AVG ( + + CAST( NULL AS SIGNED ) ) * + MIN( col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT AVG ( + + CAST ( NULL AS INTEGER ) ) * + MIN ( col0 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT - ( COUNT( * ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3298
SELECT DISTINCT - ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 61 > NULL )
----

query II rowsort
SELECT DISTINCT col2, 80 AS col1 FROM tab2
----
23
80
40
80
58
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col2, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) * col0 <= + 28 / + 75
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT + 44 DIV COUNT( * ) AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 44 / COUNT ( * ) AS col0 FROM tab2
----
14

query I rowsort
SELECT - 93 AS col2 FROM tab2
----
-93
-93
-93

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT col0 + - + ( - col1 ) + - col2 NOT IN ( - - ( - 12 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab1 cor0 WHERE 93 > 11
----
3

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab1 cor0 WHERE 93 > 11
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL - ( + - COUNT( * ) ) + - - COUNT( * ) * - COUNT( * ) + ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - ( + - COUNT ( * ) ) + - - COUNT ( * ) * - COUNT ( * ) + ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 52 <> + - 22 - - col1
----

query I rowsort
SELECT ALL + 72 + - col2 FROM tab2 AS cor0
----
14
32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT + COUNT( * ) + + - 26 AS col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + COUNT ( * ) + + - 26 AS col0 FROM tab1 AS cor0
----
-23

query II rowsort
SELECT ALL col0 * - col2 - - - col1 - 65 AS col0, - col0 FROM tab2
----
-1174
-46
-2702
-64
-4482
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3313
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL + col1 + - col2 * - col0 * - col1 - + CAST( NULL AS SIGNED ) * - ( - - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + col1 + - col2 * - col0 * - col1 - + CAST ( NULL AS INTEGER ) * - ( - - col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT - CAST( NULL AS SIGNED ) * + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT - CAST ( NULL AS INTEGER ) * + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT DISTINCT + COUNT( * ) * 33 AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT + COUNT ( * ) * 33 AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3317
SELECT col0 * + col1 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT col0 * + col1 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3318
SELECT - + COUNT( * ) DIV - 4 * - - 70 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 DIV + ( CAST( 74 AS SIGNED ) ), col1, + + ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3318
SELECT - + COUNT ( * ) / - 4 * - - 70 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 / + ( CAST ( 74 AS INTEGER ) ), col1, + + ( + col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + - 81 - MAX( ALL - 58 ) + + 79 + + 8 AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3319
SELECT + - 81 - MAX ( ALL - 58 ) + + 79 + + 8 AS col1 FROM tab0 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * - col0 * - col2 col1 FROM tab1 AS cor0
----
58752
60180
74256

query I rowsort
SELECT - col1 + - 20 AS col1 FROM tab0 AS cor0
----
-101
-21
-41

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT NULL IN ( + + 71 / ( 74 ) + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT DISTINCT - 15 DIV 31 * - + col2 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT - 15 / 31 * - + col2 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + + 8 + + COUNT( * ) AS col2 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-3324
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 8 + + COUNT ( * ) AS col2 FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT ALL - CAST( - - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - CAST ( - - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 19 * + col1 * col1 AS col2 FROM tab2
----
112651
49419
85291

query III rowsort
SELECT ALL * FROM tab0 WHERE 55 <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + + 53 * - + 89 FROM tab1
----
-221699
-23585
-66038

query I rowsort
SELECT ALL 3 * + 3 FROM tab2
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT - CAST( + col1 AS SIGNED ) * - + col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3330
SELECT - CAST ( + col1 AS INTEGER ) * - + col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT + + col1 + - col1 * col1 * + col0 * - + col0 AS col2, col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col0 * - ( col2 ) AS col0 FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT col0 DIV - 8 FROM tab2 cor0
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT col0 / - 8 FROM tab2 cor0
----
-5
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT - - SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT - - SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT - - COUNT( * ) + - SUM( 12 ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3336
SELECT - - COUNT ( * ) + - SUM ( 12 ) AS col1 FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3337
SELECT ALL - CAST( MIN( + + 81 ) AS SIGNED ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - CAST ( MIN ( + + 81 ) AS INTEGER ) FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT MIN( col0 ) + + - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3338
SELECT MIN ( col0 ) + + - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL + 49 + col2 * - col2 + - - col2 AS col1 FROM tab2 AS cor0
----
-1511
-3257
-457

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT 79 DIV - 14 + 46 FROM tab0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-3340
SELECT 79 / - 14 + 46 FROM tab0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + + 59 col0 FROM tab2
----
98
98
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + + 53
----

query II rowsort
SELECT DISTINCT + 5, + 30 AS col0 FROM tab0
----
5
30

query II rowsort
SELECT DISTINCT 95 AS col2, - col0 * - col1 AS col1 FROM tab2
----
95
2346
95
4928
95
5025

query I rowsort
SELECT 46 * col1 FROM tab2
----
2346
3082
3542

query II rowsort
SELECT col1 AS col1, - col2 * + col0 + - 64 AS col1 FROM tab0
----
1
-9667
21
-934
81
-769

query II rowsort
SELECT - col0 AS col0, - col0 * + + col1 FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4277

query II rowsort
SELECT + ( - + 58 ) * - col0 + 93 AS col0, - col2 FROM tab2 AS cor0
----
2761
-23
3805
-40
4443
-58

query I rowsort
SELECT - + 2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col2, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + - col0 + - + 91 col0 FROM tab2 cor0
----
-104
-83
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT + ( col0 ) + col1 - 1 * + - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
129
177
99

skipif mysql # not compatible
query I rowsort label-3352
SELECT + ( col0 ) + col1 - 1 * + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
129
177
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3353
SELECT DISTINCT + + col0 - - col2 AS col1, + CAST( NULL AS SIGNED ) + CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
query II rowsort label-3353
SELECT DISTINCT + + col0 - - col2 AS col1, + CAST ( NULL AS INTEGER ) + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

query I rowsort
SELECT DISTINCT + col1 + + col0 FROM tab1 cor0 WHERE NOT col2 NOT IN ( + + col2, - col2, + 57, col2 )
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT - CAST( NULL AS SIGNED ) * - + 92 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - CAST ( NULL AS INTEGER ) * - + 92 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 71 * - ( - 96 ) AS col2 FROM tab2 AS cor0
----
6816
6816
6816

query II rowsort
SELECT + col0 * - col0, col1 AS col1 FROM tab0 AS cor0
----
-225
81
-7569
21
-9409
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - col1 col0, col0 AS col1 FROM tab1 AS cor0
----
196
51
2209
91
25
85

query I rowsort
SELECT col0 * ( + col1 ) + - 91 + + 29 AS col2 FROM tab0 AS cor0
----
1153
1765
35

query II rowsort
SELECT 67 AS col0, + col1 AS col0 FROM tab0
----
67
1
67
21
67
81

query I rowsort
SELECT ALL - col1 * - - ( 99 ) FROM tab2
----
-5049
-6633
-7623

query I rowsort
SELECT ALL - col2 * - 47 AS col1 FROM tab1
----
2773
3196
4512

query II rowsort
SELECT col0, col0 + + col0 FROM tab1
----
51
102
85
170
91
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3364
SELECT ALL 94 DIV - COUNT( DISTINCT - - 84 ) AS col2 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL 94 / - COUNT ( DISTINCT - - 84 ) AS col2 FROM tab2
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 17 FROM tab2
----
51
-17
67
-17
77
-17

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL > 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT MAX( - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3368
SELECT MAX ( - + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + - COUNT( ALL + 26 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3369
SELECT + - COUNT ( ALL + 26 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 32 * - - col2 AS col0 FROM tab0
----
1504
3168
320

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * ( + + 17 ) IN ( + 69 + col2, col0 )
----
-51
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT MAX( DISTINCT - - 23 ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3372
SELECT MAX ( DISTINCT - - 23 ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT ALL - 60 + ( ( - 54 ) ) AS col2 FROM tab2 AS cor0
----
-114
-114
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT DISTINCT - + CAST( + - col2 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT - + CAST ( + - col2 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT - ( - ( + col0 ) ) BETWEEN CAST( NULL AS SIGNED ) AND ( - - ( col2 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT - ( - ( + col0 ) ) BETWEEN CAST ( NULL AS INTEGER ) AND ( - - ( col2 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT - COUNT( * ) * + + 59 col1 FROM tab2
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3376
SELECT - COUNT ( * ) * + + 59 col1 FROM tab2
----
-177

query I rowsort
SELECT ALL col2 + + 2 * 54 AS col2 FROM tab2
----
131
148
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT COUNT( * ) + + COUNT( DISTINCT - 26 ) AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT COUNT ( * ) + + COUNT ( DISTINCT - 26 ) AS col2 FROM tab2
----
4

query I rowsort
SELECT - 75 * - 23 + - col0 - - 95 * - + 70 FROM tab0
----
-4940
-5012
-5022

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - col0 * + - col0 * col1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT COUNT( - 61 ) + + 34 * - - ( + - 25 ) AS col2 FROM tab1
----
-847

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT COUNT ( - 61 ) + + 34 * - - ( + - 25 ) AS col2 FROM tab1
----
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - ( - MAX( col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - ( - MAX ( col0 ) ) FROM tab2
----
75

query I rowsort
SELECT + col2 + - 51 AS col0 FROM tab1
----
17
45
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col0 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * col0 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + - 76
----

query I rowsort
SELECT - 59 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT DISTINCT 5 - - 54 DIV ( - + col1 ) * - - 98 FROM tab1
----
-289
-93
-975

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT 5 - - 54 / ( - + col1 ) * - - 98 FROM tab1
----
-289
-93
-975

query I rowsort
SELECT 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT ALL + CAST( - col1 AS SIGNED ) * + 78 + - + 28 FROM tab2 cor0
----
-4006
-5254
-6034

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + CAST ( - col1 AS INTEGER ) * + 78 + - + 28 FROM tab2 cor0
----
-4006
-5254
-6034

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - COUNT( * ) * - 25 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3391
SELECT - COUNT ( * ) * - 25 FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3392
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----
0

query I rowsort
SELECT + 40 * - col1 * + 12 * + + 66 + col1 + + col2 + - 59 * - col0 FROM tab0 cor0
----
-2565067
-25857
-660116

query II rowsort
SELECT - - ( + col1 ), + 7 AS col2 FROM tab2 AS cor0
----
51
7
67
7
77
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT + col2 DIV + + ( + + 33 ) FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3396
SELECT + col2 / + + ( + + 33 ) FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - MIN( DISTINCT - + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3397
SELECT - MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT 99 * - col1 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL COUNT( * ) * - 57 * 87 AS col0 FROM tab0
----
-14877

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL COUNT ( * ) * - 57 * 87 AS col0 FROM tab0
----
-14877

query I rowsort
SELECT ALL - ( 31 ) * - col1 FROM tab0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL + COUNT( * ) * + 93 col1 FROM tab2
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3401
SELECT ALL + COUNT ( * ) * + 93 col1 FROM tab2
----
279

query II rowsort
SELECT ALL + 54 / - - col0, + 41 FROM tab2 WHERE + 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col2 * - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col2 * - col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT ( col0 ), col1 * + 24 FROM tab0
----
15
1944
87
504
97
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT - SUM( ALL + 75 ) AS col2 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3405
SELECT - SUM ( ALL + 75 ) AS col2 FROM tab0 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT COUNT( - 6 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3406
SELECT COUNT ( - 6 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 92 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> ( - + col2 ) )
----

query I rowsort
SELECT + col0 * 26 AS col1 FROM tab1 AS cor0
----
1326
2210
2366

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT DISTINCT 67 * + - MIN( ALL - 52 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
3484

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT 67 * + - MIN ( ALL - 52 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
3484

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT - 30 + col0 - + col2 AS col1 FROM tab1 AS cor0
----
-4
-7
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3414
SELECT - col0 * + CAST( NULL AS DECIMAL ) / + + col0 + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT - col0 * + CAST ( NULL AS REAL ) / + + col0 + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL MAX( DISTINCT + + 3 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL MAX ( DISTINCT + + 3 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col1 * + col2 + - col1 + + - 58 FROM tab2 AS cor0
----
-1282
-3215
-4011

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT - 40 + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3417
SELECT - 40 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-43

query II rowsort
SELECT ALL + col2 + col1 * - 5 AS col0, ( - + 81 ) FROM tab1 AS cor0
----
-167
-81
26
-81
34
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3419
SELECT + 72 * + col2 + - CAST( NULL AS DECIMAL ) AS col0, col0 * + + 7 * col2 * + - 95 + col1 - col1 * + - 51 FROM tab2 AS cor0
----
NULL
-1698396
NULL
-2889266
NULL
-700918

skipif mysql # not compatible
query II rowsort label-3419
SELECT + 72 * + col2 + - CAST ( NULL AS REAL ) AS col0, col0 * + + 7 * col2 * + - 95 + col1 - col1 * + - 51 FROM tab2 AS cor0
----
NULL
-1698396
NULL
-2889266
NULL
-700918

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - - COUNT( * ) + + - 83 + - - 14 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3420
SELECT - - COUNT ( * ) + + - 83 + - - 14 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - col1 + + + col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - COUNT( + col2 ) + MIN( ALL - 91 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3422
SELECT - COUNT ( + col2 ) + MIN ( ALL - 91 ) FROM tab0 AS cor0
----
-94

query I rowsort
SELECT + 25 AS col2 FROM tab0 WHERE - col1 IS NULL
----

query II rowsort
SELECT DISTINCT 28 + - - 96 AS col1, col0 FROM tab2
----
124
46
124
64
124
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT - CAST( NULL AS SIGNED ) * + 81 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT - CAST ( NULL AS INTEGER ) * + 81 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3427
SELECT CAST( ( col2 ) AS SIGNED ) - + 68 - - col1, + col0 FROM tab1 cor0
----
-4
85
42
51
47
91

skipif mysql # not compatible
query II rowsort label-3427
SELECT CAST ( ( col2 ) AS INTEGER ) - + 68 - - col1, + col0 FROM tab1 cor0
----
-4
85
42
51
47
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1 * - 29 * col1
----

query I rowsort
SELECT + col2 * + + 16 + + - col1 FROM tab1 AS cor0
----
1041
1522
939

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT col1 DIV col2 FROM tab0 WHERE - col2 IS NOT NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3430
SELECT col1 / col2 FROM tab0 WHERE - col2 IS NOT NULL
----
0
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3431
SELECT ALL col2 AS col0, + col1 DIV + 12 FROM tab0
----
10
1
47
6
99
0

skipif mysql # not compatible
query II rowsort label-3431
SELECT ALL col2 AS col0, + col1 / + 12 FROM tab0
----
10
1
47
6
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + MAX( - 27 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-27

skipif mysql # not compatible
query I rowsort label-3432
SELECT + MAX ( - 27 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( + + col0 ) * - 82 FROM tab2 AS cor0
----
-3772
-5248
-6150

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL - - ( - - ( - - ( - SUM( ALL - col2 ) ) ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL - - ( - - ( - - ( - SUM ( ALL - col2 ) ) ) ) FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - 41
----

query I rowsort
SELECT 71 * + col0 AS col2 FROM tab2 AS cor0
----
3266
4544
5325

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 25 AS col2, col1 col2 FROM tab0 AS cor0
----
-25
1
-25
21
-25
81

query I rowsort
SELECT ALL - - 38 * - 17 AS col1 FROM tab2 AS cor0
----
-646
-646
-646

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <= - 83 + - + 73 - - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT + - col1 / - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT DISTINCT COUNT( ALL + - 38 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT COUNT ( ALL + - 38 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3444
SELECT DISTINCT + CAST( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3444
SELECT DISTINCT + CAST ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3445
SELECT ALL - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3445
SELECT ALL - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT + CAST( + col2 AS SIGNED ) col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3446
SELECT + CAST ( + col2 AS INTEGER ) col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT + MAX( + col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3447
SELECT DISTINCT + MAX ( + col2 ) col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT - MIN( ALL + 96 ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - MIN ( ALL + 96 ) AS col1 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT ALL 58 + col1 AS col0 FROM tab2 cor0
----
109
125
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3450
SELECT COUNT( * ) * + - SUM( + 33 ), 60 - - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-297
NULL

skipif mysql # not compatible
query II rowsort label-3450
SELECT COUNT ( * ) * + - SUM ( + 33 ), 60 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-297
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 IS NULL
----

query I rowsort
SELECT 76 * - - ( - + col1 ) + - col2 - - col1 AS col0 FROM tab2
----
-3848
-5083
-5815

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT - MAX( ALL - + col0 ) * - 6 + - - COUNT( * ) + - 85 AS col1 FROM tab1
----
-388

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - MAX ( ALL - + col0 ) * - 6 + - - COUNT ( * ) + - 85 AS col1 FROM tab1
----
-388

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT ALL + col2 DIV - - col0 + - 37 FROM tab2
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL + col2 / - - col0 + - 37 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT ALL 23 * col2 - col1 AS col1 FROM tab0
----
1000
209
2276

query I rowsort
SELECT col0 + - ( + 65 ) FROM tab2
----
-1
-19
10

query I rowsort
SELECT DISTINCT 92 + col0 FROM tab1
----
143
177
183

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3458
SELECT CAST( NULL AS DECIMAL ) + - - MIN( - col1 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT CAST ( NULL AS REAL ) + - - MIN ( - col1 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL COUNT( ALL + - ( + - 74 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL COUNT ( ALL + - ( + - 74 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 86 col2 FROM tab1 AS cor0
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3462
SELECT MIN( DISTINCT + 34 ) * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 6 / + + col2 <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT MIN ( DISTINCT + 34 ) * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 6 / + + col2 <= + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT col2 DIV 14 FROM tab0 AS cor0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT col2 / 14 FROM tab0 AS cor0
----
0
3
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT + - col0 DIV + - col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3464
SELECT + - col0 / + - col2 FROM tab1 cor0
----
0
1
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 87 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - MAX( DISTINCT 85 ) col2 FROM tab2
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3466
SELECT - MAX ( DISTINCT 85 ) col2 FROM tab2
----
-85

query I rowsort
SELECT + - 72 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 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-3468
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - - 28 AS col1 FROM tab2 AS cor0
----
1288
1792
2100

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE col2 / + - 6 IS NULL
----

query I rowsort
SELECT ALL + + col2 + 79 AS col0 FROM tab0 AS cor0 WHERE col1 * - ( - 49 ) / + col0 IS NOT NULL
----
126
178
89

query I rowsort
SELECT - - ( - + 8 ) * - 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + + 50 ) FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT - ( + col2 ) * + - col2 FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT - col0 * + - 35 AS col2 FROM tab1
----
1785
2975
3185

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( - col0 ) NOT BETWEEN NULL AND col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT - CAST( + + 62 AS SIGNED ) FROM tab2
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-3479
SELECT - CAST ( + + 62 AS INTEGER ) FROM tab2
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL + COUNT( + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + COUNT ( + col0 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3482
SELECT DISTINCT * FROM tab0 WHERE CAST( - col1 AS SIGNED ) * - col1 - col0 < 35 + 27 * + - 66 + + 25 * - ( + ( 44 ) ) + + col2
----

skipif mysql # not compatible
query III rowsort label-3482
SELECT DISTINCT * FROM tab0 WHERE CAST ( - col1 AS INTEGER ) * - col1 - col0 < 35 + 27 * + - 66 + + 25 * - ( + ( 44 ) ) + + col2
----

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab1, tab0 cor0
----
-60

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT DISTINCT + ( - ( + - COUNT( * ) ) ), + COUNT( * ) + + + ( ( + COUNT( DISTINCT - col1 ) ) ) AS col2 FROM tab0
----
3
6

skipif mysql # not compatible
query II rowsort label-3485
SELECT DISTINCT + ( - ( + - COUNT ( * ) ) ), + COUNT ( * ) + + + ( ( + COUNT ( DISTINCT - col1 ) ) ) AS col2 FROM tab0
----
3
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 45 > 73
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT DISTINCT col0 * col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT col0 * col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 89 + - 71 AS col0 FROM tab0 AS cor0
----
-160

query II rowsort
SELECT DISTINCT col0 AS col2, col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT + 37 + + 65 AS col2 FROM tab2
----
102
102
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT - col0 + + col0 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - col0 + + col0 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1, - 55 AS col0 FROM tab0 AS cor0
----
1
-55
21
-55
81
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - 64 + + - COUNT( * ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - 64 + + - COUNT ( * ) FROM tab2 AS cor0
----
-67

query II rowsort
SELECT - + col0 AS col2, + col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( ( NULL ) IS NOT NULL ) )
----
-15
81
-87
21
-97
1

query I rowsort
SELECT ALL - - col0 + + + col2 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - + col2 ) * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( + 34 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - col2 * - - col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - COUNT( * ) * ( 4 ) AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - COUNT ( * ) * ( 4 ) AS col2 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT col0 + col2 - - 85 AS col1 FROM tab0 AS cor0
----
147
182
281

query II rowsort
SELECT - - col2 AS col2, col0 - col1 FROM tab1 AS cor0
----
59
80
68
44
96
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL - + COUNT( * ) + + + 68 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL - + COUNT ( * ) + + + 68 FROM tab1 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT - - col0 DIV col0 * col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3505
SELECT - - col0 / col0 * col0 AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - MAX( - 81 ) + - - 29 - + + 45 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - MAX ( - 81 ) + - - 29 - + + 45 FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3507
SELECT ALL + col0 - + col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3507
SELECT ALL + col0 - + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT DISTINCT 37 + + + 29 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT COUNT( * ) - + COUNT( * ) + + MAX( ALL - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) + + MAX ( ALL - col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT col1 - + - col0 FROM tab1
----
138
65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT DISTINCT col1 DIV + ( + + 50 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT col1 / + ( + + 50 ) FROM tab1
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL col0 * + + 0 AS col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + - col0, col0, - col2 )
----

query I rowsort
SELECT - 90 * + - col2 AS col1 FROM tab2 AS cor0
----
2070
3600
5220

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + + 62 NOT BETWEEN - 97 AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1 / + + 27, 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT + 62 * - + CAST( - col1 AS SIGNED ) FROM tab2
----
3162
4154
4774

skipif mysql # not compatible
query I rowsort label-3518
SELECT + 62 * - + CAST ( - col1 AS INTEGER ) FROM tab2
----
3162
4154
4774

query I rowsort
SELECT + 47 * + col2 FROM tab2
----
1081
1880
2726

query II rowsort
SELECT DISTINCT ( - + col2 ) AS col0, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT - - col1 + 8 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT - COUNT( * ) + - + 62 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-3522
SELECT - COUNT ( * ) + - + 62 FROM tab0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT ALL - ( - 92 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
92
3

skipif mysql # not compatible
query II rowsort label-3523
SELECT ALL - ( - 92 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
92
3

query I rowsort
SELECT DISTINCT + 68 + + - 39 FROM tab1 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT COUNT( ALL + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( 61 * col0, + col2, - ( - 77 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT COUNT ( ALL + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( 61 * col0, + col2, - ( - 77 ) )
----
0

query I rowsort
SELECT DISTINCT + ( + col2 ) * - - 35 - - col1 AS col2 FROM tab1 AS cor0
----
2070
2427
3374

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3527
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + + CAST( + col0 AS SIGNED ) / - 33 IS NOT NULL AND NOT ( NOT - ( col0 ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3527
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + + CAST ( + col0 AS INTEGER ) / - 33 IS NOT NULL AND NOT ( NOT - ( col0 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3528
SELECT * FROM tab2 WHERE ( ( NULL <= ( - CAST( NULL AS DECIMAL ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-3528
SELECT * FROM tab2 WHERE ( ( NULL <= ( - CAST ( NULL AS REAL ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL - 75 + + COUNT( * ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - 75 + + COUNT ( * ) AS col2 FROM tab0
----
-72

query I rowsort
SELECT DISTINCT 46 - - col1 FROM tab2
----
113
123
97

query I rowsort
SELECT ALL + col2 * + 59 * + col0 + - col1 * - - 96 AS col0 FROM tab0
----
33819
49314
566481

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL - 93 - COUNT( * ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - 93 - COUNT ( * ) AS col1 FROM tab2
----
-96

query I rowsort
SELECT + col1 + - col2 * - col2 FROM tab0
----
121
2290
9802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT col0 + - 90 * CAST( NULL AS SIGNED ) * + + 95 * - 85 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT col0 + - 90 * CAST ( NULL AS INTEGER ) * + + 95 * - 85 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 38 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 25 IN ( + col0 - + 28, + col1 * - 40 + + col2 + - 89, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3537
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 38 * col0 AS col2 FROM tab1
----
-1938
-3230
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT - ( + SUM( DISTINCT - 90 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
90

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT - ( + SUM ( DISTINCT - 90 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= + col0
----

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3541
SELECT DISTINCT - + col2 DIV 66 AS col0, col2 + - + 13 + - - col2 FROM tab1 AS cor0
----
-1
123
-1
179
0
105

skipif mysql # not compatible
query II rowsort label-3541
SELECT DISTINCT - + col2 / 66 AS col0, col2 + - + 13 + - - col2 FROM tab1 AS cor0
----
-1
123
-1
179
0
105

query I rowsort
SELECT ( - - col0 ) * + + col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT - 69 * + COUNT( * ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3543
SELECT - 69 * + COUNT ( * ) FROM tab2 AS cor0
----
-207

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * col1 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL + CAST( - - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 20 * col1 + - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( 91 ) * + - col1 * + 9 - + 53 + + - col1 AS col2 FROM tab0 AS cor0
----
-17273
-66473
-873

query I rowsort
SELECT DISTINCT + col0 + - - col1 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 col2, col0 FROM tab0
----
90
15
90
87
90
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT + col1 DIV + 72 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3551
SELECT + col1 / + 72 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT ALL CAST( NULL AS SIGNED ) + - col1 + + + col2 * col2 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-3552
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 + + + col2 * col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 cor0 WHERE 39 * 83 + + CAST( NULL AS SIGNED ) >= + col1 + ( + col2 ) + + col1 - - col2 * 87 * - ( - col1 ) * + 76
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE 39 * 83 + + CAST ( NULL AS INTEGER ) >= + col1 + ( + col2 ) + + col1 - - col2 * 87 * - ( - col1 ) * + 76
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3554
SELECT + 7 col1, - COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
7
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3554
SELECT + 7 col1, - COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
7
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL + COUNT( * ) + - - COUNT( * ) * - - SUM( DISTINCT col2 ) * + + COUNT( * ) - - 90 AS col1 FROM tab1 AS cor0
----
2100

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) * - - SUM ( DISTINCT col2 ) * + + COUNT ( * ) - - 90 AS col1 FROM tab1 AS cor0
----
2100

query I rowsort
SELECT + ( + 62 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = - 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3558
SELECT ALL + col1 - + 66, CAST( + col1 AS SIGNED ) * + + 50 AS col1 FROM tab0 AS cor0
----
-45
1050
-65
50
15
4050

skipif mysql # not compatible
query II rowsort label-3558
SELECT ALL + col1 - + 66, CAST ( + col1 AS INTEGER ) * + + 50 AS col1 FROM tab0 AS cor0
----
-45
1050
-65
50
15
4050

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT + col2 DIV - - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3559
SELECT + col2 / - - col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + + col2 * + + col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT - 36 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - 36 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT + - 40 FROM tab2 WHERE - col1 - + col0 + + + col2 / - col2 BETWEEN ( NULL ) AND 48
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 32 AS col2 FROM tab1
----
1504
160
448

query II rowsort
SELECT col0, 83 + - - col1 AS col2 FROM tab2
----
46
134
64
160
75
150

query I rowsort
SELECT DISTINCT - 5 * - + col1 FROM tab2
----
255
335
385

query I rowsort
SELECT col0 * + col2 - + ( - col0 ) FROM tab2 WHERE NOT - col1 + + col2 IS NOT NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL MAX( - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL MAX ( - col2 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT + col1 * + col1 + + col1 + col0 AS col0 FROM tab1 AS cor0
----
115
2347
261

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 51 * col0 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 26 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3572
SELECT ALL - 82 DIV 22 AS col0, ( + SUM( ALL + col1 ) ) * - COUNT( * ) AS col0 FROM tab0
----
-3
-309

skipif mysql # not compatible
query II rowsort label-3572
SELECT ALL - 82 / 22 AS col0, ( + SUM ( ALL + col1 ) ) * - COUNT ( * ) AS col0 FROM tab0
----
-3
-309

query I rowsort
SELECT DISTINCT - + col0 + - - col1 - - ( - 72 ) + - + col0 + ( - + ( + 86 ) ) * ( + - 30 ) FROM tab1 AS cor0
----
2343
2373
2420

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> + col2 * - + col1
----

query I rowsort
SELECT ALL - AVG ( DISTINCT col2 ) + - 31 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 - 37 col2 FROM tab0 AS cor0
----
-103
-133
29

query II rowsort
SELECT - col2 AS col0, - 65 AS col1 FROM tab2 AS cor0
----
-23
-65
-40
-65
-58
-65

query II rowsort
SELECT DISTINCT - 91, col0 FROM tab0 cor0
----
-91
15
-91
87
-91
97

query I rowsort
SELECT + col2 * + ( + + col2 ) AS col1 FROM tab1 cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col1 * 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3581
SELECT CAST( 14 AS SIGNED ) * + 31 AS col2, - 48 * - col2 + - 59 AS col1 FROM tab1
----
434
2773
434
3205
434
4549

skipif mysql # not compatible
query II rowsort label-3581
SELECT CAST ( 14 AS INTEGER ) * + 31 AS col2, - 48 * - col2 + - 59 AS col1 FROM tab1
----
434
2773
434
3205
434
4549

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT DISTINCT col1 DIV - col0 * - col0 + 21 AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT col1 / - col0 * - col0 + 21 AS col0 FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( - col1 NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( - col1 NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT - col1 * col1 + - col1 AS col1, col2 AS col0 FROM tab2
----
-2652
23
-4556
58
-6006
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT DISTINCT - MIN( 32 ) AS col0, 95 FROM tab2
----
-32
95

skipif mysql # not compatible
query II rowsort label-3585
SELECT DISTINCT - MIN ( 32 ) AS col0, 95 FROM tab2
----
-32
95

query II rowsort
SELECT col1 + col0, col1 AS col1 FROM tab0
----
108
21
96
81
98
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3587
SELECT col2 * col0 + col0 + + - col0 DIV 88, col0 * - col1 AS col0 FROM tab1
----
4947
-714
5100
-425
6278
-4277

skipif mysql # not compatible
query II rowsort label-3587
SELECT col2 * col0 + col0 + + - col0 / 88, col0 * - col1 AS col0 FROM tab1
----
4947
-714
5100
-425
6278
-4277

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - col2 AND + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT 84 DIV - col0 + + 10 FROM tab1
----
10
10
9

skipif mysql # not compatible
query I rowsort label-3589
SELECT 84 / - col0 + + 10 FROM tab1
----
10
10
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT + - 88 * - ( col0 ) * - 34 + col1 DIV - + col1 AS col2 FROM tab0 AS cor0
----
-260305
-290225
-44881

skipif mysql # not compatible
query I rowsort label-3590
SELECT + - 88 * - ( col0 ) * - 34 + col1 / - + col1 AS col2 FROM tab0 AS cor0
----
-260305
-290225
-44881

query I rowsort
SELECT + + 72 + col2 * 54 AS col0 FROM tab0 AS cor0
----
2610
5418
612

query I rowsort
SELECT DISTINCT + 32 * + col1 + + - 70 AS col0 FROM tab2 cor0
----
1562
2074
2394

query I rowsort
SELECT + col0 * - col2 + + 32 FROM tab0 AS cor0
----
-673
-838
-9571

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL - 76 - + + MAX( 82 ) * + 46 FROM tab1
----
-3848

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - 76 - + + MAX ( 82 ) * + 46 FROM tab1
----
-3848

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3595
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 46 * - 45 - - - col0 FROM tab1
----
-2121
-2155
-2161

query I rowsort
SELECT ALL - col1 * - 95 FROM tab0 AS cor0
----
1995
7695
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + col2 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 53 * + + 0 / + col1 * col1 = NULL
----

query I rowsort
SELECT - + ( - - 30 ) FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT + - 64 * + - 31 AS col0 FROM tab0 AS cor0
----
1984
1984
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT DISTINCT - SUM( - - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - SUM ( - - col2 ) FROM tab1 AS cor0
----
-223

query II rowsort
SELECT col1, - 47 AS col1 FROM tab1 AS cor0
----
14
-47
47
-47
5
-47

query I rowsort
SELECT ALL col1 + + 7 FROM tab0 cor0 WHERE 37 IN ( - - col0, col2, col2, - 81, + - 58 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3605
SELECT col2 DIV + col1, - 37 col1 FROM tab0
----
0
-37
0
-37
99
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3605
SELECT col2 / + col1, - 37 col1 FROM tab0
----
0
-37
0
-37
99
-37

query I rowsort
SELECT - ( - - 73 ) FROM tab1
----
-73
-73
-73

query I rowsort
SELECT - col0 * - col2 * + - col2 AS col2 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT - 51 FROM tab1 WHERE NOT - 41 IS NULL
----
-51
-51
-51

query II rowsort
SELECT DISTINCT - 48, col1 + - 37 * + + ( - col0 ) + 54 FROM tab0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 20 <= NULL
----

query I rowsort
SELECT ALL - - col0 * - col0 AS col2 FROM tab1 AS cor0 WHERE + ( - col2 ) + col1 + - col0 + - col1 IS NOT NULL
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3612
SELECT ALL + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3612
SELECT ALL + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3613
SELECT MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - 79 * - MAX( + + 91 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - 79 * - MAX ( + + 91 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - + col2 * col1 / - col0 < NULL
----

query II rowsort
SELECT DISTINCT 78 AS col1, + 64 * - + 3 AS col2 FROM tab1 AS cor0
----
78
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT - 64 + + COUNT( * ) AS col2 FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - 64 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
-61

query II rowsort
SELECT - 6 + 82 * + + col0 AS col2, + ( col1 ) * + + col2 AS col1 FROM tab0 AS cor0
----
1224
3807
7128
210
7948
99

query II rowsort
SELECT ALL - ( + col1 ) + + 69 * col2 * - - 17 AS col2, col2 AS col1 FROM tab1 AS cor0
----
112594
96
69202
59
79717
68

query I rowsort
SELECT + ( + 56 ) + + col0 AS col0 FROM tab1 AS cor0
----
107
141
147

query I rowsort
SELECT + - col1 + + + col2 AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT DISTINCT + - 9 + 62 DIV - 80 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + - 9 + 62 / - 80 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 75 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col0 * - col1 AS col0 FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT - ( + - col0 ) AS col1 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 53 ) col0 FROM tab2
----
-53
-53
-53

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT + 39 / col0 < - + 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 - - - 47 AS col0, + col1 * + col1 col2 FROM tab0 AS cor0
----
52
1
52
441
52
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL + COUNT( * ) + - + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL + COUNT ( * ) + - + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - - ( MAX( col2 ) ) FROM tab1 cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT - - ( MAX ( col2 ) ) FROM tab1 cor0 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT COUNT( * ) + MAX( ALL + + col2 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3632
SELECT COUNT ( * ) + MAX ( ALL + + col2 ) FROM tab1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT DISTINCT - 18 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT - 18 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT - CAST( + - MAX( ALL - 74 ) AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-74

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - CAST ( + - MAX ( ALL - 74 ) AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-74

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT ALL + 90 * col1 FROM tab2 AS cor0
----
4590
6030
6930

query I rowsort
SELECT - - 85 AS col2 FROM tab2 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT MIN( DISTINCT 20 ) * MIN( ALL - - col0 ) + - 87 AS col2 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-3638
SELECT MIN ( DISTINCT 20 ) * MIN ( ALL - - col0 ) + - 87 AS col2 FROM tab0 AS cor0
----
213

query II rowsort
SELECT DISTINCT + col0 * + - col0 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-2601
51
-7225
85
-8281
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3640
SELECT DISTINCT + - col1 DIV - col0 * + col0 DIV - + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT + - col1 / - col0 * + col0 / - + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1, + 15 * - - CAST( - - col1 AS SIGNED ), - + 84, + + col1 * + col2 - + col1 + + ( + 15 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1, + 15 * - - CAST ( - - col1 AS INTEGER ), - + 84, + + col1 * + col2 - + col1 + + ( + 15 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 82 col2 FROM tab0 AS cor0
----
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL - COUNT( * ) * + 86 FROM tab1 AS cor0 WHERE NOT - col2 < + 40 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - COUNT ( * ) * + 86 FROM tab1 AS cor0 WHERE NOT - col2 < + 40 * + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT ALL + + CAST( - 6 AS SIGNED ) FROM tab1 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + + CAST ( - 6 AS INTEGER ) FROM tab1 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT ALL + SUM( ALL + + CAST( NULL AS SIGNED ) ) col1 FROM tab0 WHERE 63 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3646
SELECT ALL + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 WHERE 63 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT CAST( + CAST( - ( - col2 ) AS SIGNED ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT CAST ( + CAST ( - ( - col2 ) AS INTEGER ) AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3648
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ), COUNT( * ) AS col1 FROM tab2 WHERE NOT - + 77 IN ( - col0, col2, + CAST( NULL AS SIGNED ) / + col0 + - col2, + col0 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3648
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col1 FROM tab2 WHERE NOT - + 77 IN ( - col0, col2, + CAST ( NULL AS INTEGER ) / + col0 + - col2, + col0 )
----
NULL
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT - - col1 = + col2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3650
SELECT * FROM tab1 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) = + col1
----

skipif mysql # not compatible
query III rowsort label-3650
SELECT * FROM tab1 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) = + col1
----

query II rowsort
SELECT 22 AS col0, + col2 AS col1 FROM tab2
----
22
23
22
40
22
58

query I rowsort
SELECT ALL - + col1 * - col2 AS col1 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * col1 AND - + ( - col0 ) - + col1 + col1 / + col0 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * col1 AND - + ( - col0 ) - + col1 + col1 / + col0 * - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + ( + 16 ) + - COUNT( * ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + ( + 16 ) + - COUNT ( * ) AS col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT DISTINCT COUNT( * ) + + 19 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT COUNT ( * ) + + 19 FROM tab2
----
22

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <= + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL MIN( DISTINCT col0 ) FROM tab0 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL MIN ( DISTINCT col0 ) FROM tab0 WHERE NULL IS NULL
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + col0 <= NULL
----

query I rowsort
SELECT + col1 * col2 FROM tab1 WHERE NOT ( col1 * col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT + SUM( + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + SUM ( + col1 ) FROM tab1
----
66

query I rowsort
SELECT + col0 * ( 91 ) + 73 * - col1 AS col0 FROM tab1 WHERE col0 = NULL
----

query I rowsort
SELECT - col2 * col0 + col1 * 10 FROM tab1
----
-4756
-4965
-5718

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( + col2 * ( 7 ) + + 16 * + col2 ) BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab2 WHERE col2 <> col0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT MAX( ALL ( col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3666
SELECT MAX ( ALL ( col0 ) ) FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3668
SELECT MIN( ALL 56 ) - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3668
SELECT MIN ( ALL 56 ) - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT ( - col0 ) + col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ( - col0 ) + col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col2 FROM tab1 WHERE NOT + col0 + - col0 > 80
----
144
147
159

query III rowsort
SELECT * FROM tab2 WHERE NOT + 3 NOT BETWEEN NULL AND ( - col2 + - 56 )
----

query I rowsort
SELECT col0 / + col1 FROM tab1 WHERE ( + 89 ) BETWEEN col2 + - col1 AND ( 11 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 64 NOT IN ( - col2 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 68 + - col2 AS col2 FROM tab0
----
-31
21
58

query I rowsort
SELECT col2 * 93 AS col1 FROM tab1
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT MAX( col1 ) * ( 15 ) FROM tab2
----
1155

skipif mysql # not compatible
query I rowsort label-3676
SELECT MAX ( col1 ) * ( 15 ) FROM tab2
----
1155

query I rowsort
SELECT ALL - col1 + 52 AS col1 FROM tab2
----
-15
-25
1

query I rowsort
SELECT ALL col0 + - 56 AS col0 FROM tab1
----
-5
29
35

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab0 WHERE ( col2 / + 40 + col2 ) IS NOT NULL
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT COUNT( * ) * + 79 AS col0 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-3680
SELECT COUNT ( * ) * + 79 AS col0 FROM tab1
----
237

query I rowsort
SELECT ( + col2 ) * + 22 AS col1 FROM tab2
----
1276
506
880

query I rowsort
SELECT ALL - ( 65 ) + + ( 57 ) AS col0 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT 6 FROM tab2 WHERE NOT 65 * ( + 76 * - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + col0 * - 13 AS col2 FROM tab1 AS cor0
----
-1105
-1183
-663

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 + - col1 AND NULL
----

query I rowsort
SELECT + col1 + 37 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * 76 FROM tab0 cor0
----
1596
6156
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT ( - CAST( NULL AS SIGNED ) ) * - 16 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT ( - CAST ( NULL AS INTEGER ) ) * - 16 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 93 - 91 FROM tab1 AS cor0
----
-184
-184
-184

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 80 * + col1 FROM tab0 AS cor0
----
1680
6480
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT col0 * + col0 FROM tab0 WHERE NOT ( 7 ) / CAST( col0 - col0 AS SIGNED ) + - col1 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3693
SELECT col0 * + col0 FROM tab0 WHERE NOT ( 7 ) / CAST ( col0 - col0 AS INTEGER ) + - col1 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( col0 ) + col1 ) <> + col1
----

query I rowsort
SELECT DISTINCT + + 61 AS col2 FROM tab2 AS cor0
----
61

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT + ( 13 ) * + col0 NOT IN ( 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT ALL 98 DIV 1 AS col1 FROM tab0 cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL 98 / 1 AS col1 FROM tab0 cor0
----
98
98
98

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + 79 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col1 * - col2 IS NULL
----
46
64
75

query I rowsort
SELECT 38 + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( 13 + - ( col1 ) )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 36 IN ( - col1 + - col2 * + 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT + + MAX( 63 ) col1 FROM tab2 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3702
SELECT + + MAX ( 63 ) col1 FROM tab2 cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT + + ( + col0 ) DIV col1 AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3703
SELECT + + ( + col0 ) / col1 AS col0 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT DISTINCT + 71 * - col2 AS col1 FROM tab1
----
-4189
-4828
-6816

query I rowsort
SELECT DISTINCT 60 * + + 79 FROM tab1
----
4740

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL + 21 * + MAX( 55 ) FROM tab0
----
1155

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + 21 * + MAX ( 55 ) FROM tab0
----
1155

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 48 * col1 ) NOT IN ( + 45 - + 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 60 + AVG ( ALL col1 ) FROM tab2 WHERE NOT NULL < ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > ( + 51 )
----

query I rowsort
SELECT 5 * 68 * - col1 FROM tab2
----
-17340
-22780
-26180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL + CAST( - 32 AS SIGNED ) FROM tab1 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + CAST ( - 32 AS INTEGER ) FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3712
SELECT MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 64 ) * + col1 col1 FROM tab2 cor0
----
-3264
-4288
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL MIN( + col0 ) + 7 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL MIN ( + col0 ) + 7 FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT - COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 60 + ( col1 ) AS col2 FROM tab1 AS cor0
----
-13
-46
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3717
SELECT DISTINCT CAST( + 62 AS SIGNED ) DIV 8 FROM tab1, tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT CAST ( + 62 AS INTEGER ) / 8 FROM tab1, tab1 AS cor0
----
7

query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + COUNT( * ) FROM tab1 WHERE col1 > ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT + COUNT ( * ) FROM tab1 WHERE col1 > ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL MIN( DISTINCT 33 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL MIN ( DISTINCT 33 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - + 24 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3721
SELECT - + 24 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT + + 59 * col1 + + + ( col1 ) AS col2 FROM tab1 AS cor0
----
2820
300
840

query II rowsort
SELECT ALL + 53 AS col0, 74 AS col2 FROM tab2 AS cor0
----
53
74
53
74
53
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 93 ) IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 70 + + - col0 + + 61 col2 FROM tab2 AS cor0
----
56
67
85

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE ( - col0 + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT CAST( col2 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT - - 96 * - 80 + - col0 FROM tab1 cor0
----
-7731
-7765
-7771

query I rowsort
SELECT - - 1 + + col2 - + col1 + - col2 FROM tab2 cor0
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - - COUNT( ALL - - 9 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3730
SELECT - - COUNT ( ALL - - 9 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT COUNT( * ) - - MAX( DISTINCT + + 55 ) AS col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT COUNT ( * ) - - MAX ( DISTINCT + + 55 ) AS col1 FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NULL < + col1
----
0

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL < + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3733
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) * + ( - col0 ) = + col2
----

skipif mysql # not compatible
query III rowsort label-3733
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * + ( - col0 ) = + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 * - ( ( - 24 ) ) + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT - MIN( DISTINCT + - 82 ) * + 35 * + COUNT( * ) AS col1 FROM tab1
----
8610

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT - MIN ( DISTINCT + - 82 ) * + 35 * + COUNT ( * ) AS col1 FROM tab1
----
8610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT ALL ( - col2 ) - + + col2 * + + col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL ( - col2 ) - + + col2 * + + col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - ( 15 ) col1 FROM tab1
----
44
53
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT ( - CAST( NULL AS SIGNED ) ) * 27 + SUM( DISTINCT 0 ) AS col1 FROM tab0 WHERE 96 / + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT ( - CAST ( NULL AS INTEGER ) ) * 27 + SUM ( DISTINCT 0 ) AS col1 FROM tab0 WHERE 96 / + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + 41 * - col1 * + col2 + col1 - + col2 FROM tab1 AS cor0
----
-12149
-131057
-55186

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3740
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT IN ( - 71 )
----

skipif mysql # not compatible
query III rowsort label-3740
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( - 71 )
----

query I rowsort
SELECT ALL + - ( - - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT - 11 - + + 68 DIV col0 * col1 * col1 col1 FROM tab2 cor0
----
-11
-2612
-5940

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3742
SELECT - 11 - + + 68 / col0 * col1 * col1 col1 FROM tab2 cor0
----
-11
-2612
-5940

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 53 - + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT col1 + - - CAST( + - 75 AS SIGNED ) FROM tab0 AS cor0
----
-54
-74
6

skipif mysql # not compatible
query I rowsort label-3745
SELECT col1 + - - CAST ( + - 75 AS INTEGER ) FROM tab0 AS cor0
----
-54
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL MIN( ALL 69 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL MIN ( ALL 69 ) FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL - COUNT( + - 64 ) * + - 51 col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3747
SELECT ALL - COUNT ( + - 64 ) * + - 51 col0 FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ALL + MAX( ALL + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + MAX ( ALL + - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3749
SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT + COUNT( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 54 AS col2 FROM tab2 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3753
SELECT * FROM tab2 WHERE NOT ( + + col1 ) NOT BETWEEN ( - - col2 ) + 66 - + CAST( 74 + + col1 AS SIGNED ) AND - 3
----

skipif mysql # not compatible
query III rowsort label-3753
SELECT * FROM tab2 WHERE NOT ( + + col1 ) NOT BETWEEN ( - - col2 ) + 66 - + CAST ( 74 + + col1 AS INTEGER ) AND - 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT CAST( NULL AS SIGNED ) / + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT CAST ( NULL AS INTEGER ) / + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 25 * - + 74 FROM tab1
----
-1850
-1850
-1850

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 * + col1 + + 76 ) < ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 6 + - col2 col2 FROM tab1
----
14
-90
47
-62
5
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT - COUNT( * ), ( + COUNT( * ) ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3758
SELECT - COUNT ( * ), ( + COUNT ( * ) ) AS col1 FROM tab0
----
-3
3

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 + + 1 FROM tab2
----
46
47
64
65
75
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT DISTINCT col2 DIV + ( col1 ) AS col0 FROM tab2 AS cor0 WHERE ( 53 + - col1 + + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT col2 / + ( col1 ) AS col0 FROM tab2 AS cor0 WHERE ( 53 + - col1 + + col2 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT DISTINCT col2 * CAST( - - col2 AS SIGNED ) + + col1 AS col1 FROM tab0 cor0
----
121
2290
9802

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT col2 * CAST ( - - col2 AS INTEGER ) + + col1 AS col1 FROM tab0 cor0
----
121
2290
9802

query I rowsort
SELECT DISTINCT col2 + + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
104
133
69

query I rowsort
SELECT DISTINCT + + 70 + 11 FROM tab2 AS cor0 WHERE ( - col1 ) / - - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + 30 * COUNT( * ) + + 25 AS col0 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-3764
SELECT + 30 * COUNT ( * ) + + 25 AS col0 FROM tab2 AS cor0
----
115

query I rowsort
SELECT DISTINCT - ( + 56 ) + - col0 AS col2 FROM tab1
----
-107
-141
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL - 48 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - 48 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-3767
SELECT DISTINCT col2 DIV - 26 AS col2, col2 FROM tab0
----
-1
47
-3
99
0
10

skipif mysql # not compatible
query II rowsort label-3767
SELECT DISTINCT col2 / - 26 AS col2, col2 FROM tab0
----
-1
47
-3
99
0
10

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( - col0 >= NULL ) )
----

query I rowsort
SELECT ALL - 8 AS col1 FROM tab0 cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT CAST( NULL AS SIGNED ) + 95 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-3770
SELECT CAST ( NULL AS INTEGER ) + 95 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL + SUM( + - col1 ) * - - 81 FROM tab0 AS cor0 WHERE - 33 * col2 < - col0
----
-8343

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + SUM ( + - col1 ) * - - 81 FROM tab0 AS cor0 WHERE - 33 * col2 < - col0
----
-8343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3772
SELECT 59 + - SUM( DISTINCT 5 ), CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3772
SELECT 59 + - SUM ( DISTINCT 5 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - COUNT( * ) + 10 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3773
SELECT - COUNT ( * ) + 10 FROM tab0
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3774
SELECT ALL + col0 * - 33 * - col2 * CAST( NULL AS DECIMAL ) * - col0 + - col1 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL + col0 * - 33 * - col2 * CAST ( NULL AS REAL ) * - col0 + - col1 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT COUNT( * ) - 49 AS col2 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT COUNT ( * ) - 49 AS col2 FROM tab1
----
-46

query II rowsort
SELECT - + 60 AS col0, col2 FROM tab2 WHERE - col1 <= col2 + + col0
----
-60
23
-60
40
-60
58

query I rowsort
SELECT + col2 + + - col0 AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT + + ( 75 ) AS col1 FROM tab0 WHERE ( NULL ) <> - col2
----

query I rowsort
SELECT col0 * - - col1 + - col1 AS col0 FROM tab0
----
1134
1806
96

query I rowsort
SELECT ALL col2 - + + col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT - col2 FROM tab1 WHERE + col0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT + col1 + 58 AS col0 FROM tab1
----
105
63
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3783
SELECT * FROM tab2 WHERE col0 + - CAST( NULL AS SIGNED ) NOT IN ( - + col2 + + + col0 )
----

skipif mysql # not compatible
query III rowsort label-3783
SELECT * FROM tab2 WHERE col0 + - CAST ( NULL AS INTEGER ) NOT IN ( - + col2 + + + col0 )
----

query I rowsort
SELECT 73 + - - ( - 2 ) * - 52 AS col2 FROM tab0
----
177
177
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL + COUNT( + col2 ) - + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + COUNT ( + col2 ) - + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT - + col0 AS col1 FROM tab1 WHERE - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 - col1 col2 FROM tab2
----
-19
-35
-45

query II rowsort
SELECT DISTINCT 39 AS col2, col0 / + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT + MAX( + 20 ) AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + MAX ( + 20 ) AS col1 FROM tab2 AS cor0
----
20

query II rowsort
SELECT DISTINCT + 17, col1 AS col1 FROM tab1 AS cor0
----
17
14
17
47
17
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 38 + + 31 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 5 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT + 16 * + - col1 * - + 42 * - col0 FROM tab2 AS cor0
----
-1576512
-3311616
-3376800

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - - col1 ) + + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 / - 19 ) AND col2
----

query I rowsort
SELECT col2 + + col1 + col1 AS col0 FROM tab0
----
101
209
52

query I rowsort
SELECT 38 + - - 49 FROM tab1
----
87
87
87

query I rowsort
SELECT ( - col0 ) * + 44 * + - col1 * 20 * - 43 FROM tab0
----
-3670480
-45975600
-69133680

query I rowsort
SELECT DISTINCT 51 FROM tab1 WHERE NOT 42 < 75 + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3801
SELECT 46 DIV - 89 * + 2, 22 AS col1 FROM tab2
----
0
22
0
22
0
22

skipif mysql # not compatible
query II rowsort label-3801
SELECT 46 / - 89 * + 2, 22 AS col1 FROM tab2
----
0
22
0
22
0
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3803
SELECT ALL * FROM tab2 WHERE NOT + ( - 25 ) NOT BETWEEN - - 44 * + col0 + + - col0 AND ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3803
SELECT ALL * FROM tab2 WHERE NOT + ( - 25 ) NOT BETWEEN - - 44 * + col0 + + - col0 AND ( + CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT col0 + - 79 + - 71 / - 65 FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) / + ( - ( - - 7 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3805
SELECT col0 + - 79 + - 71 / - 65 FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) / + ( - ( - - 7 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col0 col0 FROM tab2 WHERE NOT 22 / col2 IN ( 38 )
----
107916
315392
376875

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT DISTINCT - col1 DIV + col2 + - + 39 * - + col0 - + 44 - col2 FROM tab0 AS cor0
----
3337
3640
493

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT - col1 / + col2 + - + 39 * - + col0 - + 44 - col2 FROM tab0 AS cor0
----
3337
3640
493

query I rowsort
SELECT col2 + + col2 + + - col0 FROM tab2 cor0
----
0
16
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 IN ( - + 85 / 22 / + + col1 * 27 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT - col1 DIV - + col2 + + col1 + 76 + col2 FROM tab0 AS cor0
----
109
176
205

skipif mysql # not compatible
query I rowsort label-3810
SELECT - col1 / - + col2 + + col1 + 76 + col2 FROM tab0 AS cor0
----
109
176
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3811
SELECT ALL + COUNT( ALL - col1 ) AS col1, 44 DIV - + COUNT( * ) FROM tab1 AS cor0
----
3
-14

skipif mysql # not compatible
query II rowsort label-3811
SELECT ALL + COUNT ( ALL - col1 ) AS col1, 44 / - + COUNT ( * ) FROM tab1 AS cor0
----
3
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT - CAST( NULL AS SIGNED ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT - CAST ( NULL AS INTEGER ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 93 col0, col1 FROM tab0 AS cor0
----
93
1
93
21
93
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL - MIN( + - 92 ) AS col2 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - MIN ( + - 92 ) AS col2 FROM tab2 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3815
SELECT ALL - - 22 * col1 + - col2 + + col2 - + CAST( + col2 AS SIGNED ) * 2 DIV - + col0 + 25 - + col2 - + 56 * - col2 * + ( - col1 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
3381
4800
5616

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - - 22 * col1 + - col2 + + col2 - + CAST ( + col2 AS INTEGER ) * 2 / - + col0 + 25 - + col2 - + 56 * - col2 * + ( - col1 ) / - col1 AS col0 FROM tab1 AS cor0
----
3381
4800
5616

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT COUNT( * ) + MIN( DISTINCT + - col2 ) AS col0 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT COUNT ( * ) + MIN ( DISTINCT + - col2 ) AS col0 FROM tab2
----
-55

query I rowsort
SELECT ALL - ( 14 ) FROM tab1 WHERE - ( col0 ) IS NOT NULL
----
-14
-14
-14

query I rowsort
SELECT 79 FROM tab0 WHERE NOT ( ( - 36 ) ) IS NULL
----
79
79
79

query I rowsort
SELECT + col0 * - col2 * - col2 FROM tab2
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT + SUM( - 84 ) FROM tab2 cor0
----
-252

skipif mysql # not compatible
query I rowsort label-3821
SELECT + SUM ( - 84 ) FROM tab2 cor0
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
46
64
75

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - - 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + + col0 / - col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN 25 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + MIN( ALL + - col0 ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3827
SELECT + MIN ( ALL + - col0 ) col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + col0 * - - ( + - 45 ) + col1 + col2 AS col1 FROM tab0 AS cor0
----
-3884
-4265
-547

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT - CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT - CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 * 68, col1 * + col2 AS col2 FROM tab2
----
3468
1173
4556
3886
5236
3080

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE NOT - - col0 + + 53 = + - col2
----
-15
-87
-97

query I rowsort
SELECT - 16 + - col1 * col2 * + - ( col0 ) AS col1 FROM tab0
----
18254
57089
9587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * 48 + col0 col1 FROM tab0
----
4095
4167
4177

query I rowsort
SELECT - col1 * - - col2 * + col0 + col0 FROM tab2
----
-197056
-291375
-53912

query II rowsort
SELECT col2 + 13 AS col2, 65 AS col2 FROM tab1
----
109
65
72
65
81
65

query I rowsort
SELECT + col1 + col2 + + - 72 FROM tab0
----
-41
28
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT + + 22 * - - COUNT( * ) * + - MIN( - col1 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
5085

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + + 22 * - - COUNT ( * ) * + - MIN ( - col1 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
5085

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - COUNT( * ) * + 50 AS col2 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-3840
SELECT - COUNT ( * ) * + 50 AS col2 FROM tab2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + COUNT( * ) * - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3841
SELECT + COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab1 WHERE NOT ( ( NULL ) >= col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT + - 14 + - 79 + + col2 + + col1 DIV col1 * - col1 + 40 + + 27 FROM tab2 WHERE + + 11 * + col0 > - col2 * col2 + + 42
----
-35
-54
-63

skipif mysql # not compatible
query I rowsort label-3844
SELECT + - 14 + - 79 + + col2 + + col1 / col1 * - col1 + 40 + + 27 FROM tab2 WHERE + + 11 * + col0 > - col2 * col2 + + 42
----
-35
-54
-63

query I rowsort
SELECT + 84 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 61 - + + col2 col2 FROM tab0 AS cor0
----
-108
-160
-71

query I rowsort
SELECT ALL - col2 * - 49 AS col0 FROM tab2 cor0
----
1127
1960
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT DISTINCT + MAX( + + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 16 + col0 - + 11 AND - 25 * - col0 * + col0 * - ( + - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT + MAX ( + + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 16 + col0 - + 11 AND - 25 * - col0 * + col0 * - ( + - 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT SUM( - + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT SUM ( - + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - + col0 + - - 47 FROM tab1 AS cor0
----
-378
-4230
-667

query I rowsort
SELECT ALL + 65 + + col1 FROM tab2 AS cor0
----
116
132
142

query I rowsort
SELECT ALL - 88 FROM tab0 WHERE + col0 IN ( - ( - 38 ), 86 * col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT ALL COUNT( * ) DIV + - 2 col2 FROM tab0 WHERE ( + 95 ) = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3854
SELECT ALL COUNT ( * ) / + - 2 col2 FROM tab0 WHERE ( + 95 ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + 32 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + 32 FROM tab2
----
-288

query I rowsort
SELECT ALL col1 * + 2 FROM tab2
----
102
134
154

onlyif mysql # DIV for integer division: 
query II rowsort label-3857
SELECT - ( - col1 ), 12 DIV - 72 AS col2 FROM tab0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-3857
SELECT - ( - col1 ), 12 / - 72 AS col2 FROM tab0
----
1
0
21
0
81
0

query II rowsort
SELECT + ( col1 ), + col2 AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3859
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3859
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL col1, ( + col0 ) FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT - + COUNT( * ) DIV + 92 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT - + COUNT ( * ) / + 92 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 70 + col2 FROM tab0 cor0
----
117
169
80

query I rowsort
SELECT - - col1 + col2 + 55 * + ( + + col0 ) AS col1 FROM tab1 AS cor0
----
2915
4739
5120

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + + col1 + - 65 AS col2 FROM tab2 AS cor0
----
-14
12
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT + + 96 + + CAST( NULL AS SIGNED ) * + col2 * + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3866
SELECT + + 96 + + CAST ( NULL AS INTEGER ) * + col2 * + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col2 + + - 14 FROM tab0 AS cor0
----
-114
-2223
-9815

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT + col0 + + col0 DIV + - col0 AS col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-3868
SELECT + col0 + + col0 / + - col0 AS col0 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT ALL - - col2 + + ( + col2 ) + + 69 FROM tab1 AS cor0
----
187
205
261

onlyif mysql # aggregate syntax: 
query II rowsort label-3870
SELECT DISTINCT - COUNT( * ) col0, - 11 AS col1 FROM tab0
----
-3
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3870
SELECT DISTINCT - COUNT ( * ) col0, - 11 AS col1 FROM tab0
----
-3
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3871
SELECT - col0, + CAST( - + 8 AS SIGNED ) AS col0 FROM tab2
----
-46
-8
-64
-8
-75
-8

skipif mysql # not compatible
query II rowsort label-3871
SELECT - col0, + CAST ( - + 8 AS INTEGER ) AS col0 FROM tab2
----
-46
-8
-64
-8
-75
-8

query I rowsort
SELECT DISTINCT ( - 22 ) AS col0 FROM tab2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 WHERE + 14 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE + 14 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL + MIN( col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + MIN ( col2 ) FROM tab2
----
23

query II rowsort
SELECT ALL + col1, col0 - + 72 FROM tab1
----
14
-21
47
19
5
13

query I rowsort
SELECT DISTINCT + col1 * 4 FROM tab0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT COUNT( * ) + + - SUM( DISTINCT + + col2 ) AS col0 FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT COUNT ( * ) + + - SUM ( DISTINCT + + col2 ) AS col0 FROM tab2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT + COUNT( 72 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3878
SELECT + COUNT ( 72 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 6 + + 74 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT + ( + + 2 ) AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT 55 - col1 FROM tab1 cor0
----
41
50
8

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2, + col1, + 21 * - ( + - col2 ) * - 30 * col1 * col0 + - + 46 * 44 + + col0 * - col0 / - col1 + + - 39 + + + col2 )
----

query I rowsort
SELECT - col0 * + col0 + - + 0 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col1 * col0 + - col0 AS col1 FROM tab1 cor0
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL + COUNT( col0 ) - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL + COUNT ( col0 ) - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 71 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
50055
61770
681813

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT + COUNT( * ) * + 48 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-432

skipif mysql # not compatible
query I rowsort label-3888
SELECT + COUNT ( * ) * + 48 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-432

query II rowsort
SELECT ALL - ( col2 ) * col2, 4 AS col2 FROM tab2
----
-1600
4
-3364
4
-529
4

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3891
SELECT * FROM tab2 WHERE NOT - + ( - ( - CAST( NULL AS SIGNED ) ) ) <> + + col2
----

skipif mysql # not compatible
query III rowsort label-3891
SELECT * FROM tab2 WHERE NOT - + ( - ( - CAST ( NULL AS INTEGER ) ) ) <> + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL + ( + ( 79 ) ) * COUNT( * ) AS col0 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL + ( + ( 79 ) ) * COUNT ( * ) AS col0 FROM tab1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT SUM( + 85 ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-3893
SELECT SUM ( + 85 ) FROM tab0
----
255

query I rowsort
SELECT DISTINCT col0 * - 1 * - col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT MAX( - + 69 ) AS col1 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3895
SELECT MAX ( - + 69 ) AS col1 FROM tab0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT - 4 DIV + - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 4 / + - col0 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + - col1 AS col0, col1 - - col1 / col0 FROM tab2 WHERE NOT + - col2 * + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL + 1 * COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL + 1 * COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col1 * + + 86 AS col1 FROM tab2 AS cor0
----
-4386
-5762
-6622

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - - 17 * 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3901
SELECT 7, COUNT( * ) + 80 + - 35 DIV + 55 AS col2 FROM tab1 AS cor0
----
7
83

skipif mysql # not compatible
query II rowsort label-3901
SELECT 7, COUNT ( * ) + 80 + - 35 / + 55 AS col2 FROM tab1 AS cor0
----
7
83

query I rowsort
SELECT col2 * + col0 * - + 56 FROM tab1 AS cor0
----
-274176
-280840
-346528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT ALL CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - - 70 FROM tab1
----
3570
5950
6370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT - CAST( - 27 AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif mysql # not compatible
query I rowsort label-3905
SELECT - CAST ( - 27 AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3906
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
-9

query II rowsort
SELECT col2 AS col0, - 81 AS col1 FROM tab0 AS cor0
----
10
-81
47
-81
99
-81

query II rowsort
SELECT + - col2, - 35 + - - 42 + + - 30 AS col1 FROM tab2 AS cor0
----
-23
-23
-40
-23
-58
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col2 AS col2, - col1, 45 col0 FROM tab2 AS cor0
----
9 values hashing to 46db6dc6b7753df7e248125d440a9c89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 38 NOT IN ( + - 45 + col0, ( - 62 ), + ( 46 ), 51 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * + col1 + - ( + 33 ) + col2 + col1 - - 11 FROM tab0 AS cor0
----
450
6667
79

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - + 55 ) + - col1 AS col0 FROM tab1
----
41
50
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT DISTINCT CAST( + - 41 AS SIGNED ) AS col0 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT CAST ( + - 41 AS INTEGER ) AS col0 FROM tab0
----
-41

query I rowsort
SELECT 7 + col2 AS col2 FROM tab2
----
30
47
65

query II rowsort
SELECT ALL - 96 * col0, 84 - col2 + - col0 AS col2 FROM tab2
----
-4416
15
-6144
-20
-7200
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT COUNT( * ) + 76 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-3918
SELECT COUNT ( * ) + 76 FROM tab0
----
79

query I rowsort
SELECT DISTINCT 99 + - 92 FROM tab1 AS cor0
----
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + - col1 < - col1 / 37 - - - 46 + - col1 + + - col1 / - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - ( - COUNT( col0 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3921
SELECT - ( - COUNT ( col0 ) ) AS col0 FROM tab1 AS cor0
----
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 96 / + 7 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3923
SELECT ( COUNT( * ) ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT ( COUNT ( * ) ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 9 - 34 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + - ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 11 col0, - col0 * - col0 + col1 + + 86 * + 52 FROM tab0 AS cor0
----
-11
12062
-11
13882
-11
4778

query I rowsort
SELECT + - ( + - col0 ) FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 * - col2 AS col0, + 43 + col1 FROM tab1
----
-3481
48
-4624
90
-9216
57

query I rowsort
SELECT DISTINCT - ( col2 ) * - 73 FROM tab0
----
3431
7227
730

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3931
SELECT COUNT( * ) DIV - 98 AS col2, + 77 FROM tab0
----
0
77

skipif mysql # not compatible
query II rowsort label-3931
SELECT COUNT ( * ) / - 98 AS col2, + 77 FROM tab0
----
0
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT DISTINCT + COUNT( * ) * 73 AS col2, + 65 + 98 FROM tab0
----
219
163

skipif mysql # not compatible
query II rowsort label-3932
SELECT DISTINCT + COUNT ( * ) * 73 AS col2, + 65 + 98 FROM tab0
----
219
163

query I rowsort
SELECT ALL - col2 * - ( - col2 ) FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3934
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT ALL + MIN( + + col1 ) AS col0, + 65 FROM tab2 AS cor0
----
51
65

skipif mysql # not compatible
query II rowsort label-3935
SELECT ALL + MIN ( + + col1 ) AS col0, + 65 FROM tab2 AS cor0
----
51
65

query II rowsort
SELECT - ( col1 ) AS col2, - col0 * - + col1 AS col0 FROM tab1 AS cor0
----
-14
714
-47
4277
-5
425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - - ( - col2 ) - - - ( - 40 ) col2 FROM tab1 AS cor0
----
2545
7206
8253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT ALL - - col2 + 80 * + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
1247
6970
7859

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - - col2 + 80 * + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
1247
6970
7859

query I rowsort
SELECT DISTINCT 87 * + col1 FROM tab0
----
1827
7047
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + + col0 * + - col0 * - 75 * - 13, col1 )
----

query I rowsort
SELECT col0 * - col1 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
119623
336617
379416

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT + COUNT( * ) + MIN( - col0 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3942
SELECT + COUNT ( * ) + MIN ( - col0 ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE col2 * + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT ALL - - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 46 IN ( - + col1 * - col0 + col0 + col0 + - col0 * + - col1 )
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + 42 + + col1 AS col1 FROM tab2 AS cor0
----
109
119
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT + + COUNT( * ) * - - 74 * - + 97 + + 52 AS col2 FROM tab1 AS cor0
----
-21482

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT + + COUNT ( * ) * - - 74 * - + 97 + + 52 AS col2 FROM tab1 AS cor0
----
-21482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 0 col1, - col0 + - 45 FROM tab1
----
0
-130
0
-136
0
-96

query I rowsort
SELECT ALL - col0 * ( col2 ) - col1 + + col0 * col0 FROM tab0
----
-195
-561
6678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT DISTINCT + col2 - col0 FROM tab2 WHERE NOT col2 + CAST( + - col0 AS SIGNED ) IS NULL
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT + col2 - col0 FROM tab2 WHERE NOT col2 + CAST ( + - col0 AS INTEGER ) IS NULL
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT ALL COUNT( * ) * + + MAX( DISTINCT + col2 ) - + 28, + ( + - MAX( DISTINCT col1 ) ) AS col1 FROM tab0
----
269
-81

skipif mysql # not compatible
query II rowsort label-3951
SELECT ALL COUNT ( * ) * + + MAX ( DISTINCT + col2 ) - + 28, + ( + - MAX ( DISTINCT col1 ) ) AS col1 FROM tab0
----
269
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - MIN( ALL + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - MIN ( ALL + col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT col0 - - CAST( 88 AS SIGNED ) - - col0 AS col0 FROM tab1 AS cor0
----
190
258
270

skipif mysql # not compatible
query I rowsort label-3953
SELECT col0 - - CAST ( 88 AS INTEGER ) - - col0 AS col0 FROM tab1 AS cor0
----
190
258
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT ALL + - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL + - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT + MAX( ALL - + 55 ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-3955
SELECT + MAX ( ALL - + 55 ) FROM tab2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3956
SELECT 0 * + col2 AS col0, + CAST( NULL AS SIGNED ) * - 67 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3956
SELECT 0 * + col2 AS col0, + CAST ( NULL AS INTEGER ) * - 67 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT 80 * col0 AS col1 FROM tab1 AS cor0
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT DISTINCT + SUM( + + 60 ) AS col2, COUNT( * ) * + 31 AS col2 FROM tab1 AS cor0
----
180
93

skipif mysql # not compatible
query II rowsort label-3958
SELECT DISTINCT + SUM ( + + 60 ) AS col2, COUNT ( * ) * + 31 AS col2 FROM tab1 AS cor0
----
180
93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col2 * - col1
----

query I rowsort
SELECT ALL 93 * - col0 * + - col0 FROM tab2 cor0
----
196788
380928
523125

query I rowsort
SELECT DISTINCT - - ( + col0 ) + col2 FROM tab1 WHERE NOT - 89 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3962
SELECT * FROM tab0 WHERE NOT 46 + - CAST( NULL AS SIGNED ) + - - 80 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3962
SELECT * FROM tab0 WHERE NOT 46 + - CAST ( NULL AS INTEGER ) + - - 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT - SUM( + + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT - SUM ( + + col0 ) FROM tab0
----
-199

query II rowsort
SELECT ALL + col0, + col1 FROM tab1 WHERE + - 85 IS NULL
----

query I rowsort
SELECT ALL + col0 * + - col1 + 19 AS col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-406
-4258
-695

query II rowsort
SELECT DISTINCT - col2, 50 AS col1 FROM tab1 AS cor0
----
-59
50
-68
50
-96
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + - MIN( + 12 ) + - - 94 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3967
SELECT + - MIN ( + 12 ) + - - 94 FROM tab0 AS cor0
----
82

query I rowsort
SELECT - col1 * - 12 * + + 91 + + col2 AS col0 FROM tab0 AS cor0
----
1191
22942
88499

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) col2 FROM tab0 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - COUNT( DISTINCT - - col1 ) * + 79 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-3972
SELECT - COUNT ( DISTINCT - - col1 ) * + 79 FROM tab2
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT col1 DIV + + 88 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3973
SELECT col1 / + + 88 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT + 65 * - 90 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-5853

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT + 65 * - 90 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-5853

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT COUNT( * ) + - 56 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT COUNT ( * ) + - 56 FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT COUNT( * ) * + 87 + - + 26 AS col2 FROM tab2
----
235

skipif mysql # not compatible
query I rowsort label-3976
SELECT COUNT ( * ) * + 87 + - + 26 AS col2 FROM tab2
----
235

query I rowsort
SELECT + col1 + + 64 FROM tab1
----
111
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + 27 - COUNT( * ) AS col0 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + 27 - COUNT ( * ) AS col0 FROM tab2
----
24

query I rowsort
SELECT + - col0 FROM tab1 WHERE + col1 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT ALL col0 - - col1 * + - col2, + col0 * 80 * + + ( 24 ) AS col1 FROM tab2
----
-1127
88320
-3016
122880
-3811
144000

query I rowsort
SELECT DISTINCT 70 * - col2 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT + 97 + - col1 AS col2 FROM tab2
----
20
30
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col2 FROM tab0 AS cor0
----
74
74
74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 >= 91
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL + MAX( - col0 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + MAX ( - col0 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3986
SELECT DISTINCT - + COUNT( * ) DIV + COUNT( - ( - 37 ) ) - + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - + COUNT ( * ) / + COUNT ( - ( - 37 ) ) - + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT MIN( + - 64 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-3987
SELECT MIN ( + - 64 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

query II rowsort
SELECT ALL + 27 AS col0, 31 FROM tab1
----
27
31
27
31
27
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col0 * + col2 + col2 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - 22 * - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT 62 * 47 FROM tab0 AS cor0
----
2914

query I rowsort
SELECT ALL - col1 * 75 * col2 + - col0 AS col1 FROM tab0
----
-15837
-285540
-7522

query I rowsort
SELECT - - col2 + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT - - MIN( col1 ) - MIN( ALL + col2 ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3994
SELECT - - MIN ( col1 ) - MIN ( ALL + col2 ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 56 FROM tab0 cor0 WHERE 17 * col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 34 + - - col2 FROM tab0 AS cor0
----
133
44
81

query I rowsort
SELECT ALL - 97 + col1 * - - col0 AS col2 FROM tab2 AS cor0
----
2249
4831
4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3998
SELECT DISTINCT 2 AS col1, 1 * SUM( + CAST( NULL AS SIGNED ) ) + - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3998
SELECT DISTINCT 2 AS col1, 1 * SUM ( + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
2
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 17 IS NULL
----

query I rowsort
SELECT DISTINCT 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
49

query I rowsort
SELECT - col2 + 28 AS col1 FROM tab1 AS cor0
----
-31
-40
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 30 + col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL + AVG ( DISTINCT ( - 56 ) ) * - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL + AVG ( DISTINCT ( - 56 ) ) * - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT + + COUNT( * ), 71 AS col0 FROM tab2 cor0
----
3
71

skipif mysql # not compatible
query II rowsort label-4004
SELECT + + COUNT ( * ), 71 AS col0 FROM tab2 cor0
----
3
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 66 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 41 * 40 FROM tab0 AS cor0
----
-1543
-1553
-1625

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT + MAX( ALL - 43 ) AS col0 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-4007
SELECT + MAX ( ALL - 43 ) AS col0 FROM tab1
----
-43

query I rowsort
SELECT ALL col0 + + 70 AS col1 FROM tab0
----
157
167
85

query I rowsort
SELECT DISTINCT + col0 * + col2 - + + 39 FROM tab1
----
4857
4976
6149

query I rowsort
SELECT ALL + 73 + - 60 + - col0 AS col0 FROM tab1
----
-38
-72
-78

query I rowsort
SELECT + + col0 * + col1 + 54 FROM tab1 AS cor0
----
4331
479
768

query II rowsort
SELECT ( - + col2 ) AS col2, 3 FROM tab0 AS cor0
----
-10
3
-47
3
-99
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL <= NULL
----

query I rowsort
SELECT + 51 - - 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec85eb0bc5c919183cbcd7ee94cb222b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 75 IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - 20 AS col2 FROM tab1 AS cor0 WHERE NOT col2 > NULL
----

query II rowsort
SELECT DISTINCT + + col2 AS col1, 2 AS col0 FROM tab0 AS cor0
----
10
2
47
2
99
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT ALL + 89 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + 89 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-8
0

query I rowsort
SELECT + + col0 * + + 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * + col0 + + col1 * col1 AS col2 FROM tab1
----
5040
5092
8397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 48 ) col2 FROM tab2
----
48
48
48

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 > 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 67 * + - col1 FROM tab1
----
-3149
-335
-938

query II rowsort
SELECT 65, col0 FROM tab2
----
65
46
65
64
65
75

query II rowsort
SELECT DISTINCT + 41 AS col2, col1 AS col2 FROM tab1
----
41
14
41
47
41
5

query I rowsort
SELECT DISTINCT + col0 * - 20 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT + SUM( - - col1 ) + - COUNT( * ) col0 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4028
SELECT + SUM ( - - col1 ) + - COUNT ( * ) col0 FROM tab2 AS cor0
----
192

query I rowsort
SELECT - col0 * + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + col2 AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT - col1 + + - 5 FROM tab0 cor0
----
-26
-6
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ( + MAX( col2 ) ) - + COUNT( * ) AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-4032
SELECT ( + MAX ( col2 ) ) - + COUNT ( * ) AS col1 FROM tab2
----
55

query I rowsort
SELECT DISTINCT 44 + + - col2 FROM tab2 cor0
----
-14
21
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-4034
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT ( - MAX( col1 ) ) * - 81 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 4 + + col2 AND - + 32 * + ( + col2 ) * - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT ( - MAX ( col1 ) ) * - 81 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 4 + + col2 AND - + 32 * + ( + col2 ) * - + col1 )
----
NULL

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab2 AS cor0
----
2

query II rowsort
SELECT - col0 + - - 88 * col0 * col1 AS col0, + col2 AS col2 FROM tab2
----
206402
23
433600
40
442125
58

query I rowsort
SELECT DISTINCT 77 + - col0 AS col0 FROM tab1
----
-14
-8
26

query I rowsort
SELECT 81 + + + col1 + col0 * + col0 * 43 AS col0 FROM tab1
----
111938
310761
356211

query I rowsort
SELECT - col1 + - 87 - + col0 FROM tab0
----
-183
-185
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT COUNT( + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4041
SELECT COUNT ( + col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - MAX( + col0 ) col1 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4042
SELECT - MAX ( + col0 ) col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL - COUNT( * ) * - 96 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - COUNT ( * ) * - 96 FROM tab1
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT ( + col0 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4047
SELECT ALL - - CAST( NULL AS DECIMAL ), ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4047
SELECT ALL - - CAST ( NULL AS REAL ), ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - - MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4048
SELECT - - MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 5 * - + col2 FROM tab2 AS cor0
----
-115
-200
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT DISTINCT - 22 * + col2 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - 22 * + col2 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL SUM( ALL col2 ) * + 20 FROM tab2
----
2420

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL SUM ( ALL col2 ) * + 20 FROM tab2
----
2420

query I rowsort
SELECT - 41 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col1 ) > col1 + - col2
----
51
14
96
85
5
59

query I rowsort
SELECT 11 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + col0 + - 12 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1 AS col0, + 51 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ( MIN( ALL col2 ) ) + - 0 AS col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4057
SELECT ( MIN ( ALL col2 ) ) + - 0 AS col0 FROM tab1 cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4058
SELECT - 30 / + col2 + + - CAST( NULL AS SIGNED ) + - 60, col1 col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4058
SELECT - 30 / + col2 + + - CAST ( NULL AS INTEGER ) + - 60, col1 col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col1 * + 37 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0 AS col0, 8 AS col0 FROM tab1
----
51
8
85
8
91
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - COUNT( ALL - 90 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4062
SELECT - COUNT ( ALL - 90 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + 84 AS col1 FROM tab0 AS cor0
----
-84
-84
-84

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 15 * + col0 AND col1
----

query I rowsort
SELECT 23 + + 60 AS col1 FROM tab2
----
83
83
83

query I rowsort
SELECT - 28 * - 21 - - + col2 + - col2 FROM tab0 AS cor0
----
588
588
588

query II rowsort
SELECT - + col0, + 28 * + + 26 AS col1 FROM tab1 cor0
----
-51
728
-85
728
-91
728

query I rowsort
SELECT DISTINCT + col1 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT + - 44 - + - COUNT( * ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4069
SELECT + - 44 - + - COUNT ( * ) FROM tab0 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + col0 * CAST( + col1 AS SIGNED ) BETWEEN 74 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + col0 * CAST ( + col1 AS INTEGER ) BETWEEN 74 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT - MAX( DISTINCT + + col1 ) * - - COUNT( * ) AS col1 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - MAX ( DISTINCT + + col1 ) * - - COUNT ( * ) AS col1 FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT DISTINCT COUNT( DISTINCT - + 49 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT COUNT ( DISTINCT - + 49 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT + CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4073
SELECT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT + 0 AS col0, SUM( + col1 ) + + 41 AS col2 FROM tab2 WHERE NOT ( ( + col0 ) ) IS NULL
----
0
236

skipif mysql # not compatible
query II rowsort label-4074
SELECT + 0 AS col0, SUM ( + col1 ) + + 41 AS col2 FROM tab2 WHERE NOT ( ( + col0 ) ) IS NULL
----
0
236

query II rowsort
SELECT ALL - 95 * + 41 AS col0, + 60 FROM tab1
----
-3895
60
-3895
60
-3895
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL - MAX( ALL - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - MAX ( ALL - col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT CAST( - 72 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

skipif mysql # not compatible
query I rowsort label-4077
SELECT CAST ( - 72 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4078
SELECT + + col2, + CAST( NULL AS SIGNED ) + - + col1 + + - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4078
SELECT + + col2, + CAST ( NULL AS INTEGER ) + - + col1 + + - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT - CAST( - + 70 AS SIGNED ) * col0 FROM tab1
----
3570
5950
6370

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - CAST ( - + 70 AS INTEGER ) * col0 FROM tab1
----
3570
5950
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab0 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT - MIN( + 6 ) * + 91 FROM tab0
----
-546

skipif mysql # not compatible
query I rowsort label-4082
SELECT - MIN ( + 6 ) * + 91 FROM tab0
----
-546

query I rowsort
SELECT - col1 * - - col2 - - col2 + - col1 + + 99 * col0 FROM tab0 AS cor0 WHERE NOT - 98 + + + col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + + col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL - - 31 * SUM( - col0 ) + - + 53 FROM tab0 AS cor0
----
-6222

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL - - 31 * SUM ( - col0 ) + - + 53 FROM tab0 AS cor0
----
-6222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4086
SELECT DISTINCT - 96 DIV - ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT - 96 / - ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
32

query I rowsort
SELECT + 45 + + 24 AS col0 FROM tab1
----
69
69
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4088
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 * + col0 / CAST( NULL AS DECIMAL ) NOT IN ( + col2 / + col0 )
----

skipif mysql # not compatible
query III rowsort label-4088
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 * + col0 / CAST ( NULL AS REAL ) NOT IN ( + col2 / + col0 )
----

query I rowsort
SELECT + col1 * - ( 20 ) + + col0 AS col2 FROM tab1
----
-15
-229
-849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT 30 * + COUNT( * ) + - 26 + + - 36 DIV + COUNT( * ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4090
SELECT 30 * + COUNT ( * ) + - 26 + + - 36 / + COUNT ( * ) FROM tab2 AS cor0
----
52

query I rowsort
SELECT ALL - - 9 * col1 AS col2 FROM tab0 AS cor0
----
189
729
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL - col2 * + - 24 - - 14 + - 87 FROM tab2 WHERE NOT - col0 + + col1 IS NOT NULL
----

query I rowsort
SELECT - 95 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT ALL + + 46 * - 63 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-2908
-2945
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + COUNT( + - 84 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4096
SELECT + COUNT ( + - 84 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 96 * - 43 * - col0 FROM tab1 AS cor0
----
210528
350880
375648

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT - col1 DIV + + col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4098
SELECT - col1 / + + col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT 94 AS col2, + col0 FROM tab2
----
94
46
94
64
94
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL COUNT( * ) * + MAX( - 44 ) FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL COUNT ( * ) * + MAX ( - 44 ) FROM tab2
----
-132

query I rowsort
SELECT 81 * 96 FROM tab2
----
7776
7776
7776

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col1, - col0 AS col2 FROM tab1 WHERE NOT + col0 IS NULL
----
-14
-51
-47
-91
-5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL MIN( - ( + 78 ) ) FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL MIN ( - ( + 78 ) ) FROM tab2 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - MIN( + 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4105
SELECT - MIN ( + 32 ) FROM tab1 AS cor0
----
-32

query II rowsort
SELECT col0, 94 AS col0 FROM tab0 AS cor0
----
15
94
87
94
97
94

query II rowsort
SELECT ALL + col2, + col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT 73 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL - 18 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT SUM( ALL - 72 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4111
SELECT SUM ( ALL - 72 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-219

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col1 ) * - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL MAX( ALL + col2 ) col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4113
SELECT ALL MAX ( ALL + col2 ) col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT - 34 * + - ( - - 53 ) + + COUNT( * ) FROM tab2 AS cor0
----
1805

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - 34 * + - ( - - 53 ) + + COUNT ( * ) FROM tab2 AS cor0
----
1805

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT COUNT( * ) + + + 11 AS col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4115
SELECT COUNT ( * ) + + + 11 AS col0 FROM tab2 AS cor0
----
14

query I rowsort
SELECT ALL - - ( - ( - col0 ) ) + - + 70 AS col0 FROM tab0 AS cor0
----
-55
17
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + 26 col2 FROM tab1
----
51
26
85
26
91
26

query I rowsort
SELECT DISTINCT + 28 + - ( col0 ) FROM tab2
----
-18
-36
-47

query I rowsort
SELECT DISTINCT + ( 45 ) AS col1 FROM tab0
----
45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 59 * - 4 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - + col2 AS col0 FROM tab0 WHERE + - 44 IS NULL
----

query I rowsort
SELECT - col1 + - - col1 * - 9 * - 56 * + 37 AS col2 FROM tab2 cor0
----
1249349
1435819
950997

query II rowsort
SELECT col2 * + - col2 + col2 + col2 AS col0, + 51 AS col2 FROM tab0 AS cor0
----
-2115
51
-80
51
-9603
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - 43 * + COUNT( * ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 43 * + COUNT ( * ) FROM tab1
----
-129

query I rowsort
SELECT ALL 55 + ( 50 ) FROM tab0
----
105
105
105

query I rowsort
SELECT + 44 + - col1 AS col0 FROM tab2
----
-23
-33
-7

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - COUNT( * ) + - 98 FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-4129
SELECT - COUNT ( * ) + - 98 FROM tab1
----
-101

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + ( + ( - col0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT IN ( col0 * col1 )
----

query I rowsort
SELECT ( + col1 ) + col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT - col2 * col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab1 WHERE 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL COUNT( * ) * 87 AS col2 FROM tab0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL COUNT ( * ) * 87 AS col2 FROM tab0 WHERE NULL > ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT col0 DIV - col1 + 82 DIV - 45 FROM tab1
----
-18
-2
-4

skipif mysql # not compatible
query I rowsort label-4138
SELECT col0 / - col1 + 82 / - 45 FROM tab1
----
-18
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + ( MAX( ALL col0 ) ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4139
SELECT ALL + ( MAX ( ALL col0 ) ) col2 FROM tab2
----
75

query I rowsort
SELECT ( + 25 ) + + 22 AS col2 FROM tab2
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT - ( col0 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - ( col0 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 95 * 42 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + col0 AND ( - col1 + 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 44 BETWEEN col2 + 4 AND + col0 + 43
----

query I rowsort
SELECT ALL ( - 61 ) AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - ( + COUNT( * ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4146
SELECT - ( + COUNT ( * ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT 88 DIV col0 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4147
SELECT 88 / col0 AS col0 FROM tab0
----
0
1
5

query III rowsort
SELECT * FROM tab1 WHERE col2 = col0 - + 50
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT 80 * + COUNT( col1 ) col1 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4150
SELECT 80 * + COUNT ( col1 ) col1 FROM tab2 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IN ( 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL 50 + COUNT( * ) * - 43 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL 50 + COUNT ( * ) * - 43 FROM tab2 AS cor0
----
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - ( + col0 ) AND 77 / 81
----

query I rowsort
SELECT ALL ( 52 ) AS col1 FROM tab0 AS cor0 WHERE ( - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL + MIN( + col0 ) + + 50 AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + MIN ( + col0 ) + + 50 AS col1 FROM tab0 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 + col0 col0 FROM tab2 WHERE col1 IS NOT NULL
----
136
154
165

query I rowsort
SELECT DISTINCT col0 + + 1 AS col1 FROM tab0
----
16
88
98

query I rowsort
SELECT ALL 18 + + col0 FROM tab0
----
105
115
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT - ( - ( + 73 ) ) + COUNT( * ) col2 FROM tab2
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4160
SELECT - ( - ( + 73 ) ) + COUNT ( * ) col2 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT - COUNT( * ) - - + COUNT( * ) + 45 AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * ) + 45 AS col0 FROM tab1
----
45

query I rowsort
SELECT - col2 * 33 + 78 * - 43 FROM tab0
----
-3684
-4905
-6621

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4163
SELECT ALL * FROM tab2 WHERE NOT CAST( ( 83 ) AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4163
SELECT ALL * FROM tab2 WHERE NOT CAST ( ( 83 ) AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( - 31 ) BETWEEN ( col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4165
SELECT ALL - - 41 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - - 41 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 69 + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT ALL ( - col1 ) DIV + col0 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL ( - col1 ) / + col0 FROM tab0 cor0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT DISTINCT + - 63 DIV + 16 col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4169
SELECT DISTINCT + - 63 / + 16 col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + col1 * + col2 > ( NULL )
----

query I rowsort
SELECT DISTINCT + 56 * - col0 AS col1 FROM tab2
----
-2576
-3584
-4200

query I rowsort
SELECT 67 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT ALL 61 DIV col1 + + + 70 FROM tab2 cor0
----
70
70
71

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL 61 / col1 + + + 70 FROM tab2 cor0
----
70
70
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( ( - col1 ) ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT ( COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT ( COUNT ( * ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 91 + + ( + col0 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT - + CAST( col2 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-4179
SELECT - + CAST ( col2 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-4180
SELECT DISTINCT + + col2 DIV 17 AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
3
4
5

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + + col2 / 17 AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
3
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - COUNT( * ) * 91 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-4181
SELECT - COUNT ( * ) * 91 FROM tab0
----
-273

query I rowsort
SELECT + col1 * + + col0 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4183
SELECT + COUNT( * ) * - - 9 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT + COUNT ( * ) * - - 9 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 6 >= - col1 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL + MAX( ALL 1 ) FROM tab0 WHERE col1 * - col1 NOT IN ( col0 )
----
1

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + MAX ( ALL 1 ) FROM tab0 WHERE col1 * - col1 NOT IN ( col0 )
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * + + col2 col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + 31 * 90 FROM tab2 WHERE NOT - 45 > + + col0
----
2790
2790
2790

query I rowsort
SELECT ALL + col0 * + 73 FROM tab1 WHERE + ( + - ( 21 ) ) <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL CAST( - col2 AS SIGNED ) * col2 * - - 16 AS col2 FROM tab2
----
-25600
-53824
-8464

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL CAST ( - col2 AS INTEGER ) * col2 * - - 16 AS col2 FROM tab2
----
-25600
-53824
-8464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT + col1 AS col1 FROM tab1 WHERE NOT + - ( - + 55 ) / - col2 NOT IN ( + col1 * CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4192
SELECT + col1 AS col1 FROM tab1 WHERE NOT + - ( - + 55 ) / - col2 NOT IN ( + col1 * CAST ( col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4193
SELECT * FROM tab1 WHERE NOT ( - CAST( - col2 AS SIGNED ) ) <> col0
----

skipif mysql # not compatible
query III rowsort label-4193
SELECT * FROM tab1 WHERE NOT ( - CAST ( - col2 AS INTEGER ) ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT COUNT( * ) * + - SUM( ALL col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT COUNT ( * ) * + - SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + 37 )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL + - CAST( NULL AS SIGNED ) 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-4197
SELECT ALL + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL COUNT( * ) + + 37 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL COUNT ( * ) + + 37 FROM tab0
----
40

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) + + col1 FROM tab2
----
157
183
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT + COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT + COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4203
SELECT * FROM tab2 WHERE CAST( + col2 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4203
SELECT * FROM tab2 WHERE CAST ( + col2 AS INTEGER ) > ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * ( + col0 ) + 13 IS NULL AND NOT ( - 69 + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 * + - 69 * + col2 FROM tab2 AS cor0
----
-176640
-300150
-73002

query I rowsort
SELECT col1 + - 64 * 77 AS col2 FROM tab2 AS cor0
----
-4851
-4861
-4877

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT + + ( + 45 ) * + MIN( ( col0 ) ) - COUNT( * ) FROM tab1 AS cor0
----
2292

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + + ( + 45 ) * + MIN ( ( col0 ) ) - COUNT ( * ) FROM tab1 AS cor0
----
2292

query I rowsort
SELECT - 37 + - col0 + - col1 FROM tab0 AS cor0
----
-133
-135
-145

query I rowsort
SELECT - - col1 * - - col1 + 45 + + col1 + col0 FROM tab2 AS cor0
----
2743
4676
6115

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT col1 DIV 32 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4210
SELECT col1 / 32 FROM tab2 AS cor0
----
1
2
2

query I rowsort
SELECT DISTINCT - + 72 + - + 40 AS col2 FROM tab2 AS cor0
----
-112

query II rowsort
SELECT - - col1 AS col0, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL col2 * col2 + - - 67 FROM tab1 AS cor0
----
3548
4691
9283

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4214
SELECT + - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT - COUNT( ALL col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4215
SELECT - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4216
SELECT * FROM tab0 AS cor0 WHERE CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4216
SELECT * FROM tab0 AS cor0 WHERE CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - col2 col2, + col0 * - col1 AS col2 FROM tab0
----
-2
-97
-32
-1215
77
-1827

query I rowsort
SELECT - col1 * - col0 * - + 1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4219
SELECT DISTINCT 90 * + col2 + 91 FROM tab0 WHERE NOT + - col1 / 51 * - 29 + col1 + CAST( - ( - col0 ) AS SIGNED ) = 49 * CAST( col1 AS DECIMAL )
----
4321
9001
991

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT 90 * + col2 + 91 FROM tab0 WHERE NOT + - col1 / 51 * - 29 + col1 + CAST ( - ( - col0 ) AS INTEGER ) = 49 * CAST ( col1 AS REAL )
----
4321
9001
991

query I rowsort
SELECT + col0 - - col2 + - + ( + col0 ) * - + 60 FROM tab0
----
5317
6016
962

query I rowsort
SELECT col0 FROM tab2 WHERE ( + - 4 ) IN ( col1 )
----

query I rowsort
SELECT col1 * 20 + + + col1 AS col0 FROM tab1 AS cor0
----
105
294
987

query I rowsort
SELECT - 69 * + + 98 + - - col1 AS col1 FROM tab0 AS cor0
----
-6681
-6741
-6761

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL SUM( ALL 46 ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL SUM ( ALL 46 ) FROM tab0 AS cor0
----
138

query I rowsort
SELECT col1 * + + col0 FROM tab1 cor0
----
425
4277
714

query II rowsort
SELECT + col2 AS col1, 39 AS col1 FROM tab1 AS cor0
----
59
39
68
39
96
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL ( + 44 ) * - - SUM( ALL - 30 ) FROM tab0 AS cor0
----
-3960

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL ( + 44 ) * - - SUM ( ALL - 30 ) FROM tab0 AS cor0
----
-3960

query I rowsort
SELECT + - ( + ( - col2 ) ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col0 NOT IN ( 81 + + col0 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 92 >= + ( + col2 ) * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 17 + + - 84 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT DISTINCT COUNT( * ) DIV - 11 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT COUNT ( * ) / - 11 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4234
SELECT - col2 DIV - 85 * + col1 * col1, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-4234
SELECT - col2 / - 85 * + col1 * col1, col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT ALL 1 + 55 AS col0 FROM tab2 WHERE NOT + ( - col2 ) * + - 99 NOT BETWEEN NULL AND col1 - - ( + + col0 ) * 78
----

query I rowsort
SELECT - - 57 - + 68 FROM tab2 WHERE NOT + - 92 NOT BETWEEN col1 - + 79 AND NULL
----

query I rowsort
SELECT ALL - 23 * - + col1 AS col1 FROM tab0
----
1863
23
483

query I rowsort
SELECT ALL ( + - 39 ) FROM tab2
----
-39
-39
-39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT CAST( NULL AS SIGNED ) + + col1 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT CAST ( NULL AS INTEGER ) + + col1 * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + 16 FROM tab1
----
21
30
63

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE col2 IN ( - col1, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - 59 + - MAX( - - 93 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-152

skipif mysql # not compatible
query I rowsort label-4246
SELECT - 59 + - MAX ( - - 93 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-152

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) / 27 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT DISTINCT + 60 DIV - 73 + ( - col1 ) + - - col0 * + col1 AS col2 FROM tab0 AS cor0
----
1134
1806
96

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + 60 / - 73 + ( - col1 ) + - - col0 * + col1 AS col2 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT + col0 + + 92 FROM tab2 AS cor0
----
138
156
167

query I rowsort
SELECT + col2 + col1 * ( 16 ) + + col1 FROM tab0
----
116
1424
367

query I rowsort
SELECT 41 + - col1 FROM tab1
----
-6
27
36

query III rowsort
SELECT * FROM tab1 WHERE NULL = col2 + - col0
----

query I rowsort
SELECT + 59 + + col1 + + - 21 AS col1 FROM tab0
----
119
39
59

query I rowsort
SELECT ALL 38 + + 93 * - + ( - 92 ) FROM tab1
----
8594
8594
8594

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 65 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT + ( - - CAST( - col0 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4256
SELECT DISTINCT + ( - - CAST ( - col0 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT + 60 * 1 * + + 61 * + COUNT( * ) FROM tab0 AS cor0
----
10980

skipif mysql # not compatible
query I rowsort label-4258
SELECT + 60 * 1 * + + 61 * + COUNT ( * ) FROM tab0 AS cor0
----
10980

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL MAX ( - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4260
SELECT ( CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col2 col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT col0 * + 48 * + + col0 AS col0 FROM tab2 WHERE NOT ( + 44 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col2 col0 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT ( + SUM( DISTINCT + col2 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT ( + SUM ( DISTINCT + col2 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL - COUNT( - + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - COUNT ( - + col2 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + col0 AS col1, ( + ( + col2 ) ) FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4267
SELECT DISTINCT - + 5 AS col2, + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
-5
10

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT - + 5 AS col2, + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-5
10

query II rowsort
SELECT DISTINCT - + col1 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT DISTINCT + + col1 * + col1 * - 22 * + + 84, col2 FROM tab2 AS cor0
----
-10956792
40
-4806648
23
-8295672
58

query I rowsort
SELECT + 83 + - col0 * - - col2 + - + col2 FROM tab1 AS cor0
----
-4909
-4991
-6173

query II rowsort
SELECT ALL + - col1 AS col2, - 75 FROM tab0 AS cor0
----
-1
-75
-21
-75
-81
-75

query I rowsort
SELECT 83 + + 56 AS col1 FROM tab2 AS cor0
----
139
139
139

query I rowsort
SELECT col1 + + 81 FROM tab1 AS cor0
----
128
86
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT + col2 DIV + - col1 AS col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT + col2 / + - col1 AS col1 FROM tab0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT DISTINCT - col1 DIV + - col1 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - col1 / + - col1 AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL 11 * + col2 AS col0 FROM tab1
----
1056
649
748

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 83 + + - col1 * + col1 * + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT ALL ( - - ( + 9 ) ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL ( - - ( + 9 ) ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4279
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + - ( - + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4279
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + - ( - + CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-4280
SELECT + + col2 DIV 64, + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
0
20
0
94
1
198

skipif mysql # not compatible
query II rowsort label-4280
SELECT + + col2 / 64, + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
0
20
0
94
1
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT 40 + + SUM( DISTINCT + - 39 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4281
SELECT 40 + + SUM ( DISTINCT + - 39 ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - col0 + - - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 13 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 83 + + 95 >= NULL
----

query I rowsort
SELECT DISTINCT col0 - + - 35 AS col1 FROM tab0
----
122
132
50

query I rowsort
SELECT DISTINCT + ( - 40 ) AS col1 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT + - 93 * - col2 * 4 FROM tab2 AS cor0
----
14880
21576
8556

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + col0 BETWEEN + col2 * col1 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT + ( + - 92 ) * + CAST( - - 61 AS SIGNED ) FROM tab1 AS cor0
----
-5612
-5612
-5612

skipif mysql # not compatible
query I rowsort label-4289
SELECT + ( + - 92 ) * + CAST ( - - 61 AS INTEGER ) FROM tab1 AS cor0
----
-5612
-5612
-5612

query I rowsort
SELECT + - col1 * + + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 7 AND + + col2 / - col0
----

query I rowsort
SELECT + + col2 * - col2 * + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
179010
2121
9802

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4293
SELECT * FROM tab2 AS cor0 WHERE + CAST( + + col2 AS SIGNED ) BETWEEN + 12 * + 78 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4293
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + + col2 AS INTEGER ) BETWEEN + 12 * + 78 AND NULL
----

query I rowsort
SELECT DISTINCT + 15 + + 19 AS col0 FROM tab1 cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT COUNT( * ) + - 22 - 52 AS col1 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT COUNT ( * ) + - 22 - 52 AS col1 FROM tab2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT 95 - col1 DIV - - col2 FROM tab1
----
95
95
95

skipif mysql # not compatible
query I rowsort label-4296
SELECT 95 - col1 / - - col2 FROM tab1
----
95
95
95

query III rowsort
SELECT * FROM tab1 WHERE NOT + 59 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + ( + col2 ) ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 > + 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) - + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 30 ) col0 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL <> + 80 * 8
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col2 ) * - col1 * + col2 + + 8 + col0 * + 56 * - - 78 + ( - 46 ) < ( NULL )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 49 + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4305
SELECT DISTINCT 79 + + 82 DIV - - MIN( DISTINCT + + ( - col1 ) ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT 79 + + 82 / - - MIN ( DISTINCT + + ( - col1 ) ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL + col2 * - col0 + - - col2 FROM tab0 cor0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT - col0 + + + 81 + 41 AS col0 FROM tab1 AS cor0
----
31
37
71

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( col0 + col0 * + col1 / + col2 * - + 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL - 87 + + COUNT( * ) col0 FROM tab2 cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4309
SELECT ALL - 87 + + COUNT ( * ) col0 FROM tab2 cor0
----
-84

query I rowsort
SELECT ALL + col1 + + - 78 FROM tab2
----
-1
-11
-27

query I rowsort
SELECT col1 + - + 36 AS col1 FROM tab0
----
-15
-35
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4312
SELECT * FROM tab0 WHERE + col0 IS NOT NULL AND NOT + CAST( + - col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4312
SELECT * FROM tab0 WHERE + col0 IS NOT NULL AND NOT + CAST ( + - col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 42 ) + + 84 FROM tab2
----
126
126
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL 41 * - - COUNT( * ) AS col2 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL 41 * - - COUNT ( * ) AS col2 FROM tab2
----
123

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 98 + - col2 + + - col0 AS col0 FROM tab2 AS cor0
----
4929
6433
7442

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - COUNT( - + 4 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4318
SELECT - COUNT ( - + 4 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT DISTINCT 47 DIV + col1 - 87 * 28 FROM tab1
----
-2427
-2433
-2435

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT 47 / + col1 - 87 * 28 FROM tab1
----
-2427
-2433
-2435

query I rowsort
SELECT col1 - col1 * + - col1 FROM tab1
----
210
2256
30

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL COUNT( * ) * - SUM( ALL + - 58 ) FROM tab2 AS cor0
----
522

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL COUNT ( * ) * - SUM ( ALL + - 58 ) FROM tab2 AS cor0
----
522

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT ALL + col0 DIV col1 col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4324
SELECT ALL + col0 / col1 col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL + SUM( ALL - 75 ) AS col1 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL + SUM ( ALL - 75 ) AS col1 FROM tab0
----
-225

query II rowsort
SELECT DISTINCT 88 AS col0, - 37 AS col2 FROM tab1
----
88
-37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 4 * + col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 21 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT - + col1 + - + col2 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 41 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL 47 + + COUNT( ALL + col2 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 47 + + COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT + ( COUNT( * ) ) + - 26 AS col2 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4334
SELECT + ( COUNT ( * ) ) + - 26 AS col2 FROM tab0 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL + COUNT( * ) + + + 62 * - 59 AS col0 FROM tab1 AS cor0
----
-3655

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL + COUNT ( * ) + + + 62 * - 59 AS col0 FROM tab1 AS cor0
----
-3655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col0 FROM tab1 AS cor0
----
10

query II rowsort
SELECT - 31 * 36 AS col1, - col1 + + col0 AS col2 FROM tab2 cor0
----
-1116
-13
-1116
-5
-1116
8

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT - col1 FROM tab2 WHERE col1 * + col1 * + + 57 + + + col0 + - col2 * 18 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL COUNT( * ) + - + 85 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL COUNT ( * ) + - + 85 FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT + 81 + - 67 DIV CAST( col2 AS SIGNED ) + + col1 FROM tab2 AS cor0 WHERE NOT 7 + - 4 DIV - col0 IS NULL
----
130
147
157

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + 81 + - 67 / CAST ( col2 AS INTEGER ) + + col1 FROM tab2 AS cor0 WHERE NOT 7 + - 4 / - col0 IS NULL
----
130
147
157

query I rowsort
SELECT - col1 * col1 + + + 51 AS col2 FROM tab2 AS cor0
----
-2550
-4438
-5878

query I rowsort
SELECT + col1 - + + ( 3 ) AS col2 FROM tab0 AS cor0
----
-2
18
78

query I rowsort
SELECT ALL ( - col2 ) + 70 FROM tab0 AS cor0
----
-29
23
60

query I rowsort
SELECT + 6 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL col2 * 4 * - col2 FROM tab1
----
-13924
-18496
-36864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col1 col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL > ( - ( - col1 ) ) / - + col2 * col1 + + + 86 + - + col0 * 85
----

query II rowsort
SELECT DISTINCT 82, col2 * - 13 AS col2 FROM tab2 AS cor0
----
82
-299
82
-520
82
-754

query I rowsort
SELECT ALL + - 19 * - col2 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT col2 * col0 DIV col1 AS col1 FROM tab0 cor0
----
41
8
9603

skipif mysql # not compatible
query I rowsort label-4351
SELECT col2 * col0 / col1 AS col1 FROM tab0 cor0
----
41
8
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 82 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT DISTINCT 8 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 8 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT SUM( ALL - - col0 ) AS col2 FROM tab2 WHERE NOT - col2 <= - ( + + col0 )
----
185

skipif mysql # not compatible
query I rowsort label-4354
SELECT SUM ( ALL - - col0 ) AS col2 FROM tab2 WHERE NOT - col2 <= - ( + + col0 )
----
185

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - col2 * col1 >= + + 54 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 42 * 95 * + col1 AS col2 FROM tab2
----
203490
267330
307230

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT + + ( - + COUNT( * ) ) AS col2, - 42 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
-39

skipif mysql # not compatible
query II rowsort label-4358
SELECT + + ( - + COUNT ( * ) ) AS col2, - 42 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
-39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col0 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 WHERE NOT 11 < NULL
----

query I rowsort
SELECT DISTINCT ( - 44 ) FROM tab0
----
-44

query I rowsort
SELECT ALL - - col2 + + + col0 + + + col2 AS col0 FROM tab0 AS cor0
----
107
109
295

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT DISTINCT - col1 + + col1 DIV + 46 AS col1 FROM tab2 cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - col1 + + col1 / + 46 AS col1 FROM tab2 cor0
----
-50
-66
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT DISTINCT - 12 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT - 12 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 83 + - - col1 * + 69 AS col0, + col2 * col0 col1 FROM tab2 AS cor0
----
3436
1058
4540
4350
5230
2560

query I rowsort
SELECT ALL + col0 * + 26 - + ( + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT ALL + 71 DIV + col0 + 12 + 58 + col1 DIV col1 + col2 * - col1 AS col1 FROM tab1
----
-1272
-224
-3125

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + 71 / + col0 + 12 + 58 + col1 / col1 + col2 * - col1 AS col1 FROM tab1
----
-1272
-224
-3125

query I rowsort
SELECT + 60 - - - col2 + - col2 AS col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - ( + ( - 34 ) ) + + col2 * col1 FROM tab0
----
133
244
3841

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT + 81 + + 22 * + + COUNT( * ) AS col0 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-4371
SELECT + 81 + + 22 * + + COUNT ( * ) AS col0 FROM tab2
----
147

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4372
SELECT DISTINCT col2 * + col2 + + CAST( NULL AS DECIMAL ) + + 70 * - col0 / + - col0 + - col2 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4372
SELECT DISTINCT col2 * + col2 + + CAST ( NULL AS REAL ) + + 70 * - col0 / + - col0 + - col2 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT + COUNT( * ) + 76 AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT + COUNT ( * ) + 76 AS col2 FROM tab2
----
79

query I rowsort
SELECT ALL col1 FROM tab2 WHERE 14 = - + col2 AND NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 84 FROM tab1 cor0
----
1176
3948
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 25 * + + col1 - col0 + + col1 * - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4378
SELECT + 7 * - col0 + + - CAST( NULL AS SIGNED ) + - 84 + - - ( + col2 ) * ( - col2 ), col1 + - col0 * col2 col0 FROM tab1 AS cor0
----
NULL
-4882
NULL
-5010
NULL
-6141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4378
SELECT + 7 * - col0 + + - CAST ( NULL AS INTEGER ) + - 84 + - - ( + col2 ) * ( - col2 ), col1 + - col0 * col2 col0 FROM tab1 AS cor0
----
NULL
-4882
NULL
-5010
NULL
-6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - 98 col0 FROM tab0 AS cor0
----
-4606
-9702
-980

query II rowsort
SELECT col1, + col2 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL COUNT( ALL - col2 ) * - 65 AS col1 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL COUNT ( ALL - col2 ) * - 65 AS col1 FROM tab0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT + col2 DIV + - col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4382
SELECT + col2 / + - col2 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 39 * + - col2 * - 14 AS col0 FROM tab0
----
25662
54054
5460

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab2 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ALL - ( - col0 ) * 59 * + col1 FROM tab2
----
138414
290752
296475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4386
SELECT + 15 + + MAX( - ( + - CAST( NULL AS SIGNED ) ) ) + + SUM( + 93 ) col1 FROM tab2 WHERE NOT NULL < + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4386
SELECT + 15 + + MAX ( - ( + - CAST ( NULL AS INTEGER ) ) ) + + SUM ( + 93 ) col1 FROM tab2 WHERE NOT NULL < + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4387
SELECT ALL * FROM tab2 WHERE NOT - - ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4387
SELECT ALL * FROM tab2 WHERE NOT - - ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT ( - 8 ) AS col1, - 80 AS col0 FROM tab2 WHERE NOT - col1 IN ( - - ( col1 ), 29, - 47 )
----
-8
-80
-8
-80
-8
-80

query II rowsort
SELECT - col1 AS col0, + 15 FROM tab1
----
-14
15
-47
15
-5
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4390
SELECT DISTINCT - 58 * - - 95 col0, + COUNT( * ) FROM tab1
----
-5510
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4390
SELECT DISTINCT - 58 * - - 95 col0, + COUNT ( * ) FROM tab1
----
-5510
3

query I rowsort
SELECT ALL + ( col0 ) * col0 * + col1 - - col1 AS col1 FROM tab0
----
158970
18306
9410

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4392
SELECT DISTINCT - MAX( ALL + col0 ) / - 13 + CAST( NULL AS DECIMAL ) + - ( 84 ) * + + 67 * + SUM( ALL - - 32 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT - MAX ( ALL + col0 ) / - 13 + CAST ( NULL AS REAL ) + - ( 84 ) * + + 67 * + SUM ( ALL - - 32 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + CAST( + 72 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + CAST ( + 72 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4396
SELECT + 45 AS col1, - col1 - + + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
45
-11
45
-34
45
98

skipif mysql # not compatible
query II rowsort label-4396
SELECT + 45 AS col1, - col1 - + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
45
-11
45
-34
45
98

query I rowsort
SELECT + + 77 FROM tab2 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL COUNT( * ) + + COUNT( * ) + + 16 + COUNT( * ) + 38 + + 23 * - + 86 * + 87 * + 2 * + + COUNT( + 24 ) FROM tab0 AS cor0
----
-1032453

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL COUNT ( * ) + + COUNT ( * ) + + 16 + COUNT ( * ) + 38 + + 23 * - + 86 * + 87 * + 2 * + + COUNT ( + 24 ) FROM tab0 AS cor0
----
-1032453

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + MIN( - 19 ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4399
SELECT + MIN ( - 19 ) FROM tab2 AS cor0
----
-19

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + ( - 29 ) * - + 52 AS col2 FROM tab1
----
1508
1508
1508

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4402
SELECT DISTINCT * FROM tab1 WHERE - + col1 + - CAST( - + 56 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4402
SELECT DISTINCT * FROM tab1 WHERE - + col1 + - CAST ( - + 56 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT ALL 80 DIV + - col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL 80 / + - col2 AS col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18 + - + col0, + col0 col1 FROM tab0 AS cor0
----
-69
87
-79
97
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT - - COUNT( DISTINCT + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT - - COUNT ( DISTINCT + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - col1 + 78 * 81 FROM tab0 AS cor0
----
6319
6339
6399

query I rowsort
SELECT ALL - 39 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4410
SELECT DISTINCT - SUM( ALL col0 ), 91 AS col1 FROM tab2 AS cor0
----
-185
91

skipif mysql # not compatible
query II rowsort label-4410
SELECT DISTINCT - SUM ( ALL col0 ), 91 AS col1 FROM tab2 AS cor0
----
-185
91

query I rowsort
SELECT + + ( - ( + 22 ) ) AS col2 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT + MIN( ALL col1 ) * + - 88 AS col1 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4412
SELECT + MIN ( ALL col1 ) * + - 88 AS col1 FROM tab0 AS cor0
----
-88

query III rowsort
SELECT * FROM tab2 cor0 WHERE 11 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 > ( 68 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - - col1 ) col1, col1 + col0 + + col1 FROM tab1 cor0
----
14
79
47
185
5
95

query I rowsort
SELECT ( 90 ) AS col0 FROM tab0
----
90
90
90

query I rowsort
SELECT - col0 * - col2 FROM tab2 WHERE - 88 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 9 * col2 * - - col0 + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT - 25 - + 78 * + CAST( NULL AS SIGNED ) / + - 71 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - 25 - + 78 * + CAST ( NULL AS INTEGER ) / + - 71 FROM tab0
----
NULL

query I rowsort
SELECT 24 - - col1 FROM tab0
----
105
25
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + col0 ) IS NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL = - 43 - + col2
----

query I rowsort
SELECT col0 + + + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 74 col2 FROM tab1 cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4425
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4425
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col1 IS NULL
----

query I rowsort
SELECT - col2 * + + col1 * + + col1 AS col0 FROM tab0 cor0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT + 71 * - - 90 AS col1 FROM tab0 AS cor0
----
6390

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT ALL - COUNT( * ) DIV + - SUM( + col0 ) - - 22 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - COUNT ( * ) / + - SUM ( + col0 ) - - 22 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT col2 * + + col0 + - 23 FROM tab2 AS cor0
----
1035
2537
4327

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 51 FROM tab2
----
23
51
40
51
58
51

query I rowsort
SELECT 66 + col0 + - - col0 FROM tab2 AS cor0
----
158
194
216

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 = + + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - + col0 + + 60 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4435
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) col1 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4435
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT ( + + AVG ( - col1 ) ) * + - AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT ( + + AVG ( - col1 ) ) * + - AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT 24, - col2 * + - col1 * - 24 AS col1 FROM tab0
----
24
-2376
24
-5040
24
-91368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4438
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 61 * - - ( - 40 ) AS col0 FROM tab2
----
-2440
-2440
-2440

onlyif mysql # aggregate syntax: 
query II rowsort label-4440
SELECT + COUNT( * ), + COUNT( * ) + COUNT( * ) col0 FROM tab1
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4440
SELECT + COUNT ( * ), + COUNT ( * ) + COUNT ( * ) col0 FROM tab1
----
3
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-3

query II rowsort
SELECT DISTINCT - - 99 AS col1, col2 + + - col0 FROM tab1 AS cor0
----
99
-23
99
-26
99
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT ALL - + col0 + - col1 DIV - - col1 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL - + col0 + - col1 / - - col1 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT ALL - + COUNT( * ) AS col1, 71 AS col0 FROM tab0 AS cor0
----
-3
71

skipif mysql # not compatible
query II rowsort label-4444
SELECT ALL - + COUNT ( * ) AS col1, 71 AS col0 FROM tab0 AS cor0
----
-3
71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL - - 89 + - + SUM( ALL ( - + ( col0 ) ) ) FROM tab1 AS cor0
----
316

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - - 89 + - + SUM ( ALL ( - + ( col0 ) ) ) FROM tab1 AS cor0
----
316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + ( + col2 ) col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - COUNT( * ) + MAX( 38 ) * ( 78 ) AS col0 FROM tab0 cor0
----
2961

skipif mysql # not compatible
query I rowsort label-4448
SELECT - COUNT ( * ) + MAX ( 38 ) * ( 78 ) AS col0 FROM tab0 cor0
----
2961

query II rowsort
SELECT ALL + 91 + + 66 AS col0, - col1 FROM tab1
----
157
-14
157
-47
157
-5

query I rowsort
SELECT 6 + col2 FROM tab0
----
105
16
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * + + col0 + - - col2 col2 FROM tab2
----
4485
6248
7333

query I rowsort
SELECT DISTINCT col1 * col1 - 47 FROM tab2
----
2554
4442
5882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT ALL + MIN( 96 ) * AVG ( - + col2 ) - + CAST( + MIN( + 94 ) AS SIGNED ) FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + MIN ( 96 ) * AVG ( - + col2 ) - + CAST ( + MIN ( + 94 ) AS INTEGER ) FROM tab2 WHERE NULL <> NULL
----
NULL

query II rowsort
SELECT DISTINCT col1 - - col2, col0 AS col2 FROM tab1
----
110
51
115
91
64
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT DISTINCT - MAX( DISTINCT - - col2 ) AS col0, ( 31 ) AS col1 FROM tab1 WHERE NOT 76 IS NULL
----
-96
31

skipif mysql # not compatible
query II rowsort label-4455
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) AS col0, ( 31 ) AS col1 FROM tab1 WHERE NOT 76 IS NULL
----
-96
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT 55 * + MIN( - + col1 ) * + - 99 FROM tab1
----
255915

skipif mysql # not compatible
query I rowsort label-4456
SELECT 55 * + MIN ( - + col1 ) * + - 99 FROM tab1
----
255915

query I rowsort
SELECT DISTINCT - ( + - ( col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT - 93 DIV col1 FROM tab0
----
-1
-4
-93

skipif mysql # not compatible
query I rowsort label-4459
SELECT - 93 / col1 FROM tab0
----
-1
-4
-93

query II rowsort
SELECT - col1 AS col2, + col1 AS col0 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT - - MIN( ALL col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT - - MIN ( ALL col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - ( - 70 ) FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - + COUNT( - col1 ) * - 89 col1 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4463
SELECT - + COUNT ( - col1 ) * - 89 col1 FROM tab0 AS cor0
----
267

query I rowsort
SELECT ALL - 31 * - col1 FROM tab2
----
1581
2077
2387

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT - - MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT - - MIN ( col2 ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT ALL - 22 AS col0, col2 AS col0 FROM tab0
----
-22
10
-22
47
-22
99

query I rowsort
SELECT DISTINCT + col1 * 38 AS col0 FROM tab0 AS cor0
----
3078
38
798

query I rowsort
SELECT DISTINCT - + 45 + col2 AS col2 FROM tab1 cor0
----
14
23
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT + ( - col0 ) DIV 59 + - + 16 AS col2 FROM tab1 AS cor0
----
-16
-17
-17

skipif mysql # not compatible
query I rowsort label-4470
SELECT + ( - col0 ) / 59 + - + 16 AS col2 FROM tab1 AS cor0
----
-16
-17
-17

query I rowsort
SELECT ALL 68 * - col2 FROM tab2 AS cor0
----
-1564
-2720
-3944

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT - 77 IN ( - 67 * + col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ( - + COUNT( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4473
SELECT ( - + COUNT ( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + col0 col1 FROM tab2 AS cor0
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT - - COUNT( * ) + - COUNT( ALL - - ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( ALL - - ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT - col1 * - - 82 FROM tab0 cor0
----
-1722
-6642
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT DISTINCT ( - col0 ) + - col0 DIV + - col0 AS col1 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT ( - col0 ) + - col0 / + - col0 AS col1 FROM tab2 AS cor0
----
-45
-63
-74

query I rowsort
SELECT ALL - col0 + + 98 AS col0 FROM tab0 AS cor0
----
1
11
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT 63 * - - COUNT( * ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-4479
SELECT 63 * - - COUNT ( * ) FROM tab0 AS cor0
----
189

query I rowsort
SELECT ALL - col2 + - + col1 AS col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT DISTINCT - col1 - - + col0 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL 19 * + col2 * - + col2 AS col0 FROM tab2
----
-10051
-30400
-63916

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4483
SELECT * FROM tab1 WHERE + ( CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4483
SELECT * FROM tab1 WHERE + ( CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT ALL - 29 - + - col0 DIV - 97 FROM tab2
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - 29 - + - col0 / - 97 FROM tab2
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL - + MIN( - col2 ) * MAX( + - col2 ) FROM tab2 WHERE NULL < + 38 + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - + MIN ( - col2 ) * MAX ( + - col2 ) FROM tab2 WHERE NULL < + 38 + 36
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT SUM( + 52 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT SUM ( + 52 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT - col2, 81 AS col0 FROM tab2 cor0
----
-23
81
-40
81
-58
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT + ( - 75 ) DIV - - col0 + 7 FROM tab1
----
6
7
7

skipif mysql # not compatible
query I rowsort label-4490
SELECT + ( - 75 ) / - - col0 + 7 FROM tab1
----
6
7
7

query I rowsort
SELECT DISTINCT - 47 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

query I rowsort
SELECT ALL + 19 * - 34 AS col2 FROM tab1
----
-646
-646
-646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4493
SELECT + ( COUNT( * ) ) DIV + + 2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4493
SELECT + ( COUNT ( * ) ) / + + 2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - 62 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 62 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT col2 + + + 88 * 58 IS NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) < + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT DISTINCT + - 61 * col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + - 61 * col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4498
SELECT ALL - COUNT( * ) DIV + + 43 + + 91 - - COUNT( * ) * - SUM( col0 ) FROM tab0 AS cor0
----
-506

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - COUNT ( * ) / + + 43 + + 91 - - COUNT ( * ) * - SUM ( col0 ) FROM tab0 AS cor0
----
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col1 FROM tab0 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4501
SELECT + 17 AS col2, col0 + col1 + + CAST( + 83 AS SIGNED ) FROM tab0
----
17
179
17
181
17
191

skipif mysql # not compatible
query II rowsort label-4501
SELECT + 17 AS col2, col0 + col1 + + CAST ( + 83 AS INTEGER ) FROM tab0
----
17
179
17
181
17
191

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT 74 DIV + - col1 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT 74 / + - col1 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4503
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT + 60 * + CAST( NULL AS SIGNED ) * - + col1 + - 57 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 60 * + CAST ( NULL AS INTEGER ) * - + col1 + - 57 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT - col0 + - + 4 AS col0 FROM tab1 WHERE + 90 + CAST( - 30 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4505
SELECT - col0 + - + 4 AS col0 FROM tab1 WHERE + 90 + CAST ( - 30 AS INTEGER ) <= NULL
----

query I rowsort
SELECT 15 + 75 AS col2 FROM tab1
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT SUM( DISTINCT - col2 ) + + 73 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-4507
SELECT SUM ( DISTINCT - col2 ) + + 73 FROM tab1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL ( - + COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4508
SELECT ALL ( - + COUNT ( * ) ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT col2 + + - 47 * + + 87 FROM tab0 AS cor0
----
-3990
-4042
-4079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 col1 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 AS cor0 WHERE 16 * + col0 IS NULL
----

query I rowsort
SELECT ALL + - col2 + 66 AS col1 FROM tab2 AS cor0
----
26
43
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT DISTINCT + col2 * - col2 + + - CAST( + col2 AS SIGNED ) + col1 + - + CAST( NULL AS SIGNED ) + col0 * - + col2 * 12 * - 23 + - 62 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4514
SELECT DISTINCT + col2 * - col2 + + - CAST ( + col2 AS INTEGER ) + col1 + - + CAST ( NULL AS INTEGER ) + col0 * - + col2 * 12 * - 23 + - 62 col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 96 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT ALL + CAST( - + 58 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + CAST ( - + 58 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT ALL - 51 * + COUNT( * ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-153
-3

skipif mysql # not compatible
query II rowsort label-4517
SELECT ALL - 51 * + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-153
-3

query I rowsort
SELECT DISTINCT - 11 - + + col2 * col2 * + 35 + - col1 + - 80 * - ( + 89 ) FROM tab1 cor0
----
-114731
-154778
-315465

query I rowsort
SELECT DISTINCT - 57 * + 46 * - col1 FROM tab2 cor0
----
133722
175674
201894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 + + + col0 col0 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + COUNT( + + col1 ) + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4521
SELECT + COUNT ( + + col1 ) + COUNT ( * ) FROM tab0 cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 20 + + 38 IS NULL
----

query I rowsort
SELECT ALL - + ( - col1 ) * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4524
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4524
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT DISTINCT - + COUNT( * ) - - MIN( ALL + ( + + col2 ) ) + ( + + COUNT( * ) ) * - - ( + 9 ) col2 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4525
SELECT DISTINCT - + COUNT ( * ) - - MIN ( ALL + ( + + col2 ) ) + ( + + COUNT ( * ) ) * - - ( + 9 ) col2 FROM tab2 AS cor0
----
47

query II rowsort
SELECT col1 + - col0 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-66
21
-96
1
66
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19, 11 col1 FROM tab2
----
19
11
19
11
19
11

query I rowsort
SELECT DISTINCT - 7 * + col0 FROM tab0
----
-105
-609
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - MAX( DISTINCT - col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4530
SELECT - MAX ( DISTINCT - col2 ) AS col0 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab2 WHERE - 11 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT - MAX( col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT - MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - col1 col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT DISTINCT - col1 * - + ( - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ( + COUNT( * ) ) * 18 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT ( + COUNT ( * ) ) * 18 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - 90 FROM tab2 cor0 WHERE + ( col0 ) / col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT + 44 DIV - - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + 44 / - - col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - - COUNT( - - col2 ) * + 47 + - 77 * - - 73 * - + 71 + - COUNT( * ) FROM tab1 AS cor0
----
399229

skipif mysql # not compatible
query I rowsort label-4540
SELECT - - COUNT ( - - col2 ) * + 47 + - 77 * - - 73 * - + 71 + - COUNT ( * ) FROM tab1 AS cor0
----
399229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4541
SELECT + ( - - 70 ) DIV 9 + - COUNT( DISTINCT col0 ) * + 24 AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-4541
SELECT + ( - - 70 ) / 9 + - COUNT ( DISTINCT col0 ) * + 24 AS col1 FROM tab2 AS cor0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4542
SELECT - COUNT( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4542
SELECT - COUNT ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - 65, col0 FROM tab0 AS cor0
----
-65
15
-65
87
-65
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4544
SELECT + 97 * MAX( - CAST( 51 AS SIGNED ) ) FROM tab0 AS cor0
----
-4947

skipif mysql # not compatible
query I rowsort label-4544
SELECT + 97 * MAX ( - CAST ( 51 AS INTEGER ) ) FROM tab0 AS cor0
----
-4947

query I rowsort
SELECT DISTINCT + 35 * - 86 * col2 FROM tab0 AS cor0
----
-141470
-297990
-30100

query I rowsort
SELECT DISTINCT + + 94 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - - ( - COUNT( * ) ) FROM tab2 WHERE 63 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4547
SELECT - - ( - COUNT ( * ) ) FROM tab2 WHERE 63 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 93 * col2 - col0 + col0 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT + ( col0 ) * + - ( + ( + 3 ) ) AS col0 FROM tab2 AS cor0
----
-138
-192
-225

query I rowsort
SELECT + 78 * 77 FROM tab2 AS cor0
----
6006
6006
6006

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT DISTINCT ( - CAST( + col0 AS SIGNED ) ) * - col0 AS col0 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT ( - CAST ( + col0 AS INTEGER ) ) * - col0 AS col0 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
2116
4096
5625

query I rowsort
SELECT - + col1 * + - col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL - + COUNT( ALL + 76 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL - + COUNT ( ALL + 76 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + 12 * + - col0 AS col0 FROM tab0 AS cor0
----
-1044
-1164
-180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 95 + + + col2 + + col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 * col1 AS col2, + col2 AS col0 FROM tab1
----
425
59
4277
68
714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL + COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <= + + col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT DISTINCT + COUNT( * ) * 87 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + COUNT ( * ) * 87 FROM tab2 AS cor0
----
261

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 65 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 34 * - - col0 AS col2 FROM tab2
----
51
1564
67
2550
77
2176

query I rowsort
SELECT DISTINCT col0 + - col2 + - ( - col1 ) + - col0 + + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
1
221
3841

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 < NULL
----

query I rowsort
SELECT - AVG ( + 29 ) AS col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) / - 36 + + 14 * + - col1 <> NULL
----

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE + col2 = NULL
----

query I rowsort
SELECT - - 99 AS col2 FROM tab1 cor0 WHERE col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT DISTINCT - CAST( NULL AS SIGNED ) + ( - SUM( ALL + col2 ) ) * - COUNT( * ) * + 49 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + ( - SUM ( ALL + col2 ) ) * - COUNT ( * ) * + 49 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT DISTINCT - 13 DIV col1 * + + col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT - 13 / col1 * + + col1 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4572
SELECT ALL CAST( + - col2 AS SIGNED ) DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL CAST ( + - col2 AS INTEGER ) / col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab1 WHERE NOT + 72 IS NULL
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - COUNT( * ) + - - 14 AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4574
SELECT - COUNT ( * ) + - - 14 AS col2 FROM tab1
----
11

query I rowsort
SELECT col1 * + col1 + 73 + - 68 AS col1 FROM tab1
----
201
2214
30

query I rowsort
SELECT + 33 * - col1 + col1 FROM tab2
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query II rowsort label-4577
SELECT ALL COUNT( * ) + + - COUNT( * ) col0, + COUNT( * ) FROM tab2
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4577
SELECT ALL COUNT ( * ) + + - COUNT ( * ) col0, + COUNT ( * ) FROM tab2
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 64 col2, 98 AS col1 FROM tab2
----
64
98
64
98
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4579
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4580
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT ALL + col0 + + 96, col1 FROM tab1 AS cor0
----
147
14
181
5
187
47

query I rowsort
SELECT DISTINCT - 13 + col1 AS col2 FROM tab0 AS cor0
----
-12
68
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 57 BETWEEN NULL AND + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL + COUNT( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + COUNT ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( - - 37 ) + - + 86 AS col0 FROM tab0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - - ( - col1 ) AS col1, 86 col2 FROM tab0
----
-66
86
66
86
96
86

query II rowsort
SELECT + col0 * + + 65 AS col2, - col2 FROM tab0 AS cor0
----
5655
-10
6305
-99
975
-47

query I rowsort
SELECT DISTINCT col2 * + - 77 AS col2 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT SUM( + 29 ) AS col1 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4589
SELECT SUM ( + 29 ) AS col1 FROM tab2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT - col2 DIV + 16 AS col2 FROM tab0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT - col2 / + 16 AS col2 FROM tab0
----
-2
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col2 col1 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL + COUNT( * ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + COUNT ( * ) FROM tab1, tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, - ( - - 80 ) * - - col1 col1 FROM tab1 AS cor0
----
-14
-1120
-47
-3760
-5
-400

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 AS col0, + 22 AS col2 FROM tab2 AS cor0
----
46
22
64
22
75
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT MAX( col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT MAX ( col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT col0 + 48 FROM tab2
----
112
123
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4598
SELECT DISTINCT SUM( + col0 ) + + COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT SUM ( + col0 ) + + COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT + SUM( CAST( + col2 AS SIGNED ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4599
SELECT + SUM ( CAST ( + col2 AS INTEGER ) ) FROM tab2
----
121

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) = 77
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT + col0 IN ( - ( 84 ) + - 46 * - col2 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT - COUNT( * ) + 79 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - COUNT ( * ) + 79 FROM tab1
----
76

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT COUNT( * ) FROM tab2 WHERE NOT - col0 * + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT COUNT ( * ) FROM tab2 WHERE NOT - col0 * + col1 <= NULL
----
0

query I rowsort
SELECT + 22 * 88 FROM tab0
----
1936
1936
1936

query I rowsort
SELECT ALL 2 AS col0 FROM tab0 WHERE - 20 IS NOT NULL
----
2
2
2

query I rowsort
SELECT - 55 * + col2 AS col0 FROM tab1
----
-3245
-3740
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - COUNT( * ) * 96 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-4608
SELECT - COUNT ( * ) * 96 FROM tab0
----
-288

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN col0 AND - ( + 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( col0 ) + 21 * + col0 FROM tab2
----
1280
1500
920

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4611
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL = ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4612
SELECT * FROM tab1 WHERE + 86 NOT BETWEEN CAST( NULL AS SIGNED ) + - 10 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4612
SELECT * FROM tab1 WHERE + 86 NOT BETWEEN CAST ( NULL AS INTEGER ) + - 10 AND NULL
----

query I rowsort
SELECT DISTINCT + 61 * + 4 + - ( + 47 ) * col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 53 * + col0 FROM tab1
----
2703
4505
4823

query I rowsort
SELECT + col1 * col0 AS col1 FROM tab1 WHERE NOT 39 IS NULL
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4616
SELECT ALL * FROM tab0 WHERE NOT 52 * CAST( + 17 AS SIGNED ) BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4616
SELECT ALL * FROM tab0 WHERE NOT 52 * CAST ( + 17 AS INTEGER ) BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + col1 ) ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 4 * + col0 AS col1 FROM tab0
----
348
388
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT ALL CAST( 18 AS SIGNED ) / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL CAST ( 18 AS INTEGER ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT + col2 IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + col0
----

query I rowsort
SELECT + col1 + col0 AS col2 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT ALL + col0 + col0 DIV col1 AS col1 FROM tab1
----
102
54
92

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + col0 + col0 / col1 AS col1 FROM tab1
----
102
54
92

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( col1 )
----

query I rowsort
SELECT ALL col1 * 52 FROM tab2 cor0
----
2652
3484
4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT col0 + - CAST( 35 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
16
50
56

skipif mysql # not compatible
query I rowsort label-4626
SELECT col0 + - CAST ( 35 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
16
50
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 13 ) IS NULL
----

query I rowsort
SELECT 69 * col1 FROM tab2 WHERE NULL IN ( + ( col1 ) + col1 )
----

query I rowsort
SELECT ALL 13 - - col1 AS col1 FROM tab1
----
18
27
60

query I rowsort
SELECT - col1 FROM tab1 WHERE + 42 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL + 80 + - 52 AS col1 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - MAX( ALL col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4633
SELECT - MAX ( ALL col1 ) FROM tab2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT ALL + 27 DIV + col0 col2 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN ( 24 * 30 ) AND - 26
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4634
SELECT ALL + 27 / + col0 col2 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN ( 24 * 30 ) AND - 26
----
0
0
0

query I rowsort
SELECT - - 63 AS col1 FROM tab2 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT + 26 + COUNT( * ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + 26 + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
29

query I rowsort
SELECT - + 64 AS col0 FROM tab1 cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + MIN( 21 ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4638
SELECT + MIN ( 21 ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT + + 21 * 54 FROM tab1 AS cor0
----
1134
1134
1134

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - 64 * col1 ) AND col0 + - 8
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 74 + col0 AND + col0 * - 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT DISTINCT + 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-4642
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT NULL IN ( col2 + + 18 )
----

query I rowsort
SELECT - 72 * 84 FROM tab1
----
-6048
-6048
-6048

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + col0 > + col2
----

query I rowsort
SELECT + 38 * 53 FROM tab2
----
2014
2014
2014

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT MIN( DISTINCT + 29 ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT MIN ( DISTINCT + 29 ) FROM tab1
----
29

query III rowsort
SELECT * FROM tab2 WHERE NOT 86 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT SUM( - 17 ) * COUNT( * ) AS col1 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-4650
SELECT SUM ( - 17 ) * COUNT ( * ) AS col1 FROM tab0
----
-153

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) * + col0 NOT BETWEEN NULL AND - ( 27 ) * + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 12
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 84 + col2 IS NULL
----

query I rowsort
SELECT ALL - + col2 * - + ( col0 ) FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT + col1 * - + col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4656
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + COUNT( * ) * + + 48 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4657
SELECT + COUNT ( * ) * + + 48 FROM tab0 AS cor0
----
144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 57 NOT BETWEEN - col2 AND - 79 * 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + col0 * + - col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + COUNT( DISTINCT - col2 ) * 63 * 52 + + 1 col0 FROM tab1 AS cor0
----
9829

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4660
SELECT + COUNT ( DISTINCT - col2 ) * 63 * 52 + + 1 col0 FROM tab1 AS cor0
----
9829

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4661
SELECT * FROM tab0 cor0 WHERE col1 * + col1 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4661
SELECT * FROM tab0 cor0 WHERE col1 * + col1 IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4662
SELECT * FROM tab2 AS cor0 WHERE 13 * - CAST( NULL AS SIGNED ) / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4662
SELECT * FROM tab2 AS cor0 WHERE 13 * - CAST ( NULL AS INTEGER ) / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE + 25 IS NULL
----

query I rowsort
SELECT col2 + + - col1 AS col2 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT CAST( NULL AS SIGNED ) * - + col1 + - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT CAST ( NULL AS INTEGER ) * - + col1 + - + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + ( + 31 ) FROM tab2
----
108
82
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4667
SELECT ALL 91 * CAST( + col0 AS SIGNED ) DIV - col2 FROM tab0
----
-29
-791
-89

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL 91 * CAST ( + col0 AS INTEGER ) / - col2 FROM tab0
----
-29
-791
-89

query I rowsort
SELECT ALL - 11 * - ( col0 ) - - ( + 43 ) * 53 FROM tab0
----
2444
3236
3346

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 84 * - - 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT 23 * CAST( + col0 AS SIGNED ) FROM tab2
----
1058
1472
1725

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT 23 * CAST ( + col0 AS INTEGER ) FROM tab2
----
1058
1472
1725

query I rowsort
SELECT - ( - 27 ) + + col0 AS col2 FROM tab0
----
114
124
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT + 42 * + COUNT( * ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + 42 * + COUNT ( * ) FROM tab2
----
126

query I rowsort
SELECT + + 90 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4674
SELECT DISTINCT - col2 + - + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - col2 + - + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 70 / ( 17 ) - col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + col1 col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( 78 / - col1 ) < col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 22 = + + col0 * ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT COUNT( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4679
SELECT COUNT ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + MAX( ALL 84 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 17 * - - col2 ) AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT + MAX ( ALL 84 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 17 * - - col2 ) AND - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 / + + 59 * - col1 + col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 / + + 59 * - col1 + col2 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 47 + + ( + + 5 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + - col2 + + - 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - + MIN( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - + MIN ( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
-23

query I rowsort
SELECT + ( - 64 ) * - ( - col2 ) FROM tab2 AS cor0
----
-1472
-2560
-3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT ALL - CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT col0 * 21 FROM tab0
----
1827
2037
315

query I rowsort
SELECT ALL col1 * + + col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT SUM( - col0 ) AS col0 FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT SUM ( - col0 ) AS col0 FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL + col1 + + ( - 56 ) * + ( ( - CAST( + col0 AS SIGNED ) ) ) FROM tab2 cor0
----
2627
3661
4267

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + col1 + + ( - 56 ) * + ( ( - CAST ( + col0 AS INTEGER ) ) ) FROM tab2 cor0
----
2627
3661
4267

query II rowsort
SELECT col1, col2 * - ( col0 ) - col1 - - col1 FROM tab0 AS cor0
----
1
-9603
21
-870
81
-705

query I rowsort
SELECT ALL + ( + 19 ) * + ( - 81 ) + col0 + + + col2 AS col1 FROM tab2 AS cor0
----
-1406
-1435
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + SUM( + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4694
SELECT + SUM ( + - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT - + col2 + - - col1 * col1 - + col2 AS col2 FROM tab1 AS cor0
----
-93
2073
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT + CAST( + 26 AS SIGNED ) FROM tab0 cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-4696
SELECT + CAST ( + 26 AS INTEGER ) FROM tab0 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4697
SELECT DISTINCT 85 AS col1, 44 * + COUNT( * ) col1 FROM tab2 AS cor0
----
85
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4697
SELECT DISTINCT 85 AS col1, 44 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
85
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT + col2 + - - col1 + + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4698
SELECT + col2 + - - col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 30 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4700
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT - col1 DIV + col0 + col1 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4701
SELECT - col1 / + col0 + col1 / - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT - COUNT( col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4702
SELECT - COUNT ( col1 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ( - - COUNT( * ) ) AS col2 FROM tab2 WHERE ( - - 47 ) > + 39
----
3

skipif mysql # not compatible
query I rowsort label-4705
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab2 WHERE ( - - 47 ) > + 39
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4706
SELECT 27 - CAST( NULL AS DECIMAL ) + + - col2 + + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT 27 - CAST ( NULL AS REAL ) + + - col2 + + - col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + ( + col0 ) - + 87 * - + col0 col2 FROM tab0
----
18042
2010
8439

query I rowsort
SELECT 7 - + - 87 * - col2 AS col0 FROM tab2
----
-1994
-3473
-5039

query I rowsort
SELECT col2 + - ( - 53 ) + ( - 59 ) + + col2 * + col2 - + ( + ( col2 ) ) FROM tab2
----
1594
3358
523

query I rowsort
SELECT DISTINCT 54 * - - col0 * - col0 FROM tab2 AS cor0
----
-114264
-221184
-303750

query I rowsort
SELECT ALL - 96 * - + col1 * + col1 * - 61 * - - 66 AS col1 FROM tab1 AS cor0
----
-75753216
-853769664
-9662400

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4712
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - col0 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT CAST ( NULL AS REAL ) * + - col0 AS col1 FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 * + + col2 + - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 54
----

query I rowsort
SELECT ALL - col1 + 65 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - - col2 AND - col1 / + - col2 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col2 FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab1 WHERE NOT ( NULL ) >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL - COUNT( * ) * - SUM( DISTINCT col0 ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - COUNT ( * ) * - SUM ( DISTINCT col0 ) FROM tab1
----
681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4719
SELECT DISTINCT 26 DIV COUNT( * ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT 26 / COUNT ( * ) AS col1 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT SUM( + col1 ) + - - 38 FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-4720
SELECT SUM ( + col1 ) + - - 38 FROM tab1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT ALL 11 DIV 21 * - col0 DIV + + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL 11 / 21 * - col0 / + + col0 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL 52 AS col1, col1 - + col2 FROM tab2
----
52
28
52
37
52
9

query I rowsort
SELECT ALL + col1 + + + 42 FROM tab1
----
47
56
89

query I rowsort
SELECT + col2 + + + 21 FROM tab1 cor0
----
117
80
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 + + 3 col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE + 30 NOT IN ( col0 + - ( - 25 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 30 NOT IN ( col0 + - ( - 25 ) )
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE 40 IS NULL
----

query II rowsort
SELECT col2, col1 * + 10 * ( - col2 ) FROM tab1
----
59
-2950
68
-31960
96
-13440

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT COUNT( DISTINCT + col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4729
SELECT COUNT ( DISTINCT + col1 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - col1 * 2 / - col2 + col2 - - - 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 98 * col1 + col2 * - 48 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + + + col2 - + 60 AND - 82 AND ( NULL ) NOT BETWEEN ( + 11 ) AND col1 + - + col0 - 35 * - 7
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4732
SELECT ALL col2 * 47 + 88 DIV 76 + - ( + - col1 ) AS col1, col1 FROM tab2 AS cor0
----
1133
51
1958
77
2794
67

skipif mysql # not compatible
query II rowsort label-4732
SELECT ALL col2 * 47 + 88 / 76 + - ( + - col1 ) AS col1, col1 FROM tab2 AS cor0
----
1133
51
1958
77
2794
67

query I rowsort
SELECT + col0 + - + col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL - - COUNT( * ) * + ( 92 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - - COUNT ( * ) * + ( 92 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL ( - 18 ) - - col0 FROM tab0
----
-3
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT COUNT( * ) + 36 + + - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-4736
SELECT COUNT ( * ) + 36 + + - COUNT ( * ) FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT COUNT( - - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4737
SELECT COUNT ( - - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL + COUNT( * ) - + 71 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + COUNT ( * ) - + 71 FROM tab0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT 84 - + ( CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2
----
130
148
159

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT 84 - + ( CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2
----
130
148
159

query I rowsort
SELECT ALL col0 + + 99 * col2 AS col0 FROM tab0
----
1077
4668
9898

query I rowsort
SELECT ALL + 52 + + col1 FROM tab2 WHERE NULL IS NULL
----
103
119
129

query II rowsort
SELECT DISTINCT + col1 * - + col0, col1 + col0 AS col2 FROM tab2
----
-2346
97
-4928
141
-5025
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT ALL - COUNT( * ) * + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4743
SELECT ALL - COUNT ( * ) * + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL = - - 50 )
----
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL = - - 50 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 74 <= + + col0
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= 36 * - 93 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 26 col2 FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - 91 * - + COUNT( * ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4750
SELECT - 91 * - + COUNT ( * ) FROM tab0 AS cor0
----
273

query I rowsort
SELECT - ( 28 ) AS col1 FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL - - SUM( 43 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - - SUM ( 43 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT - + MAX( DISTINCT - col2 ) * + 44 + - + 73 FROM tab1 AS cor0
----
2523

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - + MAX ( DISTINCT - col2 ) * + 44 + - + 73 FROM tab1 AS cor0
----
2523

query I rowsort
SELECT + col2 * - - col2 AS col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT - 36 * - 24 AS col0 FROM tab1
----
864
864
864

query I rowsort
SELECT DISTINCT col0 * - 42 FROM tab2
----
-1932
-2688
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL MIN( DISTINCT col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL MIN ( DISTINCT col2 ) AS col2 FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 14 + - col1 col0, - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT + SUM( + - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + SUM ( + - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL COUNT( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL COUNT ( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT col1 AS col2, + col0 FROM tab0 WHERE ( NULL ) IS NULL
----
1
97
21
87
81
15

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NOT 96 IS NOT NULL )
----

query I rowsort
SELECT 65 * + 40 * col1 + + 54 FROM tab2
----
132654
174254
200254

query I rowsort
SELECT + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT 70 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT 70 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT + + MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4767
SELECT + + MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4768
SELECT DISTINCT + 18 / - col0 * CAST( NULL AS SIGNED ) + 47 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + 18 / - col0 * CAST ( NULL AS INTEGER ) + 47 AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 * + col2 + 48 col1 FROM tab1 AS cor0
----
-3610
-4168
-5904

query I rowsort
SELECT + + 12 - + col0 - - col2 FROM tab1 cor0
----
-11
-14
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4771
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT COUNT( * ) + + 82 AS col2 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT COUNT ( * ) + + 82 AS col2 FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT - SUM( DISTINCT + 35 ) AS col0 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT - SUM ( DISTINCT + 35 ) AS col0 FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT + MIN( DISTINCT - 19 ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT + MIN ( DISTINCT - 19 ) FROM tab1
----
-19

query III rowsort
SELECT * FROM tab0 WHERE NOT - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT - COUNT( * ) AS col1, 33 AS col1 FROM tab0
----
-3
33

skipif mysql # not compatible
query II rowsort label-4776
SELECT - COUNT ( * ) AS col1, 33 AS col1 FROM tab0
----
-3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT + COUNT( DISTINCT - + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4777
SELECT + COUNT ( DISTINCT - + col1 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT - col2 AS col0, col2 + ( - + 59 ) * - col0 AS col1 FROM tab2
----
-23
2737
-40
3816
-58
4483

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + MAX( + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4779
SELECT + MAX ( + col2 ) AS col2 FROM tab1
----
96

query II rowsort
SELECT DISTINCT - col2 * col2 AS col0, 34 AS col0 FROM tab1 cor0 WHERE 58 IS NULL
----

query II rowsort
SELECT ALL - - col1 AS col0, - ( + col2 ) + - + col2 + - 22 + + col2 AS col1 FROM tab1 AS cor0
----
14
-118
47
-90
5
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 38 col0 FROM tab0 cor0 WHERE NOT - col2 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 62 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4785
SELECT + + col1 DIV - - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4785
SELECT + + col1 / - - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4786
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-4786
SELECT * FROM tab2 WHERE - CAST ( col2 AS INTEGER ) * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4788
SELECT + COUNT( * ) + - + ( + 28 ) DIV + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4788
SELECT + COUNT ( * ) + - + ( + 28 ) / + COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT ALL + col1 + 71 FROM tab0
----
152
72
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT COUNT( * ) + - ( COUNT( * ) ) DIV - - 85 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( * ) + - ( COUNT ( * ) ) / - - 85 AS col1 FROM tab1
----
3

query I rowsort
SELECT col1 * - - 96 + + col1 - - col2 FROM tab1
----
1454
4627
544

query I rowsort
SELECT + col0 * - col2 + + 27 FROM tab0
----
-678
-843
-9576

query III rowsort
SELECT * FROM tab0 WHERE - - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4794
SELECT ALL + col2 + + + 58 DIV + + col0 + + col0 FROM tab2 AS cor0
----
104
133
70

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL + col2 + + + 58 / + + col0 + + col0 FROM tab2 AS cor0
----
104
133
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT + + ( COUNT( * ) ) + - - 45 col2 FROM tab1 cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4795
SELECT DISTINCT + + ( COUNT ( * ) ) + - - 45 col2 FROM tab1 cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT - col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT - col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 24 ) * + col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4798
SELECT DISTINCT + col2 DIV 12 DIV + ( - + CAST( + - ( + 44 ) AS SIGNED ) ) + + + 78 - - 61 + - col0 AS col1 FROM tab2 AS cor0
----
64
75
93

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + col2 / 12 / + ( - + CAST ( + - ( + 44 ) AS INTEGER ) ) + + + 78 - - 61 + - col0 AS col1 FROM tab2 AS cor0
----
64
75
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + 57 + + col2 AND col2 + + + 87 * col1 + + col1 * + + col1 / + ( - 20 ) + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 NOT BETWEEN NULL AND ( - - ( - - 60 ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT ALL - SUM( + + 0 ) DIV - + 32 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - SUM ( + + 0 ) / - + 32 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT - - 1 * + col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT col1 DIV 91 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT col1 / 91 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * + col0 * - col1 AS col1 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT + col0, + col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT - SUM( + + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT - SUM ( + + col2 ) FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col2 FROM tab0 AS cor0
----
-62
-62
-62

query II rowsort
SELECT DISTINCT - 58 AS col0, + col2 FROM tab1
----
-58
59
-58
68
-58
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 col2, 52 AS col1 FROM tab1
----
-15
52
-15
52
-15
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 * + 0 + col1 col1 FROM tab0 AS cor0 WHERE - col1 + - col0 * - + col1 * - 58 IS NULL
----

query I rowsort
SELECT ALL - col1 + ( - 8 ) AS col0 FROM tab2 AS cor0
----
-59
-75
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col1 AS col2, + 19 * + 68 * + col2 col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 < 78
----
51
14
96

query I rowsort
SELECT DISTINCT col1 + col1 + - + 25 AS col1 FROM tab2 AS cor0
----
109
129
77

query II rowsort
SELECT col1 AS col2, col2 * - + col1 AS col2 FROM tab0 AS cor0
----
1
-99
21
-210
81
-3807

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4818
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( col2, CAST( 72 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4818
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( col2, CAST ( 72 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * col2 * 46 AS col0 FROM tab1
----
160126
212704
423936

query I rowsort
SELECT DISTINCT col0 + - col1 * + col1 * - 37 * - + col0 FROM tab1
----
-369801
-7437612
-78540

query I rowsort
SELECT - 55 AS col0 FROM tab1 WHERE NULL <= - - 18 - 45 * col2
----

query I rowsort
SELECT 41 * + - col0 AS col0 FROM tab1
----
-2091
-3485
-3731

query II rowsort
SELECT - col0 - 30 AS col2, + col2 * + col1 + col2 + + col0 + 21 FROM tab0
----
-117
328
-127
316
-45
3890

query I rowsort
SELECT + col1 - ( - + 82 ) FROM tab0 AS cor0
----
103
163
83

query I rowsort
SELECT DISTINCT ( - 47 ) * - ( - col2 ) FROM tab1 AS cor0
----
-2773
-3196
-4512

query I rowsort
SELECT + + col2 * col1 + - col2 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT DISTINCT col2 + + 85 AS col1 FROM tab1
----
144
153
181

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT ALL - ( 9 ) DIV + col1 + ( - ( + + col1 ) ) AS col2 FROM tab0
----
-10
-21
-81

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - ( 9 ) / + col1 + ( - ( + + col1 ) ) AS col2 FROM tab0
----
-10
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4829
SELECT * FROM tab2 AS cor0 WHERE NOT - 92 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4829
SELECT * FROM tab2 AS cor0 WHERE NOT - 92 = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + - col2 * ( + 41 ) AS col1 FROM tab2 cor0 WHERE NOT - ( + 44 ) = + col0
----
-1640
-2378
-943

query I rowsort
SELECT - 33 * + 79 + - col0 FROM tab2 AS cor0
----
-2653
-2671
-2682

onlyif mysql # aggregate syntax: 
query II rowsort label-4832
SELECT DISTINCT 69 col2, + MIN( ALL + ( + col2 ) ) FROM tab1 AS cor0
----
69
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4832
SELECT DISTINCT 69 col2, + MIN ( ALL + ( + col2 ) ) FROM tab1 AS cor0
----
69
59

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + + COUNT( DISTINCT - - col1 ) * SUM( + - 91 ) FROM tab2 AS cor0
----
-819

skipif mysql # not compatible
query I rowsort label-4834
SELECT + + COUNT ( DISTINCT - - col1 ) * SUM ( + - 91 ) FROM tab2 AS cor0
----
-819

onlyif mysql # DIV for integer division: 
query II rowsort label-4835
SELECT ALL - + 96 DIV + col2 + 55 AS col0, - 40 FROM tab0 AS cor0
----
46
-40
53
-40
55
-40

skipif mysql # not compatible
query II rowsort label-4835
SELECT ALL - + 96 / + col2 + 55 AS col0, - 40 FROM tab0 AS cor0
----
46
-40
53
-40
55
-40

query II rowsort
SELECT DISTINCT - 15 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-15
46
-15
64
-15
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 57 * + col1 * + col0 / + col0 * + - col2 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4838
SELECT ALL 50 AS col2, SUM( - CAST( NULL AS DECIMAL ) ) FROM tab2, tab1 cor0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-4838
SELECT ALL 50 AS col2, SUM ( - CAST ( NULL AS REAL ) ) FROM tab2, tab1 cor0
----
50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT col0 + - CAST( + 3 AS SIGNED ) FROM tab2 WHERE NOT 83 = + + 65
----
43
61
72

skipif mysql # not compatible
query I rowsort label-4839
SELECT col0 + - CAST ( + 3 AS INTEGER ) FROM tab2 WHERE NOT 83 = + + 65
----
43
61
72

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col1 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT col0 / + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4841
SELECT col0 / + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <> 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT ALL + 43 DIV + ( - - COUNT( * ) ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + 43 / + ( - - COUNT ( * ) ) FROM tab1
----
14

query I rowsort
SELECT ( + + 45 ) * + + 59 AS col1 FROM tab1
----
2655
2655
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4845
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT 34 * + - COUNT( * ) * - 99 AS col1 FROM tab2
----
10098

skipif mysql # not compatible
query I rowsort label-4846
SELECT 34 * + - COUNT ( * ) * - 99 AS col1 FROM tab2
----
10098

query I rowsort
SELECT DISTINCT col2 * - 77 * + col1 * - 79 FROM tab0
----
1277430
23157981
602217

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ( - - COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4848
SELECT ( - - COUNT ( * ) ) col0 FROM tab1
----
3

query I rowsort
SELECT ALL - 73 + - col2 AS col2 FROM tab1 AS cor0
----
-132
-141
-169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col0 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT - + 56 + - col0 AS col1 FROM tab2 AS cor0
----
-102
-120
-131

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 16 + + - 45 + - col2 FROM tab1 AS cor0 WHERE - col2 / - - 15 + col1 IS NULL
----

query I rowsort
SELECT ALL col0 - + 66 * - 93 FROM tab0
----
6153
6225
6235

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4855
SELECT ALL * FROM tab2 WHERE NOT - 30 + - CAST( NULL AS SIGNED ) <= + + col0 * + - col2 * + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4855
SELECT ALL * FROM tab2 WHERE NOT - 30 + - CAST ( NULL AS INTEGER ) <= + + col0 * + - col2 * + + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT + col0 + col2 DIV - - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4856
SELECT + col0 + col2 / - - col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - 37 * + col0 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT col0 + 44 / + + CAST( NULL AS SIGNED ) + ( + col2 ) * + - 24 * - + 6 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT col0 + 44 / + + CAST ( NULL AS INTEGER ) + ( + col2 ) * + - 24 * - + 6 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - - - col2 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL 92 - - 22 AS col0 FROM tab1
----
114
114
114

query I rowsort
SELECT ALL + col0 * 82 AS col2 FROM tab0 AS cor0
----
1230
7134
7954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4862
SELECT - - 12 col1, - CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
12
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4862
SELECT - - 12 col1, - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
12
3

query I rowsort
SELECT DISTINCT + + 52 AS col2 FROM tab2 AS cor0
----
52

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - col1 NOT IN ( + col1, - col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT - 46 - - + COUNT( * ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4865
SELECT - 46 - - + COUNT ( * ) FROM tab2 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4866
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - + 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( 67 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 6 * + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 6 * + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - COUNT( col1 ) * + 32 AS col0 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4870
SELECT - COUNT ( col1 ) * + 32 AS col0 FROM tab2 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - - 46 > - col1 - - col1 * - - 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - + ( + 58 ), col0 FROM tab1 AS cor0
----
-58
51
-58
85
-58
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT COUNT( - col2 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT COUNT ( - col2 ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 16 NOT IN ( - - col1, + 35, + 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT ALL 83 DIV - + ( + 8 ) AS col2 FROM tab0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL 83 / - + ( + 8 ) AS col2 FROM tab0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + 16 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col1, + col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + + 75 AS col1 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT + 15 * + ( 30 ) FROM tab1 AS cor0 WHERE NOT - col2 * ( - 11 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT + COUNT( * ) - 61 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + COUNT ( * ) - 61 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-58

query I rowsort
SELECT + ( - 29 ) FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT DISTINCT - col2 * - col2 DIV col2 + - col1 * - 62 AS col2 FROM tab1 AS cor0
----
2982
369
964

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT - col2 * - col2 / col2 + - col1 * - 62 AS col2 FROM tab1 AS cor0
----
2982
369
964

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL MAX( ALL - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL MAX ( ALL - + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT col0 + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 98 + + 40 AS col2 FROM tab2 cor0
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT DISTINCT COUNT( * ) + + - COUNT( * ), + ( + 57 ) col0 FROM tab1 AS cor0
----
0
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4886
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ), + ( + 57 ) col0 FROM tab1 AS cor0
----
0
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT SUM( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4887
SELECT SUM ( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT ALL - - col2 DIV - col2 + - col0 * - - 97 + - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-1457
-8441
-9411

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - - col2 / - col2 + - col0 * - - 97 + - col1 / col1 AS col0 FROM tab0 AS cor0
----
-1457
-8441
-9411

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 47
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 / - 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL 35 + COUNT( * ) col2 FROM tab2
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4891
SELECT ALL 35 + COUNT ( * ) col2 FROM tab2
----
38

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL 2 + - col2 FROM tab2
----
-21
-38
-56

query III rowsort
SELECT * FROM tab1 WHERE + - col2 + - col0 IS NULL
----

query II rowsort
SELECT DISTINCT - ( + + col1 ) AS col0, col1 + col0 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
-51
97
-67
142
-77
141

query II rowsort
SELECT ALL + col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col0 + col1 AND NULL
----
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT DISTINCT - 55 DIV + 76 + - - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - 55 / + 76 + - - col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT + SUM( - 19 ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT + SUM ( - 19 ) AS col0 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL 31 AS col2 FROM tab0 WHERE NOT NULL >= + - 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT DISTINCT - col1 + col1 col0 FROM tab0 WHERE col1 * col0 + - CAST( NULL AS SIGNED ) + - col2 * - col0 + + + col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4901
SELECT DISTINCT - col1 + col1 col0 FROM tab0 WHERE col1 * col0 + - CAST ( NULL AS INTEGER ) + - col2 * - col0 + + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - 83 ) AS col0 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4903
SELECT - SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + - 57 AS col0 FROM tab0 cor0
----
-57
-57
-57

query II rowsort
SELECT + 78 * 95 AS col1, + col1 - col0 AS col0 FROM tab1 cor0
----
7410
-37
7410
-44
7410
-80

query II rowsort
SELECT DISTINCT col0 * - - 44, col1 FROM tab2 AS cor0
----
2024
51
2816
77
3300
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT 93 * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-4907
SELECT 93 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
279

query II rowsort
SELECT ALL col2, col1 * + col1 AS col2 FROM tab2 AS cor0
----
23
2601
40
5929
58
4489

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4909
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 * CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-4909
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 * CAST ( NULL AS INTEGER ) + col0
----

query II rowsort
SELECT ALL + 43 * + + 80 AS col1, col2 FROM tab0
----
3440
10
3440
47
3440
99

query I rowsort
SELECT DISTINCT + 50 * col2 FROM tab0
----
2350
4950
500

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4912
SELECT ALL + 16 / + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + 16 / + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - + 58 * + col1 FROM tab2
----
-178640
-225388
-68034

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT ALL 13 DIV + + col0 * + - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL 13 / + + col0 * + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 87 * + 65 + - col2 * col0 AS col0 FROM tab0
----
-3948
4785
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT 40 + + - COUNT( 97 ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-4916
SELECT 40 + + - COUNT ( 97 ) FROM tab0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT - col1 + + col2 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT - col1 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col1 ) + - 75 FROM tab2 AS cor0
----
-126
-142
-152

query III rowsort
SELECT * FROM tab0 WHERE + - 0 NOT BETWEEN + + col0 * col0 AND + + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 8 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL = 3
----

query II rowsort
SELECT ALL + ( - + ( + 70 ) ) AS col0, - col1 FROM tab0 AS cor0
----
-70
-1
-70
-21
-70
-81

query I rowsort
SELECT - col0 + + 39 AS col1 FROM tab0
----
-48
-58
24

query II rowsort
SELECT + col2 + - - col1 AS col0, col2 AS col2 FROM tab1
----
110
96
115
68
64
59

query I rowsort
SELECT + col1 * - 49 + + 29 AS col2 FROM tab0
----
-1000
-20
-3940

query I rowsort
SELECT ALL col2 + - ( + col2 ) AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE + 17 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT + MIN( + 21 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + MIN ( + 21 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
63

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT ( - - 15 ) DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4930
SELECT ( - - 15 ) / col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4931
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

query I rowsort
SELECT ALL + 42 + + 76 FROM tab2 AS cor0 WHERE + 46 IS NOT NULL
----
118
118
118

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) > NULL
----

query II rowsort
SELECT + col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - COUNT( ALL - col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4935
SELECT - COUNT ( ALL - col1 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT + ( col1 ) * - 41 * + - 51 FROM tab0 AS cor0
----
169371
2091
43911

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL - 2 * - MIN( + + 97 ) + - 63 FROM tab2 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL - 2 * - MIN ( + + 97 ) + - 63 FROM tab2 AS cor0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * - + col0 BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-4938
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * - + col0 BETWEEN NULL AND col1
----
0

query I rowsort
SELECT ALL + col1 + - col2 FROM tab1 WHERE NOT - col2 <= + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT COUNT( * ) * + 32 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-4940
SELECT COUNT ( * ) * + 32 FROM tab0
----
96

query I rowsort
SELECT ALL + 89 * - 91 AS col1 FROM tab2
----
-8099
-8099
-8099

query II rowsort
SELECT ALL ( - - col2 ), + col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - - 91 - - col2 FROM tab1 WHERE ( NOT col1 IS NULL )
----
150
159
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 56 col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-56
-56
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 48 = - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4947
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - col1 + CAST( NULL AS SIGNED ) / - 95 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4947
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - col1 + CAST ( NULL AS INTEGER ) / - 95 * + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + - col0 + - + 44 FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 72 FROM tab1 WHERE col0 IS NOT NULL AND ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 52 * + - col1 > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 * col2 col1 FROM tab2 AS cor0
----
1240
1798
713

query II rowsort
SELECT ALL + 7 * - - 85, col2 * + 13 AS col1 FROM tab1 AS cor0
----
595
1248
595
767
595
884

query I rowsort
SELECT DISTINCT - 90 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4954
SELECT COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col2 + 6 FROM tab0 AS cor0
----
-4
-41
-93

query I rowsort
SELECT - + 90 AS col0 FROM tab1 AS cor0 WHERE + 61 + 19 IS NOT NULL
----
-90
-90
-90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + col1 + - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL - 29 * + + 20 * + MAX( ALL col2 ) FROM tab2 AS cor0
----
-33640

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - 29 * + + 20 * + MAX ( ALL col2 ) FROM tab2 AS cor0
----
-33640

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT DISTINCT col2 * 25 * + + 19 + + 51 DIV - col0 FROM tab2 cor0
----
10924
19000
27550

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT col2 * 25 * + + 19 + + 51 / - col0 FROM tab2 cor0
----
10924
19000
27550

query I rowsort
SELECT - ( + ( col0 ) ) AS col0 FROM tab1 WHERE NOT - col0 <> - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) * + col1 + - + 83 * + 78 AS col2 FROM tab0
----
-10281
-6573
-6684

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) * + col1 + - + 83 * + 78 AS col2 FROM tab0
----
-10281
-6573
-6684

query I rowsort
SELECT + ( - 64 ) FROM tab0
----
-64
-64
-64

query II rowsort
SELECT col1 AS col0, 43 FROM tab2 AS cor0
----
51
43
67
43
77
43

query I rowsort
SELECT + 94 * - + col2 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT DISTINCT + + 70 AS col1 FROM tab0 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + + ( - col2 ) col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 3 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT + - col0 * - + col1 * + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL - 33 * + COUNT( * ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - 33 * + COUNT ( * ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT ( 16 ) FROM tab1 cor0
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT ALL - 26 DIV col0 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - 26 / col0 + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - 64 + + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - 64 + + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-249

query I rowsort
SELECT ALL + 65 AS col2 FROM tab2 cor0
----
65
65
65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 <> - ( + 62 )
----

query I rowsort
SELECT - ( + - 28 ) AS col2 FROM tab1
----
28
28
28

query I rowsort
SELECT col2 + - col1 + - + col1 AS col0 FROM tab0
----
-115
-32
97

query I rowsort
SELECT col1 + - col0 - - + 89 * - - col1 AS col0 FROM tab1
----
1209
365
4139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 19 col2 FROM tab0
----
-68
-78
4

query I rowsort
SELECT ALL - + 3 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL 6 + + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL 6 + + COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT ALL - 37 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT DISTINCT - col1 - col2 * - 64 AS col2 FROM tab0
----
2927
619
6335

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - ( - COUNT( * ) ) - - + ( + COUNT( * ) ) * - 69 * 61 FROM tab2
----
-12624

skipif mysql # not compatible
query I rowsort label-4984
SELECT - ( - COUNT ( * ) ) - - + ( + COUNT ( * ) ) * - 69 * 61 FROM tab2
----
-12624

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL SUM( col0 ) * 68 AS col0 FROM tab0
----
13532

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL SUM ( col0 ) * 68 AS col0 FROM tab0
----
13532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 94 col0, col0 * col0 FROM tab1 AS cor0
----
-94
2601
-94
7225
-94
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT ALL + - ( + ( + - CAST( - COUNT( * ) AS SIGNED ) ) ) * 35 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + - ( + ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) ) * 35 FROM tab0 AS cor0
----
-105

query I rowsort
SELECT ALL - - col2 * + 81 - + 22 AS col1 FROM tab0 AS cor0
----
3785
788
7997

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT + 80 * - MAX( - + col1 ) AS col0 FROM tab2 AS cor0
----
4080

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + 80 * - MAX ( - + col1 ) AS col0 FROM tab2 AS cor0
----
4080

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT DISTINCT + 51 DIV col2 col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4990
SELECT DISTINCT + 51 / col2 col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 IN ( - - col2, + ( - + ( ( 71 ) ) ) + + col2 / + col0 )
----

query I rowsort
SELECT + - 61 + - ( - - col0 ) FROM tab2 AS cor0
----
-107
-125
-136

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - col1
----

query I rowsort
SELECT ALL - + 1 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col0 FROM tab2
----
41
41
41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4996
SELECT ALL CAST( NULL AS DECIMAL ) * - - ( 62 ) AS col1, 36 AS col0 FROM tab0
----
NULL
36
NULL
36
NULL
36

skipif mysql # not compatible
query II rowsort label-4996
SELECT ALL CAST ( NULL AS REAL ) * - - ( 62 ) AS col1, 36 AS col0 FROM tab0
----
NULL
36
NULL
36
NULL
36

query I rowsort
SELECT ALL col0 * col2 * col1 AS col0 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT + col0 IS NOT NULL ) )
----

query I rowsort
SELECT col2 * + 88 AS col0 FROM tab2
----
2024
3520
5104

query I rowsort
SELECT DISTINCT 24 * - col0 * + - 93 AS col0 FROM tab2
----
102672
142848
167400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5001
SELECT ALL + COUNT( - col1 ) DIV - - ( + - COUNT( DISTINCT + - 99 ) ) + - - 91 * + - 68 FROM tab1 AS cor0
----
-6191

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL + COUNT ( - col1 ) / - - ( + - COUNT ( DISTINCT + - 99 ) ) + - - 91 * + - 68 FROM tab1 AS cor0
----
-6191

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 37 = col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5003
SELECT + COUNT( * ) DIV + ( + + COUNT( + col2 ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5003
SELECT + COUNT ( * ) / + ( + + COUNT ( + col2 ) ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 34 col1 FROM tab0
----
2958
3298
510

query I rowsort
SELECT - + 61 + + 8 AS col0 FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5008
SELECT col0 * + - 9 * + 22 - - col2 + + - CAST( NULL AS DECIMAL ) - + col0 + - + 96 + ( - + col1 ) + + - col1 * - + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT col0 * + - 9 * + 22 - - col2 + + - CAST ( NULL AS REAL ) - + col0 + - + 96 + ( - + col1 ) + + - col1 * - + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + - + col1 * - col2 * + col1 AS col0, col1 * + col2 col0 FROM tab1 AS cor0
----
150303
3196
1560
295
18867
1344

query I rowsort
SELECT - - col1 + + + col1 AS col2 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5011
SELECT col2 * - - col1 * + CAST( NULL AS DECIMAL ) * + ( - - col2 ) * 26 - + 13 - col0 * - col2 * col1 * ( 44 ) + - - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT col2 * - - col1 * + CAST ( NULL AS REAL ) * + ( - - col2 ) * 26 - + 13 - col0 * - col2 * col1 * ( 44 ) + - - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 - + col0 col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5013
SELECT + 53 AS col0, col0 + + - 68 * - col1 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
53
NULL
53
NULL
53
NULL

skipif mysql # not compatible
query II rowsort label-5013
SELECT + 53 AS col0, col0 + + - 68 * - col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
53
NULL
53
NULL
53
NULL

query II rowsort
SELECT DISTINCT + col0, - col2 AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL - COUNT( * ) + + 49 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - COUNT ( * ) + + 49 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL COUNT( * ) * + 80 AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL COUNT ( * ) * + 80 AS col0 FROM tab1
----
240

query III rowsort
SELECT * FROM tab2 WHERE NULL > - - col1 * col2 + col2
----

query II rowsort
SELECT + col1 * 30 AS col2, - col2 FROM tab2
----
1530
-23
2010
-58
2310
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT ALL SUM( ALL + col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5019
SELECT ALL SUM ( ALL + col2 ) col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5020
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col1, - col1 + - col2 AS col2 FROM tab1
----
NULL
-110
NULL
-115
NULL
-64

skipif mysql # not compatible
query II rowsort label-5020
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col1, - col1 + - col2 AS col2 FROM tab1
----
NULL
-110
NULL
-115
NULL
-64

query I rowsort
SELECT 92 + - - col1 FROM tab0 AS cor0
----
113
173
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL - COUNT( - + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL - COUNT ( - + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 29 + 49 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT + ( - 18 ) * + col1 * + - col2 + - col0 AS col0 FROM tab2 AS cor0
----
21068
55376
69873

query I rowsort
SELECT DISTINCT + + 64 * + 71 - - 17 + ( col0 ) + col2 * + - 85 FROM tab0 AS cor0
----
-3757
3798
581

query I rowsort
SELECT - 93 * - - 4 + 62 + 76 AS col1 FROM tab2
----
-234
-234
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT - COUNT( * ) - - 57 AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - COUNT ( * ) - - 57 AS col0 FROM tab1
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5028
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5028
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ( + 40 ) FROM tab0
----
40
40
40

query I rowsort
SELECT DISTINCT - 42 - - col2 FROM tab2 AS cor0
----
-19
-2
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT DISTINCT + + 12 * + col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + + 12 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col0 col1 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT + 95 AS col1, col1 * - + col0 + col2 FROM tab0 AS cor0
----
95
-1168
95
-1817
95
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5034
SELECT + col1 * - + CAST( col0 AS SIGNED ), + col1 * + ( - col2 ) + - col0 DIV - - 33 AS col2 FROM tab1 AS cor0
----
-425
-297
-4277
-3198
-714
-1345

skipif mysql # not compatible
query II rowsort label-5034
SELECT + col1 * - + CAST ( col0 AS INTEGER ), + col1 * + ( - col2 ) + - col0 / - - 33 AS col2 FROM tab1 AS cor0
----
-425
-297
-4277
-3198
-714
-1345

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= + + col0 * - - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL MIN( col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT COUNT( + 53 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT COUNT ( + 53 ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 AS cor0 WHERE NOT - col2 * - col0 IS NULL
----
15
87
97

query I rowsort
SELECT ( + 89 ) FROM tab2 WHERE NOT + + 95 <> + + 87 + + col2 + - 5
----

query I rowsort
SELECT ALL - 78 * + 22 FROM tab2
----
-1716
-1716
-1716

query I rowsort
SELECT + 11 + + + ( + col2 ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
34
51
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col1 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL col2 DIV + 14 col0 FROM tab0
----
0
3
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5043
SELECT ALL col2 / + 14 col0 FROM tab0
----
0
3
7

query III rowsort
SELECT * FROM tab1 WHERE NOT 41 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5046
SELECT - COUNT( * ) AS col2, + 56 FROM tab1 cor0
----
-3
56

skipif mysql # not compatible
query II rowsort label-5046
SELECT - COUNT ( * ) AS col2, + 56 FROM tab1 cor0
----
-3
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL - COUNT( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - COUNT ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5049
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - - 88 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT ALL - COUNT( * ) DIV + 61 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - COUNT ( * ) / + 61 AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT + 40 DIV col2 * + - col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT + 40 / col2 * + - col1 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT 39 * - + col2 AS col2, 86 - + col2 * - col2 FROM tab0 cor0
----
-1833
2295
-3861
9887
-390
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT + 39 + - MIN( DISTINCT + + col0 ) * + - COUNT( * ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT + 39 + - MIN ( DISTINCT + + col0 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL + COUNT( * ) + + 32 col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5055
SELECT ALL + COUNT ( * ) + + 32 col2 FROM tab1 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 col2 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE 26 * - col0 * + col0 = - 81
----

query I rowsort
SELECT ALL col2 + + col2 * + 10 * + col0 AS col0 FROM tab1 cor0
----
49056
50209
61948

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - 18 ) ) AND NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - 18 ) ) AND NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5060
SELECT ALL + MIN( ALL 18 ) * - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + MIN ( ALL 18 ) * - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT col2 + - + col1 + + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
112
133
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT - 40 + - + COUNT( * ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-5063
SELECT - 40 + - + COUNT ( * ) FROM tab0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT + CAST( NULL AS SIGNED ) * - 95 + - + col0 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT + CAST ( NULL AS INTEGER ) * - 95 + - + col0 * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 6 + - col0 AS col1 FROM tab2
----
-40
-58
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT DISTINCT - CAST( col0 AS SIGNED ) - + + col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - + + col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) / + col1 col0 FROM tab0 WHERE col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT 3 DIV + 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5068
SELECT 3 / + 96 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( 13 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN col0 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL + col1 AS col0 FROM tab0 WHERE ( 33 ) = ( - 10 - CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + col1 AS col0 FROM tab0 WHERE ( 33 ) = ( - 10 - CAST ( NULL AS INTEGER ) * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 * - 72 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 43 ) + col1 AS col1 FROM tab1
----
48
57
90

query I rowsort
SELECT DISTINCT 5 FROM tab1 WHERE + 70 IS NOT NULL
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT - col1 DIV + 72 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT - col1 / + 72 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT MAX( ( col0 ) ) FROM tab2 WHERE 47 * + 46 + - col2 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-5076
SELECT MAX ( ( col0 ) ) FROM tab2 WHERE 47 * + 46 + - col2 IS NOT NULL
----
75

query I rowsort
SELECT + 32 + col2 AS col2 FROM tab2
----
55
72
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * + 3 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL + SUM( ALL + 77 ) FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL + SUM ( ALL + 77 ) FROM tab0
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT DISTINCT - CAST( + MIN( DISTINCT 26 ) AS SIGNED ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT - CAST ( + MIN ( DISTINCT 26 ) AS INTEGER ) FROM tab0
----
-26

query I rowsort
SELECT - ( + col2 ) FROM tab0 WHERE ( NULL ) > + ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5083
SELECT COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) + 25 DIV 5 FROM tab2 WHERE 42 BETWEEN col2 DIV col2 AND ( NULL )
----
5

skipif mysql # not compatible
query I rowsort label-5083
SELECT COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) + 25 / 5 FROM tab2 WHERE 42 BETWEEN col2 / col2 AND ( NULL )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT MIN( col1 ) FROM tab1 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT MIN ( col1 ) FROM tab1 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE + col2 >= col2 + + 2
----

query I rowsort
SELECT DISTINCT + 38 + - 19 AS col0 FROM tab2
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 - col0 * col1 col0 FROM tab2
----
-2310
-4892
-4989

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT COUNT( ALL 29 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5088
SELECT COUNT ( ALL 29 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - col0 - + 80 * + col0 FROM tab2
----
-3726
-5184
-6075

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND 86
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 / + col0 ) IN ( + col2 * - 9 + col1 )
----

query I rowsort
SELECT DISTINCT col2 * 6 FROM tab1 AS cor0
----
354
408
576

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT - 15 + col1 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT DISTINCT col0 DIV 56 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT col0 / 56 AS col0 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
43

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 76 / 92 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT - COUNT( * ) + COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT - COUNT ( * ) + COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 + col2 col2 FROM tab2 AS cor0
----
121
138
156

query I rowsort
SELECT - 29 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT ALL + col0 * - col0 * + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + col0 * - col0 * + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + 66 ) * + col1 + - col2 FROM tab0
----
-1396
-165
-5393

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL + SUM( 17 ) + 73 AS col0 FROM tab0
----
124

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + SUM ( 17 ) + 73 AS col0 FROM tab0
----
124

query I rowsort
SELECT ALL col1 * col0 - col1 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT + col1 * - 47 FROM tab0 WHERE ( - col0 - ( 45 ) ) IS NOT NULL
----
-3807
-47
-987

query I rowsort
SELECT + col0 * - 63 * 75 + + 54 AS col2 FROM tab2
----
-217296
-302346
-354321

query I rowsort
SELECT DISTINCT + + ( + - 58 ) * ( + col1 ) FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN + 87 AND ( 36 * col1 - - ( - 10 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN + 87 AND ( 36 * col1 - - ( - 10 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 / col1 col1 FROM tab1 WHERE NOT - + col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT + MAX( ALL 92 ) AS col2 FROM tab2 WHERE NOT + col0 * + 67 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT + MAX ( ALL 92 ) AS col2 FROM tab2 WHERE NOT + col0 * + 67 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 BETWEEN ( - - 44 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT + CAST( + COUNT( DISTINCT + col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + CAST ( + COUNT ( DISTINCT + col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL - MIN( col1 ) FROM tab0 AS cor0 WHERE col1 + - + 31 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - MIN ( col1 ) FROM tab0 AS cor0 WHERE col1 + - + 31 BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT col1, col2 + - col2 - - 40 FROM tab2 AS cor0
----
51
40
67
40
77
40

query II rowsort
SELECT - col0, + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5118
SELECT - + COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT - + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5119
SELECT ALL 87 AS col0, - CAST( NULL AS SIGNED ) * - + col1 FROM tab1 AS cor0
----
87
NULL
87
NULL
87
NULL

skipif mysql # not compatible
query II rowsort label-5119
SELECT ALL 87 AS col0, - CAST ( NULL AS INTEGER ) * - + col1 FROM tab1 AS cor0
----
87
NULL
87
NULL
87
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= + 71
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 16 - ( - ( col1 ) ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL + col2 FROM tab0 WHERE NOT - CAST( + col0 AS SIGNED ) = col2 + col1 * - 29
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL + col2 FROM tab0 WHERE NOT - CAST ( + col0 AS INTEGER ) = col2 + col1 * - 29
----
10
47
99

query I rowsort
SELECT + 61 * - col1 AS col1 FROM tab1
----
-2867
-305
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT COUNT( * ) * + + COUNT( * ) * SUM( ALL + col1 ) col0 FROM tab0
----
927

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5124
SELECT COUNT ( * ) * + + COUNT ( * ) * SUM ( ALL + col1 ) col0 FROM tab0
----
927

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( * ) FROM tab0 WHERE NOT - 99 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - 99 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5126
SELECT col0 * - 46 AS col1, CAST( NULL AS SIGNED ) + - - 10 / - col1 col0 FROM tab1
----
-2346
NULL
-3910
NULL
-4186
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5126
SELECT col0 * - 46 AS col1, CAST ( NULL AS INTEGER ) + - - 10 / - col1 col0 FROM tab1
----
-2346
NULL
-3910
NULL
-4186
NULL

query I rowsort
SELECT - ( - 41 ) FROM tab0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT COUNT( + - col2 ) + ( + 10 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-5128
SELECT COUNT ( + - col2 ) + ( + 10 ) FROM tab1
----
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 51 * + 97 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) * - + 19 * - col0 = - 36
----
3

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) * - + 19 * - col0 = - 36
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5133
SELECT DISTINCT - col0 * - 1 / + - col0 * - CAST( NULL AS DECIMAL ) * - col0 + - col2 / - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - col0 * - 1 / + - col0 * - CAST ( NULL AS REAL ) * - col0 + - col2 / - col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + - 45 AS col1 FROM tab2 AS cor0
----
1
19
30

query I rowsort
SELECT col1 + - 7 AS col0 FROM tab0 AS cor0
----
-6
14
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + 95 col1 FROM tab1 cor0 WHERE NULL <> - col2 - + col1 + + 60 * col0 AND col1 * col0 <= - 1
----

query I rowsort
SELECT ALL 80 * 33 + - col2 AS col1 FROM tab1 cor0
----
2544
2572
2581

query I rowsort
SELECT DISTINCT + + 12 AS col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL 17 * + 73 AS col2 FROM tab1 AS cor0
----
1241
1241
1241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5140
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - + 53 / + col1 IS NULL AND NOT - 19 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - + 53 / + col1 IS NULL AND NOT - 19 IS NOT NULL
----

query I rowsort
SELECT 37 * col2 - 72 AS col2 FROM tab0 AS cor0 WHERE col1 IN ( col1, col0 / - col0 )
----
1667
298
3591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col2 FROM tab1 AS cor0 WHERE ( + col0 ) NOT IN ( + 16 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT DISTINCT - col1 + ( 75 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-14
-80

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT - col1 + ( 75 ) / col2 AS col1 FROM tab0 AS cor0
----
-1
-14
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 - 78 * col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT MIN( 4 ) / + 28 FROM tab2 AS cor0 WHERE ( + ( 74 ) ) IS NULL AND NOT ( + 59 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT MIN ( 4 ) / + 28 FROM tab2 AS cor0 WHERE ( + ( 74 ) ) IS NULL AND NOT ( + 59 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT DISTINCT + col1 DIV col0 - - col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT + col1 / col0 - - col1 FROM tab1
----
14
47
5

query I rowsort
SELECT + - 24 AS col1 FROM tab1 WHERE - + 56 > NULL
----

query II rowsort
SELECT - col1 AS col1, col2 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT 8 * + - col1 - - + ( 1 ) AS col0 FROM tab2
----
-407
-535
-615

query I rowsort
SELECT 37 * - col0 FROM tab1
----
-1887
-3145
-3367

query I rowsort
SELECT col2 * - col2 AS col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - col1 / - - col1 * + - col1 * - 93 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT + - col2 - col1 + - 81 * + col0 * + 56 + - CAST( NULL AS SIGNED ) * CAST( + col1 + 71 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT + - col2 - col1 + - 81 * + col0 * + 56 + - CAST ( NULL AS INTEGER ) * CAST ( + col1 + 71 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - col1 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT - + CAST( NULL AS SIGNED ) * + + col2 * col1 + + 33 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT - + CAST ( NULL AS INTEGER ) * + + col2 * col1 + + 33 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5155
SELECT DISTINCT + col0 DIV 88 * + 83 DIV - - col1 + 58 + - 40 + + + col1 AS col1 FROM tab1 cor0
----
23
32
66

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT + col0 / 88 * + 83 / - - col1 + 58 + - 40 + + + col1 AS col1 FROM tab1 cor0
----
23
32
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT ALL - + COUNT( * ) * - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - + COUNT ( * ) * - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 46 * - col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < - col2 / + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT - + MAX( - + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - + MAX ( - + col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ( col1 ) + - col2 + + - col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-18
-27
-66

query I rowsort
SELECT ALL - - 88 AS col0 FROM tab2 cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col0 FROM tab1
----
61

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 26 + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 69, col1 AS col2 FROM tab0
----
-69
1
-69
21
-69
81

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT + col0 = col0 / + + 46 * + 40 + - col1
----
15
87
97

query I rowsort
SELECT - 19 * - - col2 FROM tab0
----
-1881
-190
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL - MIN( DISTINCT + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - MIN ( DISTINCT + col1 ) FROM tab0
----
-1

query I rowsort
SELECT + ( - 97 ) AS col1 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - + col0 + + + col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / 79 IS NULL
----

query I rowsort
SELECT 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL SUM( - + 82 ) FROM tab0, tab2 AS cor0
----
-738

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL SUM ( - + 82 ) FROM tab0, tab2 AS cor0
----
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ( + - COUNT( * ) ) + 36 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5173
SELECT ( + - COUNT ( * ) ) + 36 FROM tab2
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE ( + col2 ) NOT IN ( 75 + col1 + + + col0, - col2 * 13 + - - 96 + + ( + col1 ) )
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 * + - 10 + - col2 FROM tab2 AS cor0
----
207
360
522

query I rowsort
SELECT - 5 * 20 + - - 58 AS col0 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + col0 * - + ( - + col1 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT + - ( + COUNT( * ) ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + - ( + COUNT ( * ) ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 96 - + - col2 FROM tab0
----
106
143
195

query I rowsort
SELECT - 50 * - - 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - - col2 * ( col0 ) AS col2 FROM tab1 AS cor0
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL - + MAX( DISTINCT 79 ) AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - + MAX ( DISTINCT 79 ) AS col0 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT 0 * col0 * 53 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 24 + + 31 / + 14 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT ALL + 90 DIV + SUM( + + col2 ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5185
SELECT ALL + 90 / + SUM ( + + col2 ) col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT 80 + + ( - AVG ( DISTINCT + - col0 ) ) AS col2, 48 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
48

query I rowsort
SELECT ALL 12 AS col2 FROM tab2 AS cor0 WHERE 66 = - 74
----

query I rowsort
SELECT + + 17 AS col1 FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT ALL col0 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

query II rowsort
SELECT + col1 AS col2, - 29 - - col0 FROM tab0 AS cor0
----
1
68
21
58
81
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT + + 15 AS col1 FROM tab2 AS cor0 WHERE NOT - 17 BETWEEN ( + col2 * - + CAST( + ( + CAST( + - 3 AS SIGNED ) ) AS SIGNED ) ) AND col0 * - - 23
----
15

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + + 15 AS col1 FROM tab2 AS cor0 WHERE NOT - 17 BETWEEN ( + col2 * - + CAST ( + ( + CAST ( + - 3 AS INTEGER ) ) AS INTEGER ) ) AND col0 * - - 23
----
15

query I rowsort
SELECT + col1 + - - 31 FROM tab0
----
112
32
52

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 = ( + col1 + - - col0 + ( - col1 ) )
----

query I rowsort
SELECT - col0 + + + col1 + + col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - 85 + + - 23 + + 18 AS col2 FROM tab2 cor0
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT ALL + ( + 33 ) + - col2 DIV col1 * - col0 FROM tab1 AS cor0
----
124
339
968

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + ( + 33 ) + - col2 / col1 * - col0 FROM tab1 AS cor0
----
124
339
968

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN - 84 AND - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 2 - 30 FROM tab1
----
-28
-28
-28

query III rowsort
SELECT * FROM tab2 WHERE - ( - 94 ) IS NULL
----

query I rowsort
SELECT + 68 - + 44 FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT ALL + 17 + - COUNT( * ), 3 AS col2 FROM tab0 AS cor0 WHERE + 44 <> NULL
----
17
3

skipif mysql # not compatible
query II rowsort label-5201
SELECT ALL + 17 + - COUNT ( * ), 3 AS col2 FROM tab0 AS cor0 WHERE + 44 <> NULL
----
17
3

query I rowsort
SELECT ALL - col1 * col2 - + - col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + - COUNT( * ) + - + COUNT( 22 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + - COUNT ( * ) + - + COUNT ( 22 ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( NOT - 35 * - CAST( NULL AS SIGNED ) NOT BETWEEN - col2 * 48 + col2 AND + - col2 * + col2 * ( + col1 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5204
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NOT - 35 * - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 * 48 + col2 AND + - col2 * + col2 * ( + col1 ) )
----
NULL

query I rowsort
SELECT ALL col0 + col2 - 20 AS col0 FROM tab0 AS cor0
----
176
42
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5206
SELECT ALL + 52 + 84 - - + COUNT( * ) AS col0, SUM( ALL + col1 ) DIV COUNT( * ) FROM tab1 AS cor0
----
139
22

skipif mysql # not compatible
query II rowsort label-5206
SELECT ALL + 52 + 84 - - + COUNT ( * ) AS col0, SUM ( ALL + col1 ) / COUNT ( * ) FROM tab1 AS cor0
----
139
22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - 27, + col0 * + - col2 )
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE + col2 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 3 + + ( - - 41 ) AS col2 FROM tab2 AS cor0
----
44

query I rowsort
SELECT ALL + col1 + + + ( + + col0 ) - + 60 * - col2 + + + col2 AS col1 FROM tab1
----
3689
4286
5921

query I rowsort
SELECT ALL + col2 * + col0 + + col1 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT SUM( + + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5212
SELECT SUM ( + + col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT ALL - col0 * - - col2 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + - 39 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT DISTINCT - ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT - ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - - 67 AS col2 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT 21 NOT IN ( col1, col1 + + col1 )
----
87

query I rowsort
SELECT DISTINCT + - col2 + - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 32 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - MIN( + - 18 ) * + 80 FROM tab1 AS cor0
----
1440

skipif mysql # not compatible
query I rowsort label-5221
SELECT - MIN ( + - 18 ) * + 80 FROM tab1 AS cor0
----
1440

query I rowsort
SELECT DISTINCT ( 80 ) * + + col0 FROM tab2 AS cor0
----
3680
5120
6000

query I rowsort
SELECT ALL - 5 FROM tab2 WHERE NOT ( NOT col0 * - col2 + + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL - ( + - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5225
SELECT DISTINCT - 35 AS col2, + SUM( col2 ) FROM tab2 AS cor0
----
-35
121

skipif mysql # not compatible
query II rowsort label-5225
SELECT DISTINCT - 35 AS col2, + SUM ( col2 ) FROM tab2 AS cor0
----
-35
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - MAX( ALL + col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - MAX ( ALL + col1 ) FROM tab2 cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 5 AS col0, col2 + - 0 col2 FROM tab2 AS cor0
----
-5
23
-5
40
-5
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT SUM( col2 ) * + 82 FROM tab1 AS cor0
----
18286

skipif mysql # not compatible
query I rowsort label-5228
SELECT SUM ( col2 ) * + 82 FROM tab1 AS cor0
----
18286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col0, col0 - col1 col2 FROM tab2
----
1058
-5
2560
-13
4350
8

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + - col2 * 57
----

query I rowsort
SELECT 79 * + col1 * col0 FROM tab2
----
185334
389312
396975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT + 45 DIV COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5232
SELECT + 45 / COUNT ( * ) AS col0 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL ( + MIN( - col0 ) ) * COUNT( * ) AS col2 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL ( + MIN ( - col0 ) ) * COUNT ( * ) AS col2 FROM tab2
----
-225

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT ALL CAST( NULL AS SIGNED ) + 61 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL CAST ( NULL AS INTEGER ) + 61 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 + + col0 AS col1, + col2 AS col0 FROM tab2
----
17
58
23
23
24
40

query II rowsort
SELECT ALL - col0, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( + col1 ) + + + col1 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + 71 > + ( + 73 ) + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + 56 AS col1 FROM tab1 cor0
----
42
51
9

query I rowsort
SELECT DISTINCT - + 96 AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5242
SELECT ALL + col0 AS col1, CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5242
SELECT ALL + col0 AS col1, CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT DISTINCT - - col1 + + + 59 FROM tab0 AS cor0
----
140
60
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT + + COUNT( * ) * - - 48 + + - MIN( - - col1 ) AS col0 FROM tab1 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-5244
SELECT + + COUNT ( * ) * - - 48 + + - MIN ( - - col1 ) AS col0 FROM tab1 AS cor0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT - col0 + - ( col0 ) * ( CAST( + 83 AS SIGNED ) ) AS col1 FROM tab1
----
-4284
-7140
-7644

skipif mysql # not compatible
query I rowsort label-5245
SELECT - col0 + - ( col0 ) * ( CAST ( + 83 AS INTEGER ) ) AS col1 FROM tab1
----
-4284
-7140
-7644

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5247
SELECT DISTINCT COUNT( * ) - + 73 AS col1, + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-5247
SELECT DISTINCT COUNT ( * ) - + 73 AS col1, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
-70
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - 48 ) > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 - - + col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - 70 * + 68 col1 FROM tab2 cor0
----
4685
4696
4714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT - 35 + CAST( - col0 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-131
-133
-143

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT - 35 + CAST ( - col0 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-131
-133
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5252
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT - + col2 * ( + - col2 ) - - ( - col2 ) FROM tab2 AS cor0
----
1560
3306
506

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 11 ) AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 25 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NOT - 55 IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT col0 * + + col0 * - - col2 * - + 24 * - 88 FROM tab1
----
1189284096
527357952
900292800

query I rowsort
SELECT + + 30 * + 7 + col1 + + ( - 28 ) FROM tab2 AS cor0
----
233
249
259

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT - + col2 * - col2 - - col1 AS col1 FROM tab0 AS cor0
----
121
2290
9802

query I rowsort
SELECT - ( - 30 ) FROM tab0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT - col2 * - + col2 AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL - ( - col2 ) * - 5 AS col1 FROM tab2
----
-115
-200
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + ( + SUM( - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5265
SELECT + ( + SUM ( - col1 ) ) FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 48 ) col2, 41 FROM tab1 AS cor0
----
48
41
48
41
48
41

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 + - + 39 / - col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 77 * - - col0 + + 94 + + col1, - 97 AS col0 FROM tab1 AS cor0
----
-3819
-97
-6446
-97
-6866
-97

query I rowsort
SELECT ALL + col2 - + col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + 22 + 15 * + col2 AS col2 FROM tab2 cor0
----
367
622
892

query I rowsort
SELECT DISTINCT - + col2 + 62 * col0 FROM tab2 AS cor0
----
2829
3928
4592

query I rowsort
SELECT DISTINCT + - col2 + - col0 - col1 + col0 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 88, + col1, - col0 * + - 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + 30 * COUNT( * ) + 65 + + - SUM( + col2 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-5274
SELECT + 30 * COUNT ( * ) + 65 + + - SUM ( + col2 ) FROM tab2
----
34

query I rowsort
SELECT col2 + + + col1 - - col0 AS col2 FROM tab0
----
118
143
197

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 / 33 / ( 50 ) IS NOT NULL
----

query I rowsort
SELECT - + 75 AS col0 FROM tab1 WHERE + 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 + + col2 col1 FROM tab1
----
52
61
89

query I rowsort
SELECT col1 * + - 41 * + 20 + - 87 + + + col2 * + col2 FROM tab2
----
-41378
-51663
-61627

query I rowsort
SELECT - col1 + + + ( + + ( + col1 ) ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + + col0 + - col2 + + col1 FROM tab0 WHERE - 53 IS NOT NULL
----
-1
49
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5282
SELECT SUM( - col1 ) * CAST( NULL AS SIGNED ) + + + 70 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT SUM ( - col1 ) * CAST ( NULL AS INTEGER ) + + + 70 FROM tab2
----
NULL

query I rowsort
SELECT 79 + + col1 FROM tab2
----
130
146
156

query I rowsort
SELECT - 23 + + + 72 AS col0 FROM tab2
----
49
49
49

query I rowsort
SELECT ALL + + 75 + + + col2 FROM tab1 cor0
----
134
143
171

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 < - col0 * ( + + col2 ) * + 69 + - col0 + + + col1 + - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT ( - CAST( - 43 AS SIGNED ) ) NOT BETWEEN + col2 AND - col1
----

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT ( - CAST ( - 43 AS INTEGER ) ) NOT BETWEEN + col2 AND - col1
----

query I rowsort
SELECT + - 66 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab1 WHERE - col1 NOT IN ( - - CAST( - 72 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab1 WHERE - col1 NOT IN ( - - CAST ( - 72 AS INTEGER ) )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + - 52 col2 FROM tab2
----
103
119
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL - 15 + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - 15 + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5292
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5292
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 73 + + + col2 FROM tab1
----
132
141
169

query I rowsort
SELECT DISTINCT + - 28 * - + 75 FROM tab0 cor0
----
2100

query II rowsort
SELECT DISTINCT col2, + 27 FROM tab2 AS cor0
----
23
27
40
27
58
27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( 42 / - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 81, col2 FROM tab2 AS cor0
----
81
23
81
40
81
58

query II rowsort
SELECT DISTINCT + 86, 98 AS col1 FROM tab1 AS cor0
----
86
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5299
SELECT 80 * + SUM( - - col1 ), CAST( + 78 AS SIGNED ) * 35 AS col2 FROM tab2
----
15600
2730

skipif mysql # not compatible
query II rowsort label-5299
SELECT 80 * + SUM ( - - col1 ), CAST ( + 78 AS INTEGER ) * 35 AS col2 FROM tab2
----
15600
2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT CAST( NULL AS SIGNED ) / col0 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT CAST ( NULL AS INTEGER ) / col0 * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 54 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * col0 IS NOT NULL
----

query I rowsort
SELECT + 64 * + - col1 + - col2 FROM tab0 AS cor0
----
-1354
-163
-5231

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN + col0 AND NULL
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5306
SELECT DISTINCT + 41 AS col0, + CAST( col1 AS SIGNED ) FROM tab0
----
41
1
41
21
41
81

skipif mysql # not compatible
query II rowsort label-5306
SELECT DISTINCT + 41 AS col0, + CAST ( col1 AS INTEGER ) FROM tab0
----
41
1
41
21
41
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT ALL + ( 74 ) * 15 - + CAST( - 9 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11ba5579528d1ca2d7c7630ca4ceba

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + ( 74 ) * 15 - + CAST ( - 9 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11ba5579528d1ca2d7c7630ca4ceba

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - SUM( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - SUM ( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col2 BETWEEN + 71 * - 15 AND + col2 / + col2 + + col1 + col1
----

query I rowsort
SELECT ALL col2 * + + ( + col1 ) + + - col0 AS col2 FROM tab1 cor0
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT - COUNT( col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5311
SELECT - COUNT ( col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT MIN( DISTINCT + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5312
SELECT MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT ALL + 5 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + 5 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT DISTINCT - + ( COUNT( 63 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - + ( COUNT ( 63 ) ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL col0 * - col1 + col0 * + col0, 20 AS col1 FROM tab2
----
-230
20
-832
20
600
20

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5318
SELECT ALL * FROM tab1 WHERE NOT + col0 <= - 40 + 83 * - - CAST( col2 AS SIGNED ) * col1 + col1
----

skipif mysql # not compatible
query III rowsort label-5318
SELECT ALL * FROM tab1 WHERE NOT + col0 <= - 40 + 83 * - - CAST ( col2 AS INTEGER ) * col1 + col1
----

query I rowsort
SELECT - 33 * + col0 AS col2 FROM tab2
----
-1518
-2112
-2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 52 / MAX( DISTINCT 68 ) * + 31 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 52 / MAX ( DISTINCT 68 ) * + 31 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab0
----
-59

query I rowsort
SELECT ALL - ( + col0 ) * ( col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT - + col0 + + - ( + col0 ) AS col1 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5324
SELECT - 65 + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT - 65 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + 69 + + + col0 AS col0, 46 FROM tab2 AS cor0
----
115
46
133
46
144
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL col1 + col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL col1 + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 7 + + ( + 69 ) + 44 - col0 * + ( col2 ) FROM tab0
----
-599
-764
-9497

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - MIN( + col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5328
SELECT - MIN ( + col0 ) col0 FROM tab0
----
-15

query II rowsort
SELECT col1, + col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT + 69 * + col2 + col2 FROM tab2 AS cor0
----
1610
2800
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - COUNT( + - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5331
SELECT - COUNT ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - col2 * col1 * + + 51
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5333
SELECT DISTINCT + 39 DIV - 46 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT + 39 / - 46 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 62 * - + col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + + 93 FROM tab0 AS cor0
----
1395
8091
9021

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 46 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + 16 ) * + - ( + col2 ) / 87 + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2, col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col1 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN + 49 + + col0 - + 53 AND + - col1 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT COUNT( * ) AS col1, - MAX( - col2 ) AS col0 FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-5341
SELECT COUNT ( * ) AS col1, - MAX ( - col2 ) AS col0 FROM tab2
----
3
23

query II rowsort
SELECT DISTINCT - col2 AS col1, ( - col1 ) FROM tab2
----
-23
-51
-40
-77
-58
-67

query II rowsort
SELECT col2, 37 FROM tab2
----
23
37
40
37
58
37

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 / - 16 <> col1
----

query II rowsort
SELECT ALL - col1 AS col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col2 ) <> + 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 46 FROM tab2 cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - col2 * + + col1 AS col0 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT ( + col1 ), 78 * + col2 AS col0 FROM tab0 AS cor0
----
1
7722
21
780
81
3666

query I rowsort
SELECT DISTINCT + col2 * + + 97 FROM tab1 cor0 WHERE 33 / + 5 IS NOT NULL
----
5723
6596
9312

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 + - ( + - 76 ) - - - col2 AND 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT - + col0 DIV + - col2 - + - col1 FROM tab1 AS cor0
----
14
48
6

skipif mysql # not compatible
query I rowsort label-5352
SELECT - + col0 / + - col2 - + - col1 FROM tab1 AS cor0
----
14
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) <> NULL
----
0

query I rowsort
SELECT DISTINCT 77 * col2 FROM tab0 AS cor0
----
3619
7623
770

query I rowsort
SELECT ALL + col0 + - - col1 * - - 80 + - col1 AS col0 FROM tab2 AS cor0
----
4075
5368
6147

query I rowsort
SELECT ALL + col0 + - 68 FROM tab1
----
-17
17
23

query I rowsort
SELECT + 50 + 33 AS col2 FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + 82 + + - COUNT( * ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-5358
SELECT + 82 + + - COUNT ( * ) FROM tab0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 + + col1 - + col1 col2 FROM tab2
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL - 68 * + COUNT( * ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - 68 * + COUNT ( * ) FROM tab1
----
-204

query III rowsort
SELECT * FROM tab0 WHERE + 32 / - col2 < NULL
----

query I rowsort
SELECT ALL - 35 * - col0 FROM tab0
----
3045
3395
525

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT - SUM( DISTINCT - - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5363
SELECT - SUM ( DISTINCT - - col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + 50 * + COUNT( * ) AS col1 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-5364
SELECT + 50 * + COUNT ( * ) AS col1 FROM tab0
----
150

query I rowsort
SELECT ALL col0 * + 54 FROM tab0
----
4698
5238
810

query I rowsort
SELECT DISTINCT ( - 37 ) AS col1 FROM tab1 cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT MAX( - + 6 ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT MAX ( - + 6 ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL COUNT( * ) * + 56 AS col0 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL COUNT ( * ) * + 56 AS col0 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT SUM( ALL - - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT SUM ( ALL - - col1 ) AS col2 FROM tab0
----
103

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE 27 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + COUNT( * ) * SUM( - 57 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT + COUNT ( * ) * SUM ( - 57 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 97 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - - col2 * + - col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + - col1 * - col2 - - 51 + + 2 + 44 FROM tab1 AS cor0
----
1441
3293
392

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 22 BETWEEN + col1 AND NULL
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT COUNT( * ) * + 13 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-5376
SELECT COUNT ( * ) * + 13 FROM tab1
----
39

query I rowsort
SELECT DISTINCT col2 * 35 FROM tab1
----
2065
2380
3360

query I rowsort
SELECT ALL 8 * + - 2 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - 41 * - col1 FROM tab1
----
1927
205
574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT + COUNT( - 84 ) AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + 95 + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5380
SELECT + COUNT ( - 84 ) AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + 95 + + col2 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 >= NULL
----

query I rowsort
SELECT ALL col2 + 46 FROM tab2 cor0
----
104
69
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5383
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - + col2 NOT BETWEEN col0 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5383
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - + col2 NOT BETWEEN col0 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 54 * + col1 FROM tab2
----
2754
3618
4158

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 + + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
46
1219
64
3144
75
3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT + + col1 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + + col1 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT DISTINCT ( + + ( col2 ) ) * - col2 + - - col2 + col0 + 19 DIV + col1 * 21 FROM tab2 AS cor0
----
-1496
-3231
-460

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT ( + + ( col2 ) ) * - col2 + - - col2 + col0 + 19 / + col1 * 21 FROM tab2 AS cor0
----
-1496
-3231
-460

query II rowsort
SELECT + col0 AS col0, + 55 AS col2 FROM tab1 AS cor0
----
51
55
85
55
91
55

query I rowsort
SELECT ALL - col0 - + col0 AS col1 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT + - col2 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5391
SELECT DISTINCT 11 + + col0 AS col1, 32 DIV + col2 FROM tab2
----
57
1
75
0
86
0

skipif mysql # not compatible
query II rowsort label-5391
SELECT DISTINCT 11 + + col0 AS col1, 32 / + col2 FROM tab2
----
57
1
75
0
86
0

query I rowsort
SELECT DISTINCT col2 - - - 61 + + + col1 FROM tab0
----
-30
39
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col2 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT DISTINCT - 8 - - MAX( DISTINCT col1 ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT - 8 - - MAX ( DISTINCT col1 ) AS col2 FROM tab0
----
73

query I rowsort
SELECT DISTINCT 14 + col2 + col0 FROM tab0
----
111
210
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 - + 98 + 22 col2 FROM tab2
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5397
SELECT * FROM tab1 WHERE - + CAST( + 58 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5397
SELECT * FROM tab1 WHERE - + CAST ( + 58 AS INTEGER ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT 17 + + 90, + col2 * col0 AS col0 FROM tab0
----
107
705
107
870
107
9603

query I rowsort
SELECT 64 + - - col2 FROM tab1 AS cor0
----
123
132
160

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 <> + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT NULL = 18 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT NULL = 18 / + col1
----
0

query II rowsort
SELECT DISTINCT + - 61, + 49 AS col2 FROM tab1 AS cor0
----
-61
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab1 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT + col1 * CAST( NULL AS SIGNED ) * col1 - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT + col1 * CAST ( NULL AS INTEGER ) * col1 - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + + MAX( ( - col0 ) ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5406
SELECT + + MAX ( ( - col0 ) ) FROM tab0 cor0
----
-15

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 54 IS NOT NULL
----

query II rowsort
SELECT - 72, col1 AS col2 FROM tab0 AS cor0
----
-72
1
-72
21
-72
81

query I rowsort
SELECT DISTINCT - ( 53 ) FROM tab2 AS cor0 WHERE - col1 / + col2 IN ( + 26, + 52 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5410
SELECT + ( - CAST( NULL AS DECIMAL ) ) * - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT + ( - CAST ( NULL AS REAL ) ) * - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5411
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - + 29 * col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( ( col1 ) ) * + 1 * + col1 - - col1 AS col2 FROM tab0
----
2
462
6642

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT ALL - 58 * - col1 - col1 + + col2 * col2 DIV - - 68 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
2914
3868
4412

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - 58 * - col1 - col1 + + col2 * col2 / - - 68 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
2914
3868
4412

query I rowsort
SELECT DISTINCT + 6 * ( + 26 ) FROM tab1
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col2 FROM tab0 WHERE + col2 BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + + 44 + + - col2 * + - col0 FROM tab0 AS cor0
----
-2859
-54
9559

query I rowsort
SELECT + - col0 * - - col0 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
-249645
-426190
-563017

query II rowsort
SELECT - ( - 72 ), + col2 AS col0 FROM tab1 AS cor0
----
72
59
72
68
72
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5421
SELECT * FROM tab1 AS cor0 WHERE + 50 * CAST( - 6 AS SIGNED ) * + 59 + col0 + + + 68 + + + col0 * ( 0 ) > + 82
----

skipif mysql # not compatible
query III rowsort label-5421
SELECT * FROM tab1 AS cor0 WHERE + 50 * CAST ( - 6 AS INTEGER ) * + 59 + col0 + + + 68 + + + col0 * ( 0 ) > + 82
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 96 * - 84 BETWEEN + col0 AND + 55
----

query II rowsort
SELECT DISTINCT + col2 + + col1, - col2 AS col0 FROM tab0 AS cor0
----
100
-99
128
-47
31
-10

query III rowsort
SELECT * FROM tab1 WHERE - col2 + - - 46 <> 59 + + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT + 56 * - + COUNT( * ) * SUM( + 91 ) * - COUNT( * ) * - MIN( ALL + col1 ) col2 FROM tab0
----
-137592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5425
SELECT + 56 * - + COUNT ( * ) * SUM ( + 91 ) * - COUNT ( * ) * - MIN ( ALL + col1 ) col2 FROM tab0
----
-137592

query I rowsort
SELECT ALL - 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query II rowsort
SELECT - 36 * col2 - - - 36 AS col2, col2 - + 95 - col2 * 83 FROM tab2
----
-1476
-3375
-2124
-4851
-864
-1981

query I rowsort
SELECT + - col1 * col0 + 87 + + 64 + - 56 FROM tab2 cor0
----
-2251
-4833
-4930

query I rowsort
SELECT DISTINCT + - 21 * - 66 AS col2 FROM tab2 AS cor0
----
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT DISTINCT - 28 + + 16 + + ( + + col0 ) DIV + col2 AS col1 FROM tab1 AS cor0
----
-11
-12

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - 28 + + 16 + + ( + + col0 ) / + col2 AS col1 FROM tab1 AS cor0
----
-11
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 + + - col2 col1 FROM tab1 AS cor0
----
-137
-146
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT DISTINCT + 64 DIV + 60 - + + 63 + - col0 AS col2 FROM tab0 AS cor0
----
-149
-159
-77

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT + 64 / + 60 - + + 63 + - col0 AS col2 FROM tab0 AS cor0
----
-149
-159
-77

query I rowsort
SELECT + col0 + + - col0 * - + 86 FROM tab1 AS cor0
----
4437
7395
7917

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( + ( ( - - col2 ) ) ) AND NULL
----

query I rowsort
SELECT ALL - 97 + col0 + + 8 AS col0 FROM tab2
----
-14
-25
-43

query II rowsort
SELECT col2, + 75 * col0 FROM tab2
----
23
3450
40
4800
58
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col1 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab1 WHERE + 64 * + 31 - + ( + + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col0 FROM tab1
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT - + MIN( - + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - + MIN ( - + col0 ) FROM tab0 AS cor0
----
97

query II rowsort
SELECT 3 AS col0, 79 * col2 FROM tab2 AS cor0
----
3
1817
3
3160
3
4582

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5442
SELECT * FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5442
SELECT * FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT - COUNT( * ) * - 17 AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5443
SELECT - COUNT ( * ) * - 17 AS col1 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5444
SELECT + col2 DIV - - col2 col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5444
SELECT + col2 / - - col2 col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL MIN( + + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL MIN ( + + col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col1 FROM tab2 cor0
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 * col0 * - + 10 col2 FROM tab0 AS cor0
----
-16530
-18430
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT - MAX( ALL - 56 ) * + COUNT( * ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT - MAX ( ALL - 56 ) * + COUNT ( * ) FROM tab1
----
168

query II rowsort
SELECT col2 AS col2, 97 * - col2 FROM tab0
----
10
-970
47
-4559
99
-9603

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + 49 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, ( col2 ) FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( - - col0 ) + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 4 AS col1 FROM tab1 WHERE NOT + col2 - + - 80 * - 72 IS NULL OR NOT + col0 IS NULL
----
4
4
4

query I rowsort
SELECT ALL col0 + + 46 FROM tab0 cor0
----
133
143
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col1 FROM tab1 cor0
----
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 51 FROM tab0 AS cor0
----
-36
-46
36

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 / + 64 - + col1 IS NULL
----
59
68
96

query II rowsort
SELECT DISTINCT - col0 * col0, col2 FROM tab1 AS cor0
----
-2601
96
-7225
59
-8281
68

query I rowsort
SELECT - 20 - 1 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL - 31 * 47 AS col2 FROM tab2 AS cor0
----
-1457
-1457
-1457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 - - col0 col2 FROM tab2 cor0
----
106
77
95

query I rowsort
SELECT DISTINCT + 89 - - ( - 98 ) * - 1 + - 76 + + col0 - + col0 FROM tab0
----
111

query I rowsort
SELECT col0 - - - 95 FROM tab1
----
-10
-4
-44

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT - + col0 + + 71 <> ( - + 68 / - 13 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5467
SELECT + - ( CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NOT + 7 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT + - ( CAST ( NULL AS REAL ) ) FROM tab1 WHERE NOT + 7 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND + 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT DISTINCT - - 99 / AVG ( 29 ) - + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - - 99 / AVG ( 29 ) - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL - COUNT( col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - COUNT ( col2 ) FROM tab2
----
-3

query I rowsort
SELECT ( 5 ) FROM tab1 WHERE NOT - col2 IS NULL
----
5
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT - ( - COUNT( * ) ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-5472
SELECT - ( - COUNT ( * ) ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query I rowsort
SELECT + ( + - 60 ) FROM tab0
----
-60
-60
-60

query II rowsort
SELECT + 89, + col0 AS col0 FROM tab2
----
89
46
89
64
89
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5475
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5475
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5476
SELECT col0 AS col2, 3 * + CAST( col1 AS SIGNED ) * + 39 - - CAST( - col2 AS SIGNED ) + - - col1 * - col2 + - 66 FROM tab1 AS cor0
----
51
132
85
165
91
2169

skipif mysql # not compatible
query II rowsort label-5476
SELECT col0 AS col2, 3 * + CAST ( col1 AS INTEGER ) * + 39 - - CAST ( - col2 AS INTEGER ) + - - col1 * - col2 + - 66 FROM tab1 AS cor0
----
51
132
85
165
91
2169

query II rowsort
SELECT ALL + col0 AS col1, + col1 * - col0 FROM tab0 AS cor0
----
15
-1215
87
-1827
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + SUM( ALL - col2 ) col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5478
SELECT + SUM ( ALL - col2 ) col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT - SUM( col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT - SUM ( col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-5480
SELECT + 23, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-5480
SELECT + 23, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT + COUNT( col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5481
SELECT + COUNT ( col2 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 44 + - - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
103
112
140

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT COUNT( * ) AS col0, 38 - - 30 FROM tab0 AS cor0
----
3
68

skipif mysql # not compatible
query II rowsort label-5483
SELECT COUNT ( * ) AS col0, 38 - - 30 FROM tab0 AS cor0
----
3
68

query I rowsort
SELECT DISTINCT - 7 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT DISTINCT SUM( + 51 ) AS col2 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT SUM ( + 51 ) AS col2 FROM tab1
----
153

query I rowsort
SELECT + col2 + - ( - + col1 ) FROM tab0
----
100
128
31

query I rowsort
SELECT + + 97 * - col0 FROM tab0 AS cor0
----
-1455
-8439
-9409

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - 87 - + ( + + 71 ) + + col1 FROM tab0 WHERE ( - + col1 * + col0 ) BETWEEN col0 * + - ( - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 - 58 AS col0 FROM tab2
----
-12
17
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT + ( + COUNT( ALL - - 41 ) ) * + 68 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT + ( + COUNT ( ALL - - 41 ) ) * + 68 FROM tab2 AS cor0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL - CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + + 73 + + col2 + + - col1 - - col1 AS col0 FROM tab2 AS cor0
----
3381
4712
5533

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 22 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 55 NOT BETWEEN NULL AND 27 * + col0 * 64 + - col1 + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - MIN( ALL + 62 ) + + 48 FROM tab0 WHERE NOT + col1 / col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT - MIN ( ALL + 62 ) + + 48 FROM tab0 WHERE NOT + col1 / col0 IS NOT NULL
----
NULL

query I rowsort
SELECT 30 * + - col1 * col0 AS col0 FROM tab1
----
-12750
-128310
-21420

query III rowsort
SELECT * FROM tab1 WHERE NOT - 37 = - - 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT col2 DIV + col1 col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5499
SELECT col2 / + col1 col1 FROM tab0
----
0
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 94 * col2 col0 FROM tab0
----
-19740
-357858
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT 16 * + ( + COUNT( * ) ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT 16 * + ( + COUNT ( * ) ) AS col0 FROM tab2
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 3 col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3
3
3

query II rowsort
SELECT DISTINCT col2 AS col0, 97 * - - 95 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
9215
47
9215
99
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - - col1 * col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - - col1 * col0 < NULL
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT 39 - 18 - + col1 + - - 6 * + + 59 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT + col2 DIV col2 DIV ( + - col2 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT + col2 / col2 / ( + - col2 ) FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT + - 99 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5507
SELECT + - 99 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 73 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT + + MIN( - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT + + MIN ( - + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col2 * - 79 + - 2 FROM tab0 AS cor0
----
-3715
-7823
-792

query I rowsort
SELECT ALL + - ( - ( - col0 ) ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT - + 49 AS col1 FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL col0 + - 72 FROM tab2 AS cor0
----
-26
-8
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 col2 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT SUM( col1 ) * + - MAX( - 26 ) AS col1 FROM tab1 AS cor0
----
1716

skipif mysql # not compatible
query I rowsort label-5515
SELECT SUM ( col1 ) * + - MAX ( - 26 ) AS col1 FROM tab1 AS cor0
----
1716

query I rowsort
SELECT DISTINCT 35 + - + col2 - col2 * + ( col0 ) FROM tab1
----
-4957
-5039
-6221

onlyif mysql # DIV for integer division: 
query II rowsort label-5517
SELECT ALL col2, col2 DIV + - 49 + + col0 * + - 95 AS col1 FROM tab2
----
23
-4370
40
-6080
58
-7126

skipif mysql # not compatible
query II rowsort label-5517
SELECT ALL col2, col2 / + - 49 + + col0 * + - 95 AS col1 FROM tab2
----
23
-4370
40
-6080
58
-7126

query I rowsort
SELECT ALL - col2 * 68 FROM tab1
----
-4012
-4624
-6528

query I rowsort
SELECT DISTINCT 34 * - col0 FROM tab1
----
-1734
-2890
-3094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + - + col0 col0 FROM tab0 AS cor0
----
-16
-26
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 * + + ( + col1 ) + col2 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE 24 > + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT MAX( - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT MAX ( - - col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT 94 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
94
94
94

query I rowsort
SELECT - - col2 * - + col0 + - - col2 * + + col2 FROM tab2 AS cor0
----
-529
-960
-986

query II rowsort
SELECT ( - col2 ) AS col2, 28 * + ( - col2 ) FROM tab2 cor0
----
-23
-644
-40
-1120
-58
-1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT DISTINCT + CAST( ( + 60 ) AS SIGNED ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT + CAST ( ( + 60 ) AS INTEGER ) FROM tab1 AS cor0
----
60

query I rowsort
SELECT - col2 * + 39 FROM tab0 AS cor0
----
-1833
-3861
-390

query I rowsort
SELECT + col2 * - ( - + 99 ) FROM tab2 WHERE NOT + col1 + - col2 * + + 32 <= - 13 * + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT ALL + - COUNT( * ) AS col0, 55 FROM tab2 AS cor0
----
-3
55

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL + - COUNT ( * ) AS col0, 55 FROM tab2 AS cor0
----
-3
55

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT MAX( - 45 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5533
SELECT MAX ( - 45 ) FROM tab0 AS cor0
----
-45

query II rowsort
SELECT - col0 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT - col1 * + + 88 + - col1 * - - col2 FROM tab2 AS cor0
----
-5661
-9782
-9856

query I rowsort
SELECT - col0 + - 87 AS col0 FROM tab1
----
-138
-172
-178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 16 ) col2 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + 55 + col0 FROM tab0
----
142
152
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT MIN( col1 ) + 87 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-5539
SELECT MIN ( col1 ) + 87 FROM tab1
----
92

query I rowsort
SELECT - 45 * + col1 + + 71 FROM tab1
----
-154
-2044
-559

query I rowsort
SELECT + 7 FROM tab2 WHERE NOT + 56 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + 19 + - col2 FROM tab2
----
-21
-39
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * 94 + - 89 BETWEEN ( + col0 ) AND ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 68 ) * col2 FROM tab0
----
3196
6732
680

query III rowsort
SELECT * FROM tab2 WHERE col2 * + 37 + col1 / + col2 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT 30 * COUNT( * ) AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-5546
SELECT 30 * COUNT ( * ) AS col0 FROM tab1
----
90

query I rowsort
SELECT ALL col1 * + col1 FROM tab2 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 * col0 col1 FROM tab0
----
2784
3104
480

query I rowsort
SELECT ALL 16 FROM tab2 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT 42 + 79 AS col2 FROM tab1
----
121
121
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT ALL - CAST( NULL AS SIGNED ) * 48 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL - CAST ( NULL AS INTEGER ) * 48 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT DISTINCT 84 DIV + 18 + 7 * MAX( ALL + col0 ) col2 FROM tab0
----
683

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5552
SELECT DISTINCT 84 / + 18 + 7 * MAX ( ALL + col0 ) col2 FROM tab0
----
683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5553
SELECT ALL CAST( NULL AS SIGNED ) * 15 + MAX( col2 ) * COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL CAST ( NULL AS INTEGER ) * 15 + MAX ( col2 ) * COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 * 67 AS col1 FROM tab0
----
3149
6633
670

query I rowsort
SELECT + 72 FROM tab1 WHERE - 11 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT ALL 51 DIV col1 AS col0 FROM tab0
----
0
2
51

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL 51 / col1 AS col0 FROM tab0
----
0
2
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 / 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 - + 74 AS col2 FROM tab1 AS cor0
----
-27
-60
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5560
SELECT - COUNT( * ) - + 38 DIV - 2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-5560
SELECT - COUNT ( * ) - + 38 / - 2 FROM tab0
----
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col2 NOT IN ( 53 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) * - 45 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > ( 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT - + ( col0 ) DIV col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5565
SELECT - + ( col0 ) / col1 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col0 = NULL
----

query I rowsort
SELECT ALL ( col0 ) * col2 - 45 AS col1 FROM tab2 AS cor0 WHERE NOT 34 / col2 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT + + 30 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5568
SELECT + + 30 / col0 AS col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT - CAST( NULL AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT - CAST ( NULL AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + col2 * 3 col2 FROM tab0
----
11421
297
630

query I rowsort
SELECT - 23 * + 9 AS col2 FROM tab0
----
-207
-207
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT COUNT( * ) * - - 82 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT COUNT ( * ) * - - 82 FROM tab0
----
246

query I rowsort
SELECT - 89 * + + col0 FROM tab1
----
-4539
-7565
-8099

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5575
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5575
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( + col1 ) * + col1 ) IN ( col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL + COUNT( DISTINCT + 32 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + COUNT ( DISTINCT + 32 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT - SUM( ALL + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT - SUM ( ALL + col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT DISTINCT COUNT( * ) * - 10 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT COUNT ( * ) * - 10 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * 36 NOT BETWEEN ( col2 + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT + + MIN( - 42 ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5581
SELECT + + MIN ( - 42 ) AS col0 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ( 46 ) FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL + SUM( + col1 ) FROM tab0 AS cor0 WHERE - col1 NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL + SUM ( + col1 ) FROM tab0 AS cor0 WHERE - col1 NOT IN ( - col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 * 96 AND - col2
----

query I rowsort
SELECT - + 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT DISTINCT + 96 * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + 96 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL + COUNT( * ) * COUNT( * ) * + + 46 AS col0 FROM tab1
----
414

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + + 46 AS col0 FROM tab1
----
414

query II rowsort
SELECT ALL - col0 AS col1, - col1 * col2 AS col2 FROM tab2 AS cor0
----
-46
-1173
-64
-3080
-75
-3886

query I rowsort
SELECT DISTINCT ( - col2 ) + col1 + 66 * + col2 AS col0 FROM tab2 AS cor0
----
1546
2677
3837

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - - 88 - - 24 * 54
----

query I rowsort
SELECT ALL - 71 + - col0 FROM tab1 AS cor0
----
-122
-156
-162

query II rowsort
SELECT + col2, + col1 - - 99 FROM tab1 AS cor0
----
59
104
68
146
96
113

query I rowsort
SELECT DISTINCT col0 + 55 AS col0 FROM tab0 AS cor0
----
142
152
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 68 ) col0 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5595
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0 WHERE - + 55 * - + col0 * - col2 + 54 >= ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL CAST ( NULL AS REAL ) FROM tab0 WHERE - + 55 * - + col0 * - col2 + 54 >= ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT + col1 FROM tab2 WHERE CAST( - + ( - 17 ) AS SIGNED ) / 50 IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5596
SELECT + col1 FROM tab2 WHERE CAST ( - + ( - 17 ) AS INTEGER ) / 50 IN ( col2 )
----

query I rowsort
SELECT ALL - 74 + - ( + + col2 ) FROM tab2
----
-114
-132
-97

query I rowsort
SELECT - col0 * 22 - - col1 + + col1 AS col2 FROM tab0
----
-168
-1872
-2132

query I rowsort
SELECT ALL ( + 56 ) AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL AND NOT col0 + + col2 BETWEEN 13 AND ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5600
SELECT ALL + 89 DIV 8 - + col2 AS col1 FROM tab0
----
-36
-88
1

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + 89 / 8 - + col2 AS col1 FROM tab0
----
-36
-88
1

query I rowsort
SELECT - col0 + - 78 FROM tab0 AS cor0
----
-165
-175
-93

query I rowsort
SELECT - col0 + - + col0 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + col0 * - 72 FROM tab0 AS cor0
----
-1080
-6264
-6984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT - col2 + CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT - col2 + CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT COUNT( * ) * + + 47 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT COUNT ( * ) * + + 47 FROM tab0 AS cor0
----
141

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( + col0 * + ( - col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 99 + - + col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE ( + - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE ( + - col2 ) IS NULL
----
0

query I rowsort
SELECT ALL - 25 AS col0 FROM tab0 WHERE NOT - ( 94 ) + col0 * col0 IS NULL
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5610
SELECT + SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE col0 - ( - + col0 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
0

query I rowsort
SELECT col0 * + - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5614
SELECT + - 33 DIV - COUNT( * ) FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-5614
SELECT + - 33 / - COUNT ( * ) FROM tab1 cor0
----
11

query I rowsort
SELECT ALL - col0 / + 13 FROM tab0 AS cor0 WHERE NOT - col2 + - 72 * + col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT - 96 * + col1 * - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT - 96 * + col1 * - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 - + col2 * - col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
4961
5105
6326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 col1 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5620
SELECT * FROM tab1 WHERE NOT ( col1 + + CAST( - + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5620
SELECT * FROM tab1 WHERE NOT ( col1 + + CAST ( - + col2 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT - MAX( DISTINCT + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT - MAX ( DISTINCT + col1 ) FROM tab2
----
-77

query I rowsort
SELECT DISTINCT + 40 FROM tab0 WHERE NOT ( - - col2 + + 35 + + col0 + - ( col0 ) ) = NULL
----

query II rowsort
SELECT DISTINCT - 32, col0 * - col0 AS col2 FROM tab1
----
-32
-2601
-32
-7225
-32
-8281

query I rowsort
SELECT + col1 * + + col2 + ( + col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
1270
3221
4028

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT 54 + - - MIN( DISTINCT - col1 ) - - MIN( - + col2 ) AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5625
SELECT 54 + - - MIN ( DISTINCT - col1 ) - - MIN ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ALL + 73 + col0 FROM tab0 AS cor0
----
160
170
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL MIN( - 97 ) * SUM( col0 * 94 + + col0 ) FROM tab2 cor0 WHERE col1 * - - 83 BETWEEN 57 AND ( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL MIN ( - 97 ) * SUM ( col0 * 94 + + col0 ) FROM tab2 cor0 WHERE col1 * - - 83 BETWEEN 57 AND ( 80 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5628
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 + - - 67 ) <> ( - col2 - + + CAST( - ( col0 ) AS SIGNED ) + ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5628
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 + - - 67 ) <> ( - col2 - + + CAST ( - ( col0 ) AS INTEGER ) + ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT + 97 * + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
873

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5629
SELECT DISTINCT + 97 * + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
873

query I rowsort
SELECT - 6 + 26 * - col0 + - col2 + col0 FROM tab2 AS cor0
----
-1179
-1646
-1939

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT CAST( - ( + - col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5632
SELECT CAST ( - ( + - col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5633
SELECT - 20 DIV + 36 + COUNT( * ) col2 FROM tab1 WHERE 63 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5633
SELECT - 20 / + 36 + COUNT ( * ) col2 FROM tab1 WHERE 63 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5634
SELECT * FROM tab2 WHERE col2 IN ( + - CAST( NULL AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-5634
SELECT * FROM tab2 WHERE col2 IN ( + - CAST ( NULL AS INTEGER ) * - col0 )
----

query I rowsort
SELECT - ( - 11 ) * - + 78 * col0 FROM tab1
----
-43758
-72930
-78078

query I rowsort
SELECT DISTINCT - col0 * + + col2 + 93 + - col0 FROM tab0
----
-627
-864
-9607

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT + ( 72 ) * 76 DIV + col2 + col0 col2 FROM tab2
----
169
200
283

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5637
SELECT + ( 72 ) * 76 / + col2 + col0 col2 FROM tab2
----
169
200
283

query I rowsort
SELECT DISTINCT - col1 - - - col2 FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT COUNT( DISTINCT + - 73 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5639
SELECT COUNT ( DISTINCT + - 73 ) AS col0 FROM tab2 AS cor0
----
1

query II rowsort
SELECT ALL col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + 49 * + + COUNT( DISTINCT - 51 ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5641
SELECT + 49 * + + COUNT ( DISTINCT - 51 ) FROM tab0 AS cor0
----
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col0 ) < col1 * + - col1 + 39
----
85
5
59

query I rowsort
SELECT ALL + 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL 97 * - - 65 AS col2 FROM tab2
----
6305
6305
6305

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT + + COUNT( - 26 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5645
SELECT + + COUNT ( - 26 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT ALL + - 50 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 88 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + 67 AND - 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) BETWEEN NULL AND col2 + - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) BETWEEN NULL AND col2 + - - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + ( + - SUM( DISTINCT + - 29 ) ) * ( - 69 ) + - 28 FROM tab2
----
-2029

skipif mysql # not compatible
query I rowsort label-5650
SELECT + ( + - SUM ( DISTINCT + - 29 ) ) * ( - 69 ) + - 28 FROM tab2
----
-2029

query I rowsort
SELECT ( ( + col1 ) ) * + col2 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT col0 < NULL
----

query I rowsort
SELECT 43 * + col1 AS col2 FROM tab1
----
2021
215
602

onlyif mysql # DIV for integer division: 
query I rowsort label-5654
SELECT ( ( + col1 ) ) DIV + 92 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5654
SELECT ( ( + col1 ) ) / + 92 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT 84 * - - MAX( DISTINCT col1 ) FROM tab1
----
3948

skipif mysql # not compatible
query I rowsort label-5655
SELECT 84 * - - MAX ( DISTINCT col1 ) FROM tab1
----
3948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * col0 col2 FROM tab2
----
4186
5824
6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT - col2 * col0 + - col1 + - + col0 - col1 / CAST( NULL AS SIGNED ) - - 44 * + col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT - col2 * col0 + - col1 + - + col0 - col1 / CAST ( NULL AS INTEGER ) - - 44 * + col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5659
SELECT + 67 * col0 * 47 + - + CAST( + 14 AS SIGNED ) + - - col0 * col1 * - + col0 + + 33 DIV - col1 AS col1 FROM tab2 cor0
----
-113870
-140714
36924

skipif mysql # not compatible
query I rowsort label-5659
SELECT + 67 * col0 * 47 + - + CAST ( + 14 AS INTEGER ) + - - col0 * col1 * - + col0 + + 33 / - col1 AS col1 FROM tab2 cor0
----
-113870
-140714
36924

query I rowsort
SELECT DISTINCT - col2 + - col0 - col0 * + 1 FROM tab2 AS cor0
----
-115
-168
-208

query I rowsort
SELECT 64 * - col0 AS col2 FROM tab1 AS cor0
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5662
SELECT COUNT( * ) AS col1, 81 AS col1 FROM tab2 AS cor0 WHERE CAST( - ( - - col2 ) AS SIGNED ) BETWEEN - col0 AND NULL
----
0
81

skipif mysql # not compatible
query II rowsort label-5662
SELECT COUNT ( * ) AS col1, 81 AS col1 FROM tab2 AS cor0 WHERE CAST ( - ( - - col2 ) AS INTEGER ) BETWEEN - col0 AND NULL
----
0
81

query I rowsort
SELECT ALL col1 * - col1 + + col1 AS col2 FROM tab0 AS cor0
----
-420
-6480
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col0 col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5665
SELECT + - CAST( col2 AS SIGNED ) * - + 33 + col2 + col0 * col1 DIV col2 FROM tab1 AS cor0
----
2013
2374
3271

skipif mysql # not compatible
query I rowsort label-5665
SELECT + - CAST ( col2 AS INTEGER ) * - + 33 + col2 + col0 * col1 / col2 FROM tab1 AS cor0
----
2013
2374
3271

query I rowsort
SELECT DISTINCT + 6 * - col2 FROM tab2 AS cor0
----
-138
-240
-348

query I rowsort
SELECT DISTINCT col0 + + + col2 AS col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + + 16 * + 80 FROM tab1 AS cor0
----
1280
1280
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ( SUM( ALL - col2 ) ) * - - COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-471

skipif mysql # not compatible
query I rowsort label-5669
SELECT ( SUM ( ALL - col2 ) ) * - - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-471

query I rowsort
SELECT DISTINCT + col2 + - 11 + + col0 FROM tab0 AS cor0
----
185
51
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 94 - + - 82 IS NULL
----

query I rowsort
SELECT - col2 * + 25 - + - col1 FROM tab2
----
-1383
-524
-923

query III rowsort
SELECT * FROM tab1 WHERE - 93 = + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT ALL col0 DIV col2 - 70 FROM tab1
----
-69
-69
-70

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL col0 / col2 - 70 FROM tab1
----
-69
-69
-70

query I rowsort
SELECT DISTINCT 21 - - + 92 AS col1 FROM tab0
----
113

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE 81 > NULL
----

query I rowsort
SELECT + 54 * + col2 AS col1 FROM tab0
----
2538
5346
540

query II rowsort
SELECT + + col0 * + 46 AS col0, 24 * - col0 * + col1 AS col2 FROM tab1 cor0
----
2346
-17136
3910
-10200
4186
-102648

query II rowsort
SELECT ALL - 61 * - 46 * - 14 AS col1, 11 FROM tab1 AS cor0
----
-39284
11
-39284
11
-39284
11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 55 > NULL
----

query I rowsort
SELECT + - col1 * - col0 + 5 AS col2 FROM tab1 AS cor0 WHERE NOT col1 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5682
SELECT DISTINCT + 72 / ( + 28 ) * + CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT + 72 / ( + 28 ) * + CAST ( NULL AS REAL ) * col1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5683
SELECT - col2 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-5683
SELECT - col2 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 14 NOT IN ( col0 / col0 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - 94 * + col2 AS col1 FROM tab0
----
-66270
-81780
-902682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, + 7 * + col2 col0 FROM tab1 AS cor0
----
51
672
85
413
91
476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT 34 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5688
SELECT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT + - MIN( + ( col1 ) ), ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-5689
SELECT + - MIN ( + ( col1 ) ), ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-5
3

query II rowsort
SELECT - col1, + col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT 77, col1 AS col0 FROM tab1 AS cor0
----
77
14
77
47
77
5

onlyif mysql # DIV for integer division: 
query II rowsort label-5692
SELECT + col2 AS col1, 54 DIV col1 FROM tab1 AS cor0
----
59
10
68
1
96
3

skipif mysql # not compatible
query II rowsort label-5692
SELECT + col2 AS col1, 54 / col1 FROM tab1 AS cor0
----
59
10
68
1
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT 32 * - - col0 AS col0 FROM tab2 AS cor0
----
1472
2048
2400

query III rowsort
SELECT * FROM tab1 WHERE NOT - 4 * col1 * - col0 <= NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + + col0 * col1 * col1 - - + 36 col0, col1 FROM tab0
----
36
1
38316
21
98436
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT DISTINCT + + COUNT( ALL - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT + + COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5699
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5699
SELECT CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 28 + - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 12 AS col0 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT + 10 * - 87 * + col1 / - - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, + col1 / col2 FROM tab0 AS cor0 WHERE - col0 BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5704
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col0 - + 63 AS col1 FROM tab1
----
-12
22
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT + COUNT( * ) - COUNT( * ) * - 7 col1 FROM tab2
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5706
SELECT + COUNT ( * ) - COUNT ( * ) * - 7 col1 FROM tab2
----
24

query II rowsort
SELECT ALL - 96, - 11 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 13 IS NULL
----
18 values hashing to fff615b744082e397058fa51cae580dc

query I rowsort
SELECT 90 + + col2 + - + 72 * col1 - col0 * col0 * + - 20 + + 98 FROM tab2
----
107922
38859
76604

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT 5 + + - COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5709
SELECT 5 + + - COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 19 col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - ( col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT COUNT( * ), COUNT( * ) AS col0 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5712
SELECT COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 cor0
----
3
3

query I rowsort
SELECT DISTINCT - 75 + 57 AS col2 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT col1 * + 50 AS col0 FROM tab1 WHERE NOT - col0 + - col1 * + ( col0 ) NOT BETWEEN - 72 AND - + 88 * - col2 / + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col1, - 20 * - col2 * + col2 * + 57 FROM tab2
----
50
1824000
50
3834960
50
603060

query I rowsort
SELECT DISTINCT - + ( 28 ) FROM tab1 WHERE - 94 IS NOT NULL
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5717
SELECT ALL COUNT( * ), + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5717
SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5718
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5718
SELECT + CAST ( NULL AS REAL ) col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col1, col0 FROM tab2 cor0
----
51
46
67
75
77
64

query I rowsort
SELECT - ( + col1 ) * + - col1 AS col1 FROM tab2 cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 23 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col0 * + 89 + - ( + 40 ) FROM tab2 AS cor0
----
-208834
-438632
-447265

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5725
SELECT ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT ALL + ( - 44 ), + COUNT( * ) + + 86 AS col0 FROM tab0 cor0
----
-44
89

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL + ( - 44 ), + COUNT ( * ) + + 86 AS col0 FROM tab0 cor0
----
-44
89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 21 IN ( - 98, 99, col1 )
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL + - COUNT( * ) * - - 15 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL + - COUNT ( * ) * - - 15 FROM tab0 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT - + col2 * + CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-5730
SELECT - + col2 * + CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL 35 + - 83 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT DISTINCT - col2 DIV - + col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT - col2 / - + col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + COUNT( ALL + 97 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5733
SELECT + COUNT ( ALL + 97 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - 67 + - 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN - ( + col2 ) + + col0 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5736
SELECT ALL CAST( NULL AS SIGNED ) * ( - + COUNT( * ) ) * + SUM( + + 4 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL CAST ( NULL AS INTEGER ) * ( - + COUNT ( * ) ) * + SUM ( + + 4 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab2 WHERE + - 36 IN ( - 86 )
----

query I rowsort
SELECT 96 FROM tab1 WHERE ( col1 <= col2 )
----
96
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5739
SELECT DISTINCT - - COUNT( * ) + - SUM( 73 ) AS col0, + 0 FROM tab0 AS cor0
----
-216
0

skipif mysql # not compatible
query II rowsort label-5739
SELECT DISTINCT - - COUNT ( * ) + - SUM ( 73 ) AS col0, + 0 FROM tab0 AS cor0
----
-216
0

query I rowsort
SELECT + - col2 + + + col1 AS col0 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT + CAST( NULL AS SIGNED ) + - - 97 + - + col0 * - 97 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT + CAST ( NULL AS INTEGER ) + - - 97 + - + col0 * - 97 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - COUNT( * ) + 64 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5743
SELECT - COUNT ( * ) + 64 FROM tab0 AS cor0
----
61

query I rowsort
SELECT 14 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * - 9 * - + ( 78 ) col0 FROM tab2 AS cor0
----
45630
45630
45630

query I rowsort
SELECT + + col2 - - col2 * - col0 AS col1 FROM tab0 cor0
----
-658
-860
-9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM tab0 cor0
----
-93
-93
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - 69 + - 76 + col0 FROM tab2 AS cor0 WHERE NOT ( - + col2 * 50 IS NULL )
----
-70
-81
-99

query I rowsort
SELECT DISTINCT - ( - + 75 ) FROM tab1 WHERE col1 * - 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL MIN( DISTINCT - 96 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL MIN ( DISTINCT - 96 ) FROM tab2
----
-96

query II rowsort
SELECT + col0 AS col1, + col1 AS col2 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT + ( + - 47 ) FROM tab2
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col0 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT - 47 * - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5756
SELECT - 47 * - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + + col2 ) AS col2 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 - 82 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 220e00289e1864f7a2e2ca39a6193a4a

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + + SUM( DISTINCT 43 ) AS col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5759
SELECT + + SUM ( DISTINCT 43 ) AS col0 FROM tab1 AS cor0
----
43

query II rowsort
SELECT + col0 AS col0, ( + + 37 ) AS col2 FROM tab2 AS cor0
----
46
37
64
37
75
37

query I rowsort
SELECT DISTINCT + 94 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab2 cor0
----
80
80
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > ( + col2 * - col0 * + col1 - + col2 - + ( col1 ) + - 5 * + col0 + + 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 27 col2, + col0 FROM tab0 AS cor0
----
27
15
27
87
27
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - COUNT( * ) + 44 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-5765
SELECT - COUNT ( * ) + 44 FROM tab2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + 38 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + 38 FROM tab2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT col2 DIV - col0 + + 70 FROM tab0
----
67
69
70

skipif mysql # not compatible
query I rowsort label-5767
SELECT col2 / - col0 + + 70 FROM tab0
----
67
69
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT + 20 DIV col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5768
SELECT + 20 / col1 FROM tab1
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT + CAST( - - col2 AS SIGNED ) * - - col2 * + + 28 FROM tab2
----
14812
44800
94192

skipif mysql # not compatible
query I rowsort label-5770
SELECT + CAST ( - - col2 AS INTEGER ) * - - col2 * + + 28 FROM tab2
----
14812
44800
94192

query I rowsort
SELECT - col2 AS col2 FROM tab1 cor0 WHERE col1 = - ( - col1 )
----
-59
-68
-96

query I rowsort
SELECT ( + col2 ) - - col2 AS col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5773
SELECT ALL + COUNT( DISTINCT - CAST( + col0 AS DECIMAL ) ) * SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + COUNT ( DISTINCT - CAST ( + col0 AS REAL ) ) * SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-468

query I rowsort
SELECT - + col0 + + 31 FROM tab2 AS cor0
----
-15
-33
-44

query II rowsort
SELECT DISTINCT + 97, - col1 AS col2 FROM tab1 AS cor0
----
97
-14
97
-47
97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT DISTINCT MAX( + ( col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT MAX ( + ( col2 ) ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT col0 + - 22 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT - + COUNT( - 95 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - + COUNT ( - 95 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 0 * - 81 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 69 + + col1 * col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-68
372
6492

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT 87 DIV ( + + col1 ) col2 FROM tab0
----
1
4
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5783
SELECT 87 / ( + + col1 ) col2 FROM tab0
----
1
4
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + MAX( ALL - ( - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5784
SELECT + MAX ( ALL - ( - col0 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT - ( + - 72 ) AS col1, + COUNT( * ) FROM tab1
----
72
3

skipif mysql # not compatible
query II rowsort label-5785
SELECT - ( + - 72 ) AS col1, + COUNT ( * ) FROM tab1
----
72
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT + SUM( ALL + col1 ), - MIN( - col2 ) AS col1 FROM tab1
----
66
96

skipif mysql # not compatible
query II rowsort label-5786
SELECT + SUM ( ALL + col1 ), - MIN ( - col2 ) AS col1 FROM tab1
----
66
96

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NULL > col1
----

query I rowsort
SELECT DISTINCT - col0 / 85 * + col2 * + + 83 * - ( - - ( + col0 ) ) FROM tab2 WHERE 2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND col1 + col2 - - + col0 + - + col2 * col2 + + - 78 * - col2
----

query I rowsort
SELECT DISTINCT + 76 + - ( + col2 ) AS col0 FROM tab2 AS cor0
----
18
36
53

query I rowsort
SELECT col2 * 36 FROM tab0
----
1692
3564
360

query I rowsort
SELECT DISTINCT col2 / - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 + + ( + col2 ) AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5794
SELECT ALL - - ( + col1 ) DIV + CAST( - - col1 AS SIGNED ) + col1 + - 48 + + col2 * 15 FROM tab0 AS cor0
----
124
1439
739

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL - - ( + col1 ) / + CAST ( - - col1 AS INTEGER ) + col1 + - 48 + + col2 * 15 FROM tab0 AS cor0
----
124
1439
739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = + + col1 * ( + + 47 )
----

query II rowsort
SELECT - - 77 AS col1, col1 + - col1 * + + 89 + - + 48 FROM tab0 AS cor0
----
77
-136
77
-1896
77
-7176

onlyif mysql # DIV for integer division: 
query II rowsort label-5798
SELECT ALL - 19 col1, + 74 DIV + col0 FROM tab1
----
-19
0
-19
0
-19
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5798
SELECT ALL - 19 col1, + 74 / + col0 FROM tab1
----
-19
0
-19
0
-19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT DISTINCT MAX( + col2 ) * + + ( - SUM( + + col1 ) ) col0 FROM tab2
----
-11310

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5800
SELECT DISTINCT MAX ( + col2 ) * + + ( - SUM ( + + col1 ) ) col0 FROM tab2
----
-11310

query I rowsort
SELECT ALL col2 * + - 2 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + 0 + - col2 + col2 * col1, 66, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col0 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + + ( + col1 ) * col1 + - - 91 - 55 + + col2 FROM tab2 AS cor0
----
2660
4583
6005

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT - 35 + + COUNT( * ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5805
SELECT - 35 + + COUNT ( * ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5807
SELECT - - CAST( - - 87 AS SIGNED ) * ( - 66 ) + MIN( + 65 ) FROM tab1 AS cor0
----
-5677

skipif mysql # not compatible
query I rowsort label-5807
SELECT - - CAST ( - - 87 AS INTEGER ) * ( - 66 ) + MIN ( + 65 ) FROM tab1 AS cor0
----
-5677

query I rowsort
SELECT + - col0 * + + col1 * col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT - ( - - ( + col2 ) ) * col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + col2 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col1, + col2 + - col2 + - ( + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ALL - 53 * + - COUNT( * ) * - - 9 AS col0 FROM tab0
----
1431

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - 53 * + - COUNT ( * ) * - - 9 AS col0 FROM tab0
----
1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5813
SELECT - ( - CAST( NULL AS SIGNED ) ) col1, COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5813
SELECT - ( - CAST ( NULL AS INTEGER ) ) col1, COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL COUNT( ALL col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL COUNT ( ALL col0 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 97 AS col0, col1 col0 FROM tab1
----
-97
14
-97
47
-97
5

query I rowsort
SELECT + - col1 * + 21 + 93 * - - 5 + - col0 FROM tab2 WHERE NOT - - col0 <> col2 * + col1 + + + ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5817
SELECT 5 DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5817
SELECT 5 / + COUNT ( * ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT DISTINCT - col1 * + - CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT - col1 * + - CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
1
441
6561

query II rowsort
SELECT DISTINCT + 68 * - col0 - - + ( + + 16 ) * - 84 * + col0 AS col1, 84 FROM tab0 AS cor0
----
-122844
84
-136964
84
-21180
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5820
SELECT COUNT( * ) col0, 68 * - 37 FROM tab1 AS cor0
----
3
-2516

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5820
SELECT COUNT ( * ) col0, 68 * - 37 FROM tab1 AS cor0
----
3
-2516

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5821
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5821
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT 54 * + + 82 * COUNT( * ) + - + 59 FROM tab2
----
13225

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT 54 * + + 82 * COUNT ( * ) + - + 59 FROM tab2
----
13225

query I rowsort
SELECT ALL + 8 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT + 60 / col2 FROM tab2 WHERE + col1 <= NULL
----

query I rowsort
SELECT - 73 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND ( NOT ( NOT col0 / - - 40 IS NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - + col0 AND 83 + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL 93 - - col0 + - - 49 + + col1 * 88 + - col2 FROM tab1
----
1329
4301
608

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT + MIN( ALL + 74 ) AS col0 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-5830
SELECT + MIN ( ALL + 74 ) AS col0 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT COUNT( * ) * - + 91 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5831
SELECT COUNT ( * ) * - + 91 FROM tab1
----
-273

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT - ( - + 81 ) FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT - - ( - - 91 ) FROM tab0 AS cor0 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5835
SELECT COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5835
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5836
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5837
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5838
SELECT - col0 * - - 17, + col0 * - col2 * 48 - + CAST( col2 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
-1088
-124480
-1275
-212164
-782
-51313

skipif mysql # not compatible
query II rowsort label-5838
SELECT - col0 * - - 17, + col0 * - col2 * 48 - + CAST ( col2 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
-1088
-124480
-1275
-212164
-782
-51313

query I rowsort
SELECT ALL + col2 * + ( - 23 ) FROM tab1 AS cor0
----
-1357
-1564
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5840
SELECT - CAST( COUNT( * ) AS SIGNED ) * - 90 + COUNT( + col0 ) + + 68 col2 FROM tab2 cor0
----
341

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5840
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - 90 + COUNT ( + col0 ) + + 68 col2 FROM tab2 cor0
----
341

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 7 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT DISTINCT col1 DIV + 10 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
2
8

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT col1 / + 10 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
2
8

onlyif mysql # DIV for integer division: 
query II rowsort label-5843
SELECT + col1 DIV col0, - col0 AS col0 FROM tab0
----
0
-87
0
-97
5
-15

skipif mysql # not compatible
query II rowsort label-5843
SELECT + col1 / col0, - col0 AS col0 FROM tab0
----
0
-87
0
-97
5
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT 69 * + SUM( DISTINCT col0 ) FROM tab0
----
13731

skipif mysql # not compatible
query I rowsort label-5844
SELECT 69 * + SUM ( DISTINCT col0 ) FROM tab0
----
13731

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT - 30 * - SUM( ( 88 ) ) FROM tab0
----
7920

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - 30 * - SUM ( ( 88 ) ) FROM tab0
----
7920

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL - COUNT( ALL col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL - COUNT ( ALL col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5847
SELECT - COUNT( * ) DIV + - MAX( - 89 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5847
SELECT - COUNT ( * ) / + - MAX ( - 89 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT SUM( col1 ) * 12 FROM tab2
----
2340

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT SUM ( col1 ) * 12 FROM tab2
----
2340

query I rowsort
SELECT - - 26 FROM tab2 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT + - 2, COUNT( * ) AS col1 FROM tab1 WHERE NOT - - 41 NOT BETWEEN - + 97 / + + col0 AND - col2
----
-2
0

skipif mysql # not compatible
query II rowsort label-5850
SELECT + - 2, COUNT ( * ) AS col1 FROM tab1 WHERE NOT - - 41 NOT BETWEEN - + 97 / + + col0 AND - col2
----
-2
0

query I rowsort
SELECT DISTINCT + 61 + + 72 + + col0 AS col1 FROM tab2 AS cor0
----
179
197
208

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5852
SELECT - + SUM( + + col1 ) AS col0, - COUNT( * ) DIV + 19 AS col2 FROM tab1 AS cor0
----
-66
0

skipif mysql # not compatible
query II rowsort label-5852
SELECT - + SUM ( + + col1 ) AS col0, - COUNT ( * ) / + 19 AS col2 FROM tab1 AS cor0
----
-66
0

query I rowsort
SELECT ALL col1 + + col2 AS col0 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT + - CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL BETWEEN - ( + - 30 ) AND + 60
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT COUNT( * ) DIV 50 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5856
SELECT COUNT ( * ) / 50 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col2, - col0 * - 57 AS col1 FROM tab1 cor0
----
59
4845
68
5187
96
2907

query II rowsort
SELECT + col0 AS col1, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - col0 + - col0 * + - col0 AS col1 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT ALL col2 + col0 + col2 AS col1 FROM tab1 AS cor0
----
203
227
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT - CAST( NULL AS SIGNED ) - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + - + ( + col2 ) AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL - COUNT( * ) * + COUNT( * ) - - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL - COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT - - col2 + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - + 17 + 30 * col0 + + - col0 FROM tab1 AS cor0
----
1462
2448
2622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT + 2 DIV - + ( COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT + 2 / - + ( COUNT ( * ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
75

query I rowsort
SELECT ( - - 15 ) * - - 94 FROM tab1 AS cor0
----
1410
1410
1410

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * 11 > col2 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 51 * - col0 AS col0 FROM tab2 AS cor0
----
-2346
-3264
-3825

query I rowsort
SELECT DISTINCT - 94 * col0 FROM tab1 cor0
----
-4794
-7990
-8554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5872
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - MAX( - + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - MAX ( - + col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * - col2 * + - col2 AS col2 FROM tab2
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL - 64 * - - MAX( - col1 ) AS col2 FROM tab1
----
320

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - 64 * - - MAX ( - col1 ) AS col2 FROM tab1
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT DISTINCT + 27 AS col1 FROM tab1 WHERE NOT ( - col2 + + col2 - 14 NOT IN ( + CAST( NULL AS SIGNED ) * + col1 * + - ( col1 ), + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT + 27 AS col1 FROM tab1 WHERE NOT ( - col2 + + col2 - 14 NOT IN ( + CAST ( NULL AS INTEGER ) * + col1 * + - ( col1 ), + col2 ) )
----

query II rowsort
SELECT DISTINCT col2, - col2 AS col0 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT + col1 + - 54 FROM tab1
----
-40
-49
-7

query II rowsort
SELECT DISTINCT col0 * - col2 AS col2, col0 FROM tab0
----
-705
15
-870
87
-9603
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 * + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT CAST( NULL AS SIGNED ) / + + 68 + + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT CAST ( NULL AS INTEGER ) / + + 68 + + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 39 * - - 87 FROM tab2 AS cor0
----
3393

query I rowsort
SELECT ALL + + col2 + + col0 + - + 86 AS col0 FROM tab0 AS cor0
----
-24
11
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT - MIN( DISTINCT + + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - MIN ( DISTINCT + + col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT - + COUNT( * ) + + + MAX( + + CAST( - ( - - col0 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5884
SELECT - + COUNT ( * ) + + + MAX ( + + CAST ( - ( - - col0 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT ALL - - 77 + 27 + col0 + - col1 - - + col2 * 71 AS col1 FROM tab2 AS cor0
----
1732
2931
4230

query I rowsort
SELECT col2 + - + col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + - col0 * - 93 * - - col0, - col2, col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT DISTINCT SUM( DISTINCT col2 ) + - 97 AS col0 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT SUM ( DISTINCT col2 ) + - 97 AS col0 FROM tab1 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE col2 - 25 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 - 25 * + col1 IS NULL
----
0

query I rowsort
SELECT ALL - 71 + - col0 FROM tab0 AS cor0
----
-158
-168
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5891
SELECT ALL * FROM tab2 WHERE 27 * + col2 * + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5891
SELECT ALL * FROM tab2 WHERE 27 * + col2 * + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT ALL + - col1 DIV col2 + + col1 FROM tab0 WHERE NULL IS NULL
----
1
19
80

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + - col1 / col2 + + col1 FROM tab0 WHERE NULL IS NULL
----
1
19
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5893
SELECT + 85 AS col2, - COUNT( * ) AS col0 FROM tab2
----
85
-3

skipif mysql # not compatible
query II rowsort label-5893
SELECT + 85 AS col2, - COUNT ( * ) AS col0 FROM tab2
----
85
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT COUNT( * ) * + + 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
882

skipif mysql # not compatible
query I rowsort label-5894
SELECT COUNT ( * ) * + + 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5895
SELECT DISTINCT + - CAST( - 17 AS SIGNED ) FROM tab0 WHERE - 80 * + + 87 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + - CAST ( - 17 AS INTEGER ) FROM tab0 WHERE - 80 * + + 87 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 87 IS NULL
----

query I rowsort
SELECT DISTINCT + 49 FROM tab0 cor0
----
49

query I rowsort
SELECT ALL + col1 / - + col1 AS col0 FROM tab1 AS cor0 WHERE 78 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT - - CAST( + col0 AS SIGNED ) * - 92 FROM tab2 AS cor0
----
-4232
-5888
-6900

skipif mysql # not compatible
query I rowsort label-5899
SELECT - - CAST ( + col0 AS INTEGER ) * - 92 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT + + 27 * + + col2 FROM tab2 AS cor0
----
1080
1566
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT - ( - + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5901
SELECT - ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 3 * - - 24 AS col1 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL COUNT( ALL + 20 ) * - SUM( DISTINCT + col0 ) * - MAX( ALL - col1 ) AS col0 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL COUNT ( ALL + 20 ) * - SUM ( DISTINCT + col0 ) * - MAX ( ALL - col1 ) AS col0 FROM tab0
----
-597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - ( + col0 ) ) col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT MIN( ALL 3 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT MIN ( ALL 3 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= 44
----

query I rowsort
SELECT 67 * + ( - ( + col1 ) ) FROM tab0 cor0 WHERE col2 * + col0 <> NULL
----

query I rowsort
SELECT - col1 + 56 AS col2 FROM tab0 AS cor0
----
-25
35
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5909
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 <= NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + col0 + + col1 AS col1 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT - MAX( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5911
SELECT - MAX ( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 8 - + - col2 * - col2 col0 FROM tab1 AS cor0
----
-3489
-4632
-9224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 85 col0 FROM tab1 AS cor0
----
-136
-170
-176

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col0 * - - col0 AS col2 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT - + col2 / CAST( - + col2 AS SIGNED ) * 58 + - + 62 - - - 22 + + + 50 * col1 FROM tab0 WHERE NOT 83 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5915
SELECT - + col2 / CAST ( - + col2 AS INTEGER ) * 58 + - + 62 - - - 22 + + + 50 * col1 FROM tab0 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT ALL 90 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col1 FROM tab2, tab0 AS cor0
----
-61

query I rowsort
SELECT ALL - 95 FROM tab0 WHERE NOT - - 82 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT - SUM( ALL col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - SUM ( ALL col0 ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT - col0 * + 45 AS col2 FROM tab2
----
-2070
-2880
-3375

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5921
SELECT ALL + CAST( + - 89 AS SIGNED ) DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL + CAST ( + - 89 AS INTEGER ) / col0 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT COUNT( ALL + 98 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5924
SELECT COUNT ( ALL + 98 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT col0 FROM tab0 cor0 WHERE NOT col0 > - col1 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5925
SELECT col0 FROM tab0 cor0 WHERE NOT col0 > - col1 - - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1, col2 + - - col1 FROM tab1 AS cor0
----
14
110
47
115
5
64

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT + 69 IS NULL
----
23
40
58

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 IN ( 48 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 38 + 42 + + col0 * + + col2 AS col0 FROM tab1
----
4976
5095
6268

query III rowsort
SELECT ALL + 81, ( + col2 ) + + 75 AS col2, col0 FROM tab2 WHERE NOT + col2 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT + 95 + + MIN( - col2 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + 95 + + MIN ( - col2 ) FROM tab2 AS cor0
----
37

query II rowsort
SELECT ALL + col0 + - col2 AS col2, col2 FROM tab1 AS cor0
----
-45
96
23
68
26
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 39 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 39 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * - 81 + + col0 * + 97 IS NOT NULL
----

query I rowsort
SELECT ALL - 32 + - col2 * - col1 + col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
1363
3255
348

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 88 IN ( ( - ( - + 86 ) ) * + - col0 / - + ( col1 ) * - 78 / + col1, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + + - col1 FROM tab2 AS cor0 WHERE 81 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5941
SELECT - ( col1 ) DIV - col0 AS col2, - ( col2 ) AS col2 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-5941
SELECT - ( col1 ) / - col0 AS col2, - ( col2 ) AS col2 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT 60 - - col2 * - - col2 * + col2 + - 42 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col1, + 79 FROM tab2
----
-51
79
-67
79
-77
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT - MIN( DISTINCT + col1 ) col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5944
SELECT - MIN ( DISTINCT + col1 ) col0 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col0 * + - col2 AND NULL
----

query I rowsort
SELECT ALL col0 * + - 65 * - - col2 FROM tab1
----
-318240
-325975
-402220

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL + + SUM( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + + SUM ( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + col2 + - col0 + + + ( + 39 ) + + col1 * - col1 * - 61 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
102
26863
400292

onlyif mysql # aggregate syntax: 
query II rowsort label-5949
SELECT + - 6 AS col2, SUM( - 19 ) FROM tab1 AS cor0
----
-6
-57

skipif mysql # not compatible
query II rowsort label-5949
SELECT + - 6 AS col2, SUM ( - 19 ) FROM tab1 AS cor0
----
-6
-57

query I rowsort
SELECT ALL col1 * 4 FROM tab1
----
188
20
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col0 ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL - COUNT( * ) + - 85 AS col0 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - COUNT ( * ) + - 85 AS col0 FROM tab2 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 + - + col1 AND + + 34
----
0

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 + - + col1 AND + + 34
----
0

query II rowsort
SELECT DISTINCT - 58 + + + 36 AS col1, - 79 AS col0 FROM tab2 AS cor0
----
-22
-79

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5956
SELECT ALL 31 + - - SUM( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5956
SELECT ALL 31 + - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - + col2 + - 19 FROM tab0
----
-724
-889
-9622

query I rowsort
SELECT + 46 * col2 AS col2 FROM tab0
----
2162
4554
460

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT + 91, COUNT( DISTINCT + - col2 ) AS col0 FROM tab1
----
91
3

skipif mysql # not compatible
query II rowsort label-5959
SELECT + 91, COUNT ( DISTINCT + - col2 ) AS col0 FROM tab1
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT + MAX( col1 ) FROM tab0 WHERE + 54 * + col2 * - + 62 NOT BETWEEN - 37 + + col1 * - 0 AND NULL
----
81

skipif mysql # not compatible
query I rowsort label-5960
SELECT + MAX ( col1 ) FROM tab0 WHERE + 54 * + col2 * - + 62 NOT BETWEEN - 37 + + col1 * - 0 AND NULL
----
81

query I rowsort
SELECT ALL + col1 + ( - col0 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL col0 * 88 * + col0 * - + col0 FROM tab1
----
-11673288
-54043000
-66314248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, + ( + + col2 ) col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT + - col2 * 38 = NULL
----

query I rowsort
SELECT 7 + + 39 FROM tab2
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5966
SELECT ALL - CAST( col1 AS SIGNED ) col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5966
SELECT ALL - CAST ( col1 AS INTEGER ) col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 34 + - col1 FROM tab2 AS cor0
----
-17
-33
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT MIN( col0 ) + + 56 col1 FROM tab0 cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5968
SELECT MIN ( col0 ) + + 56 col1 FROM tab0 cor0
----
71

query I rowsort
SELECT + 70 - + + 60 FROM tab2 AS cor0 WHERE 68 IS NOT NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + - MIN( ALL + 59 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5970
SELECT + - MIN ( ALL + 59 ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT CAST( MIN( 63 ) AS SIGNED ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-5971
SELECT CAST ( MIN ( 63 ) AS INTEGER ) FROM tab2
----
63

query III rowsort
SELECT * FROM tab2 WHERE 21 / - 70 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + 2 col2 FROM tab1
----
49
49
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5974
SELECT - MIN( DISTINCT col2 ) DIV + 4 FROM tab2 WHERE NOT 62 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-5974
SELECT - MIN ( DISTINCT col2 ) / + 4 FROM tab2 WHERE NOT 62 IS NULL
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT col0 DIV + ( - col1 ) AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT col0 / + ( - col1 ) AS col2 FROM tab0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5976
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * col1 BETWEEN ( + col1 / + ( 35 ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5976
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * col1 BETWEEN ( + col1 / + ( 35 ) ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT DISTINCT 26 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT 26 / + col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + + col0 col2 FROM tab1
----
128
134
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + - 87 col1 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT ALL 27 + + col2 AS col1 FROM tab0
----
126
37
74

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT + col2 - col2 FROM tab1 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 IN ( - col0 + 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col0 - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT - COUNT( ALL + col1 ) + + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT - COUNT ( ALL + col1 ) + + COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE + 25 / - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN ( - col0 * + col2 + - 61 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT COUNT( * ) - 38 * 21 col1 FROM tab0
----
-795

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5988
SELECT COUNT ( * ) - 38 * 21 col1 FROM tab0
----
-795

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col1 / col2 + + col1
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT 91 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL COUNT( col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL COUNT ( col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ( - COUNT( * ) ) * + 78 AS col0 FROM tab1 WHERE + col1 / 61 < col2
----
-234

skipif mysql # not compatible
query I rowsort label-5992
SELECT ( - COUNT ( * ) ) * + 78 AS col0 FROM tab1 WHERE + col1 / 61 < col2
----
-234

query I rowsort
SELECT DISTINCT col1 + + 74 AS col1 FROM tab1 WHERE NOT ( - col0 + 69 ) <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5994
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( 88 AS SIGNED ) / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5994
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( 88 AS INTEGER ) / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * ( col0 ) >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN col2 AND - ( - col2 )
----

query I rowsort
SELECT ALL - 29 AS col2 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN + col1 + col1 AND ( col1 )
----

query I rowsort
SELECT ALL 77 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6000
SELECT DISTINCT - COUNT( * ) DIV - 99 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - COUNT ( * ) / - 99 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT + - COUNT( * ) DIV + 19 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT + - COUNT ( * ) / + 19 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 + + col1 * 52 AS col0 FROM tab1 AS cor0
----
2397
255
714

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT col1 + - col1 * - ( + 96 + + col1 DIV - 40 ) col0 FROM tab1 AS cor0
----
1358
4512
485

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6003
SELECT col1 + - col1 * - ( + 96 + + col1 / - 40 ) col0 FROM tab1 AS cor0
----
1358
4512
485

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT ALL - - col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL - - col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE 17 IN ( - col2 * + 30 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <> - 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + 63 * 8 AS col1 FROM tab1 AS cor0
----
509
518
551

query I rowsort
SELECT - 4 * 44 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + 83 + - 62 FROM tab2 cor0
----
-145
-145
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT DISTINCT - COUNT( * ) + 98 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT - COUNT ( * ) + 98 FROM tab2 AS cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6011
SELECT * FROM tab0 AS cor0 WHERE ( - 34 ) = ( CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6011
SELECT * FROM tab0 AS cor0 WHERE ( - 34 ) = ( CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 + + 78 AS col0 FROM tab2
----
101
118
136

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6013
SELECT ( - CAST( col2 AS DECIMAL ) ) FROM tab1 WHERE - col0 > col2 * 98 + col1
----

skipif mysql # not compatible
query I rowsort label-6013
SELECT ( - CAST ( col2 AS REAL ) ) FROM tab1 WHERE - col0 > col2 * 98 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - ( + - COUNT( - 32 ) ) + + 30 AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-6015
SELECT - ( + - COUNT ( - 32 ) ) + + 30 AS col2 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL 9 - + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL 9 - + COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT COUNT( DISTINCT + ( col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6017
SELECT COUNT ( DISTINCT + ( col1 ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + col2 * + 62 AS col0 FROM tab1
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL + SUM( + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + SUM ( + col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1

query I rowsort
SELECT + 79 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + 62 + - col1 AS col0 FROM tab0
----
-19
41
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6023
SELECT DISTINCT - 95 * col2 * col1 DIV 64 FROM tab0
----
-146
-311
-5651

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - 95 * col2 * col1 / 64 FROM tab0
----
-146
-311
-5651

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - AVG ( ALL + 17 ) FROM tab1 AS cor0 WHERE NOT 87 - + col1 + col2 / col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( - + 76 ) AS col0 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + + 11 FROM tab0 cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT DISTINCT ( 20 ) + CAST( + col1 AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6028
SELECT DISTINCT ( 20 ) + CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - - COUNT( - 0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6029
SELECT - - COUNT ( - 0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6030
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-6030
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + 31 col2 FROM tab1 AS cor0
----
1375
3227
326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 61 ) * col2 col0 FROM tab2
----
1403
2440
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT MAX( ALL - - 99 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6033
SELECT MAX ( ALL - - 99 ) FROM tab0
----
99

query I rowsort
SELECT ( + + 19 ) FROM tab1
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT - col2 / CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT - col2 / CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 0 * - col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 80 * + 78 / + col1 + + col0 AND col2 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * - col1 col2 FROM tab1
----
-1269
-135
-378

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 14 FROM tab0 AS cor0 WHERE NOT + col1 + + + col0 = ( - 5 * + col1 )
----
14

query I rowsort
SELECT - col2 + col0 + + 30 * - 66 FROM tab0 AS cor0
----
-1903
-1982
-2012

query I rowsort
SELECT col1 + + col2 - + + ( + - ( + col1 ) ) * col0 FROM tab2 cor0
----
2420
5045
5150

query I rowsort
SELECT col1 + + col2 * - ( - col2 ) AS col2 FROM tab2
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT + COUNT( + + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6044
SELECT + COUNT ( + + col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col2 + - col1 + col0 * + col2 FROM tab1 cor0
----
4978
5069
6209

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT DISTINCT COUNT( * ) * + MIN( - 36 ) + - 42 FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT COUNT ( * ) * + MIN ( - 36 ) + - 42 FROM tab1 AS cor0
----
-150

query I rowsort
SELECT DISTINCT + - 7 + + col2 * + - col1 - - col0 * - col2 FROM tab1 AS cor0
----
-5317
-6247
-9391

query I rowsort
SELECT + col2 + - col1 - + 46 * - col1 AS col0 FROM tab0 cor0 WHERE + col0 > ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6050
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - CAST( + col0 AS SIGNED ) * - col2 + - + 95 + col1 )
----

skipif mysql # not compatible
query III rowsort label-6050
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - CAST ( + col0 AS INTEGER ) * - col2 + - + 95 + col1 )
----

query I rowsort
SELECT ALL - col1 + 2 AS col1 FROM tab0
----
-19
-79
1

query I rowsort
SELECT + 1 + 39 * + 96 FROM tab1 WHERE + + 90 + - + 25 + col1 + - + col1 * col0 BETWEEN - 77 / - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 = + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT + 65 - + - 7 + + + 76 + + + COUNT( * ) FROM tab2
----
151

skipif mysql # not compatible
query I rowsort label-6054
SELECT + 65 - + - 7 + + + 76 + + + COUNT ( * ) FROM tab2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT - SUM( DISTINCT - 80 ) FROM tab1, tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6055
SELECT - SUM ( DISTINCT - 80 ) FROM tab1, tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL + 3 * + COUNT( * ) AS col2 FROM tab0 WHERE NOT + + col0 + + - 15 NOT BETWEEN + - col1 - - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + 3 * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + + col0 + + - 15 NOT BETWEEN + - col1 - - col1 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6057
SELECT DISTINCT - COUNT( 88 ) - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - COUNT ( 88 ) - - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 85 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL = 23
----

query II rowsort
SELECT ALL + ( + col2 ) + + col2 * col1, + col0 AS col0 FROM tab2 AS cor0
----
1196
46
3120
64
3944
75

query I rowsort
SELECT - 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT + + ( - COUNT( * ) ) AS col2, 89 FROM tab0 AS cor0
----
-3
89

skipif mysql # not compatible
query II rowsort label-6062
SELECT + + ( - COUNT ( * ) ) AS col2, 89 FROM tab0 AS cor0
----
-3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL + SUM( + - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL + SUM ( + - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 47 = - ( + + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 47 = - ( + + col1 )
----
3

query II rowsort
SELECT + - ( 61 ), col1 FROM tab2 AS cor0
----
-61
51
-61
67
-61
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab1 cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6067
SELECT * FROM tab1 cor0 WHERE NOT + ( + - CAST( NULL AS SIGNED ) ) < ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-6067
SELECT * FROM tab1 cor0 WHERE NOT + ( + - CAST ( NULL AS INTEGER ) ) < ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT COUNT( 96 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6069
SELECT COUNT ( 96 ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT ALL 18 + + 10 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( 53 / - + col1 ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = ( - 27 ) - col1 * - 89
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + col0 IS NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + - col2 * + col1 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT - 11 + - SUM( + 75 ) FROM tab2
----
-236

skipif mysql # not compatible
query I rowsort label-6076
SELECT - 11 + - SUM ( + 75 ) FROM tab2
----
-236

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 * + 98 * - col1 * - - col1 IS NULL
----

query I rowsort
SELECT ALL col0 + - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query II rowsort
SELECT - + col2 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 36 + - + col1 + - 91 )
----

query I rowsort
SELECT DISTINCT - col1 + col1 - + + ( + col1 ) * col1 - - 82 AS col2 FROM tab1 cor0
----
-114
-2127
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab2 WHERE + + col1 BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6083
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col0 + - col0 * col2 FROM tab0
----
-720
-957
-9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col2 AS col0, ( col2 ) * - col0 + 89 col0 FROM tab2
----
1058
-969
2560
-2471
4350
-4261

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT SUM( + col0 ) + + 88 + - COUNT( * ) * + + 12 AS col1 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-6086
SELECT SUM ( + col0 ) + + 88 + - COUNT ( * ) * + + 12 AS col1 FROM tab1
----
279

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 42 + - col2 * - col1 FROM tab2 AS cor0
----
1215
3122
3928

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col0 + + 65 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6091
SELECT * FROM tab1 cor0 WHERE - CAST( ( col2 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6091
SELECT * FROM tab1 cor0 WHERE - CAST ( ( col2 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 36 >= 79
----

query II rowsort
SELECT + col0, 70 + ( + col1 ) * + - col2 FROM tab0
----
15
-3737
87
-140
97
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT DISTINCT col1 / + - CAST( NULL AS SIGNED ) - + + col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT col1 / + - CAST ( NULL AS INTEGER ) - + + col0 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL - COUNT( + 96 ) col1 FROM tab0 WHERE NOT + 67 - - + 8 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6095
SELECT ALL - COUNT ( + 96 ) col1 FROM tab0 WHERE NOT + 67 - - + 8 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 5 NOT IN ( - col2 )
----

query I rowsort
SELECT 93 * - - col2 FROM tab2 AS cor0
----
2139
3720
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL + + COUNT( + col0 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + + COUNT ( + col0 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 > NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + col0 FROM tab1 cor0
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query II rowsort label-6101
SELECT + - COUNT( * ), 67 + - + COUNT( * ) * 44 col1 FROM tab2 AS cor0
----
-3
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6101
SELECT + - COUNT ( * ), 67 + - + COUNT ( * ) * 44 col1 FROM tab2 AS cor0
----
-3
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL ( + + 68 ) AS col2 FROM tab2
----
68
68
68

query I rowsort
SELECT DISTINCT - - ( + 69 ) - - - 18 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab2 AS cor0 WHERE - 62 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 9 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + 2 AS col0 FROM tab0 cor0
----
15
2
87
2
97
2

onlyif mysql # DIV for integer division: 
query II rowsort label-6108
SELECT ALL + col1 AS col2, + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
0
21
0
81
5

skipif mysql # not compatible
query II rowsort label-6108
SELECT ALL + col1 AS col2, + col1 / + col0 AS col2 FROM tab0 AS cor0
----
1
0
21
0
81
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT COUNT( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6109
SELECT COUNT ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 93 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / 75 - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6112
SELECT + CAST( col2 AS SIGNED ) + col0 AS col2, col0 + - col2 - - + ( - col0 ) + - col2 / + 20 * col2 AS col0 FROM tab0 WHERE NOT NULL > - ( - col2 )
----

skipif mysql # not compatible
query II rowsort label-6112
SELECT + CAST ( col2 AS INTEGER ) + col0 AS col2, col0 + - col2 - - + ( - col0 ) + - col2 / + 20 * col2 AS col0 FROM tab0 WHERE NOT NULL > - ( - col2 )
----

query I rowsort
SELECT - + 36 * - col0 + + + col1 + - col0 FROM tab2 AS cor0
----
1661
2317
2692

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 > ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1 * + col2 + + + 72, + col2 FROM tab0 cor0
----
171
99
282
10
3879
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL + MAX( + col1 ) + + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + MAX ( + col1 ) + + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
100

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6118
SELECT + - COUNT( * ), - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6118
SELECT + - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 60 AND NULL
----

query I rowsort
SELECT ALL + 40 * - 37 * + col2 + col2 * + + ( - - col1 ) FROM tab0 AS cor0 WHERE - 70 * - - col0 * col0 IS NOT NULL
----
-14590
-146421
-65753

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT + ( + + MIN( 49 ) ) - + ( + COUNT( * ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6121
SELECT + ( + + MIN ( 49 ) ) - + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6122
SELECT ALL - 64 - + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - 89 * - + col1
----
-64

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL - 64 - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - 89 * - + col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT - COUNT( * ) - - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6123
SELECT - COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT 28 * + ( - col1 ) - + 15 AS col2 FROM tab2
----
-1443
-1891
-2171

query II rowsort
SELECT ALL col2 - + - col2, col2 * col1 * - + col1 AS col2 FROM tab1
----
118
-1475
136
-150212
192
-18816

query I rowsort
SELECT ALL + col2 * col0 * - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT ALL CAST( NULL AS SIGNED ) - + - 36 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL CAST ( NULL AS INTEGER ) - + - 36 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT - col2 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT - col2 > - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 80 >= NULL
----

query I rowsort
SELECT DISTINCT col2 * 29 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT DISTINCT col1 * + + col2 + - col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # DIV for integer division: 
query II rowsort label-6132
SELECT DISTINCT + col2 DIV + - col1, col1 FROM tab0 AS cor0
----
-99
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-6132
SELECT DISTINCT + col2 / + - col1, col1 FROM tab0 AS cor0
----
-99
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT - MIN( ALL - - col2 ) * - - 12 FROM tab1 AS cor0
----
-708

skipif mysql # not compatible
query I rowsort label-6133
SELECT - MIN ( ALL - - col2 ) * - - 12 FROM tab1 AS cor0
----
-708

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT - col0 = NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL + MAX( 76 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL + MAX ( 76 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
76

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - COUNT( - 9 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6137
SELECT - COUNT ( - 9 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT + col0 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + COUNT( * ) * - COUNT( * ) + + 94 + 36 AS col0 FROM tab0 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6139
SELECT + COUNT ( * ) * - COUNT ( * ) + + 94 + 36 AS col0 FROM tab0 AS cor0
----
121

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - + MIN( 72 ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6141
SELECT - + MIN ( 72 ) FROM tab0 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT DISTINCT - CAST( - 36 AS SIGNED ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - CAST ( - 36 AS INTEGER ) FROM tab1
----
36

query I rowsort
SELECT DISTINCT 84 * - col0 AS col0 FROM tab2
----
-3864
-5376
-6300

query I rowsort
SELECT + ( - + 87 ) + col1 FROM tab0
----
-6
-66
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6145
SELECT ALL COUNT( * ) / - - 56 * - + CAST( NULL AS SIGNED ) / + - SUM( 42 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL COUNT ( * ) / - - 56 * - + CAST ( NULL AS INTEGER ) / + - SUM ( 42 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT COUNT( - col1 ) + + 81 * - 45 AS col1 FROM tab1
----
-3642

skipif mysql # not compatible
query I rowsort label-6146
SELECT COUNT ( - col1 ) + + 81 * - 45 AS col1 FROM tab1
----
-3642

query I rowsort
SELECT 29 + col2 FROM tab0
----
128
39
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6148
SELECT col0 AS col1, - col1 - + CAST( NULL AS SIGNED ) + - col2 + - + 49 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6148
SELECT col0 AS col1, - col1 - + CAST ( NULL AS INTEGER ) + - col2 + - + 49 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6150
SELECT ALL - + ( - col2 ) + - - CAST( 57 AS SIGNED ), + col2 FROM tab1 AS cor0
----
116
59
125
68
153
96

skipif mysql # not compatible
query II rowsort label-6150
SELECT ALL - + ( - col2 ) + - - CAST ( 57 AS INTEGER ), + col2 FROM tab1 AS cor0
----
116
59
125
68
153
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT - - col0 + - + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT - - col0 + - + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6152
SELECT + + MIN( DISTINCT + col0 ) AS col0, - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-6152
SELECT + + MIN ( DISTINCT + col0 ) AS col0, - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
46
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0 * + 13 AS col1, 51 + - col2 AS col1 FROM tab2
----
598
28
832
11
975
-7

query I rowsort
SELECT + 64 + - 53 FROM tab1 AS cor0
----
11
11
11

query II rowsort
SELECT ALL + ( + 3 ), ( - col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
3
21
3
54
3
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - + 26 * + col0 + - col1 * + col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 46 * col0 * - + 99 FROM tab0 AS cor0
----
-396198
-441738
-68310

query I rowsort
SELECT ALL - - 30 FROM tab1 cor0
----
30
30
30

query II rowsort
SELECT 78 AS col1, - col2 FROM tab1
----
78
-59
78
-68
78
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6161
SELECT ALL - col1 * CAST( col1 AS SIGNED ) + - 68 + col0 * CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
-166
-2336
-7844

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL - col1 * CAST ( col1 AS INTEGER ) + - 68 + col0 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
-166
-2336
-7844

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6162
SELECT col1, col1 * - CAST( + - 68 AS SIGNED ) + + ( 69 ) AS col2 FROM tab0
----
1
137
21
1497
81
5577

skipif mysql # not compatible
query II rowsort label-6162
SELECT col1, col1 * - CAST ( + - 68 AS INTEGER ) + + ( 69 ) AS col2 FROM tab0
----
1
137
21
1497
81
5577

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT 28, COUNT( * ) AS col2 FROM tab0
----
28
3

skipif mysql # not compatible
query II rowsort label-6163
SELECT 28, COUNT ( * ) AS col2 FROM tab0
----
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL MIN( DISTINCT + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL MIN ( DISTINCT + + col0 ) FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-6165
SELECT DISTINCT col0 AS col0, 42 DIV - ( ( + 66 ) ) FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-6165
SELECT DISTINCT col0 AS col0, 42 / - ( ( + 66 ) ) FROM tab2
----
46
0
64
0
75
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT DISTINCT - + 21 DIV 19 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT - + 21 / 19 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 50 * - col1 * + + ( - col2 ) * ( - + col1 ) FROM tab0
----
-15418350
-220500
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT 58 DIV + col1 AS col1 FROM tab1
----
1
11
4

skipif mysql # not compatible
query I rowsort label-6168
SELECT 58 / + col1 AS col1 FROM tab1
----
1
11
4

query I rowsort
SELECT - col0 + - 98 + + ( - + 3 ) AS col0 FROM tab0
----
-116
-188
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 + - col0 col0 FROM tab2
----
-68
-86
-97

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( + ( + col0 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6172
SELECT DISTINCT CAST( + CAST( col1 AS DECIMAL ) AS SIGNED ) * - 47 * col0 AS col1 FROM tab0 cor0
----
-4559
-57105
-85869

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT CAST ( + CAST ( col1 AS REAL ) AS INTEGER ) * - 47 * col0 AS col1 FROM tab0 cor0
----
-4559
-57105
-85869

query I rowsort
SELECT DISTINCT + + col2 + - col1 + + - col1 * - + col1 - - - col1 FROM tab1 AS cor0
----
2183
264
74

query II rowsort
SELECT - 34 * 95 AS col2, + 59 FROM tab2 AS cor0
----
-3230
59
-3230
59
-3230
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND - 22 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT + COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND - 22 * + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT - ( + MAX( ALL - col1 ) ) FROM tab1 WHERE NOT ( NULL ) < - col1 + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - ( + MAX ( ALL - col1 ) ) FROM tab1 WHERE NOT ( NULL ) < - col1 + 79
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 * + + col2 col0 FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE 66 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + + 99 + ( + ( - + ( + + col0 ) ) ) / 33 * + + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6180
SELECT + col2 DIV CAST( + col1 AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-6180
SELECT + col2 / CAST ( + col1 AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
-21
-81
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = ( col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6182
SELECT ALL + + COUNT( DISTINCT + col2 ) * - 2 + + SUM( - col1 ), SUM( 40 ) AS col0 FROM tab2 AS cor0
----
-201
120

skipif mysql # not compatible
query II rowsort label-6182
SELECT ALL + + COUNT ( DISTINCT + col2 ) * - 2 + + SUM ( - col1 ), SUM ( 40 ) AS col0 FROM tab2 AS cor0
----
-201
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6183
SELECT col2 * - CAST( NULL AS DECIMAL ) * + + col1 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT col2 * - CAST ( NULL AS REAL ) * + + col1 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + + 90 * + col1 * + col0 - - col1 FROM tab0 AS cor0
----
109431
164451
8731

query II rowsort
SELECT DISTINCT + col2 AS col1, - 67 AS col1 FROM tab0 AS cor0
----
10
-67
47
-67
99
-67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, col2 + col2 )
----

query II rowsort
SELECT DISTINCT - 74 AS col0, 12 AS col2 FROM tab2 AS cor0
----
-74
12

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col2 / - + 38 / col2, col0 * + + col1 / + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 + 10 * + col0 / 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT + SUM( ALL + 64 ) AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT + SUM ( ALL + 64 ) AS col0 FROM tab1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL + COUNT( * ) col0 FROM tab0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6192
SELECT ALL + COUNT ( * ) col0 FROM tab0 WHERE + col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col1 + + col2 FROM tab0 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT - ( 21 ) * - col2 AS col1 FROM tab2
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT + MIN( - + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6195
SELECT + MIN ( - + col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT + MIN( DISTINCT - 81 ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-6196
SELECT + MIN ( DISTINCT - 81 ) AS col2 FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT - 57 * - - MIN( - col2 ) + + + 79 AS col2 FROM tab0 AS cor0
----
5722

skipif mysql # not compatible
query I rowsort label-6197
SELECT - 57 * - - MIN ( - col2 ) + + + 79 AS col2 FROM tab0 AS cor0
----
5722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT + + ( CAST( + + ( + 54 ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-6198
SELECT + + ( CAST ( + + ( + 54 ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
54
54
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6200
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col2 * + col2 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6200
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col2 * + col2 <= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT - SUM( ALL + - 8 ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - SUM ( ALL + - 8 ) AS col0 FROM tab1
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query II rowsort
SELECT ALL + ( col1 ) * + col2 AS col0, - 28 - + 35 FROM tab2
----
1173
-63
3080
-63
3886
-63

query I rowsort
SELECT ALL - col0 + + col1 AS col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-6205
SELECT - 88 AS col2, - col1 DIV + - col2 AS col0 FROM tab1 AS cor0
----
-88
0
-88
0
-88
0

skipif mysql # not compatible
query II rowsort label-6205
SELECT - 88 AS col2, - col1 / + - col2 AS col0 FROM tab1 AS cor0
----
-88
0
-88
0
-88
0

query II rowsort
SELECT DISTINCT - 81, + col0 AS col1 FROM tab1 AS cor0
----
-81
51
-81
85
-81
91

query I rowsort
SELECT DISTINCT - 5 + - 34 - - + 70 FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6208
SELECT + COUNT( - col1 ) DIV SUM( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6208
SELECT + COUNT ( - col1 ) / SUM ( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 15, - col0 AS col2 FROM tab1 AS cor0
----
-15
-51
-15
-85
-15
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * - + col0 * - col0 col0 FROM tab2 AS cor0 WHERE ( col2 * + 7 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <= + ( ( - - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <= + ( ( - - col2 ) )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6213
SELECT ( - 92 ) - + CAST( - 7 AS DECIMAL ) FROM tab2 WHERE - col1 IN ( 58 / - col2 + + col1 + - - 82, 69 + - col2, + col1 )
----

skipif mysql # not compatible
query I rowsort label-6213
SELECT ( - 92 ) - + CAST ( - 7 AS REAL ) FROM tab2 WHERE - col1 IN ( 58 / - col2 + + col1 + - - 82, 69 + - col2, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + 66 + COUNT( * ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + 66 + COUNT ( * ) FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + MAX( - + col1 ) + - 68 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-6215
SELECT + MAX ( - + col1 ) + - 68 FROM tab0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6216
SELECT - SUM( DISTINCT + CAST( - col0 AS SIGNED ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6216
SELECT - SUM ( DISTINCT + CAST ( - col0 AS INTEGER ) ) FROM tab2
----
185

query II rowsort
SELECT col0 * - 29 AS col1, 9 + + - 32 * col1 + - 80 FROM tab0
----
-2523
-743
-2813
-103
-435
-2663

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - 91 * - SUM( col1 ) col2 FROM tab1
----
6006

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6218
SELECT - 91 * - SUM ( col1 ) col2 FROM tab1
----
6006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6219
SELECT ( - + 59 ) AS col0, - 41 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-59
NULL
-59
NULL
-59
NULL

skipif mysql # not compatible
query II rowsort label-6219
SELECT ( - + 59 ) AS col0, - 41 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-59
NULL
-59
NULL
-59
NULL

query I rowsort
SELECT ALL + col1 + - 24 AS col2 FROM tab2 AS cor0
----
27
43
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6221
SELECT - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col0 AS col1, + 2 * + col0 AS col2 FROM tab1 WHERE + 20 + - col0 IS NOT NULL
----
51
102
85
170
91
182

query I rowsort
SELECT + 31 + col0 AS col0 FROM tab1
----
116
122
82

query I rowsort
SELECT ALL - - 10 - col1 FROM tab0 WHERE NOT 18 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT - COUNT( * ) * ( + - ( - 8 ) ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6225
SELECT - COUNT ( * ) * ( + - ( - 8 ) ) FROM tab2 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + SUM( + 66 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + SUM ( + 66 ) FROM tab1
----
198

query II rowsort
SELECT + ( + - col2 ) AS col2, + col1 * - + 61 FROM tab0
----
-10
-1281
-47
-4941
-99
-61

query II rowsort
SELECT DISTINCT - 53 AS col0, col0 FROM tab2
----
-53
46
-53
64
-53
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL - MIN( DISTINCT - ( - col1 ) ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6231
SELECT ALL - MIN ( DISTINCT - ( - col1 ) ) col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT DISTINCT SUM( ALL - ( + col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT SUM ( ALL - ( + col1 ) ) FROM tab2
----
-195

query II rowsort
SELECT ALL col1, 80 - 30 - + 77 - - col1 AS col0 FROM tab0 AS cor0
----
1
-26
21
-6
81
54

query II rowsort
SELECT DISTINCT - col1 AS col0, - 35 FROM tab2 AS cor0
----
-51
-35
-67
-35
-77
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT - MIN( col0 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6235
SELECT - MIN ( col0 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT ALL col1 * - - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( + col2 + - 61 * - col0 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6237
SELECT + + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( + col2 + - 61 * - col0 IS NOT NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6238
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + + col0 * 1 - + ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6238
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + + col0 * 1 - + ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6239
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 74 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6241
SELECT ALL + + col0 + ( + - 29 ) DIV - col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + + col0 + ( + - 29 ) / - col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ( - 62 ) FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 35 + - 66 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 35 + - 66 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6244
SELECT ALL - COUNT( * ) AS col0, - 0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6244
SELECT ALL - COUNT ( * ) AS col0, - 0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 - - - 1 col2 FROM tab2
----
-34
-34
-34

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL AND + col1 < NULL
----

query I rowsort
SELECT ALL 21 - + col2 AS col2 FROM tab0
----
-26
-78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT DISTINCT - MAX( - col1 ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6248
SELECT DISTINCT - MAX ( - col1 ) col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT - 84 * + + col2 FROM tab0 AS cor0
----
-3948
-8316
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + 31 col2 FROM tab0 AS cor0
----
-21
16
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL + COUNT( - col2 ) + - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + COUNT ( - col2 ) + - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6252
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL + 21 - col2 + col0 * + col0 - col1 FROM tab2
----
2063
4000
5521

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT + ( + COUNT( * ) ) + MAX( DISTINCT + - 76 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6254
SELECT DISTINCT + ( + COUNT ( * ) ) + MAX ( DISTINCT + - 76 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT SUM( + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT 31 * COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6256
SELECT 31 * COUNT ( * ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL 25 * - 61 * - col1 AS col1 FROM tab1
----
21350
71675
7625

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT + 16 * ( COUNT( * ) ) AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT + 16 * ( COUNT ( * ) ) AS col0 FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT DISTINCT - 12 * - 32 FROM tab0 WHERE - + ( - col2 ) * + - CAST( NULL AS SIGNED ) IS NULL
----
384

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - 12 * - 32 FROM tab0 WHERE - + ( - col2 ) * + - CAST ( NULL AS INTEGER ) IS NULL
----
384

query II rowsort
SELECT col2, - 70 FROM tab1 AS cor0
----
59
-70
68
-70
96
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL + + MIN( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + + MIN ( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT - col2 AS col0, - col0 AS col1 FROM tab1 cor0
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 AS col0 FROM tab1 cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6264
SELECT ALL - - ( - 75 ) DIV + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL - - ( - 75 ) / + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + col0 col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL col2 + - col1 * + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT - SUM( - col1 ) + 79 + MIN( DISTINCT col2 ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-6267
SELECT - SUM ( - col1 ) + 79 + MIN ( DISTINCT col2 ) FROM tab0
----
192

query I rowsort
SELECT + + 51 + col1 * - col1 AS col2 FROM tab2 cor0
----
-2550
-4438
-5878

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 BETWEEN col1 * + 29 - 81 + - col0 * + 82 * - - col2 * + + col0 - + + col0 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 31 * + col1 IS NULL
----

query I rowsort
SELECT 47 * col2 AS col2 FROM tab0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT + COUNT( ALL + 8 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6272
SELECT + COUNT ( ALL + 8 ) col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col2 - + col2 + - + col1 AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6274
SELECT ALL + CAST( ( + + COUNT( DISTINCT + col2 ) ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + CAST ( ( + + COUNT ( DISTINCT + col2 ) ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE + 36 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - - 79 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL + - MAX( ALL 29 ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL + - MAX ( ALL 29 ) FROM tab0 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 86 col1 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6279
SELECT ALL + COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6279
SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab0
----
3
-3

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6281
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL col1 * + + 77 AS col2 FROM tab2 AS cor0
----
3927
5159
5929

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT DISTINCT - + 69 AS col2, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-69
-3

skipif mysql # not compatible
query II rowsort label-6283
SELECT DISTINCT - + 69 AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-69
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 43 BETWEEN - col1 AND NULL
----
51
14
96
85
5
59

query I rowsort
SELECT - col2 * + + 78 AS col1 FROM tab0 cor0
----
-3666
-7722
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT DISTINCT + + col2 DIV - - 77 AS col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + + col2 / - - 77 AS col0 FROM tab1 cor0
----
0
1

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT ALL 27 * 10 AS col2 FROM tab2 AS cor0
----
270
270
270

query II rowsort
SELECT DISTINCT - - ( - ( ( + + 62 ) ) ) * + col0, - 41 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN col0 AND - 96
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + - - col2 - - col1 * + 82 * col1 <> col1
----

query I rowsort
SELECT - 23 * - col0 AS col2 FROM tab2
----
1058
1472
1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col1 * - + 97 * + + col0 AS col0 FROM tab2
----
-227562
-478016
-487425

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL + 55 * COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + 55 * COUNT ( * ) FROM tab0
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT ALL col2 DIV - - 50 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL col2 / - - 50 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT + col2 * - - ( col2 ) + + col2 FROM tab0 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) + - col0 + + ( 10 ) + - 59 >= col2
----

skipif mysql # not compatible
query I rowsort label-6297
SELECT + col2 * - - ( col2 ) + + col2 FROM tab0 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) + - col0 + + ( 10 ) + - 59 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT SUM( - 42 ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT SUM ( - 42 ) FROM tab2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT 29 + + MAX( ALL col2 ) AS col0 FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-6299
SELECT 29 + + MAX ( ALL col2 ) AS col0 FROM tab1
----
125

query I rowsort
SELECT 88 + col1 FROM tab2
----
139
155
165

query III rowsort
SELECT * FROM tab1 WHERE - + col2 - + col2 BETWEEN + - col1 AND - 2 * col2 + - 66 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT DISTINCT 94 * + - COUNT( * ) AS col2 FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT 94 * + - COUNT ( * ) AS col2 FROM tab2
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL - MAX( DISTINCT - + 43 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - MAX ( DISTINCT - + 43 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT + MAX( - col1 ) AS col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6304
SELECT + MAX ( - col1 ) AS col0 FROM tab1 cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - col0 ) * col1 - - + col1 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col2 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT + col1 - + col0 * - col2 * - col0 * + - 19 + CAST( NULL AS SIGNED ) * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT + col1 - + col0 * - col2 * - col0 * + - 19 + CAST ( NULL AS INTEGER ) * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 39 * + 8 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 39 * + 8 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 - + col1 * + 31 AS col1 FROM tab1
----
-1389
-338
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL - MAX( - 79 ) FROM tab0, tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL - MAX ( - 79 ) FROM tab0, tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT - COUNT( ALL - + 17 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - COUNT ( ALL - + 17 ) AS col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6313
SELECT col1 + - - col0 * - + 78 + + col0 - + - col2 + + 33 DIV col2 DIV - 30 * + 3, + col1 FROM tab2
----
-3468
51
-4811
77
-5650
67

skipif mysql # not compatible
query II rowsort label-6313
SELECT col1 + - - col0 * - + 78 + + col0 - + - col2 + + 33 / col2 / - 30 * + 3, + col1 FROM tab2
----
-3468
51
-4811
77
-5650
67

query I rowsort
SELECT DISTINCT + 28 - - 43 AS col0 FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT + 76 * SUM( ALL - + 83 ) AS col1 FROM tab0 AS cor0
----
-18924

skipif mysql # not compatible
query I rowsort label-6315
SELECT + 76 * SUM ( ALL - + 83 ) AS col1 FROM tab0 AS cor0
----
-18924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 AS col2, + 29 col0 FROM tab1 AS cor0
----
97
29
97
29
97
29

query I rowsort
SELECT DISTINCT - + col0 * + 77 FROM tab1 AS cor0
----
-3927
-6545
-7007

query I rowsort
SELECT ALL + 12 * col1 FROM tab1
----
168
564
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - 17 col1 FROM tab2
----
-1088
-1275
-782

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 49 = 68
----

query I rowsort
SELECT - col1 * + col0 + + 20 AS col2 FROM tab2 AS cor0
----
-2326
-4908
-5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 38 col1 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT - 18 * + col0 * CAST( NULL AS SIGNED ) * + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT - 18 * + col0 * CAST ( NULL AS INTEGER ) * + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ALL + ( - + COUNT( * ) ) * + ( - 95 ) AS col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL + ( - + COUNT ( * ) ) * + ( - 95 ) AS col2 FROM tab0 AS cor0
----
285

query II rowsort
SELECT + col0, - ( + 47 ) FROM tab2
----
46
-47
64
-47
75
-47

query I rowsort
SELECT ( - ( col2 ) ) + ( - 0 ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT 55 + - col2 AS col2 FROM tab2
----
-3
15
32

query I rowsort
SELECT + + 61 FROM tab0 WHERE NOT - col1 + + 0 IS NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ALL + MIN( - 56 ) AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL + MIN ( - 56 ) AS col2 FROM tab2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col2, + col2 + + + 57 - - + 57 AS col1 FROM tab2 AS cor0
----
51
137
67
172
77
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6332
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( ( col1 ) ) >= - + col0 + + 87 + - col2 * - col1 + - + col0
----

skipif mysql # not compatible
query I rowsort label-6332
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( ( col1 ) ) >= - + col0 + + 87 + - col2 * - col1 + - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col2 FROM tab2 AS cor0 WHERE ( NULL ) >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT + + col1 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT + + col1 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT ALL - + 62 DIV - + col2 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL - + 62 / - + col2 AS col2 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6336
SELECT ( + + col0 ) AS col0, - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6336
SELECT ( + + col0 ) AS col0, - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL - COUNT( + 13 ) * 59 FROM tab2 WHERE NOT ( NOT - col0 * + col1 IS NOT NULL )
----
-177

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - COUNT ( + 13 ) * 59 FROM tab2 WHERE NOT ( NOT - col0 * + col1 IS NOT NULL )
----
-177

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 83 NOT IN ( + col0 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT - SUM( ALL - col2 ) + 84 AS col2 FROM tab1 AS cor0
----
307

skipif mysql # not compatible
query I rowsort label-6340
SELECT - SUM ( ALL - col2 ) + 84 AS col2 FROM tab1 AS cor0
----
307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + 95 + - - 12 AS col0 FROM tab2
----
107
107
107

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - col1 / - col1, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 36 col1, - ( + 62 ) AS col1 FROM tab1 WHERE + col1 * 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
3

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE - col1 IN ( col0, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6347
SELECT 80 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
80
NULL
80
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-6347
SELECT 80 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
80
NULL
80
NULL
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT SUM( DISTINCT + 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-6348
SELECT SUM ( DISTINCT + 57 ) FROM tab1
----
57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 85 / - col2 * + + col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL - COUNT( * ) * - - ( 72 ) col2 FROM tab2
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6350
SELECT ALL - COUNT ( * ) * - - ( 72 ) col2 FROM tab2
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT - COUNT( ( + - col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6351
SELECT - COUNT ( ( + - col2 ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 85 * 84 AS col0 FROM tab2
----
-7140

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + - + 25 BETWEEN - - col2 AND col1
----

query II rowsort
SELECT ALL col2 AS col1, + col0 + - 26 * + ( - + col0 ) * + 12 FROM tab1
----
59
26605
68
28483
96
15963

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT + + col1 DIV - 24 AS col0 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6355
SELECT + + col1 / - 24 AS col0 FROM tab0 cor0
----
-3
0
0

query I rowsort
SELECT + + col2 - col1 FROM tab2 WHERE NOT + - 3 IS NULL
----
-28
-37
-9

query II rowsort
SELECT + col1 AS col0, col1 + - 46 AS col1 FROM tab2
----
51
5
67
21
77
31

query II rowsort
SELECT DISTINCT 18 AS col1, 26 - - col2 + - col0 + + col2 FROM tab0
----
18
-41
18
105
18
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT + SUM( + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6359
SELECT + SUM ( + col2 ) AS col2 FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, - 39 col2 FROM tab2
----
-23
-39
-40
-39
-58
-39

query I rowsort
SELECT ALL 6 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 82 * col2 FROM tab0 AS cor0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT + - ( + + COUNT( col2 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6363
SELECT + - ( + + COUNT ( col2 ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL + + MAX( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL + + MAX ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col2 FROM tab2 AS cor0 WHERE NOT - 3 >= - - col1
----
63
63
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT DISTINCT + COUNT( * ) * + ( - COUNT( * ) ) + + CAST( AVG ( DISTINCT ( col1 ) ) AS SIGNED ) AS col0 FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT + COUNT ( * ) * + ( - COUNT ( * ) ) + + CAST ( AVG ( DISTINCT ( col1 ) ) AS INTEGER ) AS col0 FROM tab1 cor0
----
13

query I rowsort
SELECT ALL + col2 * + ( + + 9 ) AS col1 FROM tab0 AS cor0
----
423
891
90

query I rowsort
SELECT + 8 * - col0 * col0 AS col0 FROM tab2
----
-16928
-32768
-45000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6369
SELECT DISTINCT - 79 DIV - COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT - 79 / - COUNT ( * ) FROM tab2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6370
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col1 FROM tab2
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT MAX( DISTINCT + ( - - col2 ) ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT MAX ( DISTINCT + ( - - col2 ) ) AS col1 FROM tab1
----
96

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL MIN( DISTINCT + col2 ) + - ( - 21 ) AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL MIN ( DISTINCT + col2 ) + - ( - 21 ) AS col1 FROM tab0 AS cor0
----
31

query I rowsort
SELECT + 17 + - 38 + ( - 81 ) * + - col1 + - - 60 FROM tab1 AS cor0
----
1173
3846
444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 + 35 * - col1 * - + col2 * col0 col1 FROM tab0 AS cor0
----
1998771
336203
639558

query I rowsort
SELECT ALL col1 + ( + - 49 ) FROM tab2
----
18
2
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT - col1 - + - CAST( 88 AS SIGNED ) + + col1 AS col0 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT - col1 - + - CAST ( 88 AS INTEGER ) + + col1 AS col0 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6380
SELECT - COUNT( * ) - - MIN( DISTINCT - + col0 ) col2, 89 FROM tab1 AS cor0
----
-94
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6380
SELECT - COUNT ( * ) - - MIN ( DISTINCT - + col0 ) col2, 89 FROM tab1 AS cor0
----
-94
89

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT - col2 IS NULL )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6383
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - ( + COUNT( * ) ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-6383
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - ( + COUNT ( * ) ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6
3

query I rowsort
SELECT 38 - col2 AS col2 FROM tab1 AS cor0
----
-21
-30
-58

query I rowsort
SELECT DISTINCT 59 * 42 AS col2 FROM tab2 AS cor0
----
2478

query I rowsort
SELECT DISTINCT + ( + col0 ) + + + col1 * + - col0 - - 14 AS col0 FROM tab1 AS cor0
----
-326
-4172
-649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT + + CAST( + col1 AS SIGNED ) - - 69 + + - col1 * + col2 FROM tab1 cor0
----
-1261
-221
-3080

skipif mysql # not compatible
query I rowsort label-6387
SELECT + + CAST ( + col1 AS INTEGER ) - - 69 + + - col1 * + col2 FROM tab1 cor0
----
-1261
-221
-3080

query I rowsort
SELECT DISTINCT + 12 + + col2 * + - col0 * + 97 AS col0 FROM tab1 AS cor0
----
-474900
-486443
-600224

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + 10 FROM tab1
----
510
850
910

query II rowsort
SELECT + 77, col2 AS col2 FROM tab2 AS cor0
----
77
23
77
40
77
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 IS NULL OR - col2 IS NULL
----

query II rowsort
SELECT - - ( - - col0 ) + - + 33 AS col0, + 99 FROM tab1 AS cor0
----
18
99
52
99
58
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 36
----

query I rowsort
SELECT ALL 30 * col0 + 65 - - col1 FROM tab2
----
1496
2062
2382

onlyif mysql # aggregate syntax: 
query II rowsort label-6396
SELECT DISTINCT + 81, MAX( ALL + - col0 ) * - ( 76 ) + + COUNT( * ) * 97 AS col0 FROM tab1
----
81
4167

skipif mysql # not compatible
query II rowsort label-6396
SELECT DISTINCT + 81, MAX ( ALL + - col0 ) * - ( 76 ) + + COUNT ( * ) * 97 AS col0 FROM tab1
----
81
4167

query I rowsort
SELECT - ( col1 ) * - + col2 - - col1 + - col0 FROM tab0
----
144
3
3873

query I rowsort
SELECT ALL ( 54 ) AS col2 FROM tab0
----
54
54
54

query I rowsort
SELECT DISTINCT + col1 + - + col1 + - + 70 FROM tab0
----
-70

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( col1 ) + col2 ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - SUM( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6401
SELECT - SUM ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT col1 col0 FROM tab2 AS cor0 WHERE col2 * + 31 / 3 / + ( + + CAST( NULL AS SIGNED ) ) IS NULL
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6402
SELECT col1 col0 FROM tab2 AS cor0 WHERE col2 * + 31 / 3 / + ( + + CAST ( NULL AS INTEGER ) ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE ( NOT + - col1 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 75 AND - col1
----

query I rowsort
SELECT + ( + + col1 ) + col0 + + 92 AS col0 FROM tab2
----
189
233
234

query I rowsort
SELECT ALL - col1 + - 11 * - col2 + - col1 * + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-121
-3371
989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6408
SELECT DISTINCT + COUNT( * ) DIV 29 FROM tab0 AS cor0 WHERE NOT + 98 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT + COUNT ( * ) / 29 FROM tab0 AS cor0 WHERE NOT + 98 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT ALL + col2 DIV + + col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6409
SELECT ALL + col2 / + + col1 col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT + 64 * - 41 AS col2 FROM tab1
----
-2624
-2624
-2624

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - SUM( ALL - 60 ) AS col1 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-6412
SELECT - SUM ( ALL - 60 ) AS col1 FROM tab2
----
180

query I rowsort
SELECT ALL - 90 * col1 AS col0 FROM tab1
----
-1260
-4230
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NULL <> - 37
----
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NULL <> - 37
----
0

query I rowsort
SELECT DISTINCT + col0 + + 5 * + col0 AS col0 FROM tab2
----
276
384
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT ALL CAST( 86 AS SIGNED ) + col2 AS col1 FROM tab0
----
133
185
96

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL CAST ( 86 AS INTEGER ) + col2 AS col1 FROM tab0
----
133
185
96

query I rowsort
SELECT DISTINCT + 5 - col2 * + col1 AS col0 FROM tab1
----
-1339
-290
-3191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE + 40 BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE + 40 BETWEEN col1 AND NULL
----

query I rowsort
SELECT col1 - 97 AS col2 FROM tab2
----
-20
-30
-46

query I rowsort
SELECT col2 * + 51 AS col1 FROM tab1
----
3009
3468
4896

query I rowsort
SELECT ALL col2 + - 83 AS col2 FROM tab2
----
-25
-43
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT ( + col0 ) + ( 89 ) DIV 95 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6422
SELECT ( + col0 ) + ( 89 ) / 95 AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT 73 + COUNT( * ) AS col0 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-6423
SELECT 73 + COUNT ( * ) AS col0 FROM tab2
----
76

query I rowsort
SELECT 79 + col0 AS col1 FROM tab1
----
130
164
170

query I rowsort
SELECT 32 FROM tab2 WHERE 42 * - col0 + + col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 8 ) >= col0 + col2
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / col0 < + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6429
SELECT DISTINCT - 69 * COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND ( CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT - 69 * COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND ( CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 * - col2 col2 FROM tab1
----
3599
4148
5856

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 88 * 70 BETWEEN ( NULL ) AND + col1 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT - 79 * COUNT( * ) FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - 79 * COUNT ( * ) FROM tab2
----
-237

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + col1 NOT IN ( - col0 / col1 )
----

query I rowsort
SELECT + col1 * col2 + col2 / col2 FROM tab0 WHERE NOT NULL NOT IN ( 10 * 55 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + col1 * - ( col1 )
----

query I rowsort
SELECT ALL col0 * 16 FROM tab0
----
1392
1552
240

query I rowsort
SELECT ALL - 91 FROM tab2 WHERE NOT - col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 78 + 45 * 38 col2 FROM tab1
----
5688
8340
8808

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT + COUNT( * ) * 57 AS col2 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-6441
SELECT + COUNT ( * ) * 57 AS col2 FROM tab2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL - COUNT( * ) + COUNT( * ) * 41 AS col2 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - COUNT ( * ) + COUNT ( * ) * 41 AS col2 FROM tab1
----
120

query III rowsort
SELECT * FROM tab0 WHERE NOT 3 / + col1 IS NOT NULL
----

query I rowsort
SELECT 13 * + col2 AS col0 FROM tab2
----
299
520
754

query I rowsort
SELECT 81 * + 19 FROM tab0
----
1539
1539
1539

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 * col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * col2 - - 21 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + + col0 col1 FROM tab1 cor0
----
127
133
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6449
SELECT DISTINCT 31 AS col1 FROM tab2 AS cor0 WHERE ( 14 / CAST( NULL AS DECIMAL ) + + 8 ) IS NULL
----
31

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT 31 AS col1 FROM tab2 AS cor0 WHERE ( 14 / CAST ( NULL AS REAL ) + + 8 ) IS NULL
----
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 9 + + col2 FROM tab2 AS cor0
----
32
49
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT DISTINCT - col2 DIV + 51 - col1 FROM tab0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT - col2 / + 51 - col1 FROM tab0
----
-2
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL COUNT( DISTINCT col2 ) * + COUNT( * ) - - 89 AS col1 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL COUNT ( DISTINCT col2 ) * + COUNT ( * ) - - 89 AS col1 FROM tab2
----
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col2 * 82 )
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + col2 <= + col2 * - ( - 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT MAX( ( + col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6456
SELECT MAX ( ( + col0 ) ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 6 + ( col2 ) * 55 )
----

query I rowsort
SELECT 20 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6459
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6459
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT MIN( ALL + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6461
SELECT MIN ( ALL + col2 ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT - - ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6463
SELECT - - ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + col2 * 85 AS col2 FROM tab1 AS cor0
----
-5015
-5780
-8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT DISTINCT - ( - COUNT( + 53 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT - ( - COUNT ( + 53 ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN col0 - 90 AND + col2
----
51
14
96

query I rowsort
SELECT ALL col2 * 98 FROM tab0
----
4606
9702
980

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL - COUNT( * ) * - ( - 74 ) FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - COUNT ( * ) * - ( - 74 ) FROM tab0
----
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 33 * 84 col1 FROM tab0
----
130284
274428
27720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT ALL COUNT( * ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL COUNT ( * ) / + COUNT ( * ) FROM tab1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6472
SELECT + CAST( NULL AS DECIMAL ) * 33 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT + CAST ( NULL AS REAL ) * 33 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - COUNT( * ) * + + 42 AS col0 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-6473
SELECT - COUNT ( * ) * + + 42 AS col0 FROM tab1
----
-126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2 + - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT + COUNT( * ) * - 3 FROM tab2 WHERE NOT ( NOT 38 * - col2 NOT BETWEEN col2 * 49 + + col1 AND NULL )
----
-9

skipif mysql # not compatible
query I rowsort label-6475
SELECT + COUNT ( * ) * - 3 FROM tab2 WHERE NOT ( NOT 38 * - col2 NOT BETWEEN col2 * 49 + + col1 AND NULL )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL COUNT( + col1 ) AS col0 FROM tab2 WHERE NOT + 51 * + 3 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL COUNT ( + col1 ) AS col0 FROM tab2 WHERE NOT + 51 * + 3 IS NULL
----
3

query I rowsort
SELECT + 47 * - 74 FROM tab2
----
-3478
-3478
-3478

query I rowsort
SELECT - 13 * - col2 FROM tab0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL - ( - COUNT( * ) ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - ( - COUNT ( * ) ) FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT 87 * + col2 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
4042
8514
860

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * col2 IN ( col1 - 43 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT + 38 + + COUNT( + 59 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6482
SELECT + 38 + + COUNT ( + 59 ) FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6483
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6483
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 + + 70 + - ( + col0 ) + - 48 FROM tab1 cor0
----
-116
-43
-68

query I rowsort
SELECT DISTINCT col0 + + 63 AS col0 FROM tab0 AS cor0
----
150
160
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / ( col1 ) + - ( + 86 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + + ( + COUNT( * ) ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6487
SELECT + + ( + COUNT ( * ) ) + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - col0 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL - 74 + + - 64 * - 53 + + 89 * COUNT( * ) FROM tab2 AS cor0
----
3585

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - 74 + + - 64 * - 53 + + 89 * COUNT ( * ) FROM tab2 AS cor0
----
3585

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL > col0 * ( - 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT ALL 82 * + col2 - + CAST( - col2 AS SIGNED ) FROM tab1
----
4897
5644
7968

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL 82 * + col2 - + CAST ( - col2 AS INTEGER ) FROM tab1
----
4897
5644
7968

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * 26 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6494
SELECT ALL CAST( NULL AS DECIMAL ) + 25 / + - 4 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL CAST ( NULL AS REAL ) + 25 / + - 4 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - + ( + 67 ) - + col1 + - 42 AS col1 FROM tab2
----
1448
2561
3777

query I rowsort
SELECT + - 3 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT DISTINCT col2 * + col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT col2 * + col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 - 51 * + col0 + 83 ) NOT IN ( ( 1 ) * 50 + 96 * + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT ALL COUNT( ALL CAST( NULL AS SIGNED ) ) * 68 + 19 AS col0 FROM tab2 AS cor0 WHERE NOT + 70 >= + ( - - 85 )
----
19

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 68 + 19 AS col0 FROM tab2 AS cor0 WHERE NOT + 70 >= + ( - - 85 )
----
19

query I rowsort
SELECT - col1 - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-210
-2256
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6502
SELECT ALL 7 DIV + COUNT( * ) + COUNT( * ) + - - SUM( 33 ) - - 53 FROM tab0 cor0
----
157

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL 7 / + COUNT ( * ) + COUNT ( * ) + - - SUM ( 33 ) - - 53 FROM tab0 cor0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT col1 DIV col1 + - col1 AS col2 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-6504
SELECT col1 / col1 + - col1 AS col2 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6505
SELECT - + 78 + + CAST( 34 - col2 AS SIGNED ) FROM tab1 WHERE - CAST( NULL AS SIGNED ) < + + 14
----

skipif mysql # not compatible
query I rowsort label-6505
SELECT - + 78 + + CAST ( 34 - col2 AS INTEGER ) FROM tab1 WHERE - CAST ( NULL AS INTEGER ) < + + 14
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT ALL + COUNT( * ) + + - SUM( DISTINCT + + CAST( - 76 AS SIGNED ) ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + COUNT ( * ) + + - SUM ( DISTINCT + + CAST ( - 76 AS INTEGER ) ) AS col0 FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - SUM( DISTINCT + 43 ) AS col0 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-6507
SELECT - SUM ( DISTINCT + 43 ) AS col0 FROM tab1
----
-43

query II rowsort
SELECT - col0 AS col2, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6509
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col0 * + 3 FROM tab2 cor0
----
138
192
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 18 col1 FROM tab2
----
-1044
-414
-720

query II rowsort
SELECT 14, col2 FROM tab2
----
14
23
14
40
14
58

query II rowsort
SELECT col2 AS col1, + 30 AS col0 FROM tab0
----
10
30
47
30
99
30

query I rowsort
SELECT - col2 * - col2 * + + col0 AS col0 FROM tab1
----
295885
420784
470016

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT DISTINCT 3 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT 3 / + col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT + SUM( ALL + col0 ) + + COUNT( * ) * 99 AS col0 FROM tab2 WHERE NOT ( + 88 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT + SUM ( ALL + col0 ) + + COUNT ( * ) * 99 AS col0 FROM tab2 WHERE NOT ( + 88 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab2 cor0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT + COUNT( * ) AS col0, + 71 FROM tab2 AS cor0
----
3
71

skipif mysql # not compatible
query II rowsort label-6519
SELECT + COUNT ( * ) AS col0, + 71 FROM tab2 AS cor0
----
3
71

query III rowsort
SELECT * FROM tab2 WHERE + col0 / - col0 BETWEEN - - col1 AND - + 52
----

query I rowsort
SELECT + col2 * col0 + + + ( + 60 ) * + + col2 AS col1 FROM tab2
----
2438
4960
7830

query I rowsort
SELECT - 35 * + 8 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9636bc2db4914c424fc177656e2b0548

query I rowsort
SELECT ALL col1 * + 82 * + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-213305
-368156
-486218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6524
SELECT - + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6524
SELECT - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6525
SELECT CAST( 29 AS SIGNED ) AS col2, - COUNT( * ) AS col2 FROM tab1 cor0
----
29
-3

skipif mysql # not compatible
query II rowsort label-6525
SELECT CAST ( 29 AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab1 cor0
----
29
-3

query I rowsort
SELECT DISTINCT - 28 * - 7 / + 15 AS col1 FROM tab1 AS cor0 WHERE NULL <= 70 + - col2 * + col0
----

query II rowsort
SELECT DISTINCT + - ( - 7 ), + col1 FROM tab1 AS cor0
----
7
14
7
47
7
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6528
SELECT ALL - - SUM( + CAST( NULL AS SIGNED ) ) * COUNT( 28 ) - - MAX( DISTINCT - col0 + + col2 ) FROM tab0 AS cor0 WHERE col1 * + col2 NOT BETWEEN NULL AND + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL - - SUM ( + CAST ( NULL AS INTEGER ) ) * COUNT ( 28 ) - - MAX ( DISTINCT - col0 + + col2 ) FROM tab0 AS cor0 WHERE col1 * + col2 NOT BETWEEN NULL AND + 24
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + + col2 col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT - col2 * + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - - 21 AS col2 FROM tab2
----
72
88
98

query II rowsort
SELECT - 55, col2 * - + col2 AS col1 FROM tab1 AS cor0
----
-55
-3481
-55
-4624
-55
-9216

query II rowsort
SELECT + 4 AS col1, 11 AS col2 FROM tab0, tab0 AS cor0
----
18 values hashing to f7eb476e4cce015c5a594410d18d935e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 47 * - col0 col1 FROM tab1 AS cor0
----
230112
235705
290836

query I rowsort
SELECT 76 * - ( - + ( - - col1 ) ) FROM tab2 AS cor0
----
3876
5092
5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT DISTINCT COUNT( DISTINCT - - CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT COUNT ( DISTINCT - - CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT 51 + ( + col2 ) / + 29 IN ( 30 )
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT - 68 * - - col1 * + col1 + - 2 + + 98 + 98 DIV 77 * 32 FROM tab0 AS cor0
----
-29860
-446020
60

skipif mysql # not compatible
query I rowsort label-6538
SELECT - 68 * - - col1 * + col1 + - 2 + + 98 + 98 / 77 * 32 FROM tab0 AS cor0
----
-29860
-446020
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - - col1 - + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL - 13 * - - ( + - COUNT( * ) ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - 13 * - - ( + - COUNT ( * ) ) AS col0 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL - COUNT( + 98 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - COUNT ( + 98 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL + col0 + + 16 + + col1 AS col0 FROM tab0
----
112
114
124

onlyif mysql # aggregate syntax: 
query II rowsort label-6543
SELECT - + 78 col2, COUNT( ALL - - 74 ) FROM tab0 AS cor0
----
-78
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6543
SELECT - + 78 col2, COUNT ( ALL - - 74 ) FROM tab0 AS cor0
----
-78
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6544
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0 + 71, - CAST( NULL AS DECIMAL ), - + 63 + - 2 * - col2 * + 4 )
----

skipif mysql # not compatible
query III rowsort label-6544
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0 + 71, - CAST ( NULL AS REAL ), - + 63 + - 2 * - col2 * + 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 93 + + 76 IS NOT NULL
----

query I rowsort
SELECT ALL 19 + - 4 AS col2 FROM tab1
----
15
15
15

query I rowsort
SELECT ALL - 91 FROM tab1 WHERE NOT + + 87 IS NOT NULL
----

query I rowsort
SELECT 65 + - col0 FROM tab2 AS cor0
----
-10
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT - COUNT( * ) + - 4 FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6549
SELECT - COUNT ( * ) + - 4 FROM tab0 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0 WHERE - 24 - col1 >= - col0 / - + col1 AND NOT + col0 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0 WHERE - 24 - col1 >= - col0 / - + col1 AND NOT + col0 + - col0 IS NULL
----
NULL

query I rowsort
SELECT + 75 + - + 36 FROM tab0 AS cor0
----
39
39
39

query III rowsort
SELECT DISTINCT + - col1 AS col1, + col2 AS col0, col0 FROM tab1 AS cor0
----
9 values hashing to 8fb3f57cdae44729a1b200fbf0adbcf5

query I rowsort
SELECT ALL - 68 FROM tab0 AS cor0 WHERE NOT col1 * - + col0 + + 28 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 16 > + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT - MIN( ALL 38 ) FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - MIN ( ALL 38 ) FROM tab0 cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT ALL - COUNT( * ) + COUNT( + - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL - COUNT ( * ) + COUNT ( + - col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6557
SELECT * FROM tab1 AS cor0 WHERE - ( + col0 ) <> - - ( + CAST( NULL AS SIGNED ) ) * + col0 * - col1 + col0 * col1
----

skipif mysql # not compatible
query III rowsort label-6557
SELECT * FROM tab1 AS cor0 WHERE - ( + col0 ) <> - - ( + CAST ( NULL AS INTEGER ) ) * + col0 * - col1 + col0 * col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND 46 * col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6559
SELECT - 63 AS col1, 31 DIV 60 AS col0 FROM tab2 cor0
----
-63
0
-63
0
-63
0

skipif mysql # not compatible
query II rowsort label-6559
SELECT - 63 AS col1, 31 / 60 AS col0 FROM tab2 cor0
----
-63
0
-63
0
-63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL COUNT( * ) * - 18 * - - 56 - - + COUNT( * ) AS col1 FROM tab2
----
-3021

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL COUNT ( * ) * - 18 * - - 56 - - + COUNT ( * ) AS col1 FROM tab2
----
-3021

query I rowsort
SELECT col2 * + + ( + 25 ) * + col0 AS col1 FROM tab2
----
108750
26450
64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col1 FROM tab2 WHERE col2 IS NOT NULL
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT MAX( ALL + col0 ) DIV + 91 - - 61 + + COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-6563
SELECT MAX ( ALL + col0 ) / + 91 - - 61 + + COUNT ( * ) FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6564
SELECT ALL + 25 * + CAST( NULL AS SIGNED ) - - col0 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + 25 * + CAST ( NULL AS INTEGER ) - - col0 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 61 IN ( 14 * + ( col1 ) + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + 31 ) FROM tab2
----
-31
-31
-31

query I rowsort
SELECT ALL + - 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6568
SELECT ALL CAST( + 22 AS SIGNED ) FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL CAST ( + 22 AS INTEGER ) FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL + COUNT( ALL col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL + COUNT ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT ALL 71 DIV + col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL 71 / + col2 FROM tab2 AS cor0
----
1
1
3

query II rowsort
SELECT - 91, + 32 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-91
-393
-91
-4245
-91
-682

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - col1 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6574
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 57 * col2 * + col0 * + 35, + CAST( - col2 AS SIGNED ) * - - 75 )
----

skipif mysql # not compatible
query III rowsort label-6574
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 57 * col2 * + col0 * + 35, + CAST ( - col2 AS INTEGER ) * - - 75 )
----

query I rowsort
SELECT DISTINCT - col1 * ( + - col1 ) FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT - MAX( + ( + + col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT - MAX ( + ( + + col2 ) ) FROM tab1
----
-96

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN NULL AND + + col2 + - - 80 + + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT MAX( DISTINCT + 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-6580
SELECT MAX ( DISTINCT + 55 ) FROM tab2
----
55

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 >= 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL > + + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL + + MIN( + 95 ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + + MIN ( + 95 ) FROM tab1 AS cor0
----
95

query I rowsort
SELECT DISTINCT ( + 69 ) * - col2 FROM tab0 AS cor0
----
-3243
-6831
-690

query II rowsort
SELECT DISTINCT - 97 + 3, col0 FROM tab2 AS cor0
----
-94
46
-94
64
-94
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT col2 + + CAST( + - col1 AS SIGNED ) - + 12 FROM tab0 AS cor0
----
-23
-46
86

skipif mysql # not compatible
query I rowsort label-6586
SELECT col2 + + CAST ( + - col1 AS INTEGER ) - + 12 FROM tab0 AS cor0
----
-23
-46
86

query I rowsort
SELECT ALL - 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT + + 62 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + + 90 col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
59
68
96

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL OR ( - - 98 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col2 * 81 col1 FROM tab1 AS cor0
----
-4720
-5440
-7680

query I rowsort
SELECT col1 - - + col1 + col2 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT ALL - col2 + - 42 FROM tab2 AS cor0
----
-100
-65
-82

query I rowsort
SELECT - col2 - - ( - ( + 99 ) ) AS col1 FROM tab0 AS cor0
----
-109
-146
-198

query II rowsort
SELECT DISTINCT 34 + + + col0 * - 78, col0 + 50 AS col1 FROM tab2 AS cor0
----
-3554
96
-4958
114
-5816
125

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - - 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 * 45 - ( + 86 ) AS col0, - 9 * col0 FROM tab1
----
139
-765
2029
-819
544
-459

query I rowsort
SELECT DISTINCT ( AVG ( - + 9 ) ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND - - 59 * + col1 * 49 AND ( + col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL COUNT( * ) * - + 67 AS col1 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL COUNT ( * ) * - + 67 AS col1 FROM tab1
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT DISTINCT - ( - ( + COUNT( * ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - ( - ( + COUNT ( * ) ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT - 82 / - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 - - 31 AND col0
----

query I rowsort
SELECT 99 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6606
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6606
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT ALL - - 19 DIV - 82 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - - 19 / - 82 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + + col0 * + - col1, - 47 * - col0 AS col2 FROM tab1 AS cor0
----
-425
3995
-4277
4277
-714
2397

query I rowsort
SELECT + + ( - 6 ) AS col0 FROM tab0 AS cor0
----
-6
-6
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 18 / + 78 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 41 + 1 - - col1 + + ( 65 ) * - + 30 col1 FROM tab1 AS cor0
----
-1943
-1976
-1985

query II rowsort
SELECT ALL + col2 AS col0, 78 FROM tab2
----
23
78
40
78
58
78

query II rowsort
SELECT col0 AS col1, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + + 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 + - 97 - + col1 FROM tab0 AS cor0
----
-108
-131
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6616
SELECT 14, COUNT( * ) - - COUNT( + col0 ) DIV + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
14
4

skipif mysql # not compatible
query II rowsort label-6616
SELECT 14, COUNT ( * ) - - COUNT ( + col0 ) / + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
14
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IS NULL AND col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6618
SELECT col1 + col0 + - col0 DIV 3 col2 FROM tab2
----
117
120
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6618
SELECT col1 + col0 + - col0 / 3 col2 FROM tab2
----
117
120
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT - COUNT( * ) + ( COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6619
SELECT - COUNT ( * ) + ( COUNT ( * ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6620
SELECT 22 + + - col2 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT 22 + + - col2 / CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - - col2 ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT - col2 + col2 + - col1 - - 32 DIV + 99 * + col2 col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6622
SELECT - col2 + col2 + - col1 - - 32 / + 99 * + col2 col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6623
SELECT - 74 AS col1, 64 AS col0 FROM tab2 AS cor0 WHERE CAST( + - col0 AS SIGNED ) IS NOT NULL
----
-74
64
-74
64
-74
64

skipif mysql # not compatible
query II rowsort label-6623
SELECT - 74 AS col1, 64 AS col0 FROM tab2 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
-74
64
-74
64
-74
64

query I rowsort
SELECT + 15 * + 14 FROM tab1 AS cor0
----
210
210
210

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT DISTINCT col1 + - 3 DIV - + col2 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT col1 + - 3 / - + col2 AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - 24 * - col2 * col1 - - + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL + COUNT( * ) * 44 * 22 + - - ( + 25 ) AS col0 FROM tab1 cor0
----
2929

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + COUNT ( * ) * 44 * 22 + - - ( + 25 ) AS col0 FROM tab1 cor0
----
2929

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - ( - - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6629
SELECT - ( - - COUNT ( * ) ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6630
SELECT col0 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col2 * 86 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6630
SELECT col0 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col2 * 86 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= 7 + + - col1
----

query I rowsort
SELECT ALL - col0 * - + col0 AS col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT ALL - 91 * - + CAST( NULL AS SIGNED ) / col1 / + 75 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6634
SELECT ALL - 91 * - + CAST ( NULL AS INTEGER ) / col1 / + 75 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - + 58 FROM tab0
----
-5046
-5626
-870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6636
SELECT DISTINCT - 9 DIV - COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT - 9 / - COUNT ( * ) AS col2 FROM tab2
----
3

query I rowsort
SELECT col2 * col2 FROM tab0 WHERE NOT + col2 * col2 NOT BETWEEN + 31 AND ( + 17 * - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT - 52 * + COUNT( * ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6638
SELECT - 52 * + COUNT ( * ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE NOT NULL BETWEEN + col2 + col1 + + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT DISTINCT - col0 DIV ( + 1 ) col2 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6640
SELECT DISTINCT - col0 / ( + 1 ) col2 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT DISTINCT col1 * - col0 + - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT col1 * - col0 + - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - - col0 ) * 76 * - - 90 + 99 * - col1 + + 4 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + - - col1 IS NULL
----
593005
663385
94585

query I rowsort
SELECT + - ( - 36 ) FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT ALL + 52 * + 9 FROM tab2 AS cor0
----
468
468
468

query I rowsort
SELECT ALL - col0 + ( - - col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT 72 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT 72 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
216

query I rowsort
SELECT - col1 * - 55 FROM tab0 AS cor0
----
1155
4455
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6648
SELECT DISTINCT + COUNT( * ) DIV - 55 FROM tab1 WHERE NOT NULL NOT BETWEEN 21 * - 71 - col0 AND - col0 DIV col1
----
0

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + COUNT ( * ) / - 55 FROM tab1 WHERE NOT NULL NOT BETWEEN 21 * - 71 - col0 AND - col0 / col1
----
0

query I rowsort
SELECT col0 * - ( + + ( - + col2 ) ) AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-6650
SELECT + col1 DIV - 29 AS col1, - col2 + - col0 AS col2 FROM tab2
----
-1
-69
-2
-104
-2
-133

skipif mysql # not compatible
query II rowsort label-6650
SELECT + col1 / - 29 AS col1, - col2 + - col0 AS col2 FROM tab2
----
-1
-69
-2
-104
-2
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT DISTINCT - col0 DIV - ( - 97 ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - col0 / - ( - 97 ) FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT + + col1 * col2 + 11 + - 56 * + - 16 AS col1 FROM tab0 AS cor0
----
1006
1117
4714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < + 16 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 42 + + col2 AS col1 FROM tab1 AS cor0
----
101
110
138

query I rowsort
SELECT ALL + 73 + 61 + + col1 * + - 15 + ( + 47 ) AS col0 FROM tab0 AS cor0
----
-1034
-134
166

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT DISTINCT 90 + + COUNT( * ) + + 13 + + + 60 col1 FROM tab0
----
166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6656
SELECT DISTINCT 90 + + COUNT ( * ) + + 13 + + + 60 col1 FROM tab0
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-6657
SELECT ALL col0 - - col2 DIV + col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL col0 - - col2 / + col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6658
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - 85 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-765

skipif mysql # not compatible
query I rowsort label-6659
SELECT - 85 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-765

query I rowsort
SELECT DISTINCT + ( + - 10 ) FROM tab2
----
-10

query II rowsort
SELECT - 26 AS col0, 56 AS col1 FROM tab2 cor0
----
-26
56
-26
56
-26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT - COUNT( * ) * - 89 AS col0 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6662
SELECT - COUNT ( * ) * - 89 AS col0 FROM tab1 AS cor0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 17 AS col1, + 95 + - col2 col2 FROM tab0 AS cor0
----
-17
-4
-17
48
-17
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT DISTINCT ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL - - ( - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL - - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + + col1 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + - SUM( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + - SUM ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 col0, 54 col2 FROM tab0 AS cor0
----
89
54
89
54
89
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6669
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6669
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT + ( + col1 ) AS col1, - 78 FROM tab0
----
1
-78
21
-78
81
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + col0 / + 7 - 1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6672
SELECT CAST( - col1 AS SIGNED ), + col1 FROM tab1
----
-14
14
-47
47
-5
5

skipif mysql # not compatible
query II rowsort label-6672
SELECT CAST ( - col1 AS INTEGER ), + col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1 WHERE NOT + ( + col0 ) IN ( + col2, + col1 )
----
9

skipif mysql # not compatible
query I rowsort label-6673
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + ( + col0 ) IN ( + col2, + col1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 / + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 / + col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 * - col2 col0 FROM tab1
----
-2832
-3264
-4608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab0, tab0 cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL - COUNT( col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - COUNT ( col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - + 39 AS col2 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL + col1 + col1 + + col0 AS col0 FROM tab2
----
148
209
218

query I rowsort
SELECT DISTINCT ( - + 5 ) AS col0 FROM tab0
----
-5

query I rowsort
SELECT DISTINCT col2 * + + 43 FROM tab0
----
2021
4257
430

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT DISTINCT - SUM( 29 ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT - SUM ( 29 ) FROM tab0 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT - + 78 DIV - 33 AS col0 FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6683
SELECT - + 78 / - 33 AS col0 FROM tab2 cor0
----
2
2
2

query I rowsort
SELECT - col1 + + 82 * + 45 + + + ( - col0 ) * + + col2 AS col1 FROM tab1 AS cor0
----
-1220
-1330
-2545

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT + MAX( DISTINCT 14 ) + - - 8 + - 28 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + MAX ( DISTINCT 14 ) + - - 8 + - 28 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
106

query I rowsort
SELECT - col0 * 11 - + 92 + - + 5 FROM tab2 AS cor0
----
-603
-801
-922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT ALL - CAST( + col2 AS SIGNED ) * - col2 * - 33 col0 FROM tab1 AS cor0
----
-114873
-152592
-304128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6687
SELECT ALL - CAST ( + col2 AS INTEGER ) * - col2 * - 33 col0 FROM tab1 AS cor0
----
-114873
-152592
-304128

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + col2
----

query I rowsort
SELECT DISTINCT col0 + - 99 AS col2 FROM tab1 AS cor0
----
-14
-48
-8

query III rowsort
SELECT * FROM tab1 cor0 WHERE 68 + 67 + col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - ( - + col0 )
----

query II rowsort
SELECT ALL col1 AS col2, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6693
SELECT DISTINCT - COUNT( * ) - - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT - COUNT ( * ) - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT + 73 * col2, col2 AS col1 FROM tab0
----
3431
47
7227
99
730
10

query II rowsort
SELECT ALL + 87 AS col1, ( col1 ) + + - 5 FROM tab0
----
87
-4
87
16
87
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT + COUNT( * ) * - 42 * - COUNT( + 43 ) AS col0, - COUNT( * ) AS col0 FROM tab1
----
378
-3

skipif mysql # not compatible
query II rowsort label-6696
SELECT + COUNT ( * ) * - 42 * - COUNT ( + 43 ) AS col0, - COUNT ( * ) AS col0 FROM tab1
----
378
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT COUNT( DISTINCT + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6697
SELECT COUNT ( DISTINCT + col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6698
SELECT - 25 DIV COUNT( * ) FROM tab2 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 25 / COUNT ( * ) FROM tab2 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT DISTINCT MIN( ALL 57 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT MIN ( ALL 57 ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - col0 * col1 + 93 + - col1 AS col1 FROM tab0 cor0
----
-1203
-1755
-5

query I rowsort
SELECT DISTINCT + - col1 + - ( 83 ) AS col2 FROM tab1 AS cor0
----
-130
-88
-97

query II rowsort
SELECT col1 + - ( - col2 ), col0 FROM tab2
----
117
64
125
75
74
46

query II rowsort
SELECT DISTINCT + 19 + - - 82 AS col1, - col0 AS col2 FROM tab2
----
101
-46
101
-64
101
-75

query I rowsort
SELECT ALL + col2 - - - 22 * - - 44 * - - 40 FROM tab2
----
-38662
-38680
-38697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 - + + 85 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-182

query I rowsort
SELECT - 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6707
SELECT - CAST( NULL AS SIGNED ) * - - MAX( - 19 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT - CAST ( NULL AS INTEGER ) * - - MAX ( - 19 ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> col0 * - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL + COUNT( * ) + + 91 FROM tab1 WHERE col0 NOT BETWEEN + - col0 * - - ( ( ( - + 20 ) ) ) AND + + 34 + - - col0 * - 32
----
94

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL + COUNT ( * ) + + 91 FROM tab1 WHERE col0 NOT BETWEEN + - col0 * - - ( ( ( - + 20 ) ) ) AND + + 34 + - - col0 * - 32
----
94

query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab0 WHERE - + col1 IS NOT NULL
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - 78 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + 98 ) >= col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 2 col1 FROM tab0 AS cor0
----
101
12
49

query I rowsort
SELECT ALL col0 * col0 * + col1 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT - MAX( - col2 ) col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6715
SELECT DISTINCT - MAX ( - col2 ) col1 FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE - 45 * + - 27 + + 94 + - - 79 + 80 * + 70 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE - 45 * + - 27 + + 94 + - - 79 + 80 * + 70 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6717
SELECT - MAX( + + col0 ), + COUNT( * ) + + COUNT( * ) col2 FROM tab1 AS cor0
----
-91
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6717
SELECT - MAX ( + + col0 ), + COUNT ( * ) + + COUNT ( * ) col2 FROM tab1 AS cor0
----
-91
6

query II rowsort
SELECT DISTINCT + col2, + col0 * - col1 FROM tab0
----
10
-1827
47
-1215
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT DISTINCT 12 - - CAST( + + col0 AS SIGNED ) AS col2 FROM tab0
----
109
27
99

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT 12 - - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0
----
109
27
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 82 / + - 70 > NULL
----

query I rowsort
SELECT + col0 * - - col1 * - col0 + + col1 FROM tab0
----
-158928
-18144
-9408

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col2 ) * - + col0 * - 99 - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT MAX( DISTINCT + col0 ) col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6723
SELECT MAX ( DISTINCT + col0 ) col1 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 56 col2 FROM tab2 cor0
----
-2856
-3752
-4312

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 + - col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + 60, col0 AS col1 FROM tab1
----
60
51
60
85
60
91

query II rowsort
SELECT ALL + 1 AS col0, col0 AS col1 FROM tab0
----
1
15
1
87
1
97

query I rowsort
SELECT ALL 44 * 73 * - + col1 FROM tab1
----
-150964
-16060
-44968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6729
SELECT - CAST( NULL AS SIGNED ) AS col1, + 7 * + COUNT( * ) FROM tab2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-6729
SELECT - CAST ( NULL AS INTEGER ) AS col1, + 7 * + COUNT ( * ) FROM tab2
----
NULL
21

query I rowsort
SELECT DISTINCT + + col0 * - col2 * + col2 AS col0 FROM tab0 cor0
----
-33135
-8700
-950697

query I rowsort
SELECT + 68 * - - col2 * + col0 FROM tab1 AS cor0
----
332928
341020
420784

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6732
SELECT - + 12 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT - + 12 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 * + - col2 * + 35 FROM tab1 AS cor0
----
-171360
-175525
-216580

query I rowsort
SELECT DISTINCT + 83 * - 74 FROM tab0 cor0
----
-6142

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT DISTINCT + col0 DIV - 98 * - col0 DIV - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT + col0 / - 98 * - col0 / - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 43 * - col0 + - - col1 AS col1 FROM tab0 AS cor0
----
3762
4172
726

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + col0 IS NULL )
----
-9

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + col0 IS NULL )
----
-9

query II rowsort
SELECT DISTINCT + ( col1 ), - col1 AS col0 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6739
SELECT ALL + CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL + CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT DISTINCT + 2 / + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + 2 / + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT + - ( + COUNT( ALL 38 ) ) + 27 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT + - ( + COUNT ( ALL 38 ) ) + 27 FROM tab2 AS cor0
----
24

query I rowsort
SELECT col1 + col0 * col2 * col2 AS col2 FROM tab2 AS cor0
----
102477
24385
252367

query I rowsort
SELECT 96 + - col0 * col1 + + 48 * col2 * - col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 49, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT 69 * - - SUM( - col2 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-8346

skipif mysql # not compatible
query I rowsort label-6744
SELECT 69 * - - SUM ( - col2 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-8346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT ALL - - 77 + + CAST( NULL AS SIGNED ) * + - SUM( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - - 77 + + CAST ( NULL AS INTEGER ) * + - SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT + COUNT( DISTINCT + col0 ) * MAX( + col2 ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) * MAX ( + col2 ) FROM tab1 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT DISTINCT - 80 + - MAX( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT - 80 + - MAX ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT - col2 + + + col2 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - 54 * - col2 + 73 col0, col1 col0 FROM tab0 AS cor0
----
2626
81
5516
1
700
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL + + ( + COUNT( * ) ) + - COUNT( * ) * + - 11 - + - COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL + + ( + COUNT ( * ) ) + - COUNT ( * ) * + - 11 - + - COUNT ( * ) FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6751
SELECT DISTINCT - 46 + + MIN( - + 0 ) - + + COUNT( * ) DIV - 55 AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - 46 + + MIN ( - + 0 ) - + + COUNT ( * ) / - 55 AS col1 FROM tab1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT ALL - CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL - CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6753
SELECT - COUNT( ALL - CAST( + - col0 AS DECIMAL ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6753
SELECT - COUNT ( ALL - CAST ( + - col0 AS REAL ) ) col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT - ( - + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6754
SELECT - ( - + COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6755
SELECT 79 * + col0 col2, col0 DIV + col1 FROM tab2
----
3634
0
5056
0
5925
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6755
SELECT 79 * + col0 col2, col0 / + col1 FROM tab2
----
3634
0
5056
0
5925
1

query I rowsort
SELECT DISTINCT + 20 - + col2 + 17 * + col1 AS col2 FROM tab0
----
-62
1350
367

query I rowsort
SELECT ALL col1 * + + col1 * + 74 AS col2 FROM tab1
----
14504
163466
1850

query I rowsort
SELECT 58 - + 22 - + 46 * col0 FROM tab2
----
-2080
-2908
-3414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT + + COUNT( * ) - MIN( CAST( NULL AS SIGNED ) ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6759
SELECT + + COUNT ( * ) - MIN ( CAST ( NULL AS INTEGER ) ) col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT col0 * - - col0 FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT ALL + 35 DIV 28 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + 35 / 28 FROM tab2
----
1
1
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) >= + 41
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT ALL - col0 DIV - 88 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - col0 / - 88 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - - 78 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col2 FROM tab0
----
-72
-72
-72

query II rowsort
SELECT + col0 AS col1, - col0 * 48 * + - col1 * - + 38 AS col0 FROM tab1
----
51
-1302336
85
-775200
91
-7801248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT col0 * + ( + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6770
SELECT col0 * + ( + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 17 ) * col2 FROM tab1
----
-1003
-1156
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT + 60 DIV - + col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6772
SELECT + 60 / - + col2 FROM tab1
----
-1
0
0

query II rowsort
SELECT - + col0 + + col0 / 78, col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - - col2 - - 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col1 < - - 46
----
3

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col1 < - - 46
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 80 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6776
SELECT CAST( NULL AS SIGNED ) + + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT CAST ( NULL AS INTEGER ) + + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col1 FROM tab1
----
92
92
92

onlyif mysql # DIV for integer division: 
query II rowsort label-6778
SELECT - 4 DIV - - col1, col1 AS col0 FROM tab0 AS cor0
----
-4
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-6778
SELECT - 4 / - - col1, col1 AS col0 FROM tab0 AS cor0
----
-4
1
0
21
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * + col0 - 26 FROM tab2 AS cor0
----
-2372
-4954
-5051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT + 6 DIV COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-6781
SELECT + 6 / COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT 28 DIV + col1 - - col1 DIV + col1 AS col2 FROM tab0 cor0
----
1
2
29

skipif mysql # not compatible
query I rowsort label-6782
SELECT 28 / + col1 - - col1 / + col1 AS col2 FROM tab0 cor0
----
1
2
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT + MIN( + - col1 ) * - - SUM( DISTINCT - + 98 ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
4609

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + MIN ( + - col1 ) * - - SUM ( DISTINCT - + 98 ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
4609

query II rowsort
SELECT DISTINCT - + col0 * col2 * 83 AS col2, 81 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 + 10 AND - - 96
----

query I rowsort
SELECT ALL - 39 + - 89 FROM tab1 AS cor0
----
-128
-128
-128

query I rowsort
SELECT - col2 * + + col0 + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT DISTINCT col0 + + 15 AS col0 FROM tab0
----
102
112
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6788
SELECT + - COUNT( ALL col0 ) AS col1 FROM tab0 WHERE + + CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT + - COUNT ( ALL col0 ) AS col1 FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6789
SELECT CAST( - col1 AS SIGNED ) DIV + - col0 + 37 FROM tab0
----
37
37
42

skipif mysql # not compatible
query I rowsort label-6789
SELECT CAST ( - col1 AS INTEGER ) / + - col0 + 37 FROM tab0
----
37
37
42

query II rowsort
SELECT ALL - 80 - col1 + - + col2 - - col0 AS col0, col0 FROM tab2
----
-108
46
-130
75
-133
64

query I rowsort
SELECT 41 + + + col1 FROM tab2
----
108
118
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + + + col1 * - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + col1 * - col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * - + 45 + - col0 AS col0 FROM tab2
----
-2116
-2944
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT - COUNT( * ) + 76 AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-6794
SELECT - COUNT ( * ) + 76 AS col2 FROM tab0
----
73

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 < - col1 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT DISTINCT col2 DIV + + col0 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6796
SELECT DISTINCT col2 / + + col0 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT DISTINCT ( - + MIN( + 31 ) ) AS col0, + 57 AS col2 FROM tab2 AS cor0
----
-31
57

skipif mysql # not compatible
query II rowsort label-6797
SELECT DISTINCT ( - + MIN ( + 31 ) ) AS col0, + 57 AS col2 FROM tab2 AS cor0
----
-31
57

query I rowsort
SELECT ALL col0 * - 99 AS col1 FROM tab2
----
-4554
-6336
-7425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6799
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab2, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6799
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT - + CAST( col1 AS SIGNED ) FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6800
SELECT - + CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col1 + - col1 * + - ( + 39 ) FROM tab2 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT DISTINCT + MIN( col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT + MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - - ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT + col0 * - + col2 + + col1 * - col1 AS col0, - 48 FROM tab2 cor0
----
-3659
-48
-8489
-48
-8839
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 <> - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 63
----

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT + col1 + - CAST( - + col2 AS SIGNED ) * - - col1 FROM tab0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-6808
SELECT + col1 + - CAST ( - + col2 AS INTEGER ) * - - col1 FROM tab0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT COUNT( - 94 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6809
SELECT COUNT ( - 94 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + 59 * - 51 AS col1 FROM tab1 AS cor0
----
-3009
-3009
-3009

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - ( - 26 ) > NULL
----

query I rowsort
SELECT - + 19 + - col0 + - col0 FROM tab0 AS cor0
----
-193
-213
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT COUNT( * ) * - SUM( + 95 ) / + COUNT( * ) - MAX( + + col0 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT COUNT ( * ) * - SUM ( + 95 ) / + COUNT ( * ) - MAX ( + + col0 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 * + - col2 + 31 AS col1 FROM tab2 AS cor0
----
-1569
-3333
-498

query I rowsort
SELECT + col2 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT DISTINCT COUNT( ( - col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT COUNT ( ( - col1 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL + ( - + col2 ) * col0 + col2 * + 22 * 6 + + + 14 - + - col0 * + 97 - + - ( - 4 ) FROM tab0 AS cor0
----
12884
6964
8899

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 33 + + col2 * 34 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT - COUNT( * ) + ( + - 1 ) AS col2 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - COUNT ( * ) + ( + - 1 ) AS col2 FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT COUNT( + col0 ), 44 col1 FROM tab0
----
3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6822
SELECT COUNT ( + col0 ), 44 col1 FROM tab0
----
3
44

query II rowsort
SELECT ALL ( + 52 ) AS col1, + ( + col2 ) AS col2 FROM tab2
----
52
23
52
40
52
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6825
SELECT DISTINCT + + MIN( + + CAST( 38 AS SIGNED ) ) AS col0, - 84 col2 FROM tab0 AS cor0
----
38
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6825
SELECT DISTINCT + + MIN ( + + CAST ( 38 AS INTEGER ) ) AS col0, - 84 col2 FROM tab0 AS cor0
----
38
-84

query II rowsort
SELECT ALL - col0, + col1 FROM tab2
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab0 WHERE NOT 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL COUNT( + 39 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6828
SELECT ALL COUNT ( + 39 ) col0 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 + + + col1 + col0 col2 FROM tab2 AS cor0
----
159
203
204

query I rowsort
SELECT - ( + 67 ) * + 18 * - - col2 FROM tab2 AS cor0
----
-27738
-48240
-69948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col1 + + - 9 AS col2 FROM tab1 cor0 WHERE NOT NULL > - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6832
SELECT ALL COUNT( * ) + COUNT( * ) col1, 89 * - MIN( col0 ) * + COUNT( * ) AS col0 FROM tab0
----
6
-4005

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6832
SELECT ALL COUNT ( * ) + COUNT ( * ) col1, 89 * - MIN ( col0 ) * + COUNT ( * ) AS col0 FROM tab0
----
6
-4005

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT - col0 DIV + 10 FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-6833
SELECT - col0 / + 10 FROM tab2
----
-4
-6
-7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 / + ( + + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT ( - - 29 ) AS col2 FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL - COUNT( * ) + - ( - MIN( DISTINCT col2 ) ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - COUNT ( * ) + - ( - MIN ( DISTINCT col2 ) ) AS col0 FROM tab2
----
20

query I rowsort
SELECT + - 53 AS col2 FROM tab0 AS cor0 WHERE col1 <= + - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT - + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 + - 5 col2, + col0 FROM tab0 AS cor0
----
74
15
74
87
74
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT - 14 + - CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT - 14 + - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT + 17 + + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6841
SELECT + 17 + + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT CAST( 51 AS SIGNED ) * - 19 FROM tab0
----
-969
-969
-969

skipif mysql # not compatible
query I rowsort label-6842
SELECT CAST ( 51 AS INTEGER ) * - 19 FROM tab0
----
-969
-969
-969

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + col0 IS NULL
----
15
87
97

query I rowsort
SELECT + 93 FROM tab2 WHERE 54 + 41 + + - 11 - - 98 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 93 * + col1 col2 FROM tab2 cor0
----
4743
6231
7161

query I rowsort
SELECT + - col2 - - 25 AS col2 FROM tab2 AS cor0
----
-15
-33
2

query I rowsort
SELECT ALL - 79 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1, col2, - 58 * - - 0 * ( - + col0 ), + col0 )
----

query I rowsort
SELECT + 60 + col1 FROM tab1 cor0
----
107
65
74

query I rowsort
SELECT - - 34 + + col0 FROM tab2 AS cor0
----
109
80
98

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= 30
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT COUNT( * ) * - 44 AS col0 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-6852
SELECT COUNT ( * ) * - 44 AS col0 FROM tab0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6853
SELECT DISTINCT CAST( NULL AS SIGNED ) / + AVG ( - col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + AVG ( - col0 ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL + 38, col2 * + 38 AS col0 FROM tab0
----
38
1786
38
3762
38
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + col0 IS NULL
----
0

query II rowsort
SELECT col1 AS col2, col2 + col0 AS col2 FROM tab1 AS cor0
----
14
147
47
159
5
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab1 AS cor0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6858
SELECT CAST( + COUNT( * ) AS SIGNED ), COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6858
SELECT CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT DISTINCT SUM( - + col0 ) * COUNT( * ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT SUM ( - + col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT - COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6860
SELECT - COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL - col2 AS col1, col1 AS col0 FROM tab1 cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT 3 FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col0 + - col2 + + col0 + col0 / + 9 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + col0, col1 + - col0 - col0 col2 FROM tab0 AS cor0
----
0
-153
0
-193
0
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT - col0 + + col0 + + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6865
SELECT - col0 + + col0 + + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 11 FROM tab1 cor0
----
11
11
11

query I rowsort
SELECT DISTINCT 40 + - 38 + - col2 * + col2 + + col1 FROM tab1 AS cor0
----
-3474
-4575
-9200

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col1 = 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT ALL 93 col2, - COUNT( * ) + - 89 AS col0 FROM tab0
----
93
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6871
SELECT ALL 93 col2, - COUNT ( * ) + - 89 AS col0 FROM tab0
----
93
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6872
SELECT COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT col1 AS col2, 54 + col1 FROM tab1
----
14
68
47
101
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT 84 DIV col0 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6874
SELECT 84 / col0 AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT - ( + - 73 ) * + + col2 AS col2 FROM tab1 AS cor0
----
4307
4964
7008

query I rowsort
SELECT - ( + col1 ) * col1 AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT - 11 * col2 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - col2 NOT BETWEEN ( col1 ) AND ( + col0 * col1 )
----
46
64
75

query I rowsort
SELECT + 21 + - ( + col2 ) FROM tab2
----
-19
-2
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT DISTINCT + 74 + MAX( ALL col0 ) * COUNT( * ) AS col1 FROM tab1
----
347

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT + 74 + MAX ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab1
----
347

query I rowsort
SELECT ( 83 ) FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 50 IN ( - col0 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT ALL 56 DIV col2 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL 56 / col2 AS col1 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT + 13 * + 71 AS col1 FROM tab1
----
923

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6888
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col1 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6888
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col1 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6889
SELECT DISTINCT * FROM tab0 WHERE NOT 61 NOT IN ( + CAST( 94 AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-6889
SELECT DISTINCT * FROM tab0 WHERE NOT 61 NOT IN ( + CAST ( 94 AS INTEGER ) * + col0 )
----

query I rowsort
SELECT col0 * col0 - col1 AS col1 FROM tab2
----
2065
4019
5558

query I rowsort
SELECT ALL 86 + 95 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 17 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT ( MAX( - col1 ) ) * + COUNT( col1 ) - COUNT( * ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT ( MAX ( - col1 ) ) * + COUNT ( col1 ) - COUNT ( * ) AS col0 FROM tab1
----
-18

query I rowsort
SELECT col0 * col2 + 32 * + col2 FROM tab1
----
6903
7968
8364

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT MAX( DISTINCT - 77 ) + COUNT( * ) AS col0 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT MAX ( DISTINCT - 77 ) + COUNT ( * ) AS col0 FROM tab0
----
-74

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE + col2 * ( ( ( - col0 ) ) * col0 ) <= + 40 * 50 + - col0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT BETWEEN ( + 2 + - 28 * - col2 ) AND + ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + - col1 * - col2 FROM tab0
----
123
2
3792

query I rowsort
SELECT ALL 18 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 BETWEEN + 22 AND ( 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6900
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 BETWEEN + 22 AND ( 96 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 96 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col1 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT + COUNT( DISTINCT - 50 ) FROM tab1 WHERE NOT ( NULL ) >= + ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6903
SELECT + COUNT ( DISTINCT - 50 ) FROM tab1 WHERE NOT ( NULL ) >= + ( col2 )
----
0

query I rowsort
SELECT ALL - col0 * 21 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1344
-1575
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT DISTINCT - col2 DIV + 72 AS col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT - col2 / + 72 AS col0 FROM tab1 cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT MAX( + col2 ) col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6906
SELECT DISTINCT MAX ( + col2 ) col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT ALL + COUNT( * ) DIV 73 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6907
SELECT ALL + COUNT ( * ) / 73 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 38 FROM tab2 cor0 CROSS JOIN tab2
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col1 * 53
----

query I rowsort
SELECT DISTINCT ( 25 ) FROM tab0
----
25

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT 21 / 52 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + 93 * + col1 FROM tab2 AS cor0 WHERE NULL IN ( 7 )
----

query I rowsort
SELECT ALL + 24 AS col0 FROM tab0 cor0 WHERE col2 * 41 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 + ( col0 + 5 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT - COUNT( ALL + ( 75 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6915
SELECT - COUNT ( ALL + ( 75 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT DISTINCT + SUM( ALL col1 ) FROM tab1 AS cor0 WHERE 1 + - col0 * - 5 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT + SUM ( ALL col1 ) FROM tab1 AS cor0 WHERE 1 + - col0 * - 5 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT DISTINCT + COUNT( * ) + MAX( ALL - col2 ) * 7 AS col0 FROM tab2 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT + COUNT ( * ) + MAX ( ALL - col2 ) * 7 AS col0 FROM tab2 AS cor0
----
-158

query I rowsort
SELECT ALL - col0 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 64 * col2 NOT IN ( ( col0 ) / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 14 * + 73 col0 FROM tab2 AS cor0 WHERE col2 + - 14 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6921
SELECT DISTINCT - col1 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT - col1 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT - col2 + + CAST( col1 + + col1 AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6922
SELECT - col2 + + CAST ( col1 + + col1 AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 75 + + ( - col1 ) AS col1 FROM tab1
----
28
61
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT 93 + + - COUNT( col2 ) * 78 AS col1 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-6924
SELECT 93 + + - COUNT ( col2 ) * 78 AS col1 FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT + COUNT( * ) * + 24 * COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-6926
SELECT + COUNT ( * ) * + 24 * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6927
SELECT ALL MIN( ALL + ( CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL MIN ( ALL + ( CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT + COUNT( ALL + + col0 ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT + COUNT ( ALL + + col0 ) * + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + col0 / col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6930
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( + 12 ) * col2 + col2 AS col0 FROM tab1 AS cor0
----
-1056
-649
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 + 10 * + col0 col2 FROM tab2 AS cor0
----
460
640
750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * - col0 col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-2244
-3740
-4004

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab2 WHERE - + 64 * + 14 BETWEEN ( col0 ) AND ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 35 col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 13 ) NOT IN ( - 43 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 13 ) NOT IN ( - 43 * + col0 )
----
0

query I rowsort
SELECT DISTINCT 5 * 90 + - + col0 FROM tab2 AS cor0
----
375
386
404

query I rowsort
SELECT + col1 * - 25 + - col1 AS col1 FROM tab1 cor0
----
-1222
-130
-364

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT ALL + 49 DIV - + col0 * + 43 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL + 49 / - + col0 * + 43 + col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - 3 IS NOT NULL
----

query I rowsort
SELECT + 99 * - col2 AS col1 FROM tab1 AS cor0
----
-5841
-6732
-9504

query I rowsort
SELECT ALL 46 * - col1 AS col0 FROM tab0
----
-3726
-46
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT 99 + - MIN( ALL + 75 ) FROM tab1 WHERE NOT col1 BETWEEN NULL AND ( 28 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT 99 + - MIN ( ALL + 75 ) FROM tab1 WHERE NOT col1 BETWEEN NULL AND ( 28 * + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT MIN( DISTINCT 78 ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6944
SELECT MIN ( DISTINCT 78 ) AS col1 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT - - 50 ) + - - COUNT( ALL + col0 ) FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT - - 50 ) + - - COUNT ( ALL + col0 ) FROM tab0 cor0
----
153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) IS NOT NULL
----

query I rowsort
SELECT col2 * - 45 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab0 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6949
SELECT * FROM tab1 WHERE - col1 * - col2 + + CAST( NULL AS SIGNED ) NOT BETWEEN + CAST( + 82 AS SIGNED ) - col1 / col0 AND - 87
----

skipif mysql # not compatible
query III rowsort label-6949
SELECT * FROM tab1 WHERE - col1 * - col2 + + CAST ( NULL AS INTEGER ) NOT BETWEEN + CAST ( + 82 AS INTEGER ) - col1 / col0 AND - 87
----

query I rowsort
SELECT + 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - col1 + + + 20 AS col2 FROM tab1 AS cor0
----
-27
15
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6952
SELECT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + ( col2 ) + - 72 + - - col1 AS col2 FROM tab0 AS cor0
----
-41
28
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT DISTINCT - - COUNT( * ) + + 96 AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT - - COUNT ( * ) + + 96 AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT + COUNT( * ) + - 75 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6955
SELECT + COUNT ( * ) + - 75 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6956
SELECT CAST( - 29 AS SIGNED ) + + 16 col2, col1 FROM tab1 AS cor0
----
-13
14
-13
47
-13
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6956
SELECT CAST ( - 29 AS INTEGER ) + + 16 col2, col1 FROM tab1 AS cor0
----
-13
14
-13
47
-13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 cor0 WHERE + col1 NOT IN ( + col1 * + - col0 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT ALL - + col2 + + - ( CAST( NULL AS SIGNED ) ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6958
SELECT ALL - + col2 + + - ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT ALL col1 - + - CAST( 62 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
109
67
76

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL col1 - + - CAST ( 62 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
109
67
76

query I rowsort
SELECT DISTINCT ( - col1 ) - + col1 AS col2 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT + MIN( ALL 57 ) AS col1 FROM tab1 WHERE ( NOT + col0 >= + - col1 + - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT + MIN ( ALL 57 ) AS col1 FROM tab1 WHERE ( NOT + col0 >= + - col1 + - + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT - COUNT( * ) FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6962
SELECT - COUNT ( * ) FROM tab1 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT 22 * + - COUNT( * ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT 22 * + - COUNT ( * ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT COUNT( * ) AS col2, - 21 FROM tab2
----
3
-21

skipif mysql # not compatible
query II rowsort label-6964
SELECT COUNT ( * ) AS col2, - 21 FROM tab2
----
3
-21

query III rowsort
SELECT * FROM tab1 WHERE ( + - col0 + - col1 + - col1 ) IS NULL
----

query II rowsort
SELECT ALL - 8 AS col0, 98 + - col0 + - - col1 + + - col2 * + col1 * col1 FROM tab0 AS cor0
----
-8
-308203
-8
-4378
-8
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT DISTINCT - - COUNT( * ) * + - 31 - + AVG ( DISTINCT + col0 ) / - + COUNT( * ) * AVG ( DISTINCT 37 ) + - ( 28 + + ( + ( - CAST( NULL AS SIGNED ) ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - - COUNT ( * ) * + - 31 - + AVG ( DISTINCT + col0 ) / - + COUNT ( * ) * AVG ( DISTINCT 37 ) + - ( 28 + + ( + ( - CAST ( NULL AS INTEGER ) ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 65 FROM tab2 AS cor0 WHERE + col2 + 45 IS NOT NULL
----
65
65
65

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( - col1 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6970
SELECT DISTINCT col1 + col1 + - + CAST( 20 AS SIGNED ) FROM tab0 AS cor0
----
-18
142
22

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT col1 + col1 + - + CAST ( 20 AS INTEGER ) FROM tab0 AS cor0
----
-18
142
22

query I rowsort
SELECT DISTINCT - col0 * col0 - - + col2 + + + 67 AS col0 FROM tab2 AS cor0
----
-2026
-3989
-5500

query I rowsort
SELECT - 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col2 FROM tab0 WHERE NOT + 53 * col2 * + - ( + - 98 ) * - 97 + - col2 - + col0 > 86 - col0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT + col2 FROM tab1 WHERE NOT + 66 NOT IN ( + - CAST( + + 72 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6974
SELECT + col2 FROM tab1 WHERE NOT + 66 NOT IN ( + - CAST ( + + 72 AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT - ( + - col2 ) * - col1, + col0 FROM tab1 AS cor0
----
-1344
51
-295
85
-3196
91

query I rowsort
SELECT + ( - col2 ) * col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - col2 + + + ( col1 ) IS NULL
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 61 <= + + col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT + COUNT( + - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT + COUNT ( + - col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2, + col0 )
----

query II rowsort
SELECT - 68 * 70, + col1 - col2 AS col0 FROM tab2 cor0
----
-4760
28
-4760
37
-4760
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 + + - 71 - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + + - 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT + MAX( - 63 ) * - - COUNT( * ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT + MAX ( - 63 ) * - - COUNT ( * ) FROM tab2
----
-189

query II rowsort
SELECT ALL col0 * + - 49 * col2 AS col1, col2 FROM tab2
----
-125440
40
-213150
58
-51842
23

query II rowsort
SELECT 54, col2 + + col0 AS col0 FROM tab1
----
54
144
54
147
54
159

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT col0 DIV - - col1 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6986
SELECT col0 / - - col1 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6987
SELECT ALL + 99 DIV + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL + 99 / + COUNT ( * ) FROM tab0
----
33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + - - col1 BETWEEN + col0 AND + col2 * + + col1
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT ALL col0 DIV + 54 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL col0 / + 54 AS col2 FROM tab0
----
0
1
1

query I rowsort
SELECT - 6 - + col1 * col0 AS col1 FROM tab2 WHERE NOT + 91 * - col2 NOT BETWEEN ( + col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + col0 + col1 AS col0 FROM tab1 AS cor0
----
116
175
229

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT + + 46 DIV - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-25
-81

skipif mysql # not compatible
query I rowsort label-6992
SELECT + + 46 / - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-25
-81

query I rowsort
SELECT ALL 83 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query II rowsort
SELECT ALL col0 * - col0, + col0 AS col2 FROM tab2
----
-2116
46
-4096
64
-5625
75

query I rowsort
SELECT 70 * + - ( - col0 ) AS col1 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT + col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 60 + + col1 * - ( - ( - 0 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT - COUNT( * ) + + 7 * + 23 AS col0 FROM tab1 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT - COUNT ( * ) + + 7 * + 23 AS col0 FROM tab1 AS cor0
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT + col1 FROM tab0 AS cor0 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6999
SELECT + col1 FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 - - - col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL col2 * ( + col2 ) + - + 20 + col2 + - - 4 * + col1 + - 24 + + 36 FROM tab2 AS cor0
----
1940
3682
748

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - - COUNT( * ) - - MAX( - - 99 ) AS col0 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-7002
SELECT - - COUNT ( * ) - - MAX ( - - 99 ) AS col0 FROM tab2 AS cor0
----
102

query I rowsort
SELECT - 7 AS col2 FROM tab1 WHERE 98 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 BETWEEN NULL AND ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 AS col2, - 23 - + col1 AS col0 FROM tab1
----
59
-28
68
-70
96
-37

query I rowsort
SELECT DISTINCT + + 43 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col1 - + col0 * col2 IN ( + - col0 * + col1 + + - 97, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - + MIN( ALL + 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-70

skipif mysql # not compatible
query I rowsort label-7008
SELECT - + MIN ( ALL + 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT + MIN( - - 59 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT + MIN ( - - 59 ) FROM tab2
----
59

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( + 66 + 26, - col2 / col1 + col1 + 37 * ( - 53 ) - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0, - col2 AS col1 FROM tab1 cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT ALL + CAST( + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - ( - + ( + + col2 ) ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 41 < ( - - 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7015
SELECT ALL + COUNT( * ) AS col0, 42 AS col0 FROM tab0 AS cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-7015
SELECT ALL + COUNT ( * ) AS col0, 42 AS col0 FROM tab0 AS cor0
----
3
42

query I rowsort
SELECT + + col2 * - 67 AS col0 FROM tab1 AS cor0
----
-3953
-4556
-6432

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7017
SELECT COUNT( * ) DIV - COUNT( * ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-7017
SELECT COUNT ( * ) / - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 58 * - col0 col0 FROM tab1 AS cor0
----
-2958
-4930
-5278

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 >= - - 66 + + ( - - col2 ) + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * 14 FROM tab2 AS cor0
----
-1078
-714
-938

query II rowsort
SELECT ALL - col2 * - - col1 AS col1, - col2 * - 62 AS col0 FROM tab1 AS cor0
----
-1344
5952
-295
3658
-3196
4216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7022
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
3

query I rowsort
SELECT + col2 + col2 * + - col1 + + col1 FROM tab1
----
-1234
-231
-3081

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT DISTINCT + col1 DIV + col0 AS col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT + col1 / + col0 AS col0 FROM tab0
----
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 col1 FROM tab0 WHERE NOT + + col2 IS NULL
----
-11
-34
98

query I rowsort
SELECT ALL 39 * 56 FROM tab2
----
2184
2184
2184

query II rowsort
SELECT - 78 * + col1 AS col0, + col0 * - col1 FROM tab1
----
-1092
-714
-3666
-4277
-390
-425

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - + + col0 + + col0 * - col1 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 74 col1 FROM tab1
----
1036
3478
370

query III rowsort
SELECT * FROM tab0 WHERE NOT - 20 * 95 > NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - 95 + - + col1 AS col0 FROM tab2
----
4794
6298
7238

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - ( - 86 ) AS col0, + col2 + - + 47 * - - col1 col1, 11 AS col0 FROM tab0 AS cor0
----
9 values hashing to 8436f2e769c2d49807ca3fce93d4e61d

query I rowsort
SELECT ALL - + col2 * - + ( + col2 ) + col2 AS col2 FROM tab2 AS cor0
----
1640
3422
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col0 col2, 18 + - ( - - 56 ) col2, col1 * - 5 FROM tab1
----
9 values hashing to 6bfbd1a8d5b27785f14b8718ab2da4ab

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 18 + + 75 * + + 56 col0 FROM tab0
----
4219
4239
4299

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL MAX( - ( + + 82 ) ) AS col1 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL MAX ( - ( + + 82 ) ) AS col1 FROM tab2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT - 3 DIV col2 * - 65 + + + 58 FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-7038
SELECT - 3 / col2 * - 65 + + + 58 FROM tab1 AS cor0
----
58
58
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col0 >= NULL
----

query I rowsort
SELECT ALL 51 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL - - COUNT( * ) * - COUNT( * ) - - - 85 - 0 AS col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) - - - 85 - 0 AS col0 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL 23 + + 38 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - 67 + + col1 AS col2 FROM tab2 AS cor0
----
-16
0
10

query I rowsort
SELECT DISTINCT - - 18 - col2 FROM tab0 cor0
----
-29
-81
8

query I rowsort
SELECT + ( - - 6 ) AS col0 FROM tab0 cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 46 ) col2 FROM tab1
----
46
46
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 53 * - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 17 * + + col1 - - col2 FROM tab2
----
1197
1349
890

query I rowsort
SELECT ALL 74 * + - col2 - + col2 AS col0 FROM tab1
----
-4425
-5100
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7050
SELECT DISTINCT + - 47 FROM tab0 AS cor0 WHERE NOT - col1 <= ( 54 ) - 62 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT + - 47 FROM tab0 AS cor0 WHERE NOT - col1 <= ( 54 ) - 62 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT - + 68 * - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT - + 68 * - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL + + 72 * COUNT( * ) AS col0 FROM tab0 cor0
----
216

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL + + 72 * COUNT ( * ) AS col0 FROM tab0 cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT + MAX( DISTINCT + 13 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT + MAX ( DISTINCT + 13 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT DISTINCT COUNT( * ) AS col1, + 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
54

skipif mysql # not compatible
query II rowsort label-7055
SELECT DISTINCT COUNT ( * ) AS col1, + 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7056
SELECT + MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 7 * col1 BETWEEN + 71 AND NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL - MAX( - col0 ) FROM tab0 AS cor0 WHERE NOT - col0 - - - 26 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL - MAX ( - col0 ) FROM tab0 AS cor0 WHERE NOT - col0 - - - 26 IS NULL
----
15

query II rowsort
SELECT ALL - 3 * - - col0 * - - col2 AS col1, + col2 FROM tab0 AS cor0
----
-2115
47
-2610
10
-28809
99

query I rowsort
SELECT col1 * + 42 FROM tab2 AS cor0
----
2142
2814
3234

query I rowsort
SELECT DISTINCT 33 * + + 18 AS col1 FROM tab2 AS cor0
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7063
SELECT 58 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT 58 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + + col0, col0 col0 FROM tab2
----
-2116
46
-4096
64
-5625
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT + COUNT( ALL - col0 ) * - 89 AS col1 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-7066
SELECT + COUNT ( ALL - col0 ) * - 89 AS col1 FROM tab0
----
-267

query I rowsort
SELECT + ( - - 78 ) AS col2 FROM tab0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT + COUNT( ALL col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT + COUNT ( ALL col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ALL - MIN( ALL - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - MIN ( ALL - col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT ALL COUNT( * ), - MIN( DISTINCT - col2 ) AS col1 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-7070
SELECT ALL COUNT ( * ), - MIN ( DISTINCT - col2 ) AS col1 FROM tab2
----
3
58

query I rowsort
SELECT - col1 * 44 FROM tab0
----
-3564
-44
-924

query I rowsort
SELECT DISTINCT ( col0 ) * + col1 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7073
SELECT - - CAST( NULL AS DECIMAL ) + + col1, 55 * - col0 / - + 4 FROM tab1 AS cor0 WHERE NULL < col0 * + ( - - col2 )
----

skipif mysql # not compatible
query II rowsort label-7073
SELECT - - CAST ( NULL AS REAL ) + + col1, 55 * - col0 / - + 4 FROM tab1 AS cor0 WHERE NULL < col0 * + ( - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 + col0 col0 FROM tab1 cor0
----
104
138
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col0 ) + - 6 col2 FROM tab0 AS cor0
----
-103
-21
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT + + ( col0 ) + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-7076
SELECT + + ( col0 ) + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT + + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - 4 + ( - col0 ) FROM tab0 AS cor0
----
-101
-19
-91

query II rowsort
SELECT 41 * + + col0 + + + col0, 65 * + - col1 AS col1 FROM tab1 AS cor0
----
2142
-910
3570
-325
3822
-3055

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT COUNT( * ) + COUNT( + 48 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7080
SELECT COUNT ( * ) + COUNT ( + 48 ) FROM tab0
----
6

query I rowsort
SELECT 48 * col2 + - - col1 FROM tab1
----
2837
3311
4622

query I rowsort
SELECT ALL + + 16 FROM tab0 WHERE NULL NOT BETWEEN - - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 39 * + 78 * + + col0 col0, col1 AS col1 FROM tab1
----
155142
14
258570
5
276822
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7084
SELECT ALL - 64 AS col0, COUNT( * ) AS col0 FROM tab2
----
-64
3

skipif mysql # not compatible
query II rowsort label-7084
SELECT ALL - 64 AS col0, COUNT ( * ) AS col0 FROM tab2
----
-64
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 51 <> - col2 * + col2 * + 59
----

query I rowsort
SELECT DISTINCT col2 * 18 FROM tab2
----
1044
414
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT + CAST( col0 AS SIGNED ) * + col1 * - col1 * - 32 AS col2 FROM tab0 AS cor0
----
1227744
3104
3149280

skipif mysql # not compatible
query I rowsort label-7087
SELECT + CAST ( col0 AS INTEGER ) * + col1 * - col1 * - 32 AS col2 FROM tab0 AS cor0
----
1227744
3104
3149280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT + + 97 AS col2 FROM tab0 AS cor0 WHERE NOT 8 + + CAST( NULL AS SIGNED ) = - 26 * col1
----

skipif mysql # not compatible
query I rowsort label-7088
SELECT + + 97 AS col2 FROM tab0 AS cor0 WHERE NOT 8 + + CAST ( NULL AS INTEGER ) = - 26 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT MIN( ALL 58 ) AS col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7089
SELECT MIN ( ALL 58 ) AS col0 FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7090
SELECT + + CAST( - 61 AS SIGNED ) FROM tab1 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-7090
SELECT + + CAST ( - 61 AS INTEGER ) FROM tab1 AS cor0
----
-61
-61
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) + + 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT - CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7092
SELECT - CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col2 * + 11 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1056
-649
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + - - col0 col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT ALL - ( + 14 ) FROM tab2
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT col2 * + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7096
SELECT col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col0 + + col0 + col2 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 37 * - col2 * 41 FROM tab1
----
-103156
-145632
-89503

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 20 + - - 86 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT DISTINCT - - SUM( DISTINCT + col0 ) AS col0 FROM tab2 WHERE + - 2 + - 24 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT - - SUM ( DISTINCT + col0 ) AS col0 FROM tab2 WHERE + - 2 + - 24 > NULL
----
NULL

query I rowsort
SELECT - col0 + - + col2 + - col1 + 39 * 8 AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
115
169
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + + 5 AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + + 5 AS col0 FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT + MIN( ALL - - col1 ) * + 65 FROM tab2 AS cor0
----
3315

skipif mysql # not compatible
query I rowsort label-7103
SELECT + MIN ( ALL - - col1 ) * + 65 FROM tab2 AS cor0
----
3315

query I rowsort
SELECT ALL + col0 + 39 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT ALL - 42 DIV - 27 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - 42 / - 27 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + ( - 17 ) AS col1 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 WHERE 10 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 60 * 69 AS col1 FROM tab0
----
4140

query II rowsort
SELECT ALL 18 * 64 AS col0, 49 + - col2 AS col2 FROM tab1
----
1152
-10
1152
-19
1152
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 84 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 84 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT COUNT( * ) col0 FROM tab2 WHERE + - col0 BETWEEN NULL AND ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7111
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 WHERE + - col0 BETWEEN NULL AND ( col1 )
----
0

query II rowsort
SELECT ALL - col2 * 47 * col2 AS col0, + 79 * - - col2 AS col1 FROM tab2
----
-158108
4582
-24863
1817
-75200
3160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT DISTINCT + ( 11 ) * + col1 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT + ( 11 ) * + col1 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 48 * col0 AS col0 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT DISTINCT + - col0 DIV + + ( col2 ) FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT + - col0 / + + ( col2 ) FROM tab0 AS cor0
----
-8
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN + col0 AND - 83 + - 27
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT ALL + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - 51 AS col1 FROM tab1
----
-2601
-4335
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT COUNT( DISTINCT col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7119
SELECT COUNT ( DISTINCT col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - + col0 * - 4 + col0 FROM tab1 AS cor0
----
255
425
455

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col0 + - - 50 + - + col1 * 19 * + col2 + - - 0 - col0 + - ( col0 ) * + 26 AS col2 FROM tab0 AS cor0
----
-4353
-6202
-72673

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT DISTINCT - col1 DIV + + col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT - col1 / + + col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - - col2 + + - 15 AS col1 FROM tab0 AS cor0
----
-5
32
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT + 34 * + - COUNT( ALL + col2 ) * COUNT( * ) FROM tab1 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + 34 * + - COUNT ( ALL + col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
-306

query I rowsort
SELECT - + ( - 96 ) AS col2 FROM tab0 AS cor0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col1 FROM tab1 cor0
----
73

query I rowsort
SELECT + - ( + + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT - + col2, col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT - 85 * - 91 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 62 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT COUNT( * ) + + ( + COUNT( * ) ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7132
SELECT COUNT ( * ) + + ( + COUNT ( * ) ) AS col0 FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( + col1 NOT IN ( 93, ( col0 ) + + - col2 ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7134
SELECT DISTINCT - 59 DIV + MIN( ALL 14 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - 59 / + MIN ( ALL 14 ) FROM tab1
----
-4

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE ( NOT 83 / 40 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT DISTINCT - ( + ( + - COUNT( * ) ) ) + COUNT( ( + 67 ) ) + + 3 AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT - ( + ( + - COUNT ( * ) ) ) + COUNT ( ( + 67 ) ) + + 3 AS col1 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7138
SELECT DISTINCT CAST( + + ( - 44 ) AS SIGNED ) - - MIN( ALL + ( col2 ) ) AS col1 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT CAST ( + + ( - 44 ) AS INTEGER ) - - MIN ( ALL + ( col2 ) ) AS col1 FROM tab0
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7139
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN NULL AND - + CAST( NULL AS DECIMAL ) * + col2 + + - col0
----

skipif mysql # not compatible
query III rowsort label-7139
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN NULL AND - + CAST ( NULL AS REAL ) * + col2 + + - col0
----

query I rowsort
SELECT + 5 * col2 + - col2 AS col2 FROM tab2 cor0
----
160
232
92

query I rowsort
SELECT ALL col1 * + ( - 97 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 <= NULL
----

query I rowsort
SELECT + col1 * + - col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT MIN( ALL - col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7144
SELECT DISTINCT MIN ( ALL - col2 ) col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT - COUNT( * ) * + 79 * SUM( + 84 ) FROM tab2
----
-59724

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT - COUNT ( * ) * + 79 * SUM ( + 84 ) FROM tab2
----
-59724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 WHERE + col0 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + MIN( - + 24 ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-7147
SELECT + MIN ( - + 24 ) AS col0 FROM tab0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 32 * + col2 + 87 col1 FROM tab0 cor0
----
1591
3255
407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT + - COUNT( * ) * 26 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT + - COUNT ( * ) * 26 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( - 31 )
----

query I rowsort
SELECT DISTINCT + 25 FROM tab2 cor0 WHERE NOT col0 + + + col2 * - 65 * + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT ALL + 10 * + - col1 AS col2 FROM tab1
----
-140
-470
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7154
SELECT + - COUNT( * ) * CAST( NULL AS SIGNED ) + 58 + - 18 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + 58 + - 18 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 58 + - + 79 FROM tab2 AS cor0
----
-1413
-2399
-3443

query I rowsort
SELECT - col1 - + col2 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0
----

query I rowsort
SELECT ALL col0 + + - 95 AS col0 FROM tab2
----
-20
-31
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT - 39 * - 2 + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT - 39 * - 2 + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * + col0 + + 35 col0 FROM tab1
----
4312
460
749

query I rowsort
SELECT DISTINCT 54 - ( - 98 ) - col1 FROM tab1
----
105
138
147

query I rowsort
SELECT - 93 * + col2 FROM tab0
----
-4371
-9207
-930

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 WHERE NOT - 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT MAX( DISTINCT - + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7163
SELECT MAX ( DISTINCT - + col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT + col1 * + 71 AS col2 FROM tab1
----
3337
355
994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT DISTINCT + 4 / - + 86 / - + CAST( NULL AS SIGNED ) * + col1 * - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT + 4 / - + 86 / - + CAST ( NULL AS INTEGER ) * + col1 * - col0 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 - + 49 + - 94 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col1, col1 * col2 * + 57 AS col0 FROM tab1
----
14
76608
47
182172
5
16815

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 86 NOT BETWEEN + - 25 + + 17 + + col1 + ( 55 ) AND col2
----
51
14
96

query I rowsort
SELECT + + col1 * + col2 + - col0 + 97 - - col2 FROM tab2 AS cor0
----
1247
3153
3966

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE + col0 * col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT DISTINCT 11 + + col1 + + 9 + col1 - col0 * 38 DIV + - 47 + + col1 * - 29 + + 78 FROM tab2 AS cor0
----
-1242
-1651
-1930

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT 11 + + col1 + + 9 + col1 - col0 * 38 / + - 47 + + col1 * - 29 + + 78 FROM tab2 AS cor0
----
-1242
-1651
-1930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT CAST( NULL AS SIGNED ) * + col1 * - + col0 + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT CAST ( NULL AS INTEGER ) * + col1 * - + col0 + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - col2 FROM tab2 AS cor0 WHERE + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7174
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 65 + - - col2 FROM tab2
----
105
123
88

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( 16 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7177
SELECT DISTINCT - CAST( - + ( 85 ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
85

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - CAST ( - + ( 85 ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT COUNT( * ) * + 2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7178
SELECT COUNT ( * ) * + 2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7179
SELECT - COUNT( * ) * - COUNT( * ) DIV - ( - COUNT( - CAST( + 65 AS SIGNED ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7179
SELECT - COUNT ( * ) * - COUNT ( * ) / - ( - COUNT ( - CAST ( + 65 AS INTEGER ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT + ( - + COUNT( * ) ) AS col0, 77 FROM tab2 AS cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-7180
SELECT + ( - + COUNT ( * ) ) AS col0, 77 FROM tab2 AS cor0
----
-3
77

query I rowsort
SELECT ALL + col1 * + col2 * col0 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT + 34 * + 56 * + + 25 FROM tab1
----
47600

query I rowsort
SELECT ALL col0 * col2 * - - col0 AS col0 FROM tab1
----
249696
426275
563108

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + 47 IS NOT NULL
----

query I rowsort
SELECT - ( 76 ) AS col2 FROM tab0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ALL + 63 * - COUNT( * ) col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7186
SELECT ALL + 63 * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-189

query I rowsort
SELECT - col2 + + - col0 * 74 AS col0 FROM tab1
----
-3870
-6349
-6802

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE NOT + - 69 * 68 * + col0 <= NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( 79, 86 * + 68 + - + ( + 41 ) )
----

query I rowsort
SELECT DISTINCT - + col0 + - + col0 FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT + + col0 * + col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - + 86 ) FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT - + col0 * - col0 + + col2 + - col0 FROM tab2 AS cor0
----
2093
4072
5608

query II rowsort
SELECT ( col1 ), col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col1 ) < NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col0 - - 25 AS col2 FROM tab2 AS cor0
----
1
2
8

query I rowsort
SELECT DISTINCT + - 34 - + col2 FROM tab1 AS cor0
----
-102
-130
-93

query I rowsort
SELECT ALL 2 - 7 FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT SUM( DISTINCT - col1 ) * + 47 + 80 FROM tab2
----
-9085

skipif mysql # not compatible
query I rowsort label-7200
SELECT SUM ( DISTINCT - col1 ) * + 47 + 80 FROM tab2
----
-9085

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT DISTINCT 64 * - COUNT( * ) - SUM( ALL col0 ) FROM tab1
----
-419

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT 64 * - COUNT ( * ) - SUM ( ALL col0 ) FROM tab1
----
-419

query I rowsort
SELECT DISTINCT - 5 * - ( col1 ) FROM tab0
----
105
405
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - COUNT( * ) FROM tab1 WHERE - + ( col0 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7203
SELECT - COUNT ( * ) FROM tab1 WHERE - + ( col0 ) = NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7204
SELECT DISTINCT + + 77 * 48 DIV - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
1232

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT + + 77 * 48 / - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1232

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - col0 ) * ( - col2 ) FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + col1 + + 91 FROM tab2 cor0
----
142
158
168

query I rowsort
SELECT + col2 * + 75 * col0 AS col2 FROM tab1
----
367200
376125
464100

query II rowsort
SELECT - col0 AS col1, + 56 * + 4 + + - col1 AS col1 FROM tab0
----
-15
143
-87
203
-97
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT 21 * + - 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 010a7d023574be59f7ef820a24df1a7d

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT COUNT( * ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7213
SELECT COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT + col0, - 67 * + - 0 + - 81 - - 35 FROM tab2 AS cor0
----
46
-46
64
-46
75
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - 24 + - - col0 AND NULL
----
85
5
59

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 / - col1 + + + col0 IN ( - + col0, ( + col1 ) + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT COUNT( * ) / + 72 / CAST( NULL AS SIGNED ) * - + 21 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT COUNT ( * ) / + 72 / CAST ( NULL AS INTEGER ) * - + 21 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + ( + + 67 ) AS col1 FROM tab0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + col1
----

query I rowsort
SELECT ALL 48 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT + + 43 + - + COUNT( col2 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT + + 43 + - + COUNT ( col2 ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT + 82 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL > NULL
----

query I rowsort
SELECT + - col2 + - 42 - - col1 + + col0 AS col0 FROM tab0 AS cor0
----
-43
56
7

query I rowsort
SELECT - col1 + 55 AS col0 FROM tab2 AS cor0
----
-12
-22
4

query I rowsort
SELECT DISTINCT + 92 + - 6 + + 3 AS col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT 13 AS col2 FROM tab1 AS cor0 WHERE - col0 + + 33 IN ( ( + col1 ), - col0 )
----

query I rowsort
SELECT ALL + col0 + + 20 * - + col1 FROM tab0 cor0
----
-1605
-333
77

query I rowsort
SELECT DISTINCT - 88 + - col2 + - 78 AS col1 FROM tab2 cor0
----
-189
-206
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT DISTINCT + 19 + + MAX( - col0 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + 19 + + MAX ( - col0 ) FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL - col1 - col0 AS col0 FROM tab1 cor0
----
-138
-65
-90

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7233
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL >= - CAST( - 92 AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-7233
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL >= - CAST ( - 92 AS INTEGER )
----

query II rowsort
SELECT ALL + 71 - + col0 AS col1, col2 * - col1 * - col1 AS col2 FROM tab1
----
-14
1475
-20
150212
20
18816

query II rowsort
SELECT - + col2 / + col1 AS col0, - col0 + - 58 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7236
SELECT DISTINCT + col2 * - col1 - + CAST( 73 AS SIGNED ) AS col2 FROM tab0
----
-172
-283
-3880

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT + col2 * - col1 - + CAST ( 73 AS INTEGER ) AS col2 FROM tab0
----
-172
-283
-3880

query II rowsort
SELECT - col1, col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7238
SELECT DISTINCT + MAX( col1 ) - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + MAX ( col1 ) - + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 - - 13 - col0 FROM tab2
----
-10
-11
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT - COUNT( * ) - + 0 * - + 74 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7240
SELECT - COUNT ( * ) - + 0 * - + 74 AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT ALL CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7242
SELECT DISTINCT + ( - - 40 ) - CAST( - AVG ( ALL col2 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7242
SELECT DISTINCT + ( - - 40 ) - CAST ( - AVG ( ALL col2 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT DISTINCT 52 DIV - 95 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT 52 / - 95 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( + + ( - + 25 ) ) FROM tab0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT - - CAST( - 70 AS SIGNED ) FROM tab1 AS cor0 WHERE - col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT - - CAST ( - 70 AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT MAX( DISTINCT - - 27 ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT MAX ( DISTINCT - - 27 ) AS col0 FROM tab2 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, - ( - 34 ) * + 26 )
----

query I rowsort
SELECT + col1 * + 20 AS col1 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT - MIN( DISTINCT - col0 ) * - COUNT( * ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-7252
SELECT - MIN ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab0
----
-291

query I rowsort
SELECT DISTINCT + 27 * - - col1 + 63 FROM tab2 WHERE NOT NULL < - - col2 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT 59 DIV - 76 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7254
SELECT 59 / - 76 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 76 * + col1 FROM tab1
----
1064
3572
380

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT + 43 * - COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + 43 * - COUNT ( * ) FROM tab0
----
-129

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col0, + col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT 94 + ( + col2 ) * col1 * col1 AS col2 FROM tab2 AS cor0
----
237254
260456
59917

query I rowsort
SELECT + - 96 + - + col0 + 18 AS col1 FROM tab2 AS cor0
----
-124
-142
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7261
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT + + col2 * + 80 FROM tab0 AS cor0
----
3760
7920
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-88

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - 98 - col0 FROM tab2 AS cor0
----
-2300
-3984
-5759

query II rowsort
SELECT + col2, - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7267
SELECT ALL + CAST( - col2 AS SIGNED ) + 87 FROM tab2 AS cor0
----
29
47
64

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL + CAST ( - col2 AS INTEGER ) + 87 FROM tab2 AS cor0
----
29
47
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 BETWEEN + 79 * - col1 AND NULL
----

query I rowsort
SELECT - ( col1 ) - + + 72 * - + 89 AS col2 FROM tab0 cor0 WHERE - 17 + - col2 IS NOT NULL
----
6327
6387
6407

query I rowsort
SELECT DISTINCT + col0 + + col1 + + col0 FROM tab0 AS cor0
----
111
195

query I rowsort
SELECT + - col2 + - ( + col1 ) FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7272
SELECT - 37 DIV + 24 + - + 2 + col1 + - 65 - + 5 FROM tab0 cor0
----
-52
-72
8

skipif mysql # not compatible
query I rowsort label-7272
SELECT - 37 / + 24 + - + 2 + col1 + - 65 - + 5 FROM tab0 cor0
----
-52
-72
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7273
SELECT col2 + + CAST( NULL AS DECIMAL ) / 86 + + - 84 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT col2 + + CAST ( NULL AS REAL ) / 86 + + - 84 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 32 + ( + col1 ) - - + col2 + + 39 * - + col1 * + 97 AS col0 FROM tab1
----
-177654
-18819
-52820

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - 51 * COUNT( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7275
SELECT - 51 * COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col2 ) BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL - SUM( + + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - SUM ( + + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <= + - 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7279
SELECT - ( + + ( - CAST( - COUNT( * ) AS SIGNED ) ) ) * - + 20 AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7279
SELECT - ( + + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) ) * - + 20 AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT DISTINCT col1 * + + CAST( + col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7280
SELECT DISTINCT col1 * + + CAST ( + col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT COUNT( - + ( - + col2 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT COUNT ( - + ( - + col2 ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT + + col0 AS col0, 46 FROM tab1 AS cor0
----
51
46
85
46
91
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7283
SELECT col0 * + CAST( NULL AS DECIMAL ) + - 48 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT col0 * + CAST ( NULL AS REAL ) + - 48 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7284
SELECT + ( + COUNT( * ) ), + 52 AS col2 FROM tab1 cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-7284
SELECT + ( + COUNT ( * ) ), + 52 AS col2 FROM tab1 cor0
----
3
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col0 col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT + 77 * + col0 FROM tab2 AS cor0
----
3542
4928
5775

query I rowsort
SELECT ALL + - col2 + + + col2 * + col0 FROM tab0 cor0
----
658
860
9504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7288
SELECT 81 DIV + + 96 + - MIN( DISTINCT 75 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7288
SELECT 81 / + + 96 + - MIN ( DISTINCT 75 ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL COUNT( * ) * + SUM( ALL - ( 78 ) ) FROM tab2
----
-702

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL COUNT ( * ) * + SUM ( ALL - ( 78 ) ) FROM tab2
----
-702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7290
SELECT - 1 DIV + + SUM( + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7290
SELECT - 1 / + + SUM ( + col2 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7291
SELECT ALL - col0 DIV - ( + col2 ) AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - col0 / - ( + col2 ) AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT - 83 AS col2 FROM tab2 cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT DISTINCT + COUNT( 36 ) + + COUNT( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT + COUNT ( 36 ) + + COUNT ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - + 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 39 + + 53 AS col0 FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT COUNT( * ) + - - 7 AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-7296
SELECT COUNT ( * ) + - - 7 AS col1 FROM tab2
----
10

query I rowsort
SELECT 37 * + + 74 + + col2 FROM tab0
----
2748
2785
2837

query I rowsort
SELECT col0 + - + 10 FROM tab0
----
5
77
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7299
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - CAST( - 11 AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7299
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - CAST ( - 11 AS INTEGER ) ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7300
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + 20 + + - col2 NOT IN ( col0, + col1 + col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7300
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + 20 + + - col2 NOT IN ( col0, + col1 + col1, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - + col1 + - 30 FROM tab0 AS cor0
----
-111
-31
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE + col2 * - 33 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7302
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE + col2 * - 33 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * 85 - + + 64 + + col1 * + - 92 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * 85 - + + 64 + + col1 * + - 92 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT + 39 * + ( + - 25 ) * - + COUNT( * ) FROM tab0
----
2925

skipif mysql # not compatible
query I rowsort label-7305
SELECT + 39 * + ( + - 25 ) * - + COUNT ( * ) FROM tab0
----
2925

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7306
SELECT DISTINCT MIN( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT MIN ( ALL CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - 67 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-67
-67
-67

query I rowsort
SELECT 47 * - col2 FROM tab2
----
-1081
-1880
-2726

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7309
SELECT * FROM tab1 WHERE NOT - 22 / col1 + - + col2 <> - - 58 * + + col2 + + + CAST( NULL AS SIGNED ) + - 72
----

skipif mysql # not compatible
query III rowsort label-7309
SELECT * FROM tab1 WHERE NOT - 22 / col1 + - + col2 <> - - 58 * + + col2 + + + CAST ( NULL AS INTEGER ) + - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7310
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( 62 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7310
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( 62 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL + MIN( DISTINCT - col2 ) * - 58 AS col1 FROM tab0
----
5742

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL + MIN ( DISTINCT - col2 ) * - 58 AS col1 FROM tab0
----
5742

query I rowsort
SELECT - 54 * + col0 AS col1 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT - + COUNT( * ) * 47 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7313
SELECT - + COUNT ( * ) * 47 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) + 8 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) + 8 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL COUNT( * ) + + COUNT( col1 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL COUNT ( * ) + + COUNT ( col1 ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7316
SELECT DISTINCT col2 DIV - 72 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT col2 / - 72 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT 92 * - + COUNT( + col0 ) AS col0 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7317
SELECT 92 * - + COUNT ( + col0 ) AS col0 FROM tab1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT 25 * + + 34 FROM tab2
----
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, 12 * - + col0 AS col1 FROM tab0
----
1
-1164
21
-1044
81
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7321
SELECT DISTINCT + COUNT( * ) DIV + 83 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT + COUNT ( * ) / + 83 FROM tab0
----
0

query I rowsort
SELECT - 10 + + col2 + + - col1 FROM tab1
----
11
44
72

query I rowsort
SELECT - col1 + + col0 * + col2 FROM tab2
----
1007
2483
4283

query I rowsort
SELECT - - 30 + + + col1 FROM tab0 AS cor0
----
111
31
51

query I rowsort
SELECT + - col2 + - - col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7326
SELECT DISTINCT - - 78 - - - col2 + - 71 * + - CAST( NULL AS SIGNED ) AS col0, 43 AS col1 FROM tab0 AS cor0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-7326
SELECT DISTINCT - - 78 - - - col2 + - 71 * + - CAST ( NULL AS INTEGER ) AS col0, 43 AS col1 FROM tab0 AS cor0
----
NULL
43

query II rowsort
SELECT - col2 AS col2, + 90 + + col0 FROM tab1 cor0
----
-59
175
-68
181
-96
141

query I rowsort
SELECT DISTINCT 43 - - col2 + - 95 FROM tab0
----
-42
-5
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT ALL col1 - + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL col1 - + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE col0 * col1 > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * col2 NOT BETWEEN - + 11 / + - col2 + + 44 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7332
SELECT 81 * - + CAST( SUM( DISTINCT + 28 ) AS SIGNED ) FROM tab2 cor0
----
-2268

skipif mysql # not compatible
query I rowsort label-7332
SELECT 81 * - + CAST ( SUM ( DISTINCT + 28 ) AS INTEGER ) FROM tab2 cor0
----
-2268

query I rowsort
SELECT + 97 * + + col0 FROM tab1
----
4947
8245
8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + col0 AS col2 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT + COUNT( ALL - - ( + ( col0 ) ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT + COUNT ( ALL - - ( + ( col0 ) ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL - 93 + + MIN( col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - 93 + + MIN ( col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT 21 * + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT 21 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 96 * + 80 FROM tab2 AS cor0
----
7680
7680
7680

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7339
SELECT * FROM tab1 AS cor0 WHERE NOT - 52 = - CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7339
SELECT * FROM tab1 AS cor0 WHERE NOT - 52 = - CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT ALL COUNT( * ) * 0 + MIN( CAST( 99 AS SIGNED ) + col1 ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL COUNT ( * ) * 0 + MIN ( CAST ( 99 AS INTEGER ) + col1 ) FROM tab2
----
150

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( 31 * ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT ( col0 ) + 45 DIV - col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7343
SELECT ( col0 ) + 45 / - col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7344
SELECT * FROM tab1 WHERE NOT col1 * - col1 + col0 >= CAST( NULL AS DECIMAL ) * col0
----

skipif mysql # not compatible
query III rowsort label-7344
SELECT * FROM tab1 WHERE NOT col1 * - col1 + col0 >= CAST ( NULL AS REAL ) * col0
----

query I rowsort
SELECT ALL col0 * - col0 + + col2 * 37 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5042
-5765
951

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT + 6 * + COUNT( * ) + 82 * + 11 AS col2 FROM tab0 WHERE col0 - 42 BETWEEN + 22 AND - 35 + + col0 * col1
----
914

skipif mysql # not compatible
query I rowsort label-7346
SELECT + 6 * + COUNT ( * ) + 82 * + 11 AS col2 FROM tab0 WHERE col0 - 42 BETWEEN + 22 AND - 35 + + col0 * col1
----
914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7347
SELECT CAST( + 80 AS SIGNED ) - 92 FROM tab2 WHERE - 41 = NULL
----

skipif mysql # not compatible
query I rowsort label-7347
SELECT CAST ( + 80 AS INTEGER ) - 92 FROM tab2 WHERE - 41 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 * col2 col0 FROM tab1
----
-4838
-5576
-7872

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT - col0 DIV 56 - - col0 AS col2 FROM tab0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-7349
SELECT - col0 / 56 - - col0 AS col2 FROM tab0
----
15
86
96

query I rowsort
SELECT - col2 * - 74 AS col0 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL COUNT( * ) - COUNT( * ) * + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL COUNT ( * ) - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( + col1 + 11 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - col1 / + 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7354
SELECT DISTINCT * FROM tab0 WHERE ( 47 + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7354
SELECT DISTINCT * FROM tab0 WHERE ( 47 + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * 85 FROM tab0 WHERE ( NULL ) < + ( + col2 ) * 87
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 88 + 12 = col0 / + 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 13 - ( 78 ) FROM tab1
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 87 col2 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT col2 - + 76 AS col1 FROM tab2
----
-18
-36
-53

query I rowsort
SELECT col0 - col2 * 31 AS col0 FROM tab0
----
-1442
-223
-2972

query I rowsort
SELECT 61 * - 12 + - 2 * - col0 FROM tab0
----
-538
-558
-702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7362
SELECT 25 * CAST( + COUNT( * ) * 48 AS SIGNED ) FROM tab1
----
3600

skipif mysql # not compatible
query I rowsort label-7362
SELECT 25 * CAST ( + COUNT ( * ) * 48 AS INTEGER ) FROM tab1
----
3600

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT IN ( col0 * ( - col0 * col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + 96 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - col1 + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
21
54
82

query I rowsort
SELECT ALL col2 * ( + 43 * - col2 ) FROM tab0
----
-421443
-4300
-94987

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT - COUNT( 58 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7367
SELECT - COUNT ( 58 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT NULL < 28
----
0

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT NULL < 28
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT - CAST( 91 AS SIGNED ) AS col2 FROM tab2
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-7369
SELECT - CAST ( 91 AS INTEGER ) AS col2 FROM tab2
----
-91
-91
-91

query I rowsort
SELECT + ( - 95 ) FROM tab1
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - COUNT( * ) + + 96 AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-7371
SELECT - COUNT ( * ) + + 96 AS col0 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL - MIN( ALL col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - MIN ( ALL col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT ALL 44 * + col2 FROM tab0
----
2068
4356
440

query I rowsort
SELECT DISTINCT + 31 + - col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - col2 - - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 92 + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - ( + 20 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT col1 * + 30 + col0 AS col1 FROM tab2
----
1576
2085
2374

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE col0 + 78 <> col1 * col0
----
3

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE col0 + 78 <> col1 * col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT ALL CAST( NULL AS SIGNED ) - - ( + col0 + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL CAST ( NULL AS INTEGER ) - - ( + col0 + col0 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 98 IN ( - col1 * - col0 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT - - col1 DIV + 47 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7384
SELECT - - col1 / + 47 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + - col2 * + col1 AS col1 FROM tab0 cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * 66 ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT + col1 * - col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-7387
SELECT + col1 * - col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab1
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 64 * col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT - CAST( - 92 AS SIGNED ) AS col1 FROM tab0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-7390
SELECT - CAST ( - 92 AS INTEGER ) AS col1 FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + MAX( DISTINCT - col2 ) * + 54 AS col1 FROM tab0
----
-540

skipif mysql # not compatible
query I rowsort label-7391
SELECT + MAX ( DISTINCT - col2 ) * + 54 AS col1 FROM tab0
----
-540

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * col1 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * - col1 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT + 37 + SUM( 1 - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT + 37 + SUM ( 1 - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----
NULL

query I rowsort
SELECT 11 * col0 * 49 + col0 FROM tab1 AS cor0
----
27540
45900
49140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col1 FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col0 FROM tab0 WHERE NOT ( col1 * - col0 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col0 FROM tab0 WHERE NOT ( col1 * - col0 ) = NULL
----
NULL

query I rowsort
SELECT 54 * - + 69 FROM tab2
----
-3726
-3726
-3726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT ALL + 8 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7399
SELECT ALL + 8 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 48 BETWEEN NULL AND - col2
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( col1 ) >= ( ( + ( col1 ) ) )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL + 45 * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + col2
----
0

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL + 45 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + col2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - ( 54 ) ) / col0 + - ( col1 + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col1, - col2 * 29 FROM tab2 AS cor0
----
23
-667
40
-1160
58
-1682

query I rowsort
SELECT col2 * 27 + col0 AS col2 FROM tab0 AS cor0 WHERE 57 * - col2 * + ( 57 ) IN ( + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - COUNT( * ) FROM tab2 WHERE - 15 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT - COUNT ( * ) FROM tab2 WHERE - 15 * col1 IS NULL
----
0

query I rowsort
SELECT - 30 * + col2 + + 31 AS col2 FROM tab0
----
-1379
-269
-2939

query I rowsort
SELECT + ( + col2 ) + col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT - 18 + - - col0 + + 82 + + + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT - 18 + - - col0 + + 82 + + + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT SUM( DISTINCT 19 ) - - 50 AS col2 FROM tab1 WHERE - 20 + + col2 * 20 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT SUM ( DISTINCT 19 ) - - 50 AS col2 FROM tab1 WHERE - 20 + + col2 * 20 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - 2 + + ( - col0 ) + + col2 FROM tab1 AS cor0
----
-25
-28
43

query I rowsort
SELECT DISTINCT 90 * + + 74 FROM tab0
----
6660

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL COUNT( * ) * 64 AS col1 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL COUNT ( * ) * 64 AS col1 FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT DISTINCT - MAX( ALL col1 ) AS col1 FROM tab2 WHERE NOT col0 NOT IN ( col1 * - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT - MAX ( ALL col1 ) AS col1 FROM tab2 WHERE NOT col0 NOT IN ( col1 * - 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT ALL + MIN( DISTINCT + col2 ) * - ( MAX( ALL - col0 ) ) AS col0 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + MIN ( DISTINCT + col2 ) * - ( MAX ( ALL - col0 ) ) AS col0 FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL SUM( DISTINCT + 15 ) AS col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL SUM ( DISTINCT + 15 ) AS col0 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + COUNT( ALL 1 ) * + 40 AS col0 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7420
SELECT + COUNT ( ALL 1 ) * + 40 AS col0 FROM tab0 AS cor0
----
120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 92 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 50 + - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7423
SELECT - + col2 DIV - - 6 - - col2, 80 - col1 AS col1 FROM tab2 AS cor0
----
20
29
34
3
49
13

skipif mysql # not compatible
query II rowsort label-7423
SELECT - + col2 / - - 6 - - col2, 80 - col1 AS col1 FROM tab2 AS cor0
----
20
29
34
3
49
13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7424
SELECT DISTINCT col1 * + + col1 * 82 DIV - ( CAST( - CAST( + col1 AS DECIMAL ) AS SIGNED ) ) col1 FROM tab0
----
1722
6642
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7424
SELECT DISTINCT col1 * + + col1 * 82 / - ( CAST ( - CAST ( + col1 AS REAL ) AS INTEGER ) ) col1 FROM tab0
----
1722
6642
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + - col1 col2 FROM tab2 WHERE - + col1 < NULL
----

query II rowsort
SELECT + 43 AS col0, - 61 AS col1 FROM tab0 AS cor0
----
43
-61
43
-61
43
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7427
SELECT + COUNT( * ), - COUNT( * ) * - COUNT( DISTINCT - 85 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7427
SELECT + COUNT ( * ), - COUNT ( * ) * - COUNT ( DISTINCT - 85 ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7428
SELECT ALL - col2 + - - col2 DIV col0 * + + CAST( - col0 AS SIGNED ) - ( + col1 ) DIV col2 FROM tab1 AS cor0
----
-147
-59
-68

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - col2 + - - col2 / col0 * + + CAST ( - col0 AS INTEGER ) - ( + col1 ) / col2 FROM tab1 AS cor0
----
-147
-59
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7429
SELECT + COUNT( ALL + CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7429
SELECT + COUNT ( ALL + CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 84 ) col1 FROM tab0 AS cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + col2 ) IS NOT NULL OR NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + MIN( DISTINCT 92 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7432
SELECT + MIN ( DISTINCT 92 ) FROM tab1 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL + - COUNT( DISTINCT col2 ) + + ( 31 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + 0
----
31

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL + - COUNT ( DISTINCT col2 ) + + ( 31 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + 0
----
31

query III rowsort
SELECT * FROM tab2 WHERE 16 >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT ALL + + CAST( col2 AS SIGNED ) FROM tab1 WHERE NOT NULL IN ( col0, col0 )
----

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + + CAST ( col2 AS INTEGER ) FROM tab1 WHERE NOT NULL IN ( col0, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT - + MAX( ALL col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - + MAX ( ALL col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - 6 + + + col2 * col2 FROM tab0 cor0
----
2203
94
9795

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL + 9 * + SUM( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + 9 * + SUM ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----
NULL

query I rowsort
SELECT ALL col2 * + - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + col1 + - 17 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 10 IS NULL
----

query I rowsort
SELECT - - col1 + + - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + - - 97 + + 8 AS col2 FROM tab0 AS cor0
----
106
126
186

query I rowsort
SELECT + col1 * - col0 + 33 + - 16 * col2 FROM tab1 AS cor0
----
-1336
-2217
-5332

query I rowsort
SELECT ALL col2 + - col0 AS col0 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT + ( + col1 ) - - 45 * 22 FROM tab1 AS cor0 WHERE ( + 0 * col0 + 82 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7446
SELECT ALL + COUNT( * ) DIV 84 + + 33 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL + COUNT ( * ) / 84 + + 33 FROM tab1 AS cor0
----
33

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL = + 78
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - 53 ) col1 FROM tab2
----
53

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL - col2 - - col2 * col0 FROM tab1
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT DISTINCT + col0 DIV col1 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT + col0 / col1 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7454
SELECT CAST( NULL AS SIGNED ), 77 AS col2 FROM tab0
----
NULL
77
NULL
77
NULL
77

skipif mysql # not compatible
query II rowsort label-7454
SELECT CAST ( NULL AS INTEGER ), 77 AS col2 FROM tab0
----
NULL
77
NULL
77
NULL
77

query I rowsort
SELECT col2 * + + col0 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT ( - - 44 ) FROM tab0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT CAST( NULL AS SIGNED ) - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT CAST ( NULL AS INTEGER ) - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - - col2 * col0 FROM tab0
----
720
957
9700

query II rowsort
SELECT ALL 39 AS col2, + ( - col0 ) AS col0 FROM tab2
----
39
-46
39
-64
39
-75

query I rowsort
SELECT 0 AS col1 FROM tab1 AS cor0 WHERE + col2 + + 3 + - ( col1 ) * + col1 / + col0 * col0 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + col2 / 61 NOT BETWEEN 90 - - 12 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + col2 / 61 NOT BETWEEN 90 - - 12 AND + col2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * 22 AS col0, col1 * + - 45 col0 FROM tab2
----
-1012
-2295
-1408
-3465
-1650
-3015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT ALL col2 * + - 59 * CAST( NULL AS SIGNED ) * + col1 * + - 28 * 92 / col2 * + 14 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL col2 * + - 59 * CAST ( NULL AS INTEGER ) * + col1 * + - 28 * 92 / col2 * + 14 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 12 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL + + ( + COUNT( ALL 86 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL + + ( + COUNT ( ALL 86 ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 39 / ( 74 ) * + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT + col1 DIV 73 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7468
SELECT + col1 / 73 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7469
SELECT DISTINCT - 14, 18 AS col2 FROM tab1 WHERE NOT - col2 BETWEEN - + col0 * + CAST( - col0 AS SIGNED ) AND - 99
----
-14
18

skipif mysql # not compatible
query II rowsort label-7469
SELECT DISTINCT - 14, 18 AS col2 FROM tab1 WHERE NOT - col2 BETWEEN - + col0 * + CAST ( - col0 AS INTEGER ) AND - 99
----
-14
18

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 95 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT MAX( - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7471
SELECT MAX ( - col1 ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT 24 * - 79 FROM tab1
----
-1896
-1896
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT COUNT( ALL - ( - col2 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7473
SELECT COUNT ( ALL - ( - col2 ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 + + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7475
SELECT DISTINCT * FROM tab2 WHERE + col2 * - + ( col2 ) NOT BETWEEN col0 AND CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7475
SELECT DISTINCT * FROM tab2 WHERE + col2 * - + ( col2 ) NOT BETWEEN col0 AND CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - 97 * 1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - 97 * 1 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT + + ( - 93 ) <= + ( + - ( + 47 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT + + ( - 93 ) <= + ( + - ( + 47 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL + ( + COUNT( DISTINCT + 82 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL + ( + COUNT ( DISTINCT + 82 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE 49 IS NULL
----

query I rowsort
SELECT col2 - ( - col2 ) + col1 * col1 AS col0 FROM tab0 AS cor0 WHERE + 18 IS NOT NULL AND NOT col0 IN ( + col2, + ( col2 ) )
----
199
461
6655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - 28 >= + col2 * - 23 - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 28 >= + col2 * - 23 - col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * - 84 * + 29 col1 FROM tab2 AS cor0
----
-112010
-155840
-182625

query I rowsort
SELECT ALL - 29 + + col1 AS col0 FROM tab1
----
-15
-24
18

query I rowsort
SELECT - col1 + + 17 AS col1 FROM tab1
----
-30
12
3

query I rowsort
SELECT col0 + 13 - - 39 * 88 FROM tab2
----
3491
3509
3520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7486
SELECT DISTINCT + col1 - - col1 + 27, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
189
NULL
29
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-7486
SELECT DISTINCT + col1 - - col1 + 27, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
189
NULL
29
NULL
69
NULL

query I rowsort
SELECT col1 * - - 31 + + 7 AS col0 FROM tab1
----
1464
162
441

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT + MAX( - ( - col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT + MAX ( - ( - col1 ) ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 39 ) col0, 68 + - col0 + - + col2 + + ( - + col1 ) FROM tab2 AS cor0
----
-39
-113
-39
-132
-39
-52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 78, + col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
78
46
78
64
78
75

query I rowsort
SELECT DISTINCT - ( - - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 14 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 33 <= - - 5 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 98 AS col0 FROM tab2 cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL - MIN( 37 ) AS col0 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - MIN ( 37 ) AS col0 FROM tab0 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT - col2 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT - col2 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL col1 * - - 2 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT 14 + + 40 - + col1 FROM tab0
----
-27
33
53

query I rowsort
SELECT ALL col0 * + + 63 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT DISTINCT + + 37 / + 80 FROM tab1 WHERE NOT col1 NOT BETWEEN + 72 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL COUNT( * ) * + 59 * - 88 * + COUNT( * ) FROM tab1
----
-46728

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL COUNT ( * ) * + 59 * - 88 * + COUNT ( * ) FROM tab1
----
-46728

query I rowsort
SELECT + 49 * - + col1 FROM tab2 WHERE NOT + col0 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT COUNT( * ) * ( + 54 ) * - COUNT( + 78 ) FROM tab1 cor0
----
-486

skipif mysql # not compatible
query I rowsort label-7506
SELECT COUNT ( * ) * ( + 54 ) * - COUNT ( + 78 ) FROM tab1 cor0
----
-486

query I rowsort
SELECT 93 AS col0 FROM tab0 cor0
----
93
93
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL - MIN( ALL - 9 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - MIN ( ALL - 9 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT DISTINCT 70, col2 AS col0 FROM tab2
----
70
23
70
40
70
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col2 FROM tab0 WHERE - col1 / - col2 + ( + + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - COUNT( * ) + - + 23 AS col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7512
SELECT - COUNT ( * ) + - + 23 AS col0 FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT ALL + col0, col2 * - col1 FROM tab2 AS cor0
----
46
-1173
64
-3080
75
-3886

query III rowsort
SELECT * FROM tab1 cor0 WHERE 30 * + 79 NOT BETWEEN NULL AND - + 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - col0 + + col0
----

query I rowsort
SELECT ALL + - col2 + - col1 AS col0 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - - col0 <> ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT ALL + + COUNT( * ) + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT + COUNT( * ) * + 49 * SUM( - + col1 ) FROM tab0 WHERE - col2 IN ( 7 * - col0 * - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT + COUNT ( * ) * + 49 * SUM ( - + col1 ) FROM tab0 WHERE - col2 IN ( 7 * - col0 * - 11 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 34 * - col0 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT ALL - 2 DIV + col2 - - 42 FROM tab2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL - 2 / + col2 - - 42 FROM tab2
----
42
42
42

query I rowsort
SELECT DISTINCT - col1 - + ( - - col1 ) + - 16 AS col0 FROM tab0
----
-178
-18
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT + 39 * - + COUNT( * ) - + MAX( ALL - col1 ) + - + COUNT( * ) FROM tab0
----
-119

skipif mysql # not compatible
query I rowsort label-7524
SELECT + 39 * - + COUNT ( * ) - + MAX ( ALL - col1 ) + - + COUNT ( * ) FROM tab0
----
-119

query I rowsort
SELECT ALL col0 * + col1 - - 99 AS col1 FROM tab1
----
4376
524
813

query II rowsort
SELECT ALL - col1 AS col2, col2 FROM tab0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT - ( col1 ) AS col1, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

query II rowsort
SELECT + 89 AS col2, - 51 FROM tab1
----
89
-51
89
-51
89
-51

query I rowsort
SELECT - 20 AS col2 FROM tab0 WHERE NOT + + col0 = - 19 * + col1 + + col0
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT - 9 * + col2 + + CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7530
SELECT - 9 * + col2 + + CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT - + 40 * + 41 FROM tab0 AS cor0
----
-1640
-1640
-1640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - col0 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 63 - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + col1, col2 * 78 FROM tab1 AS cor0
----
14
7488
47
5304
5
4602

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT - 94 * COUNT( * ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-7535
SELECT - 94 * COUNT ( * ) FROM tab1
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE - ( + - col1 ) < + + col2
----
1

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE - ( + - col1 ) < + + col2
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + - 63 + + col2 > NULL
----

query I rowsort
SELECT DISTINCT + ( - - 6 ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + - 0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + col2 + + 72 AS col1 FROM tab0 AS cor0
----
-2137
-28
-9729

query I rowsort
SELECT ALL + col2 * 52 FROM tab1
----
3068
3536
4992

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT ALL 72 AS col0, + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
72
-9

skipif mysql # not compatible
query II rowsort label-7542
SELECT ALL 72 AS col0, + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
72
-9

query I rowsort
SELECT DISTINCT 79 * col2 AS col1 FROM tab0
----
3713
7821
790

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT + 8 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7545
SELECT * FROM tab1 WHERE 79 * + 68 / - 94 - - col1 + 91 + ( - CAST( ( - 84 ) AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7545
SELECT * FROM tab1 WHERE 79 * + 68 / - 94 - - col1 + 91 + ( - CAST ( ( - 84 ) AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT DISTINCT - + 90 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-13
-23
-39

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT - + 90 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-13
-23
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT + + 36 + - COUNT( * ) + + - 1 AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7548
SELECT + + 36 + - COUNT ( * ) + + - 1 AS col2 FROM tab0 AS cor0
----
32

query I rowsort
SELECT DISTINCT - 2 + + - col0 FROM tab1 cor0
----
-53
-87
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL ( + 11 ) * - COUNT( * ) * + + 33 FROM tab2 WHERE NULL IN ( - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL ( + 11 ) * - COUNT ( * ) * + + 33 FROM tab2 WHERE NULL IN ( - 82 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7551
SELECT DISTINCT + 63 + + ( - col2 ) + - 8 DIV - col2 AS col2, 76 FROM tab2
----
23
76
40
76
5
76

skipif mysql # not compatible
query II rowsort label-7551
SELECT DISTINCT + 63 + + ( - col2 ) + - 8 / - col2 AS col2, 76 FROM tab2
----
23
76
40
76
5
76

query I rowsort
SELECT 28 * + + 87 FROM tab1
----
2436
2436
2436

query I rowsort
SELECT - + ( + + 70 ) + - 99 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL MIN( + col2 ) * + + ( - 92 ) FROM tab1 AS cor0
----
-5428

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL MIN ( + col2 ) * + + ( - 92 ) FROM tab1 AS cor0
----
-5428

query I rowsort
SELECT + + col2 - ( + + col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + 80 * - - col2 - - col2 * + - col2 + - + 49 * - col2 AS col2 FROM tab0 AS cor0
----
1103
2873
3839

query I rowsort
SELECT - col1 + + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT SUM( DISTINCT + 6 ) FROM tab1 AS cor0 WHERE - col2 * - 85 / - 32 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-7559
SELECT SUM ( DISTINCT + 6 ) FROM tab1 AS cor0 WHERE - col2 * - 85 / - 32 IS NOT NULL
----
6

query I rowsort
SELECT ALL col0 - - 8 * + col1 AS col0 FROM tab0
----
105
255
663

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7561
SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7561
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - - COUNT( ( + col0 ) ) AS col1 FROM tab1 WHERE NOT - col2 / + - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7562
SELECT - - COUNT ( ( + col0 ) ) AS col1 FROM tab1 WHERE NOT - col2 / + - col1 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL 62 * COUNT( * ) + - + SUM( - + col0 ) FROM tab2 AS cor0
----
371

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 62 * COUNT ( * ) + - + SUM ( - + col0 ) FROM tab2 AS cor0
----
371

query I rowsort
SELECT ALL - - col1 * + - 16 AS col2 FROM tab2 AS cor0
----
-1072
-1232
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - 35 col2 FROM tab1 AS cor0
----
14
-35
47
-35
5
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col2, - ( + ( ( - - 32 ) ) ) FROM tab0 AS cor0
----
-10
-32
-47
-32
-99
-32

onlyif mysql # aggregate syntax: 
query III rowsort label-7567
SELECT DISTINCT - + 22 AS col0, MAX( 67 ), MIN( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-22
67
23

skipif mysql # not compatible
query III rowsort label-7567
SELECT DISTINCT - + 22 AS col0, MAX ( 67 ), MIN ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-22
67
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7568
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7568
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL ) BETWEEN NULL AND ( col0 / + col0 ) )
----

query II rowsort
SELECT - 28, - col0 AS col1 FROM tab1 AS cor0
----
-28
-51
-28
-85
-28
-91

query I rowsort
SELECT DISTINCT - col2 * - + col2 - + 69 + - + col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1549
-591
-713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 87 + - + ( + ( - - col0 ) ) FROM tab1 AS cor0
----
-4
2
36

query I rowsort
SELECT + + 84 + + col1 - - col0 FROM tab2 AS cor0
----
181
225
226

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT + + 23 + COUNT( * ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT + + 23 + COUNT ( * ) FROM tab1 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 + col2 col2 FROM tab1 AS cor0
----
15
24
52

query I rowsort
SELECT ALL + + col0 + + + 31 + - - col2 * + - col1 * - col2 + + col0 * - col1 AS col1 FROM tab0 cor0
----
177760
391
9832

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7578
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7579
SELECT ALL - MIN( ALL - col1 ) AS col0, COUNT( * ) AS col1 FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-7579
SELECT ALL - MIN ( ALL - col1 ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
47
3

query II rowsort
SELECT + 43 * 50 AS col2, - col2 FROM tab0
----
2150
-10
2150
-47
2150
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT + COUNT( * ) + 40 AS col1 FROM tab0 WHERE NOT + col0 < - + 72
----
43

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT + COUNT ( * ) + 40 AS col1 FROM tab0 WHERE NOT + col0 < - + 72
----
43

query II rowsort
SELECT + col0, + col0 * + + col1 * - col0 / - + col1 + + 4 FROM tab2 WHERE 7 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ( - - COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7583
SELECT ( - - COUNT ( * ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col0 AND + - col2 + - 9 - + ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 84 * - 83 + 21 FROM tab0 AS cor0
----
6993
6993
6993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT ALL - + CAST( + 80 AS SIGNED ) FROM tab0 cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - + CAST ( + 80 AS INTEGER ) FROM tab0 cor0
----
-80
-80
-80

query III rowsort
SELECT * FROM tab0 WHERE 73 * 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7589
SELECT COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT ALL + col0 * + col0 + 9 AS col2 FROM tab2 AS cor0
----
2125
4105
5634

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - ( + - 74 ) * - MAX( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
1702

skipif mysql # not compatible
query I rowsort label-7591
SELECT - ( + - 74 ) * - MAX ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
1702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col0 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT + col1 * + col1 * + 71 AS col2, col1 AS col1 FROM tab2 AS cor0
----
184671
51
318719
67
420959
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( - col1, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - 49 AND NULL
----

query I rowsort
SELECT - - col0 * - 85 AS col0 FROM tab1 AS cor0
----
-4335
-7225
-7735

query II rowsort
SELECT DISTINCT + col1 * + ( + col0 ) * + col2 * + - col0 * - col2 AS col2, - ( + 29 ) FROM tab1 cor0
----
125751125
-29
1799693168
-29
335591424
-29

query I rowsort
SELECT ALL col0 + 73 AS col2 FROM tab1 AS cor0
----
124
158
164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7599
SELECT + + CAST( NULL AS DECIMAL ) * + 38 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT + + CAST ( NULL AS REAL ) * + 38 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col0, - 3 FROM tab0 AS cor0
----
-15
-3
-87
-3
-97
-3

query I rowsort
SELECT ALL 60 * + col2 FROM tab1 AS cor0
----
3540
4080
5760

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT DISTINCT - MAX( DISTINCT + - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT + + 35, - 9 AS col1 FROM tab2 AS cor0
----
35
-9
35
-9
35
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NOT ( NULL IN ( - col0, col2 * + + 77, - col0, - + 57 + col0, + - col2 ) )
----

query I rowsort
SELECT DISTINCT + 51 + - + col1 FROM tab1 WHERE NOT + col2 IS NULL
----
37
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ( ( + MAX( ALL - col0 ) ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7607
SELECT ( ( + MAX ( ALL - col0 ) ) ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7608
SELECT - MIN( DISTINCT + col0 ) DIV - + 9 - ( + + COUNT( * ) ) + + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-7608
SELECT - MIN ( DISTINCT + col0 ) / - + 9 - ( + + COUNT ( * ) ) + + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
-11

query I rowsort
SELECT ALL + 50 * + ( - col0 ) * + col2 * - 87 FROM tab2
----
11136000
18922500
4602300

query I rowsort
SELECT ALL col2 * + + 41 AS col2 FROM tab1
----
2419
2788
3936

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 80 IS NOT NULL
----

query I rowsort
SELECT + 28 * + + col1 AS col0 FROM tab2 AS cor0
----
1428
1876
2156

query I rowsort
SELECT ALL - + 6 AS col1 FROM tab1 cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT ( 72 ) AS col2 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT MIN( - 99 ) AS col0 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-7615
SELECT MIN ( - 99 ) AS col0 FROM tab1
----
-99

query I rowsort
SELECT + col1 + - 73 FROM tab0 AS cor0 WHERE NOT - col2 - + col2 - + 33 + col0 + - col1 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 BETWEEN - + 79 AND NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 / - - 9 + 10 * col1 * + - 62 + + 90, - col2, - 14, - - CAST( NULL AS SIGNED ) + - ( CAST( + 59 AS SIGNED ) ), + - col2 - + col1 + - - col1 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 / - - 9 + 10 * col1 * + - 62 + + 90, - col2, - 14, - - CAST ( NULL AS INTEGER ) + - ( CAST ( + 59 AS INTEGER ) ), + - col2 - + col1 + - - col1 * + col0 )
----

query I rowsort
SELECT col2 * - + col1 + + col0 AS col1 FROM tab2 AS cor0 WHERE NULL <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT + - CAST( + 47 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-7622
SELECT + - CAST ( + 47 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT DISTINCT 33 * - CAST( + col0 AS SIGNED ) FROM tab2
----
-1518
-2112
-2475

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT 33 * - CAST ( + col0 AS INTEGER ) FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT - col0 + - - col1 + col1 AS col1 FROM tab0
----
-45
-95
147

query I rowsort
SELECT col1 + - - col1 AS col1 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT ALL - - 45 * - + AVG ( 18 ) * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - - 45 * - + AVG ( 18 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT DISTINCT + + col1 + - + 46 * - 82 + col1 DIV - + ( + 69 ) * - col1 + + col0 AS col2 FROM tab1 AS cor0
----
3837
3862
3910

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT + + col1 + - + 46 * - 82 + col1 / - + ( + 69 ) * - col1 + + col0 AS col2 FROM tab1 AS cor0
----
3837
3862
3910

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE + col0 NOT IN ( + + col0, col1 - - + ( - col2 ) + + col1 / + 31, + col0 + col1 * - 19 )
----

query II rowsort
SELECT - + 82 AS col1, col2 FROM tab0 AS cor0
----
-82
10
-82
47
-82
99

query I rowsort
SELECT DISTINCT + col1 + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT 48 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + + 13 FROM tab2 WHERE col1 * + + col2 + 40 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT COUNT( ALL + ( - 57 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT COUNT ( ALL + ( - 57 ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + ( + + 90 ) FROM tab0 AS cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - col0 - + ( + col0 ) * ( - col1 ) col0 FROM tab2 AS cor0
----
-460
1024
450

query I rowsort
SELECT DISTINCT - + 36 AS col1 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT - - col2 * col1 + col2 + + col2 * - col2 FROM tab2 AS cor0
----
1520
580
667

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7639
SELECT col0 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7639
SELECT col0 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL + 7 * - col2 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 62 * - - col1 AS col0 FROM tab0
----
-1302
-5022
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT ALL CAST( 38 AS SIGNED ) * + col1 FROM tab2
----
1938
2546
2926

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL CAST ( 38 AS INTEGER ) * + col1 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT - - col2 * 5 AS col0 FROM tab2 cor0
----
115
200
290

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT + - MIN( + ( - - 10 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7644
SELECT + - MIN ( + ( - - 10 ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT + - COUNT( * ) * + - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7645
SELECT + - COUNT ( * ) * + - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col0 * - + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT ALL - 10 * + - CAST( NULL AS SIGNED ) + - + ( - + 30 ) * + 68 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - 10 * + - CAST ( NULL AS INTEGER ) + - + ( - + 30 ) * + 68 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT - - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7648
SELECT - - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL - 78 + - - 59 AS col1 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - + 37 AS col1 FROM tab0 cor0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT - 58 DIV + col0 + 9 AS col1 FROM tab1 AS cor0
----
8
9
9

skipif mysql # not compatible
query I rowsort label-7651
SELECT - 58 / + col0 + 9 AS col1 FROM tab1 AS cor0
----
8
9
9

query I rowsort
SELECT col1 + - 64 FROM tab1 AS cor0
----
-17
-50
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT + + COUNT( * ) + + - COUNT( * ) FROM tab0 cor0 WHERE - col1 / - - col0 = + col2
----
0

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT + + COUNT ( * ) + + - COUNT ( * ) FROM tab0 cor0 WHERE - col1 / - - col0 = + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL - + SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE col2 > - 51
----
-185

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL - + SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE col2 > - 51
----
-185

query I rowsort
SELECT ALL - col0 + col2 + - col2 * + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1242
-3168
-3978

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7656
SELECT + col1 * 0 + + col0 col0 FROM tab0 AS cor0 WHERE + 11 > - col0 + - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7656
SELECT + col1 * 0 + + col0 col0 FROM tab0 AS cor0 WHERE + 11 > - col0 + - + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( + col0 * - col2 * + - col2 * - col1 IS NOT NULL )
----

query I rowsort
SELECT col1 * + col1 * - ( + 85 ) FROM tab2
----
-221085
-381565
-503965

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT DISTINCT + COUNT( * ) AS col2, MIN( + 84 ) FROM tab0 WHERE NOT ( NOT ( NULL ) < NULL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7659
SELECT DISTINCT + COUNT ( * ) AS col2, MIN ( + 84 ) FROM tab0 WHERE NOT ( NOT ( NULL ) < NULL )
----
0
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col1 IN ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT COUNT( * ) * - - 8 col1 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7661
SELECT COUNT ( * ) * - - 8 col1 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL - COUNT( ALL - ( col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL - COUNT ( ALL - ( col0 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + col0 FROM tab0 WHERE ( NOT ( NULL ) BETWEEN NULL AND - 1 )
----

query I rowsort
SELECT + - col1 + - col2 + - + col0 * col2 + + - col2 FROM tab0 AS cor0
----
-880
-911
-9802

query I rowsort
SELECT DISTINCT + 36 + + col1 FROM tab1 cor0
----
41
50
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7666
SELECT DISTINCT + MAX( DISTINCT + col0 ) - + COUNT( * ), + 91 + 64 - - COUNT( * ) AS col0 FROM tab2 cor0
----
72
158

skipif mysql # not compatible
query II rowsort label-7666
SELECT DISTINCT + MAX ( DISTINCT + col0 ) - + COUNT ( * ), + 91 + 64 - - COUNT ( * ) AS col0 FROM tab2 cor0
----
72
158

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7667
SELECT - CAST( NULL AS SIGNED ) + - - col2, - col0 * + col1 AS col1 FROM tab0
----
NULL
-1215
NULL
-1827
NULL
-97

skipif mysql # not compatible
query II rowsort label-7667
SELECT - CAST ( NULL AS INTEGER ) + - - col2, - col0 * + col1 AS col1 FROM tab0
----
NULL
-1215
NULL
-1827
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - SUM( - col0 ) + + 17 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-7668
SELECT - SUM ( - col0 ) + + 17 FROM tab0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT SUM( DISTINCT + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7669
SELECT SUM ( DISTINCT + col1 ) AS col1 FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT ALL col0 * - - CAST( NULL AS SIGNED ) / col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL col0 * - - CAST ( NULL AS INTEGER ) / col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + col0 ) + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7672
SELECT DISTINCT + ( - - CAST( NULL AS DECIMAL ) ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7672
SELECT DISTINCT + ( - - CAST ( NULL AS REAL ) ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 24 * + col2 - 14 + - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7674
SELECT col2 * + col1 * 90 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + - col0 + - col0 / col1 NOT IN ( + ( - 51 ), + CAST( + ( col2 ) AS SIGNED ) / + col1 * - + 23 + + col0, col2, CAST( - + col0 AS SIGNED ), ( + col1 ), - col0 ) )
----
105570
277200
349740

skipif mysql # not compatible
query I rowsort label-7674
SELECT col2 * + col1 * 90 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + - col0 + - col0 / col1 NOT IN ( + ( - 51 ), + CAST ( + ( col2 ) AS INTEGER ) / + col1 * - + 23 + + col0, col2, CAST ( - + col0 AS INTEGER ), ( + col1 ), - col0 ) )
----
105570
277200
349740

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL + SUM( col0 ) col2 FROM tab1 AS cor0 WHERE NOT + 10 < col1
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7675
SELECT ALL + SUM ( col0 ) col2 FROM tab1 AS cor0 WHERE NOT + 10 < col1
----
85

query III rowsort
SELECT col0 AS col2, ( + col0 ) * - + 17, - col0 AS col1 FROM tab1 AS cor0
----
9 values hashing to 4f26050c8063381de8a44053d0bbdee0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7677
SELECT 35 DIV + COUNT( * ) col1 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT 35 / + COUNT ( * ) col1 FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL 21 * - CAST( NULL AS SIGNED ) * - ( - + 47 ) * - - col1 + - col0 + - - col1 * + CAST( + + 19 AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL 21 * - CAST ( NULL AS INTEGER ) * - ( - + 47 ) * - - col1 + - col0 + - - col1 * + CAST ( + + 19 AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col2 FROM tab1
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT + COUNT( * ) * - + ( - + ( + + COUNT( * ) ) ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT + COUNT ( * ) * - + ( - + ( + + COUNT ( * ) ) ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - MIN( + - 2 ) AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7681
SELECT - MIN ( + - 2 ) AS col2 FROM tab2
----
2

query I rowsort
SELECT 32 * - col2 / - + ( - col2 ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= - col2
----

query I rowsort
SELECT DISTINCT - ( - - ( col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - 8 * - COUNT( * ) AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7685
SELECT - 8 * - COUNT ( * ) AS col1 FROM tab0
----
24

query I rowsort
SELECT DISTINCT + 25 + - col2 AS col2 FROM tab2
----
-15
-33
2

query I rowsort
SELECT + AVG ( DISTINCT 10 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL < NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7688
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 + CAST( col1 AS SIGNED ) - + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7688
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 + CAST ( col1 AS INTEGER ) - + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7689
SELECT - MAX( ALL - col1 ) DIV 39 + + + COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7689
SELECT - MAX ( ALL - col1 ) / 39 + + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col2 + + - 12 FROM tab2 AS cor0
----
-35
-52
-70

query I rowsort
SELECT DISTINCT + 22 * - col1 * + + col1 * - col0 * col0 FROM tab0 cor0
----
206998
32476950
73434438

query I rowsort
SELECT ALL - + col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT + 96 - + 94 * 67 - + col0 + - + col1 + - + col0 * - - col2 FROM tab0 AS cor0
----
-15903
-7003
-7180

query II rowsort
SELECT - col1 AS col0, - 63 FROM tab1 AS cor0 WHERE NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT col1 + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7695
SELECT col1 + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT + + COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 + + - 67 IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-7696
SELECT + + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 + + - 67 IS NOT NULL
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + 6 + MIN( - 82 ) AS col1 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-7697
SELECT + 6 + MIN ( - 82 ) AS col1 FROM tab1
----
-76

query I rowsort
SELECT ALL - col2 + + 63 AS col0 FROM tab0
----
-36
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7699
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - 16 IN ( - col0 * - - 61 + + - col0, col2 * + ( - ( - col2 ) ) / col0 + - CAST( NULL AS SIGNED ) / + 66 )
----

skipif mysql # not compatible
query III rowsort label-7699
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - 16 IN ( - col0 * - - 61 + + - col0, col2 * + ( - ( - col2 ) ) / col0 + - CAST ( NULL AS INTEGER ) / + 66 )
----

query I rowsort
SELECT DISTINCT + 94 * + 16 - - - col2 AS col0 FROM tab1
----
1408
1436
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT - - COUNT( * ) FROM tab2 cor0 WHERE col2 BETWEEN col1 AND 6
----
0

skipif mysql # not compatible
query I rowsort label-7701
SELECT - - COUNT ( * ) FROM tab2 cor0 WHERE col2 BETWEEN col1 AND 6
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7702
SELECT ALL CAST( COUNT( ALL + col1 ) AS SIGNED ) FROM tab2 cor0 WHERE NOT 80 >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL CAST ( COUNT ( ALL + col1 ) AS INTEGER ) FROM tab2 cor0 WHERE NOT 80 >= - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + - col1 < + col2
----
0

skipif mysql # not compatible
query I rowsort label-7703
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + - col1 < + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 71 < 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT COUNT( DISTINCT 25 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT COUNT ( DISTINCT 25 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL - - MIN( col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7706
SELECT ALL - - MIN ( col0 ) col2 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col1 - + col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + col2 + + 25 + - 80 * - + 72 + + 66, 33, + col0 + - 25 * - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 0 + + - 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab0
----
29
29
29

query II rowsort
SELECT DISTINCT + 30 AS col1, col2 AS col1 FROM tab2
----
30
23
30
40
30
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - - col2 ) BETWEEN ( NULL ) AND + col0
----
51
14
96

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - 64 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL - ( MAX( - + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - ( MAX ( - + col0 ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL - MAX( DISTINCT + col0 ) col0 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7715
SELECT ALL - MAX ( DISTINCT + col0 ) col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL - COUNT( * ) + - 6 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL - COUNT ( * ) + - 6 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 15 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 1 ) + + col2 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT DISTINCT col2 - + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT ALL + col0 + - col1 * - 52 FROM tab2 AS cor0
----
2698
3559
4068

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL - COUNT( * ) + + + 53 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL - COUNT ( * ) + + + 53 FROM tab0
----
50

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 IS NULL OR - col1 * - col0 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 - - 19 FROM tab1
----
-40
-49
-77

query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab0 WHERE NULL > - col1 * - col1 - + 35
----

query I rowsort
SELECT ALL col0 * 67 FROM tab0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 - ( - col1 ) AS col0 FROM tab1
----
110
115
64

query II rowsort
SELECT - col2 - 27 - + col2 AS col2, 33 + - + col1 * col1 FROM tab2 AS cor0
----
-107
-5896
-143
-4456
-73
-2568

onlyif mysql # aggregate syntax: 
query II rowsort label-7729
SELECT DISTINCT - + 20 AS col1, MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
-20
97

skipif mysql # not compatible
query II rowsort label-7729
SELECT DISTINCT - + 20 AS col1, MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-20
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT ALL 10 * + 9 AS col2 FROM tab0
----
90
90
90

query I rowsort
SELECT DISTINCT 94 * - - col2 FROM tab2
----
2162
3760
5452

query I rowsort
SELECT DISTINCT ( + 77 ) FROM tab2
----
77

query I rowsort
SELECT ALL + col1 * 25 - - 65 + 72 FROM tab1 AS cor0
----
1312
262
487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7735
SELECT ALL - MAX( ALL - col2 ) DIV + + 71 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - MAX ( ALL - col2 ) / + + 71 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 69 <= NULL
----

query I rowsort
SELECT DISTINCT + - 28 * - + col2 AS col0 FROM tab0 AS cor0
----
1316
2772
280

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT ALL - ( - col0 ) DIV - - 36 AS col1 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL - ( - col0 ) / - - 36 AS col1 FROM tab2 cor0
----
1
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7739
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7739
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab2
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 91 ) col2 FROM tab1
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7742
SELECT - ( col1 ) DIV - + col0, - CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
0
-10
0
-99
5
-47

skipif mysql # not compatible
query II rowsort label-7742
SELECT - ( col1 ) / - + col0, - CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
0
-10
0
-99
5
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT + 62 DIV col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7743
SELECT + 62 / col2 AS col2 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL + 34 * - - col0 FROM tab1
----
1734
2890
3094

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE col2 / col0 * + + col0 NOT IN ( - 73, col2 * - col0, - col1 )
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > - col2
----

query I rowsort
SELECT ALL + + ( - col1 ) + + col0 AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL col2 - - 58 + col2 * - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 35 >= - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 41 * + + col0 FROM tab1
----
2091
3485
3731

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN + - 53 AND - + 59 + 56 * - ( - ( - + col1 ) ) * 73 + - 12 - + + col1 + - 20 / + 36
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 76 - 14 AS col2 FROM tab0 AS cor0
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 78 > - - col0 AND 48 IS NULL
----

query I rowsort
SELECT ALL 60 + + + ( + - col1 ) FROM tab0 cor0
----
-21
39
59

query I rowsort
SELECT col1 * - col1 + + 38 FROM tab1 AS cor0
----
-158
-2171
13

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 IS NULL AND NOT col1 IS NOT NULL
----

query I rowsort
SELECT - - col0 + - - 77 FROM tab0 AS cor0
----
164
174
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7759
SELECT - COUNT( * ) + - - SUM( - col2 ) DIV SUM( ( + col1 ) ) * + COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7759
SELECT - COUNT ( * ) + - - SUM ( - col2 ) / SUM ( ( + col1 ) ) * + COUNT ( * ) FROM tab1
----
-12

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1, tab0 AS cor0
----
87

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + + col2 IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 * + + 87 * - col2 col1, col1 FROM tab1
----
-441438
5
-508776
47
-718272
14

query I rowsort
SELECT ALL - 73 * - 30 * 65 AS col2 FROM tab1 AS cor0
----
142350
142350
142350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7764
SELECT ALL + CAST( - col2 AS SIGNED ) AS col1, + 46 + - col1 + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 87
----

skipif mysql # not compatible
query II rowsort label-7764
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col1, + 46 + - col1 + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 87
----

onlyif mysql # aggregate syntax: 
query III rowsort label-7765
SELECT DISTINCT + 10 AS col1, - 81 col0, - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
10
-81
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7765
SELECT DISTINCT + 10 AS col1, - 81 col0, - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
10
-81
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT ALL - - col2 DIV col0 AS col2 FROM tab2 WHERE NOT ( - + 5 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL - - col2 / col0 AS col2 FROM tab2 WHERE NOT ( - + 5 ) IS NULL
----
0
0
0

query II rowsort
SELECT DISTINCT - col0 AS col1, + col2 * 34 + - 31 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-51
3233
-85
1975
-91
2281

query I rowsort
SELECT - ( + 25 ) + - col2 - ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-143
-161
-217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT 31 * + + col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 35 * col1 + + - ( + ( - 47 ) ) FROM tab0 AS cor0
----
2882
782
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col2 FROM tab1 AS cor0
----
16

query I rowsort
SELECT ALL 94 * + col2 + - 75 * + + col2 * - col0 * + - col0 + + - 97 AS col1 FROM tab1
----
-18718273
-31965176
-42226805

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + - col1 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT - COUNT( * ) DIV - COUNT( ALL + col0 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7775
SELECT - COUNT ( * ) / - COUNT ( ALL + col0 ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7776
SELECT - ( + col2 ) AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-7776
SELECT - ( + col2 ) AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT 32 + - COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-7777
SELECT 32 + - COUNT ( * ) FROM tab1
----
29

query I rowsort
SELECT col0 + + - 39 AS col0 FROM tab2
----
25
36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7779
SELECT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + 83 - col1 col2, - 89 * col2 AS col1 FROM tab2
----
46
-3560
55
-2047
74
-5162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT - 48 DIV COUNT( * ) * - 71 FROM tab2 AS cor0
----
1136

skipif mysql # not compatible
query I rowsort label-7781
SELECT - 48 / COUNT ( * ) * - 71 FROM tab2 AS cor0
----
1136

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT COUNT( * ) + - + MAX( DISTINCT - col1 ) FROM tab0 cor0 WHERE ( NULL ) BETWEEN col1 AND 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT COUNT ( * ) + - + MAX ( DISTINCT - col1 ) FROM tab0 cor0 WHERE ( NULL ) BETWEEN col1 AND 91
----
NULL

query I rowsort
SELECT DISTINCT - - 26 + + - col2 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
-1449
-150186
-18790

query I rowsort
SELECT ALL 39 - col2 FROM tab0 cor0
----
-60
-8
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT - MIN( - - ( - + 71 ) ) AS col1 FROM tab0 WHERE + - col2 * + - col0 IS NOT NULL
----
71

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT - MIN ( - - ( - + 71 ) ) AS col1 FROM tab0 WHERE + - col2 * + - col0 IS NOT NULL
----
71

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 <= 30
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT COUNT( * ) AS col0, - ( 94 ) + COUNT( * ) + 19 FROM tab0
----
3
-72

skipif mysql # not compatible
query II rowsort label-7787
SELECT COUNT ( * ) AS col0, - ( 94 ) + COUNT ( * ) + 19 FROM tab0
----
3
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT - SUM( ALL col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT 18 * COUNT( * ) * + - COUNT( * ) FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-7789
SELECT 18 * COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
-162

query II rowsort
SELECT DISTINCT col1, - col2 * - 51 AS col2 FROM tab2 AS cor0
----
51
1173
67
2958
77
2040

query I rowsort
SELECT DISTINCT - col1 - - col1 AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL = NULL )
----

query I rowsort
SELECT 58 * 34 FROM tab0 AS cor0
----
1972
1972
1972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL - CAST( - 23 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - CAST ( - 23 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT ALL 28 * - - 3 AS col1 FROM tab1
----
84
84
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7795
SELECT SUM( - 35 ) DIV + MAX( ALL + + 48 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-7795
SELECT SUM ( - 35 ) / + MAX ( ALL + + 48 ) FROM tab2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT DISTINCT - - col2 DIV - ( - - col2 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - - col2 / - ( - - col2 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7798
SELECT - + COUNT( * ) * 83, - 95 AS col2 FROM tab2 AS cor0
----
-249
-95

skipif mysql # not compatible
query II rowsort label-7798
SELECT - + COUNT ( * ) * 83, - 95 AS col2 FROM tab2 AS cor0
----
-249
-95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 15 <= + col1
----
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE + - col0 * col1 IN ( - col2, - col2, + 51, + col2 - col2 * - + col1, + col0 * - 38 * + col0 )
----

query I rowsort
SELECT DISTINCT ( + - col1 ) + - - col0 AS col2 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT DISTINCT col2 DIV col0 * 79 FROM tab1
----
0
79

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT col2 / col0 * 79 FROM tab1
----
0
79

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 * col0 + - + col1 <= NULL )
----

query I rowsort
SELECT 66 + - col1 AS col0 FROM tab1
----
19
52
61

query II rowsort
SELECT ALL + 32, col2 AS col2 FROM tab0
----
32
10
32
47
32
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT ALL - - 33 + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - - 33 + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 cor0 WHERE NULL <> + col1 + 43
----

query I rowsort
SELECT col1 + col0 * + 71 FROM tab1
----
3635
6040
6508

query I rowsort
SELECT + 37 FROM tab2 WHERE NOT NULL IN ( + 37 + + 69 * + col2 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE + 77 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) AS col0 FROM tab2 WHERE - 52 * - 91 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( + 65 ) * 51 + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - 75 * - 88 FROM tab0
----
6610
6647
6699

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT + 19 DIV + ( - 86 ) col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7815
SELECT + 19 / + ( - 86 ) col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 98 * - col0 - col2 AS col1 FROM tab2 WHERE 58 <> + ( ( col2 ) )
----
4485
6232

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT - 8 DIV 27 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7817
SELECT - 8 / 27 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT - 19 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT - 19 / - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL - 93 * COUNT( * ) AS col1 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL - 93 * COUNT ( * ) AS col1 FROM tab1
----
-279

query I rowsort
SELECT + 9 * ( col2 ) FROM tab2
----
207
360
522

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( NULL ) BETWEEN col2 AND col1 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( NULL ) BETWEEN col2 AND col1 * + col1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( col1 - + col2 * col0 )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 + 97 FROM tab1
----
148
182
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT + 23 - - col1 * - CAST( col2 AS SIGNED ) FROM tab2 WHERE 81 >= col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7825
SELECT + 23 - - col1 * - CAST ( col2 AS INTEGER ) FROM tab2 WHERE 81 >= col2 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 BETWEEN - 93 * col1 AND + 65
----
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN + 96 * col1 AND ( col1 + 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) BETWEEN NULL AND ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7829
SELECT * FROM tab2 WHERE NOT 68 * - 2 + col2 * - 77 > - CAST( NULL AS SIGNED ) * 88
----

skipif mysql # not compatible
query III rowsort label-7829
SELECT * FROM tab2 WHERE NOT 68 * - 2 + col2 * - 77 > - CAST ( NULL AS INTEGER ) * 88
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7830
SELECT COUNT( * ) * + ( COUNT( * ) DIV COUNT( * ) ) - ( - 53 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-7830
SELECT COUNT ( * ) * + ( COUNT ( * ) / COUNT ( * ) ) - ( - 53 ) FROM tab1
----
56

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * - 32 - - col1 ) <> ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - col0 * - col0 NOT IN ( col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT SUM( ALL 26 ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7833
SELECT SUM ( ALL 26 ) AS col1 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT SUM( + 28 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7834
SELECT SUM ( + 28 ) FROM tab0
----
84

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 / 31 ) IS NULL
----

query I rowsort
SELECT col2 * 2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7837
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7837
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT - 25 DIV - col0 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT - 25 / - col0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 26 * + col2 AS col1 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT col2 - col2 BETWEEN CAST( 13 AS SIGNED ) AND ( - col2 * + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7840
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT col2 - col2 BETWEEN CAST ( 13 AS INTEGER ) AND ( - col2 * + col2 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - 20 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - 33 AS col2 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT + 42 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT col2 * + 82 + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL COUNT( * ) FROM tab2 WHERE - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL COUNT ( * ) FROM tab2 WHERE - col1 <> NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7846
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT DISTINCT + 10 FROM tab0 AS cor0 WHERE 96 + CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT + 10 FROM tab0 AS cor0 WHERE 96 + CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT + COUNT( + col2 ) + + ( SUM( col1 ) ) col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7848
SELECT + COUNT ( + col2 ) + + ( SUM ( col1 ) ) col2 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT - 15 + MAX( DISTINCT + 4 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT - 15 + MAX ( DISTINCT + 4 ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT + col0 * 83 + 98 AS col2 FROM tab2 AS cor0
----
3916
5410
6323

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - 89 + COUNT( * ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7851
SELECT - 89 + COUNT ( * ) FROM tab1 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 51 * - ( + 84 + + col0 * + col0 ) + - col0 col1 FROM tab2 AS cor0
----
-112246
-213244
-291234

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL MAX( DISTINCT 90 ) FROM tab0 cor0 WHERE NULL IS NULL
----
90

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL MAX ( DISTINCT 90 ) FROM tab0 cor0 WHERE NULL IS NULL
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT DISTINCT - col1 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - col1 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT MAX( DISTINCT + CAST( col2 AS SIGNED ) ) + COUNT( * ) col1 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7855
SELECT MAX ( DISTINCT + CAST ( col2 AS INTEGER ) ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT COUNT( * ) DIV + COUNT( 90 ) FROM tab1 AS cor0 WHERE 65 IN ( col1 - - col0 )
----
1

skipif mysql # not compatible
query I rowsort label-7856
SELECT COUNT ( * ) / + COUNT ( 90 ) FROM tab1 AS cor0 WHERE 65 IN ( col1 - - col0 )
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / col0 + col1 * col2 >= + 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + + col1 * - 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 99 * + + 46 FROM tab2
----
-4554
-4554
-4554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT SUM( DISTINCT col2 ) DIV 22 AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-7860
SELECT SUM ( DISTINCT col2 ) / 22 AS col2 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - COUNT( * ) * - 89 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-7861
SELECT - COUNT ( * ) * - 89 FROM tab0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT col1 + col1 <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT col1 + col1 <> - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + + 10 * + ( + COUNT( * ) ) + 38 AS col2 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7863
SELECT + + 10 * + ( + COUNT ( * ) ) + 38 AS col2 FROM tab2 AS cor0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT + MAX( - + col2 ) DIV - 29 - - 85 * + ( 61 ) FROM tab0 AS cor0
----
5185

skipif mysql # not compatible
query I rowsort label-7864
SELECT + MAX ( - + col2 ) / - 29 - - 85 * + ( 61 ) FROM tab0 AS cor0
----
5185

query I rowsort
SELECT DISTINCT - 91 + + + col2 AS col2 FROM tab1 AS cor0
----
-23
-32
5

query I rowsort
SELECT DISTINCT 64 * + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
1431
161
5199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT DISTINCT - CAST( CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - CAST ( CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 18 - - 49 * + - col0 AS col0 FROM tab2
----
-2236
-3118
-3657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT ALL + CAST( col0 AS SIGNED ) - + col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + CAST ( col0 AS INTEGER ) - + col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-2
-32
77

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT 93 AS col2, + col1 + - col1 + col2 * 96 FROM tab1 AS cor0
----
93
5664
93
6528
93
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE NOT NULL < ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + - SUM( col0 ) col0 FROM tab2 cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7874
SELECT + - SUM ( col0 ) col0 FROM tab2 cor0
----
-185

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7876
SELECT DISTINCT + 63, + 69 DIV - COUNT( * ) AS col2 FROM tab2 cor0
----
63
-23

skipif mysql # not compatible
query II rowsort label-7876
SELECT DISTINCT + 63, + 69 / - COUNT ( * ) AS col2 FROM tab2 cor0
----
63
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT ALL CAST( NULL AS SIGNED ) / - 32 - AVG ( ALL col1 ) + + 43 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL CAST ( NULL AS INTEGER ) / - 32 - AVG ( ALL col1 ) + + 43 AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col0 AS col2, 86 + col1 AS col2 FROM tab2 AS cor0
----
46
137
64
163
75
153

query I rowsort
SELECT ALL + col2 * - 66 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3102
-6534
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT 0 * - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT 0 * - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT MIN( + 86 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT MIN ( + 86 ) FROM tab0
----
86

query III rowsort
SELECT * FROM tab0 WHERE NOT + 69 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT MIN( ALL 18 ) * + 0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7883
SELECT MIN ( ALL 18 ) * + 0 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE NOT + col0 + - 42 / + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT - COUNT( col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT - COUNT ( col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT 55 + - col1 + col1 + - 63 * 97 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 42 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 17 > - col1
----
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT + MAX( ALL + - 21 ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-7889
SELECT + MAX ( ALL + - 21 ) FROM tab1
----
-21

query I rowsort
SELECT + ( - col2 ) FROM tab1 WHERE + col0 / + 17 <> col2
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col2 + + - col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 >= + 34
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7893
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - 87 * - col1 FROM tab1 AS cor0 WHERE ( NULL ) = ( - 72 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 62 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL + 43 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + 43 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT - + col2 + - 65 AS col1 FROM tab0 AS cor0
----
-112
-164
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT ALL + CAST( NULL AS SIGNED ) * 60 - - 18 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL + CAST ( NULL AS INTEGER ) * 60 - - 18 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT + + col0 + col1 + + col1 + + + col2 - + col2 - col1 * 48 DIV 25 AS col0 FROM tab1 AS cor0
----
53
86
95

skipif mysql # not compatible
query I rowsort label-7900
SELECT + + col0 + col1 + + col1 + + + col2 - + col2 - col1 * 48 / 25 AS col0 FROM tab1 AS cor0
----
53
86
95

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7902
SELECT 76 * + - CAST( NULL AS DECIMAL ) + - col1 + + - col0, - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-7902
SELECT 76 * + - CAST ( NULL AS REAL ) + - col1 + + - col0, - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT + col2 * - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - col0 - - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT + col2 * - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - col0 - - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 47 + + col1 + - col1 * + 49 FROM tab2
----
-2401
-3169
-3649

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE + ( col1 ) + - 27 = ( + + col1 )
----

query II rowsort
SELECT ALL + col1 AS col0, - 72 FROM tab1
----
14
-72
47
-72
5
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( + col2 + + 34 ) AND NULL
----

query I rowsort
SELECT - - 33 * + 11 FROM tab0 AS cor0
----
363
363
363

query I rowsort
SELECT col2 - col2 FROM tab1 AS cor0 WHERE - 48 NOT IN ( - - col2 * - 13 + - 58 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 71 + - 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7911
SELECT COUNT( * ) * - MIN( ALL 11 ) + - 47 FROM tab0 AS cor0 WHERE - col0 IN ( + - ( + + 36 ) / - - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT COUNT ( * ) * - MIN ( ALL 11 ) + - 47 FROM tab0 AS cor0 WHERE - col0 IN ( + - ( + + 36 ) / - - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + + col2 + + 2 AS col2 FROM tab1 AS cor0
----
61
70
98

query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - 10 + + + SUM( col0 ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - 10 + + + SUM ( col0 ) FROM tab0 AS cor0
----
189

query I rowsort
SELECT col1 - + - 65 AS col1 FROM tab0
----
146
66
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT CAST( NULL AS SIGNED ) * - 31 - - ( + + col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT CAST ( NULL AS INTEGER ) * - 31 - - ( + + col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + 34 * + 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 642ddfef16d0a0e79570b63159a57430

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + ( 29 ) * 54 + col1 ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL col2 * - col1 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + col0 + - - 13 + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT 64 DIV - ( - col0 ) FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7922
SELECT 64 / - ( - col0 ) FROM tab0 AS cor0
----
0
0
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7923
SELECT ALL COUNT( * ) DIV 54 * COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL COUNT ( * ) / 54 * COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT + 57 + + ( 72 ) * - ( ( 27 ) ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 87 AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - + col1 * - ( - col1 ) FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + + 5 - - + ( + + col0 ) + + ( col2 ) * + + 31 + ( col1 ) BETWEEN col1 * col2 AND - col2
----
-15
-87
-97

query I rowsort
SELECT - 13 * - col1 AS col1 FROM tab2
----
1001
663
871

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 39 * col2 AS col0 FROM tab1
----
2301
2652
3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7934
SELECT + CAST( NULL AS SIGNED ) AS col1, col1 DIV - col1 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-7934
SELECT + CAST ( NULL AS INTEGER ) AS col1, col1 / - col1 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

query II rowsort
SELECT col2 AS col0, + 70 AS col0 FROM tab1 cor0
----
59
70
68
70
96
70

query I rowsort
SELECT ALL 59 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - - 78 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
78

query I rowsort
SELECT DISTINCT + 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

query III rowsort
SELECT * FROM tab1 WHERE ( + + col2 ) >= - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 69 + 58 + 86 AS col0 FROM tab1 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + - - col0 + - 94 + + + col2 * 54 + - col0 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3150
3636
5148

onlyif mysql # DIV for integer division: 
query I rowsort label-7942
SELECT + + col0 + 91 + - col1 + + col2 DIV - 88 FROM tab1 cor0
----
127
135
171

skipif mysql # not compatible
query I rowsort label-7942
SELECT + + col0 + 91 + - col1 + + col2 / - 88 FROM tab1 cor0
----
127
135
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT 8 + + CAST( + 79 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-7943
SELECT 8 + + CAST ( + 79 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT - - col1 * 92 + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
1370
4345
514

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT - 2 * col1 DIV - col1 + + col0 AS col0 FROM tab0 AS cor0
----
17
89
99

skipif mysql # not compatible
query I rowsort label-7945
SELECT - 2 * col1 / - col1 + + col0 AS col0 FROM tab0 AS cor0
----
17
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL - COUNT( * ) + - COUNT( ALL 86 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - COUNT ( * ) + - COUNT ( ALL 86 ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT - 41 DIV + 93 FROM tab2 AS cor0 WHERE + col0 NOT IN ( + ( col2 ) )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT - 41 / + 93 FROM tab2 AS cor0 WHERE + col0 NOT IN ( + ( col2 ) )
----
0
0
0

query I rowsort
SELECT ALL + col1 + - 6 AS col0 FROM tab0 AS cor0
----
-5
15
75

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL MAX( + - 25 ) col0 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7950
SELECT ALL MAX ( + - 25 ) col0 FROM tab2 AS cor0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( + col0 ) * + 7 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( + col0 ) * + 7 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 34 + - + ( - 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7954
SELECT ALL - COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7954
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + 25 - + MIN( DISTINCT + + col0 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7955
SELECT + 25 - + MIN ( DISTINCT + + col0 ) FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 - - - 76 col2 FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + MAX( + col0 ) - + MIN( + 97 ) + - + 60 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7957
SELECT + MAX ( + col0 ) - + MIN ( + 97 ) + - + 60 FROM tab1
----
-66

query I rowsort
SELECT - 94 + col0 + - col0 + 6 AS col2 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + 36 + - - 59 FROM tab0 AS cor0
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7960
SELECT ALL + + ( 3 ) / CAST( NULL AS DECIMAL ) AS col1, + MIN( ALL 39 ) FROM tab1 AS cor0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-7960
SELECT ALL + + ( 3 ) / CAST ( NULL AS REAL ) AS col1, + MIN ( ALL 39 ) FROM tab1 AS cor0
----
NULL
39

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7961
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + CAST( NULL AS DECIMAL ) >= NULL )
----

skipif mysql # not compatible
query III rowsort label-7961
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + CAST ( NULL AS REAL ) >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT - - MAX( ALL 60 ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - - MAX ( ALL 60 ) FROM tab1 AS cor0
----
60

query II rowsort
SELECT ALL col0 AS col2, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7964
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + + 27 * - col0
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL - COUNT( * ) * - - 16 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - COUNT ( * ) * - - 16 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT - COUNT( + ( 9 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT - COUNT ( + ( 9 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + - 43 * - - col1 FROM tab1 cor0
----
-2021
-215
-602

query I rowsort
SELECT - ( 84 ) * - col1 FROM tab2
----
4284
5628
6468

query II rowsort
SELECT DISTINCT col0 * + 28, - ( col1 ) AS col0 FROM tab1
----
1428
-14
2380
-5
2548
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NOT ( col0 ) + - + col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NOT ( col0 ) + - + col0 IS NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT 8 DIV - + 82 * + 1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT 8 / - + 82 * + 1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 56 <> + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col2 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) * + - 98 AS col2 FROM tab0
----
-1470
-8526
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT + 78 * COUNT( * ) FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-7978
SELECT + 78 * COUNT ( * ) FROM tab1
----
234

query I rowsort
SELECT - 96 * - + col0 * + col1 AS col2 FROM tab1
----
40800
410592
68544

query I rowsort
SELECT + 88 AS col1 FROM tab2 WHERE NOT + col1 + + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 61 AS col2 FROM tab1 WHERE NULL IS NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT + SUM( ALL + 6 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + SUM ( ALL + 6 ) FROM tab2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT ALL - 98 * col2 DIV - + 67 FROM tab1 AS cor0
----
140
86
99

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL - 98 * col2 / - + 67 FROM tab1 AS cor0
----
140
86
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + col0 + - col0 + col1 * 19 col1 FROM tab1 AS cor0
----
176
347
974

query I rowsort
SELECT ALL + - 31 + - col0 AS col1 FROM tab1 AS cor0
----
-116
-122
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 96 * - col0 * + - ( - col0 ) AS col0, + 31 + 61 col0 FROM tab0
----
-21600
92
-726624
92
-903264
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * + - col2 + + 74 col1 FROM tab1 cor0
----
-4771
-4856
-6023

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col0 * + - 40 IS NULL )
----

query I rowsort
SELECT col0 + + - col1 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT DISTINCT ( col1 ) + + + col2 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE - 56 NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT - col0 + - + col2 * col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT - col0 + - + col2 * col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 + 12, - 93 col2 FROM tab2
----
44
-93
44
-93
44
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - 35 ) - - col0 col1 FROM tab1
----
120
126
86

query I rowsort
SELECT - - col1 / - col0 AS col1 FROM tab0 WHERE - 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT MIN( - 74 ) FROM tab1 WHERE ( col2 * + 63 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT MIN ( - 74 ) FROM tab1 WHERE ( col2 * + 63 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 * 52 col2 FROM tab0
----
4576
4576
4576

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * - col1 * + col0 + - 85 >= col2
----
1215
1827
97

query I rowsort
SELECT + ( ( + - ( + - 5 ) ) ) FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT DISTINCT SUM( ALL - 29 ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT SUM ( ALL - 29 ) FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - - MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8001
SELECT - - MAX ( - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8002
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 * col0 + + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8002
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 * col0 + + CAST ( NULL AS REAL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - col2 * - col1 AND NULL
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8004
SELECT ALL + CAST( NULL AS SIGNED ) col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8004
SELECT ALL + CAST ( NULL AS INTEGER ) col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT 28 * + - col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

query I rowsort
SELECT 34 AS col1 FROM tab1 cor0 WHERE NOT NULL > - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL MAX( DISTINCT + 28 ) AS col0 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL MAX ( DISTINCT + 28 ) AS col0 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL ( + 33 ) * - ( col2 ) AS col1 FROM tab0
----
-1551
-3267
-330

query II rowsort
SELECT + col2 * + + 61, + 38 AS col2 FROM tab1
----
3599
38
4148
38
5856
38

query I rowsort
SELECT DISTINCT - 86 * - col2 FROM tab2
----
1978
3440
4988

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( * ) * + COUNT( * ) * + SUM( + + col2 ) FROM tab2
----
1089

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( * ) * + COUNT ( * ) * + SUM ( + + col2 ) FROM tab2
----
1089

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 7 * + col0 FROM tab2
----
322
448
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT DISTINCT - SUM( + CAST( + 33 AS SIGNED ) ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT - SUM ( + CAST ( + 33 AS INTEGER ) ) FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL COUNT( * ) * - + 83 AS col1 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL COUNT ( * ) * - + 83 AS col1 FROM tab1
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL SUM( + 17 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL SUM ( + 17 ) FROM tab0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT DISTINCT - 59 DIV + col1 AS col0 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - 59 / + col1 AS col0 FROM tab1
----
-1
-11
-4

query II rowsort
SELECT ALL + col1 AS col2, 28 FROM tab0
----
1
28
21
28
81
28

query III rowsort
SELECT * FROM tab2 WHERE 27 + + col1 + 80 IS NULL
----

query I rowsort
SELECT + col1 * + 41 AS col2 FROM tab0 AS cor0
----
3321
41
861

query I rowsort
SELECT DISTINCT col0 - + ( col1 ) FROM tab0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 47 / 68 IS NULL
----

query I rowsort
SELECT + col1 * - col2 - - + 60 * - + col2 FROM tab2 AS cor0
----
-2553
-5480
-7366

query II rowsort
SELECT DISTINCT + ( col0 ), + col2 + - 71 FROM tab1 AS cor0
----
51
25
85
-12
91
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + col0 - - col0 + - 80 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col2 BETWEEN NULL AND col2 - - 10
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + col0 * + col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + + col1 - - col0
----

query I rowsort
SELECT ALL - col0 - + col0 AS col0 FROM tab1
----
-102
-170
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT DISTINCT 98 + - + col0 DIV 19 AS col0 FROM tab1
----
94
96

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT 98 + - + col0 / 19 AS col0 FROM tab1
----
94
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT ALL col0 / - col2 - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL col0 / - col2 - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 78 * - - col1 AS col2 FROM tab1
----
1092
3666
390

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN - 80 * + 38 + 27 + + 70 + - col1 * - ( - + 23 ) AND - 74
----

query I rowsort
SELECT DISTINCT col0 * + 40 FROM tab0
----
3480
3880
600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8037
SELECT DISTINCT - 91, col0 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-8037
SELECT DISTINCT - 91, col0 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + MAX( ALL + 26 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + MAX ( ALL + 26 ) FROM tab1
----
26

query II rowsort
SELECT + col1 AS col0, + col2 FROM tab2 cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT + CAST( + 13 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-8041
SELECT + CAST ( + 13 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
13
13
13

query II rowsort
SELECT ALL - col0 + - 68 - - + 72 + - col0, col1 FROM tab1 AS cor0
----
-166
5
-178
47
-98
14

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - + col0 BETWEEN - 88 AND + col1 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col1 FROM tab1 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT ALL - - 69 + + col0 AS col0 FROM tab2 cor0
----
115
133
144

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT + col1 DIV - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT + col1 / - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab2 AS cor0 WHERE NOT ( + - 35 NOT BETWEEN ( NULL ) AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - 57 + + col1 AND - 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8051
SELECT DISTINCT col0 * + + 6 + - col1 DIV + + col1 col1 FROM tab1 AS cor0
----
305
509
545

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8051
SELECT DISTINCT col0 * + + 6 + - col1 / + + col1 col1 FROM tab1 AS cor0
----
305
509
545

query I rowsort
SELECT DISTINCT + ( col1 ) * - - 60 * + - col0 FROM tab1
----
-25500
-256620
-42840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 87 col2 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT ALL + ( + + col0 ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT col0 * - 9 AS col2 FROM tab0
----
-135
-783
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + MAX( DISTINCT - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8056
SELECT + MAX ( DISTINCT - col0 ) FROM tab1
----
-51

query III rowsort
SELECT * FROM tab1 WHERE + + col2 - 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 4 + 92 - 27 * col1 + + col0 - 99 FROM tab2
----
-1342
-1745
-2026

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 3 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT COUNT( * ) + + ( - ( - 22 ) ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-8060
SELECT COUNT ( * ) + + ( - ( - 22 ) ) AS col0 FROM tab1
----
25

query I rowsort
SELECT DISTINCT - col2 + + + 61 FROM tab0
----
-38
14
51

query I rowsort
SELECT + 16 * - col0 + + 68 FROM tab1
----
-1292
-1388
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT + MAX( - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + MAX ( - col0 ) FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT ( CAST( NULL AS SIGNED ) ) + 90 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT ( CAST ( NULL AS INTEGER ) ) + 90 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab0 AS cor0 WHERE NOT NULL >= - ( + 29 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 75 + - + col2 FROM tab0 AS cor0
----
-122
-174
-85

query I rowsort
SELECT DISTINCT - 10 + 2 FROM tab0 AS cor0
----
-8

query II rowsort
SELECT col2 AS col0, - col1 * + 29 FROM tab0
----
10
-609
47
-2349
99
-29

query I rowsort
SELECT DISTINCT + 75 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT + 14 * - COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + 14 * - COUNT ( * ) FROM tab2
----
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 95
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - COUNT( * ) DIV - 90 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) / - 90 AS col0 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 16 + + + 41 - - 24 col2 FROM tab2 AS cor0
----
127
145
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT - 91 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT - 91 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT ALL - col2 DIV - 21 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - col2 / - 21 FROM tab1 AS cor0
----
2
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT + col2 DIV col2 * - col0 AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8077
SELECT + col2 / col2 * - col0 AS col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + COUNT( ALL col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + COUNT ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8079
SELECT - - col0 * - - col2 AS col1, - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4896
-96
5015
-59
6188
-68

skipif mysql # not compatible
query II rowsort label-8079
SELECT - - col0 * - - col2 AS col1, - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4896
-96
5015
-59
6188
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT col2 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT col2 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8081
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8081
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 44 AS col0, 14 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
44
14

query III rowsort
SELECT * FROM tab2 WHERE NOT + 99 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT + + ( - COUNT( * ) ) FROM tab2 WHERE NOT 76 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8084
SELECT + + ( - COUNT ( * ) ) FROM tab2 WHERE NOT 76 >= NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 70 AND - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT + COUNT( * ) + 54 AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8086
SELECT + COUNT ( * ) + 54 AS col1 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col1 + col2 = + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT - MAX( - 70 ) AS col1 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - MAX ( - 70 ) AS col1 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + 43 * + + SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
-9589

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 43 * + + SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-9589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col0 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-50
-50
-50

query I rowsort
SELECT DISTINCT 33 + - + col0 FROM tab1
----
-18
-52
-58

query I rowsort
SELECT DISTINCT + 3 - - - col2 AS col1 FROM tab0 AS cor0
----
-44
-7
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT DISTINCT + 87 - 17 + - 96 * - + CAST( col0 AS SIGNED ) * - + col2 + + 89 + - + col2 + - 9 AS col2 FROM tab2
----
-101441
-245650
-417508

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT + 87 - 17 + - 96 * - + CAST ( col0 AS INTEGER ) * - + col2 + + 89 + - + col2 + - 9 AS col2 FROM tab2
----
-101441
-245650
-417508

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8094
SELECT col2 / 41 + CAST( NULL AS DECIMAL ) + 52 + - col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8094
SELECT col2 / 41 + CAST ( NULL AS REAL ) + 52 + - col0 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT DISTINCT 70 * - col1 * col1 FROM tab2 AS cor0
----
-182070
-314230
-415030

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL 78 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL 78 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN col1 AND NULL )
----

query I rowsort
SELECT ALL + 62 * 57 * col1 AS col2 FROM tab1 AS cor0
----
166098
17670
49476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col0 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT DISTINCT + MAX( 35 ) AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT + MAX ( 35 ) AS col0 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8102
SELECT + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8102
SELECT + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8103
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST( - col2 AS DECIMAL ) + + + col1 + - col0 * + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8103
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST ( - col2 AS REAL ) + + + col1 + - col0 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8104
SELECT - COUNT( * ), - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8104
SELECT - COUNT ( * ), - COUNT ( * ) FROM tab2
----
-3
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col1
----

query II rowsort
SELECT + col1 AS col2, col1 * - col2 * - 85 FROM tab2
----
51
99705
67
330310
77
261800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * 60 + + ( - - col0 ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8107
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * 60 + + ( - - col0 ) col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 64 AS col1, - col2 * - 45 FROM tab1
----
64
2655
64
3060
64
4320

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 BETWEEN + 91 AND + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - - col2 FROM tab1 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT DISTINCT + col1 / + ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + col1 / + ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * - 99 col1 FROM tab2
----
-5148

query I rowsort
SELECT - 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL - 28 + - col0 FROM tab0 AS cor0
----
-115
-125
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL + + MIN( - 42 ) col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8115
SELECT ALL + + MIN ( - 42 ) col1 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL - 66 * - + col0 FROM tab0 AS cor0
----
5742
6402
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + 76 + - COUNT( * ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-8117
SELECT + 76 + - COUNT ( * ) FROM tab2
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 26 col0 FROM tab1
----
25
59
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT - ( 92 ) col1 FROM tab0 WHERE NOT ( col2 ) <= CAST( - col1 AS SIGNED ) + - - CAST( NULL AS SIGNED ) + col1 AND 93 - + + col1 + - col1 <> + ( 17 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8119
SELECT - ( 92 ) col1 FROM tab0 WHERE NOT ( col2 ) <= CAST ( - col1 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + col1 AND 93 - + + col1 + - col1 <> + ( 17 )
----

query II rowsort
SELECT + col2 + + 46 + - - col1, + col1 FROM tab0
----
146
1
174
81
77
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT + 75 + + COUNT( * ) + + ( + SUM( ALL + + 89 ) ) AS col2 FROM tab0
----
345

skipif mysql # not compatible
query I rowsort label-8121
SELECT + 75 + + COUNT ( * ) + + ( + SUM ( ALL + + 89 ) ) AS col2 FROM tab0
----
345

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8122
SELECT * FROM tab1 WHERE - - col2 - - 7 NOT IN ( - - 88 + + - CAST( NULL AS SIGNED ) * - 72 * col1, col0, - + ( - col1 ) * + col1 + + col0, + + col1, - - CAST( + 91 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8122
SELECT * FROM tab1 WHERE - - col2 - - 7 NOT IN ( - - 88 + + - CAST ( NULL AS INTEGER ) * - 72 * col1, col0, - + ( - col1 ) * + col1 + + col0, + + col1, - - CAST ( + 91 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8123
SELECT - 24 + + SUM( ALL + 35 ) col1, - COUNT( * ) AS col1 FROM tab2
----
81
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8123
SELECT - 24 + + SUM ( ALL + 35 ) col1, - COUNT ( * ) AS col1 FROM tab2
----
81
-3

query I rowsort
SELECT + col2 * 45 * + 54 FROM tab2 AS cor0
----
140940
55890
97200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT DISTINCT - + 70 * + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT - + 70 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 68 * col2 - - 93 FROM tab0 AS cor0
----
3289
6825
773

query I rowsort
SELECT ALL col2 * 58 + col0 + 37 AS col2 FROM tab2 cor0
----
1417
2421
3476

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8128
SELECT * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8128
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 * + col2 * - col1 FROM tab0 AS cor0
----
-1782
-3780
-68526

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - ( - MAX( ALL col1 ) ) * - + ( + - COUNT( * ) ) * - - 30 FROM tab1 AS cor0
----
4230

skipif mysql # not compatible
query I rowsort label-8130
SELECT - ( - MAX ( ALL col1 ) ) * - + ( + - COUNT ( * ) ) * - - 30 FROM tab1 AS cor0
----
4230

query I rowsort
SELECT - 20 / + 41 + - - AVG ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT col1 * + - col0 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8132
SELECT col1 * + - col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + - 59 AS col0 FROM tab0
----
-2773
-5841
-590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT DISTINCT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT DISTINCT 3 DIV - - ( + COUNT( * ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT 3 / - - ( + COUNT ( * ) ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * col1 col0 FROM tab1 AS cor0 WHERE NOT + ( ( + - col1 ) ) IS NULL
----
1081
115
322

query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab1 AS cor0 WHERE NOT 69 IN ( - col0 )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT DISTINCT + 42 DIV - + 91 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT + 42 / - + 91 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8139
SELECT + - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 77 col1 FROM tab1 AS cor0
----
-128
-162
-168

query I rowsort
SELECT - col1 * col1 + col0 + + col1 * + col2 FROM tab0 AS cor0
----
-144
-2739
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT - + CAST( NULL AS SIGNED ) + - col0 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT - + CAST ( NULL AS INTEGER ) + - col0 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 48 FROM tab0 AS cor0 WHERE - 38 + col1 * + - 18 IS NULL
----

query II rowsort
SELECT + col1 AS col1, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + + 92 * col1 + 75 / - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 37 col2 FROM tab0 WHERE NOT - 93 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + ( 72 ) AS col0, col2 * col1 FROM tab2
----
72
1173
72
3080
72
3886

query I rowsort
SELECT + 41 * - 39 * col0 FROM tab1
----
-135915
-145509
-81549

query I rowsort
SELECT + 29 FROM tab1 WHERE NULL IS NULL
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 - + col0 + + - ( + 73 ) col2 FROM tab2
----
2227
4791
4877

query I rowsort
SELECT col2 - + 35 AS col1 FROM tab0
----
-25
12
64

query III rowsort
SELECT * FROM tab1 WHERE - + col1 - - col1 * col1 * col0 * + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * 85 + + + col0 + - col0 * 4 AS col2 FROM tab0
----
-1111
-4040
-8706

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8154
SELECT - CAST( NULL AS DECIMAL ) + - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT - CAST ( NULL AS REAL ) + - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - COUNT( * ) + SUM( + 14 ) col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8155
SELECT - COUNT ( * ) + SUM ( + 14 ) col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT - 39 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-8156
SELECT - 39 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + - 35 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col2 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT ( + + CAST( + + col1 AS SIGNED ) ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8159
SELECT ( + + CAST ( + + col1 AS INTEGER ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT 45 * + col2 AS col0 FROM tab1
----
2655
3060
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT + 32 AS col1 FROM tab2 AS cor0 WHERE NOT + 17 + - CAST( + col0 AS SIGNED ) IS NULL
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8161
SELECT + 32 AS col1 FROM tab2 AS cor0 WHERE NOT + 17 + - CAST ( + col0 AS INTEGER ) IS NULL
----
32
32
32

query I rowsort
SELECT - - 9 AS col2 FROM tab0 cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ( 76 ) * ( + COUNT( * ) ) FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-8163
SELECT ( 76 ) * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
228

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 * + col2 FROM tab0 AS cor0
----
-1
99
-21
210
-81
3807

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * - + col0 <= + - 60
----

query II rowsort
SELECT ALL col2, + col1 FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8167
SELECT DISTINCT + - SUM( ALL + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT + - SUM ( ALL + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL - COUNT( ALL 47 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - COUNT ( ALL 47 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 13 * + col1 FROM tab0
----
1053
13
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + 12 col0, + col1 FROM tab2
----
-276
51
-480
77
-696
67

query I rowsort
SELECT - - ( - - col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + ( - col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT MIN( ALL - 31 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-8173
SELECT MIN ( ALL - 31 ) FROM tab0
----
-31

query III rowsort
SELECT ALL * FROM tab0 WHERE + 23 + + col2 / - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT 31 * + MAX( ALL - col0 ) FROM tab1
----
-1581

skipif mysql # not compatible
query I rowsort label-8176
SELECT 31 * + MAX ( ALL - col0 ) FROM tab1
----
-1581

query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab2 cor0
----
39

query I rowsort
SELECT DISTINCT - col1 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT 14 + - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8179
SELECT 14 + - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
14

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + 33 col0 FROM tab0
----
924
924
924

query I rowsort
SELECT - 6 AS col0 FROM tab2 WHERE - 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT + + SUM( DISTINCT - 99 ) + - 30 + + + 43 AS col1 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT + + SUM ( DISTINCT - 99 ) + - 30 + + + 43 AS col1 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT DISTINCT - + 15 + 1 FROM tab1 AS cor0
----
-14

query I rowsort
SELECT ALL + 65 * - - ( 77 ) + + col0 FROM tab0 AS cor0
----
5020
5092
5102

query I rowsort
SELECT ALL 4 - + + col2 * + col1 AS col2 FROM tab2
----
-1169
-3076
-3882

query I rowsort
SELECT ( col0 ) + - 64 AS col2 FROM tab2
----
-18
0
11

query II rowsort
SELECT DISTINCT - col1, + 3 AS col1 FROM tab1
----
-14
3
-47
3
-5
3

query I rowsort
SELECT DISTINCT col2 - + - col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8190
SELECT ALL CAST( - SUM( col1 ) AS SIGNED ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL CAST ( - SUM ( col1 ) AS INTEGER ) AS col0 FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT ALL + col1 * - + 0 DIV + col0 + - + col1 + + col0 + - col2 + 71 * - - col0 + + col1 * + col0 AS col2 FROM tab1 cor0
----
10714
4276
6481

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL + col1 * - + 0 / + col0 + - + col1 + + col0 + - col2 + 71 * - - col0 + + col1 * + col0 AS col2 FROM tab1 cor0
----
10714
4276
6481

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 22 NOT BETWEEN NULL AND - ( col0 ) * col2 - + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 61 AS col1 FROM tab0 AS cor0
----
2867
6039
610

query I rowsort
SELECT + + col2 * + col2 + + col1 AS col1 FROM tab2 AS cor0
----
1677
3431
580

query I rowsort
SELECT DISTINCT + - 75 AS col1 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 col2 FROM tab2 AS cor0
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + + - col0 AND - col0 * - - 32 * - - col2
----

query I rowsort
SELECT - + 32 * + 34 FROM tab0 AS cor0
----
-1088
-1088
-1088

onlyif mysql # DIV for integer division: 
query II rowsort label-8201
SELECT + 72 DIV col1 AS col1, - ( - 38 ) FROM tab0 AS cor0
----
0
38
3
38
72
38

skipif mysql # not compatible
query II rowsort label-8201
SELECT + 72 / col1 AS col1, - ( - 38 ) FROM tab0 AS cor0
----
0
38
3
38
72
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + - col2 ) IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - ( + ( 70 ) ), - 66 + col2, - - 8, 82 - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT ALL + SUM( - col0 ) * + COUNT( * ) + - SUM( ALL + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + SUM ( - col0 ) * + COUNT ( * ) + - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 NOT BETWEEN + - 14 AND + col0 * col2
----

query I rowsort
SELECT - - 21 * + 45 - - 43 AS col2 FROM tab0 WHERE NOT 73 * 9 * + col1 + + col1 IS NULL
----
988
988
988

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= - - 95 + - 70 * - - ( - 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8208
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IS NOT NULL OR CAST( NULL AS SIGNED ) - - col0 * - CAST( NULL AS SIGNED ) * col0 + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8208
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IS NOT NULL OR CAST ( NULL AS INTEGER ) - - col0 * - CAST ( NULL AS INTEGER ) * col0 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 / + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 75 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 17 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8212
SELECT ALL - COUNT( * ), + ( - - COUNT( * ) ) DIV 9 AS col2 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-8212
SELECT ALL - COUNT ( * ), + ( - - COUNT ( * ) ) / 9 AS col2 FROM tab2 cor0
----
-3
0

query III rowsort
SELECT * FROM tab2 WHERE + 13 * - col0 + - - 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col0 + + + col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 * + 89 * + - 65 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 85, col2 )
----

query I rowsort
SELECT ALL - + 41 + + col2 + col0 AS col2 FROM tab2 AS cor0
----
28
63
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 30 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 3 + - ( - - 1 ) FROM tab2 AS cor0
----
-4

query II rowsort
SELECT DISTINCT + col2 + + col1 AS col2, 29 FROM tab1 AS cor0
----
110
29
115
29
64
29

query II rowsort
SELECT DISTINCT - col1 + col0 AS col1, 60 * - col1 AS col1 FROM tab1 AS cor0
----
37
-840
44
-2820
80
-300

query I rowsort
SELECT - - col1 * - - 31 * - 47 - 44 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-112233
-74351
-97663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT ALL COUNT( * ) / + MAX( ALL - + CAST( NULL AS SIGNED ) ) - 0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL COUNT ( * ) / + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) - 0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8224
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL col0 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT + ( + col2 ) DIV - col1 - - col2 AS col0 FROM tab1
----
48
67
90

skipif mysql # not compatible
query I rowsort label-8225
SELECT + ( + col2 ) / - col1 - - col2 AS col0 FROM tab1
----
48
67
90

query I rowsort
SELECT col2 - + ( + - col1 ) + col0 + 47 * - + col1 + + col1 FROM tab2
----
-2226
-2882
-3361

query I rowsort
SELECT col1 - - col0 + - + col1 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + - COUNT( * ) * + 86 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + - COUNT ( * ) * + 86 FROM tab0 AS cor0
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 83 col0, 47 AS col2 FROM tab0 AS cor0
----
83
47

query I rowsort
SELECT DISTINCT + + col0 * + + ( + + col0 ) FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT DISTINCT + col0 DIV 15 FROM tab2 cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT + col0 / 15 FROM tab2 cor0
----
3
4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8232
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT 87 AS col2, - col0 * - col0 FROM tab1
----
87
2601
87
7225
87
8281

query II rowsort
SELECT - col0 AS col0, 94 * - col2 FROM tab1
----
-51
-9024
-85
-5546
-91
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + + 87 * + COUNT( * ) FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + + 87 * + COUNT ( * ) FROM tab1 AS cor0
----
261

onlyif mysql # DIV for integer division: 
query II rowsort label-8236
SELECT ALL col0 DIV + + ( + col0 ) + - + 24 + col1 * + + 32 AS col2, col1 DIV + + col1 AS col2 FROM tab0 AS cor0
----
2569
1
649
1
9
1

skipif mysql # not compatible
query II rowsort label-8236
SELECT ALL col0 / + + ( + col0 ) + - + 24 + col1 * + + 32 AS col2, col1 / + + col1 AS col2 FROM tab0 AS cor0
----
2569
1
649
1
9
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT ALL - col1 DIV - 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL - col1 / - 83 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 IN ( + col1 + + + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT - MIN( DISTINCT + - 77 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT - MIN ( DISTINCT + - 77 ) FROM tab2 cor0
----
77

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + 40 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + 40 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + 51 AS col1, + col0 - + + col1 AS col2 FROM tab2 AS cor0
----
51
-13
51
-5
51
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8243
SELECT ALL + col0 * CAST( NULL AS DECIMAL ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL + col0 * CAST ( NULL AS REAL ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL COUNT( + - 62 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL COUNT ( + - 62 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ( 94 ) FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE 45 <= + col0 - - + col2
----
15
87
97

query I rowsort
SELECT + 43 * + 78 + + + col0 FROM tab0
----
3369
3441
3451

query III rowsort
SELECT * FROM tab2 WHERE + 90 - - 52 > + - ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 85 * col2 * col1 AS col0, col0 + - + 11 FROM tab2 AS cor0 WHERE 50 <> + - col1 + col1
----
-261800
53
-330310
64
-99705
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, 30 AS col2 FROM tab1
----
51
30
85
30
91
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8252
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8252
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 - + 47 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-26
-46
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL = NULL ) )
----

query I rowsort
SELECT DISTINCT + + 57 FROM tab1 cor0 WHERE NOT + 24 / - col0 >= - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL > col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL - - MAX( ALL col1 ) + - 58 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - - MAX ( ALL col1 ) + - 58 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT ALL - - col1 - - 10 AS col1 FROM tab2 AS cor0
----
61
77
87

query I rowsort
SELECT DISTINCT 21 FROM tab0 AS cor0 WHERE NOT - col2 * 61 + + - 70 + 67 + col0 + - 87 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - COUNT( * ) + - ( + - COUNT( * ) ) * 73 FROM tab0 cor0
----
216

skipif mysql # not compatible
query I rowsort label-8260
SELECT - COUNT ( * ) + - ( + - COUNT ( * ) ) * 73 FROM tab0 cor0
----
216

query I rowsort
SELECT DISTINCT col2 - 50 AS col2 FROM tab2 AS cor0
----
-10
-27
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL - 65 FROM tab2 cor0 WHERE NOT ( + CAST( + col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - 65 FROM tab2 cor0 WHERE NOT ( + CAST ( + col1 AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT 56 + col2, + 60 AS col2 FROM tab1
----
115
60
124
60
152
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT + COUNT( * ) * 99 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + COUNT ( * ) * 99 FROM tab1
----
297

query I rowsort
SELECT ALL col0 * 73 AS col0 FROM tab2
----
3358
4672
5475

query I rowsort
SELECT DISTINCT + col2 * + 57 * + col2 FROM tab1
----
198417
263568
525312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8267
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 77 * - + CAST( NULL AS SIGNED ) / + col0 + + + col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-8267
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 77 * - + CAST ( NULL AS INTEGER ) / + col0 + + + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 79 AS col1 FROM tab0 AS cor0
----
1185
6873
7663

query I rowsort
SELECT + ( + + col1 ) FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL = NULL )
----

query I rowsort
SELECT - + col0 * + ( - 97 ) FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT ALL - col2 DIV 55 DIV + + col1 - + ( + col0 ) + - col1 DIV - col0 * + 5 * + col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - col2 / 55 / + + col1 - + ( + col0 ) + - col1 / - col0 * + 5 * + col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT DISTINCT - CAST( SUM( + - ( + 51 ) ) AS SIGNED ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT - CAST ( SUM ( + - ( + 51 ) ) AS INTEGER ) FROM tab0 AS cor0
----
153

query I rowsort
SELECT DISTINCT col0 * - 51 + - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-4371
-4851
-831

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT 0 + + 51 DIV + 71 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT 0 + + 51 / + 71 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 0 * + + 66 + - 87 AS col0, AVG ( ALL col0 ) col1 FROM tab0 AS cor0 WHERE NULL > + col0
----
-87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT + - COUNT( * ) + 8 AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8277
SELECT + - COUNT ( * ) + 8 AS col1 FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT DISTINCT - - col0 + CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - - col0 + CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + + col0 + + 38 AS col0 FROM tab2 AS cor0
----
102
113
84

query III rowsort
SELECT * FROM tab0 WHERE + - col2 <> - - 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 <= + col0 + + ( - col1 ) + + col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - - MIN( - col1 ) FROM tab2 WHERE NULL <> col1 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT - - MIN ( - col1 ) FROM tab2 WHERE NULL <> col1 * + col2
----
NULL

query I rowsort
SELECT ALL - ( - ( col2 ) ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8285
SELECT + + COUNT( * ), COUNT( * ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8285
SELECT + + COUNT ( * ), COUNT ( * ) FROM tab2 cor0
----
3
3

query I rowsort
SELECT ALL + 67 * - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-4012
-4624
-6528

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT DISTINCT + col2 - + - col0 + + 67 DIV - 55 FROM tab2 AS cor0
----
103
132
68

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + col2 - + - col0 + + 67 / - 55 FROM tab2 AS cor0
----
103
132
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8288
SELECT - + COUNT( * ) col2, - 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8288
SELECT - + COUNT ( * ) col2, - 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-28

query II rowsort
SELECT - 16 * 70, col2 FROM tab1
----
-1120
59
-1120
68
-1120
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - + col2 IS NULL
----

query II rowsort
SELECT + 43 * - 35 AS col0, 7 FROM tab2 AS cor0
----
-1505
7
-1505
7
-1505
7

query II rowsort
SELECT col2 * col2, col1 AS col2 FROM tab1 cor0
----
3481
5
4624
47
9216
14

query II rowsort
SELECT - + col0 * - col0, col1 FROM tab2 AS cor0
----
2116
51
4096
77
5625
67

query I rowsort
SELECT DISTINCT - - 29 FROM tab2 cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + SUM( ALL - 89 ) AS col0 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-8295
SELECT + SUM ( ALL - 89 ) AS col0 FROM tab2
----
-267

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 28 + + col0
----

query I rowsort
SELECT ALL col2 * + - 87 AS col2 FROM tab1
----
-5133
-5916
-8352

query I rowsort
SELECT DISTINCT col0 * - - ( 48 ) FROM tab0
----
4176
4656
720

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8299
SELECT MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT ALL + col0 * + - col0 * - col0 FROM tab0
----
3375
658503
912673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT col2 * + ( ( - CAST( + + col0 AS SIGNED ) ) ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-8301
SELECT col2 * + ( ( - CAST ( + + col0 AS INTEGER ) ) ) FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 35 col1, - ( col2 ) AS col2 FROM tab1 cor0
----
35
-59
35
-68
35
-96

query II rowsort
SELECT ALL + col0 AS col0, + 1 + 93 AS col0 FROM tab2 AS cor0
----
46
94
64
94
75
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL COUNT( - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL COUNT ( - col1 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8305
SELECT ALL - + col1 * + ( - - CAST( NULL AS SIGNED ) ), - col2 + + - col2 AS col2 FROM tab1 cor0
----
NULL
-118
NULL
-136
NULL
-192

skipif mysql # not compatible
query II rowsort label-8305
SELECT ALL - + col1 * + ( - - CAST ( NULL AS INTEGER ) ), - col2 + + - col2 AS col2 FROM tab1 cor0
----
NULL
-118
NULL
-136
NULL
-192

query I rowsort
SELECT ALL + col0 * - 91 - 97 FROM tab2
----
-4283
-5921
-6922

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT COUNT( ( col1 ) ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT COUNT ( ( col1 ) ) + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab2 WHERE ( - 68 * 35 ) IS NULL
----

query I rowsort
SELECT 13 + + 75 FROM tab2
----
88
88
88

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN - col1 * col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN ( col0 * + col2 ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE ( col1 * col1 ) >= 48 / col1 + - 29
----
10
47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT ALL 51 + + col1 AS col2 FROM tab1
----
56
65
98

query I rowsort
SELECT + 96 + + 17 AS col2 FROM tab2
----
113
113
113

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab1 WHERE NOT ( - 96 ) IS NOT NULL
----

query I rowsort
SELECT - col1 + + 20 AS col1 FROM tab1
----
-27
15
6

query I rowsort
SELECT - col1 + + col1 AS col0 FROM tab2 WHERE NOT ( 22 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT DISTINCT MAX( + col0 ) FROM tab0 WHERE NOT ( NULL ) = col1 + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT MAX ( + col0 ) FROM tab0 WHERE NOT ( NULL ) = col1 + 31
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + 48 IS NULL
----

query I rowsort
SELECT - 21 FROM tab2 WHERE - col1 * col0 IS NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - 4 * + 20 AND + col2
----

query I rowsort
SELECT DISTINCT ( + 8 ) FROM tab2
----
8

query I rowsort
SELECT ALL + 91 * ( + 37 ) FROM tab2
----
3367
3367
3367

query I rowsort
SELECT 28 + - col2 AS col2 FROM tab1
----
-31
-40
-68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 + 98 ) NOT IN ( 19 / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 94 FROM tab2
----
4794
6298
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT COUNT( * ) FROM tab1 WHERE NOT + 38 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT COUNT ( * ) FROM tab1 WHERE NOT + 38 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT CAST( + 95 AS SIGNED ) FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8333
SELECT CAST ( + 95 AS INTEGER ) FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL + 29 + col2 AS col2 FROM tab2
----
52
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT 58 * COUNT( 28 ) AS col1 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-8336
SELECT 58 * COUNT ( 28 ) AS col1 FROM tab0
----
174

query I rowsort
SELECT DISTINCT - col1 + - col2 * 68 FROM tab2
----
-1615
-2797
-4011

query I rowsort
SELECT col0 * + 3 FROM tab0 WHERE NOT ( NULL ) <= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8339
SELECT ALL + col0 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL + col0 / - col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT - SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT - SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT 74 * COUNT( * ) + + 83 AS col2 FROM tab2 AS cor0
----
305

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT 74 * COUNT ( * ) + + 83 AS col2 FROM tab2 AS cor0
----
305

query I rowsort
SELECT 52 * + col2 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0 * col2
----

query I rowsort
SELECT - 30 - col0 AS col0 FROM tab2
----
-105
-76
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT ALL CAST( NULL AS SIGNED ) + - 93 * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL CAST ( NULL AS INTEGER ) + - 93 * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - 12 FROM tab0
----
-2
35
87

query I rowsort
SELECT DISTINCT 45 - col2 AS col2 FROM tab0
----
-2
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT COUNT( * ) * 26 - + COUNT( * ) * + 84 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-8347
SELECT COUNT ( * ) * 26 - + COUNT ( * ) * + 84 FROM tab1
----
-174

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / col0 BETWEEN + col0 + + 25 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8350
SELECT COUNT( * ) DIV - 29 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8350
SELECT COUNT ( * ) / - 29 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT COUNT( 0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8352
SELECT COUNT ( 0 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col2 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT MAX( - 26 ) DIV - COUNT( + col0 + col0 * col0 ) AS col2 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8356
SELECT MAX ( - 26 ) / - COUNT ( + col0 + col0 * col0 ) AS col2 FROM tab2 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8357
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 66 ) NOT IN ( + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8357
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 66 ) NOT IN ( + CAST ( col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT - COUNT( + 2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8358
SELECT - COUNT ( + 2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT + 78 DIV 19 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8359
SELECT + 78 / 19 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8360
SELECT * FROM tab1 WHERE NOT - 57 + 76 NOT IN ( CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8360
SELECT * FROM tab1 WHERE NOT - 57 + 76 NOT IN ( CAST ( - col1 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT - COUNT( DISTINCT - col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8362
SELECT - COUNT ( DISTINCT - col0 ) FROM tab0
----
-3

query I rowsort
SELECT ALL - 46 AS col0 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT DISTINCT 30 * - col1 * col2 FROM tab2
----
-116580
-35190
-92400

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL MAX( DISTINCT + 78 ) col1 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8366
SELECT ALL MAX ( DISTINCT + 78 ) col1 FROM tab2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT + col2 DIV - - 75 * + 34 + - 98 FROM tab2 cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-8367
SELECT + col2 / - - 75 * + 34 + - 98 FROM tab2 cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8368
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * ( 74 ) + ( + col1 - CAST( - col2 AS SIGNED ) ) <> ( - CAST( NULL AS SIGNED ) / - col2 )
----

skipif mysql # not compatible
query III rowsort label-8368
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * ( 74 ) + ( + col1 - CAST ( - col2 AS INTEGER ) ) <> ( - CAST ( NULL AS INTEGER ) / - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 - 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - - col1 * - 51 * + 92 FROM tab1
----
1384140
14995632
6306048

query I rowsort
SELECT ALL 90 + col0 AS col1 FROM tab1
----
141
175
181

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8373
SELECT CAST( col2 AS SIGNED ) + col2 - col2 * 73 * col2 FROM tab2 AS cor0
----
-116720
-245456
-38571

skipif mysql # not compatible
query I rowsort label-8373
SELECT CAST ( col2 AS INTEGER ) + col2 - col2 * 73 * col2 FROM tab2 AS cor0
----
-116720
-245456
-38571

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT COUNT( * ) + MAX( ALL - 46 ) AS col0 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8374
SELECT COUNT ( * ) + MAX ( ALL - 46 ) AS col0 FROM tab1 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL MIN( + 68 ) + + - 60 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL MIN ( + 68 ) + + - 60 FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT + - col2 * col0 + + 96 FROM tab2 AS cor0
----
-2464
-4254
-962

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8379
SELECT DISTINCT - ( - COUNT( * ) ) + - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT - ( - COUNT ( * ) ) + - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8380
SELECT DISTINCT 75 DIV - + COUNT( * ) FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT 75 / - + COUNT ( * ) FROM tab0 cor0
----
-25

query III rowsort
SELECT * FROM tab2 WHERE + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 * - col0 NOT IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT + 42 DIV + 50 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT + 42 / + 50 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 15 FROM tab1 WHERE NULL IS NULL
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT + MAX( ALL - 99 ) - COUNT( * ) AS col1 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + MAX ( ALL - 99 ) - COUNT ( * ) AS col1 FROM tab1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT + ( - COUNT( * ) ) - - + COUNT( col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT + ( - COUNT ( * ) ) - - + COUNT ( col2 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT 29 AS col0 FROM tab2 AS cor0 WHERE ( NULL < col0 / + 9 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <= + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT + 20 DIV + ( - + ( + 49 ) ) - + 68 FROM tab0 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-8389
SELECT + 20 / + ( - + ( + 49 ) ) - + 68 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT + col1 - - + ( + col1 ) + + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-45
-95
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8392
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT 65 * - COUNT( * ) + - 80 AS col0 FROM tab2 AS cor0 WHERE col1 > ( NULL )
----
-80

skipif mysql # not compatible
query I rowsort label-8393
SELECT 65 * - COUNT ( * ) + - 80 AS col0 FROM tab2 AS cor0 WHERE col1 > ( NULL )
----
-80

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * + - 76 IS NOT NULL
----

query I rowsort
SELECT ALL + 49 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - SUM( + - 72 ) AS col2 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-8396
SELECT - SUM ( + - 72 ) AS col2 FROM tab0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT + - COUNT( * ) + + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT + - COUNT ( * ) + + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + - 26 ) BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 77 AS col2 FROM tab0 AS cor0 WHERE col2 = - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT col2 + + + col0 * + - 96 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + + 71 AS col1 FROM tab0 cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT - ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST( + + col1 AS SIGNED ) - + - ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-8403
SELECT - ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST ( + + col1 AS INTEGER ) - + - ( col1 ) )
----

query II rowsort
SELECT - 30, - 21 AS col0 FROM tab1
----
-30
-21
-30
-21
-30
-21

query I rowsort
SELECT + col1 * - ( + 6 ) FROM tab2
----
-306
-402
-462

query II rowsort
SELECT - col2, 69 + + col2 AS col0 FROM tab0
----
-10
79
-47
116
-99
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 22 col0, ( col2 ) AS col2 FROM tab0
----
22
10
22
47
22
99

query I rowsort
SELECT - 7 AS col2 FROM tab2 WHERE NOT + col1 + - 92 + + col0 - ( col2 ) + - col2 * col1 IS NOT NULL
----

query II rowsort
SELECT + 11, col0 AS col1 FROM tab2
----
11
46
11
64
11
75

query I rowsort
SELECT DISTINCT + - 55 AS col2 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT col0 + + + col2 + col2 * col1 - + + col1 FROM tab0 AS cor0
----
286
294
3788

query II rowsort
SELECT DISTINCT + col2, 90 * - 53 * - 85 * - - col2 AS col0 FROM tab0 cor0
----
10
4054500
47
19056150
99
40139550

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8414
SELECT DISTINCT - SUM( ALL col1 ) AS col1, 2 AS col2 FROM tab2 AS cor0
----
-195
2

skipif mysql # not compatible
query II rowsort label-8414
SELECT DISTINCT - SUM ( ALL col1 ) AS col1, 2 AS col2 FROM tab2 AS cor0
----
-195
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 29 + + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT DISTINCT 49 DIV - + col1 + + col0 * - col0 col0 FROM tab1 AS cor0
----
-2604
-7234
-8282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8416
SELECT DISTINCT 49 / - + col1 + + col0 * - col0 col0 FROM tab1 AS cor0
----
-2604
-7234
-8282

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT + - COUNT( * ) + - - MAX( ALL + 34 ) AS col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8417
SELECT + - COUNT ( * ) + - - MAX ( ALL + 34 ) AS col2 FROM tab1 AS cor0
----
31

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN ( ( - - col0 ) + + col1 + + col2 / col1 * - col2 ) AND ( NULL )
----
-51
-67
-77

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE ( col1 ) NOT IN ( col2 + + 49, + col2 )
----
-10
-47
-99

query II rowsort
SELECT ALL + col1 - + + col1 * col0 AS col2, 89 + + + 4 + 43 * - col0 FROM tab1
----
-420
-3562
-4230
-3820
-700
-2100

query I rowsort
SELECT ALL 20 + + - col0 + + ( + 49 ) FROM tab1
----
-16
-22
18

query II rowsort
SELECT ALL - 88, col2 AS col1 FROM tab2
----
-88
23
-88
40
-88
58

query I rowsort
SELECT - col1 + - - 0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col2 + col1 * col0 * 28 AS col1 FROM tab2
----
138024
140758
65711

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - COUNT( * ) + - - 63 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8425
SELECT - COUNT ( * ) + - - 63 FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8426
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( - col0 AS SIGNED ) IN ( + - col0 )
----

skipif mysql # not compatible
query III rowsort label-8426
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( - col0 AS INTEGER ) IN ( + - col0 )
----

query II rowsort
SELECT DISTINCT + col1 * col1 * - - col1, col1 AS col2 FROM tab1
----
103823
47
125
5
2744
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT DISTINCT col1 * col1 * col1 * + 92 * + - CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT col1 * col1 * col1 * + 92 * + - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * - 62 AS col2 FROM tab2 cor0
----
-3162
-4154
-4774

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT 66 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 83 - + 92 FROM tab2 AS cor0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8432
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT + + COUNT( * ) * - SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT + + COUNT ( * ) * - SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
-309

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT - - col0 DIV col2 * + 69 AS col1 FROM tab1 AS cor0
----
0
69
69

skipif mysql # not compatible
query I rowsort label-8436
SELECT - - col0 / col2 * + 69 AS col1 FROM tab1 AS cor0
----
0
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8437
SELECT COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - COUNT( * ) * + + 88 AS col1 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8438
SELECT - COUNT ( * ) * + + 88 AS col1 FROM tab0 AS cor0
----
-264

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 38 + - 32 + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - 94 < + col1 * + - 71
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT DISTINCT - COUNT( - 41 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT - COUNT ( - 41 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + - + 1 - + 96 * - col0 <> + 75 + - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col2 FROM tab2
----
-84

query II rowsort
SELECT ALL col1 + - 90 * - 93 * - ( col2 ), + col0 FROM tab1 cor0 WHERE col1 IN ( - - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT COUNT( 51 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT COUNT ( 51 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL 3, col1 FROM tab2 AS cor0
----
3
51
3
67
3
77

query I rowsort
SELECT + ( - 84 ) FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT col1 * - 34 + - - col2 DIV + 30 col0 FROM tab1
----
-1596
-169
-473

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8449
SELECT col1 * - 34 + - - col2 / + 30 col0 FROM tab1
----
-1596
-169
-473

query II rowsort
SELECT + - col2 AS col2, ( - + col1 ) FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND + - col2
----
-59
-5
-68
-47
-96
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8451
SELECT + - COUNT( * ) + + ( + CAST( NULL AS SIGNED ) ) * 33 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT + - COUNT ( * ) + + ( + CAST ( NULL AS INTEGER ) ) * 33 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col0 * - col0 + + col1 + - + 19 )
----

query II rowsort
SELECT + - 41 AS col2, col0 FROM tab0 AS cor0
----
-41
15
-41
87
-41
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8454
SELECT + 28 AS col0, CAST( 11 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
28
11
28
11
28
11

skipif mysql # not compatible
query II rowsort label-8454
SELECT + 28 AS col0, CAST ( 11 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
28
11
28
11
28
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 70 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 70 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( + 49 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 81 - - - 96 FROM tab0 AS cor0
----
-177
-177
-177

query I rowsort
SELECT - 10 FROM tab0 WHERE NULL >= col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * + ( - + col2 ) col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT ( - + col2 ) * + - 83 FROM tab0
----
3901
8217
830

query I rowsort
SELECT col0 - - 18 FROM tab1
----
103
109
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT + COUNT( - col2 ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT + COUNT ( - col2 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT ALL + 78 * col2 DIV 27 AS col2 FROM tab2
----
115
167
66

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + 78 * col2 / 27 AS col2 FROM tab2
----
115
167
66

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NULL >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col0 ) * - col2 col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8466
SELECT - - CAST( NULL AS DECIMAL ) + + 34 col1, - col1 AS col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8466
SELECT - - CAST ( NULL AS REAL ) + + 34 col1, - col1 AS col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT DISTINCT - - 81 AS col1 FROM tab2 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8468
SELECT ALL * FROM tab0 AS cor0 WHERE 60 + - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8468
SELECT ALL * FROM tab0 AS cor0 WHERE 60 + - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 6 * + col0 AS col0 FROM tab2
----
-276
-384
-450

query I rowsort
SELECT ALL 14 * - 30 AS col1 FROM tab0
----
-420
-420
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL < + col2 + + - 78 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col1 FROM tab2 AS cor0 WHERE NOT col0 * + ( col0 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8475
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - col0 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-8475
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - col0 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT 87 * - COUNT( * ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8476
SELECT 87 * - COUNT ( * ) FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL + col2 * 75 FROM tab1
----
4425
5100
7200

query I rowsort
SELECT + ( + 5 ) AS col1 FROM tab0
----
5
5
5

query I rowsort
SELECT col1 * + 97 AS col0 FROM tab2
----
4947
6499
7469

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8480
SELECT * FROM tab2 WHERE NOT + col2 - + col2 <= - col0 / + - col2 - + 96 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8480
SELECT * FROM tab2 WHERE NOT + col2 - + col2 <= - col0 / + - col2 - + 96 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 * - - 42 + - col1 AS col1 FROM tab1
----
-2483
-2903
-4046

query I rowsort
SELECT col0 + 88 FROM tab0
----
103
175
185

query I rowsort
SELECT ALL ( col2 ) * + col0 + + 16 + + 7 FROM tab0
----
728
893
9626

query I rowsort
SELECT col2 + + col1 * + + col2 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT 4 + + - 40 * 44 * - - 53 * col2 AS col2 FROM tab0
----
-4384156
-9234716
-932796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT - - COUNT( - col1 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT - - COUNT ( - col1 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col1 ) * + + col0 >= NULL
----

query I rowsort
SELECT DISTINCT + ( 18 ) + - col1 AS col0 FROM tab0 cor0
----
-3
-63
17

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * col2 + + col2 col2 FROM tab1
----
177
204
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, - col1 + + col2 FROM tab2
----
-23
-28
-40
-37
-58
-9

query II rowsort
SELECT ALL + col0, col0 * col2 AS col2 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

query I rowsort
SELECT DISTINCT - + 87 + - 86 FROM tab0 AS cor0
----
-173

query II rowsort
SELECT ALL + ( - ( - col1 ) ), col2 FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT ALL + col0 + col0 DIV + 71 FROM tab0 cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL + col0 + col0 / + 71 FROM tab0 cor0
----
15
88
98

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 <= col1
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8497
SELECT - col0 * CAST( NULL AS SIGNED ) + + + 16 + - + col2 + col0, - col1 * + + CAST( NULL AS DECIMAL ) + + col0 * col1 * - + col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8497
SELECT - col0 * CAST ( NULL AS INTEGER ) + + + 16 + - + col2 + col0, - col1 * + + CAST ( NULL AS REAL ) + + col0 * col1 * - + col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8498
SELECT DISTINCT col1 - - 63 * ( + 20 ) DIV + 25, + 70 AS col1 FROM tab0 AS cor0
----
131
70
51
70
71
70

skipif mysql # not compatible
query II rowsort label-8498
SELECT DISTINCT col1 - - 63 * ( + 20 ) / + 25, + 70 AS col1 FROM tab0 AS cor0
----
131
70
51
70
71
70

query III rowsort
SELECT * FROM tab2 WHERE ( + 80 + col1 + + col1 ) = NULL
----

query I rowsort
SELECT DISTINCT + col1 - + ( + - ( + col2 ) ) + 78 FROM tab0
----
109
178
206

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT - 38 + - COUNT( + + 15 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-8501
SELECT - 38 + - COUNT ( + + 15 ) FROM tab1
----
-41

query I rowsort
SELECT col1 + - 13 AS col0 FROM tab2
----
38
54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL + 50 - MAX( - - col1 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + 50 - MAX ( - - col1 ) FROM tab2
----
-27

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query II rowsort
SELECT ALL col2, - 0 + + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT + col1 * + + col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8507
SELECT - CAST( - SUM( DISTINCT + 49 ) AS SIGNED ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-8507
SELECT - CAST ( - SUM ( DISTINCT + 49 ) AS INTEGER ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-147

query I rowsort
SELECT - + 29 * + 84 FROM tab0 AS cor0
----
-2436
-2436
-2436

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + col1 AND col1 * + ( + 19 ) - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8510
SELECT - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT DISTINCT 4 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT 4 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT - 5 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2, - CAST( NULL AS SIGNED ) / col1 )
----

skipif mysql # not compatible
query I rowsort label-8512
SELECT - 5 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2, - CAST ( NULL AS INTEGER ) / col1 )
----

query I rowsort
SELECT + col1 + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT ALL col0 * - col2 + - + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL col0 * - col2 + - + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 39 * - 76 col0 FROM tab2 AS cor0
----
118560
171912
68172

query I rowsort
SELECT col0 * 43 AS col2 FROM tab0
----
3741
4171
645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT ALL SUM( - - col0 ) DIV 17 * + 23 + - + 97 FROM tab1
----
202

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL SUM ( - - col0 ) / 17 * + 23 + - + 97 FROM tab1
----
202

query I rowsort
SELECT - col1 * + + 88 AS col1 FROM tab1
----
-1232
-4136
-440

query I rowsort
SELECT DISTINCT col1 * + 78 AS col0 FROM tab0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL MAX( ALL col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8520
SELECT ALL MAX ( ALL col0 ) col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 12 col0, col1 AS col2 FROM tab2 AS cor0
----
12
51
12
67
12
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 <> ( + + col0 * 99 * 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <> col2 * 15
----

query I rowsort
SELECT DISTINCT - + col0 + + 97 + - + col2 AS col2 FROM tab2 AS cor0
----
-36
-7
28

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8527
SELECT COUNT( * ) * - 15 DIV ( + 15 ) AS col2, 25 AS col1 FROM tab0 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-8527
SELECT COUNT ( * ) * - 15 / ( + 15 ) AS col2, 25 AS col1 FROM tab0 AS cor0
----
-3
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT - 10 * + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
150
870
970

skipif mysql # not compatible
query I rowsort label-8528
SELECT - 10 * + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
150
870
970

query I rowsort
SELECT ALL + - 28 / - 17 AS col1 FROM tab1 AS cor0 WHERE - 40 * 45 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT + CAST( NULL AS SIGNED ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + - 24 AS col0 FROM tab1 AS cor0
----
-120
-83
-92

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + - 24 AS col0 FROM tab1 AS cor0
----
-120
-83
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN + - col0 AND + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT - + SUM( DISTINCT + + 15 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-8533
SELECT - + SUM ( DISTINCT + + 15 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-15
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL - col1 + CAST( col1 AS SIGNED ) * - 19 + 5 AS col0 FROM tab2 cor0
----
-1015
-1335
-1535

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - col1 + CAST ( col1 AS INTEGER ) * - 19 + 5 AS col0 FROM tab2 cor0
----
-1015
-1335
-1535

query I rowsort
SELECT DISTINCT - 18 * + + col1 + - 46 - + 64 AS col2 FROM tab2 AS cor0
----
-1028
-1316
-1496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NOT - col1 / col1 * - ( - + col2 ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NOT - col1 / col1 * - ( - + col2 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 90 + + col2 FROM tab1
----
149
158
186

query I rowsort
SELECT ALL 8 - + ( col2 ) FROM tab1
----
-51
-60
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8539
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8539
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT + ( - + col2 ) - 74 FROM tab2 WHERE NOT - col2 IS NULL
----
-114
-132
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 * + 93 + + - 78 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT + CAST( - - 71 AS SIGNED ) FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-8542
SELECT + CAST ( - - 71 AS INTEGER ) FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT + COUNT( DISTINCT - - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8543
SELECT + COUNT ( DISTINCT - - col0 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col0 FROM tab1
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL - MAX( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - MAX ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 3 col2, - col1 AS col0 FROM tab2 AS cor0
----
-3
-51
-3
-67
-3
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 6 <> col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8548
SELECT ALL + 73 AS col0, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
73
-3

skipif mysql # not compatible
query II rowsort label-8548
SELECT ALL + 73 AS col0, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
73
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 39 >= NULL AND NOT + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 39 >= NULL AND NOT + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - + col1 > - - col0 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 83, - col0 AS col2 FROM tab1
----
-83
-51
-83
-85
-83
-91

query II rowsort
SELECT DISTINCT - 84 AS col2, col1 AS col2 FROM tab2
----
-84
51
-84
67
-84
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85, + col0 col2 FROM tab1 AS cor0
----
85
51
85
85
85
91

query I rowsort
SELECT + - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= + 75
----

query II rowsort
SELECT col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT ALL COUNT( * ) + 19 FROM tab0 AS cor0 WHERE NULL IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL COUNT ( * ) + 19 FROM tab0 AS cor0 WHERE NULL IS NULL
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT ALL - CAST( + - 88 AS SIGNED ) + col1 FROM tab0 cor0
----
109
169
89

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL - CAST ( + - 88 AS INTEGER ) + col1 FROM tab0 cor0
----
109
169
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL - MAX( + col2 ) * - COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL - MAX ( + col2 ) * - COUNT ( * ) FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8561
SELECT + CAST( NULL AS DECIMAL ) * - 60 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT + CAST ( NULL AS REAL ) * - 60 * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 57 + + + col0 AS col2 FROM tab0
----
-42
30
40

query I rowsort
SELECT - col2 + - col1 - - 4 AS col1 FROM tab0
----
-124
-27
-96

query I rowsort
SELECT - col0 * - col1 + + col2 AS col2 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL MIN( + ( - 75 ) ) * - COUNT( * ) AS col2 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL MIN ( + ( - 75 ) ) * - COUNT ( * ) AS col2 FROM tab2
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT - 77 DIV - 30 + col1 * - - col2 * + - col2 AS col2 FROM tab0
----
-178927
-2098
-9799

skipif mysql # not compatible
query I rowsort label-8566
SELECT - 77 / - 30 + col1 * - - col2 * + - col2 AS col2 FROM tab0
----
-178927
-2098
-9799

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT DISTINCT - col1 * - col2 + + 54 FROM tab2 WHERE + 67 + - - CAST( + - 71 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT - col1 * - col2 + + 54 FROM tab2 WHERE + 67 + - - CAST ( + - 71 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8569
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT CAST( NULL AS SIGNED ) >= + col1 * 13 )
----

skipif mysql # not compatible
query III rowsort label-8569
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) >= + col1 * 13 )
----

query I rowsort
SELECT 63 + col2 AS col0 FROM tab0 AS cor0 WHERE col2 = - ( 6 )
----

query I rowsort
SELECT ALL 0 AS col0 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 * - + 62 - - col2 AS col0 FROM tab2 AS cor0
----
-2829
-3928
-4592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT col0 * - CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT col0 * - CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + + col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT DISTINCT - CAST( - 61 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE - col0 - - 31 * + col0 > 77
----
61

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE - col0 - - 31 * + col0 > 77
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - SUM( DISTINCT - 68 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-8577
SELECT - SUM ( DISTINCT - 68 ) FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL SUM( DISTINCT - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL SUM ( DISTINCT - col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT - SUM( DISTINCT + col1 ) * + ( - COUNT( * ) ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8579
SELECT - SUM ( DISTINCT + col1 ) * + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
198

query I rowsort
SELECT ALL + col2 * + - 13 * + - col1 FROM tab0 AS cor0
----
1287
2730
49491

query I rowsort
SELECT + col0 * - col1 + + - col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT + 72 + col0 AS col0 FROM tab0
----
159
169
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + ( col0 ) col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT + ( 60 ) FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT + - COUNT( * ) + 21 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8585
SELECT + - COUNT ( * ) + 21 FROM tab1 AS cor0
----
18

query I rowsort
SELECT + col1 * col0 * + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 44 AS col0 FROM tab1 AS cor0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT 91 * + 1 * + - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-8588
SELECT 91 * + 1 * + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
-273

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + 94 ) > NULL
----

query I rowsort
SELECT DISTINCT col2 * 65 * + col1 AS col2 FROM tab1
----
19175
207740
87360

query I rowsort
SELECT 2 - + + col1 AS col0 FROM tab0 AS cor0
----
-19
-79
1

query II rowsort
SELECT - 10 * + col2, - col0 * col2 AS col2 FROM tab0
----
-100
-870
-470
-705
-990
-9603

query I rowsort
SELECT + col2 * - 83 FROM tab0
----
-3901
-8217
-830

query I rowsort
SELECT - ( + - 67 ) AS col2 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8595
SELECT ALL + CAST( NULL AS SIGNED ) / + - COUNT( 20 ) + - 48 * - COUNT( * ) / 23 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8595
SELECT ALL + CAST ( NULL AS INTEGER ) / + - COUNT ( 20 ) + - 48 * - COUNT ( * ) / 23 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + - COUNT( * ) * - + MAX( ( + col2 ) ) + COUNT( * ) + - + 3 + + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-8596
SELECT + - COUNT ( * ) * - + MAX ( ( + col2 ) ) + COUNT ( * ) + - + 3 + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
294

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab0 cor0 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT - + COUNT( * ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8599
SELECT - + COUNT ( * ) col0 FROM tab2 cor0
----
-3

query II rowsort
SELECT DISTINCT 42 AS col1, 4 FROM tab0
----
42
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT - MIN( + + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8601
SELECT - MIN ( + + col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT + COUNT( * ) * + + 47 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT + COUNT ( * ) * + + 47 FROM tab1
----
141

query I rowsort
SELECT 98 * - col0 FROM tab2
----
-4508
-6272
-7350

query I rowsort
SELECT ALL - 6 * col0 FROM tab1
----
-306
-510
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT MIN( DISTINCT - 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-8605
SELECT MIN ( DISTINCT - 12 ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 * - + col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + - ( + 14 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8609
SELECT ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8609
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL AND NOT + col1 + + 63 * col2 * + col2 NOT IN ( - - col2 / col0 * + + col1, - col2, - 51, + + col1 )
----

query I rowsort
SELECT - 37 AS col2 FROM tab2 WHERE col2 * - col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> + + 83
----

query I rowsort
SELECT DISTINCT 21 * ( + col1 ) AS col0 FROM tab0
----
1701
21
441

query I rowsort
SELECT ALL + 67 + - col2 AS col0 FROM tab0 cor0
----
-32
20
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT ALL - - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT ALL col0 * + col0 * + - col2 / + + col0 + - col1 + + 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-8616
SELECT ALL col0 * + col0 * + - col2 / + + col0 + - col1 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + - - col1 - 0 * 62 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT ALL - - col1 * - CAST( col1 AS SIGNED ) - + + col2 + + CAST( - col0 AS SIGNED ) + - col2 * - ( col0 ) + - + col0 FROM tab1 AS cor0
----
3729
4502
4761

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL - - col1 * - CAST ( col1 AS INTEGER ) - + + col2 + + CAST ( - col0 AS INTEGER ) + - col2 * - ( col0 ) + - + col0 FROM tab1 AS cor0
----
3729
4502
4761

query I rowsort
SELECT ALL + + 53 + - 66 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-8620
SELECT DISTINCT 67 AS col2, - COUNT( * ) * - 73 FROM tab2
----
67
219

skipif mysql # not compatible
query II rowsort label-8620
SELECT DISTINCT 67 AS col2, - COUNT ( * ) * - 73 FROM tab2
----
67
219

query I rowsort
SELECT - + col0 * + col2 * - - col2 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8622
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - - CAST( NULL AS SIGNED ) - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8622
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - - CAST ( NULL AS INTEGER ) - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL + COUNT( DISTINCT + 87 ) * - 7 AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL + COUNT ( DISTINCT + 87 ) * - 7 AS col0 FROM tab1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT ALL + col2 DIV - 68 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + col2 / - 68 AS col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 + 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8628
SELECT ALL CAST( + 76 AS SIGNED ) DIV - - col2 col0 FROM tab2
----
1
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8628
SELECT ALL CAST ( + 76 AS INTEGER ) / - - col2 col0 FROM tab2
----
1
1
3

query II rowsort
SELECT DISTINCT - col0 * - col2, col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

query I rowsort
SELECT DISTINCT + col2 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-2162
-90
-9702

onlyif mysql # aggregate syntax: 
query II rowsort label-8631
SELECT DISTINCT - ( - COUNT( * ) ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8631
SELECT DISTINCT - ( - COUNT ( * ) ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - 49 * + col0 FROM tab2
----
-2254
-3136
-3675

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN - ( 60 ) AND - col2 + + col0
----

query I rowsort
SELECT - 39 + + col2 + 84 AS col1 FROM tab2 AS cor0
----
103
68
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT 34 * - col1 / + CAST( NULL AS SIGNED ) + - + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT 34 * - col1 / + CAST ( NULL AS INTEGER ) + - + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT 94 * - 26 + + - ( + COUNT( + + 25 ) ) FROM tab1 AS cor0
----
-2447

skipif mysql # not compatible
query I rowsort label-8637
SELECT 94 * - 26 + + - ( + COUNT ( + + 25 ) ) FROM tab1 AS cor0
----
-2447

query II rowsort
SELECT ALL + col1 + - col1 + + 2 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
2
1
2
21
2
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 93 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - 85 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 85 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT - ( - 89 ) AS col2 FROM tab2 cor0
----
89
89
89

query II rowsort
SELECT + 53 AS col0, col2 AS col1 FROM tab1 AS cor0
----
53
59
53
68
53
96

query I rowsort
SELECT ( + + 43 ) AS col1 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL + 21 + col1 * + col1 + + col0 FROM tab1 cor0
----
131
2321
268

query II rowsort
SELECT + 74 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
74
23
74
40
74
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + ( - COUNT( DISTINCT - ( + ( + col2 ) ) ) ) FROM tab2 WHERE 16 * 54 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8647
SELECT + ( - COUNT ( DISTINCT - ( + ( + col2 ) ) ) ) FROM tab2 WHERE 16 * 54 IS NOT NULL
----
-3

query I rowsort
SELECT + AVG ( + - 87 ) FROM tab0 WHERE NULL BETWEEN - col2 AND + + col0 AND + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8650
SELECT DISTINCT 99 DIV - COUNT( * ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT 99 / - COUNT ( * ) FROM tab1
----
-33

query I rowsort
SELECT 99 - + + col2 FROM tab0
----
0
52
89

query I rowsort
SELECT - 56 * + 62 + col0 * - col1 FROM tab0 AS cor0
----
-3569
-4687
-5299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT ALL - col0 FROM tab2 cor0 WHERE NOT 52 + - ( 35 ) + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - col0 FROM tab2 cor0 WHERE NOT 52 + - ( 35 ) + + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 40 col0 FROM tab1 AS cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col0 FROM tab2 AS cor0 WHERE NOT - col0 < col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL + + MAX( - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + + MAX ( - col2 ) FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT + + MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8657
SELECT + + MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL 6 * + col1 AS col2 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL + - MAX( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + - MAX ( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
-81

query I rowsort
SELECT + col1 * - 20 FROM tab1 cor0
----
-100
-280
-940

query II rowsort
SELECT ALL + - col0 AS col1, 49 AS col0 FROM tab1 AS cor0
----
-51
49
-85
49
-91
49

query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - 91 ) * - + 18 <> 63
----

query I rowsort
SELECT DISTINCT + 47 * 9 FROM tab0 AS cor0
----
423

query I rowsort
SELECT ALL + col1 * - + 3 * col0 FROM tab0
----
-291
-3645
-5481

query II rowsort
SELECT + col2 * - col1 AS col2, + col2 * + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1344
9216
-295
3481
-3196
4624

query I rowsort
SELECT ALL + 16 AS col1 FROM tab1 WHERE ( NULL IS NULL )
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ( + - 34 ) DIV col0 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8667
SELECT ( + - 34 ) / col0 AS col2 FROM tab0
----
-2
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col0 + col2 IS NULL )
----

query I rowsort
SELECT DISTINCT 23 * - - col0 * - col2 FROM tab0
----
-16215
-20010
-220869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col2 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + col1 * + ( - col2 ) AS col2 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT + + 7 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT ( 39 ) * - col0 AS col2 FROM tab0
----
-3393
-3783
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + MAX( ALL - ( - + 31 ) ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-8674
SELECT + MAX ( ALL - ( - + 31 ) ) FROM tab0
----
31

query I rowsort
SELECT + + 10 FROM tab1 AS cor0 WHERE NULL <> + col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + + 22 col1 FROM tab1 AS cor0
----
118
81
90

query I rowsort
SELECT - - col1 + col0 * + + ( + 20 ) + 62 FROM tab0 AS cor0
----
1823
2003
443

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8678
SELECT - - 29 AS col0, CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE 62 IS NOT NULL
----
29
NULL
29
NULL
29
NULL

skipif mysql # not compatible
query II rowsort label-8678
SELECT - - 29 AS col0, CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE 62 IS NOT NULL
----
29
NULL
29
NULL
29
NULL

query I rowsort
SELECT - 55 - col0 / 41 * col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT 81 + + - col1 FROM tab2
----
14
30
4

onlyif mysql # DIV for integer division: 
query II rowsort label-8681
SELECT col1 AS col0, + col2 + - ( - + col2 ) + - 27 DIV col2 DIV + col0 + col0 + - col1 DIV + 71 FROM tab2
----
51
92
67
191
77
143

skipif mysql # not compatible
query II rowsort label-8681
SELECT col1 AS col0, + col2 + - ( - + col2 ) + - 27 / col2 / + col0 + col0 + - col1 / + 71 FROM tab2
----
51
92
67
191
77
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT ALL CAST( + 93 AS SIGNED ) FROM tab0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL CAST ( + 93 AS INTEGER ) FROM tab0
----
93
93
93

query I rowsort
SELECT ALL - - col1 * + + 95 FROM tab1 AS cor0
----
1330
4465
475

query I rowsort
SELECT ALL - - 73 FROM tab0 WHERE + - 61 IS NOT NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + 75 * - MAX( + col2 ) + COUNT( * ) FROM tab1 cor0
----
-7197

skipif mysql # not compatible
query I rowsort label-8685
SELECT + 75 * - MAX ( + col2 ) + COUNT ( * ) FROM tab1 cor0
----
-7197

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT + MIN( 14 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT + MIN ( 14 ) FROM tab1 AS cor0
----
14

query II rowsort
SELECT ( - 5 ) AS col0, col0 AS col1 FROM tab2 AS cor0
----
-5
46
-5
64
-5
75

query II rowsort
SELECT DISTINCT + + col1 * + - col0 AS col2, 49 FROM tab2 AS cor0
----
-2346
49
-4928
49
-5025
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT 56 * - SUM( ALL ( col0 ) ) * - ( + 88 ) + + COUNT( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
1118659

skipif mysql # not compatible
query I rowsort label-8689
SELECT 56 * - SUM ( ALL ( col0 ) ) * - ( + 88 ) + + COUNT ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
1118659

query I rowsort
SELECT DISTINCT + 60 * + 69 FROM tab2 AS cor0
----
4140

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8691
SELECT ALL * FROM tab0 WHERE NOT - + CAST( - ( + - col0 ) AS DECIMAL ) NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-8691
SELECT ALL * FROM tab0 WHERE NOT - + CAST ( - ( + - col0 ) AS REAL ) NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - col1 * - - col1 NOT IN ( - - col0 + + col1, col1 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8693
SELECT * FROM tab0 WHERE NOT - + col1 + + CAST( NULL AS SIGNED ) + - 42 + - 80 * - + col1 * 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8693
SELECT * FROM tab0 WHERE NOT - + col1 + + CAST ( NULL AS INTEGER ) + - 42 + - 80 * - + col1 * 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - 39 + + COUNT( * ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - 39 + + COUNT ( * ) FROM tab2 AS cor0
----
-36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 62 ) + - col1 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 + - - ( col2 ) col2, + col2 + - + ( col1 ) AS col2 FROM tab2 AS cor0
----
117
-37
125
-9
74
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE - col0 >= - ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - col0 >= - ( + - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT - COUNT( ( + col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8698
SELECT - COUNT ( ( + col1 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - col2 * + - 77 FROM tab1 AS cor0
----
-4543
-5236
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT ALL - + CAST( NULL AS SIGNED ) * + 87 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 87 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 + - + 61 + + 81 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT MIN( ALL + + 47 ) + 27 + 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-8702
SELECT MIN ( ALL + + 47 ) + 27 + 37 FROM tab0
----
111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8703
SELECT - + CAST( NULL AS DECIMAL ) * - - 26 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT - + CAST ( NULL AS REAL ) * - - 26 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL 47 * - + col0 AS col2 FROM tab0 AS cor0
----
-4089
-4559
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT + + col2 * + CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8706
SELECT + + col2 * + CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT - - col0, col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT ALL - - col1 DIV col1 + + - 53 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL - - col1 / col1 + + - 53 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT 59 + col0 FROM tab2 AS cor0
----
105
123
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT + SUM( + col2 ) AS col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( 81 - 84 * - col1, + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + SUM ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE + col2 NOT IN ( 81 - 84 * - col1, + col2 )
----
NULL

query II rowsort
SELECT 6 AS col0, + ( 44 ) * - + col1 + + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
6
-2159
6
-305
6
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT - - COUNT( * ) - + - 2 * + 51 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - - COUNT ( * ) - + - 2 * + 51 FROM tab0 AS cor0
----
105

query I rowsort
SELECT ALL + col0 + 46 FROM tab1 AS cor0
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 71 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8714
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 71 IS NOT NULL
----
3

query I rowsort
SELECT ALL + - col2 - - col0 AS col0 FROM tab0 cor0
----
-2
-32
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 36 < 83 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + 93 IS NULL
----

query II rowsort
SELECT ALL col1 - col0, - col0 AS col2 FROM tab2
----
-8
-75
13
-64
5
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT ALL - 67 - + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL - 67 - + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT - COUNT( DISTINCT 51 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8720
SELECT - COUNT ( DISTINCT 51 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - - col2 / + ( + col1 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT + + MIN( DISTINCT + col2 ) * - - SUM( - - 95 ) AS col2 FROM tab0 AS cor0
----
2850

skipif mysql # not compatible
query I rowsort label-8722
SELECT + + MIN ( DISTINCT + col2 ) * - - SUM ( - - 95 ) AS col2 FROM tab0 AS cor0
----
2850

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8723
SELECT DISTINCT - 71 / - - AVG ( CAST( NULL AS DECIMAL ) ) - + - COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8723
SELECT DISTINCT - 71 / - - AVG ( CAST ( NULL AS REAL ) ) - + - COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - 59 ) col0 FROM tab1 AS cor0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - col1 ) - + col1 * ( col0 ) AND NULL
----

query I rowsort
SELECT ALL + - col2 + + ( 39 ) + - - col0 AS col0 FROM tab1 AS cor0
----
-6
62
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 81 ) col1 FROM tab2
----
81
81
81

query I rowsort
SELECT 33 * + ( + col1 ) AS col2 FROM tab0
----
2673
33
693

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8730
SELECT col0 - - + 92 AS col2, - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8730
SELECT col0 - - + 92 AS col2, - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT col0 + 95 DIV + + col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-8731
SELECT col0 + 95 / + + col0 FROM tab1
----
52
86
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8732
SELECT DISTINCT + SUM( ALL - col1 ), ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
-103
NULL

skipif mysql # not compatible
query II rowsort label-8732
SELECT DISTINCT + SUM ( ALL - col1 ), ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
-103
NULL

query I rowsort
SELECT - 30 * + + 43 + ( ( + col0 ) ) AS col1 FROM tab2
----
-1215
-1226
-1244

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT DISTINCT col1 + 10 + col2 + + - col2 DIV + 99 AS col1 FROM tab2 AS cor0
----
127
135
84

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT col1 + 10 + col2 + + - col2 / + 99 AS col1 FROM tab2 AS cor0
----
127
135
84

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 62 FROM tab0 cor0
----
-62
-62
-62

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * + col0 / - col0 + - - ( col0 ) - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL COUNT( * ) - - SUM( DISTINCT - - 85 ) AS col0 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL COUNT ( * ) - - SUM ( DISTINCT - - 85 ) AS col0 FROM tab2
----
88

query II rowsort
SELECT DISTINCT + col1, + 21 FROM tab2
----
51
21
67
21
77
21

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE 35 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query II rowsort label-8742
SELECT ALL + 88 * - 83 * - - 61 AS col2, - COUNT( * ) FROM tab1 cor0
----
-445544
-3

skipif mysql # not compatible
query II rowsort label-8742
SELECT ALL + 88 * - 83 * - - 61 AS col2, - COUNT ( * ) FROM tab1 cor0
----
-445544
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 >= + 96
----
51
14
96

query I rowsort
SELECT + - 98 + + col2 FROM tab1 AS cor0
----
-2
-30
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT + + col0 + - 70 DIV 83 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8745
SELECT + + col0 + - 70 / 83 AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT ALL 32 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL 32 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col1 * - - 98 + - col1 FROM tab2 AS cor0
----
254847
439855
580965

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT + + SUM( + - 96 ) + + + SUM( + col0 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + + SUM ( + - 96 ) + + + SUM ( + col0 ) FROM tab1 AS cor0
----
-61

query II rowsort
SELECT - col0, ( - + col2 ) + + col2 AS col2 FROM tab1
----
-51
0
-85
0
-91
0

query II rowsort
SELECT ALL + col0 AS col2, col1 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT COUNT( ( + + 74 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8751
SELECT COUNT ( ( + + 74 ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL ( + - MIN( col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL ( + - MIN ( col0 ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT ALL + COUNT( * ) * - COUNT( * ) DIV - - 1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL + COUNT ( * ) * - COUNT ( * ) / - - 1 FROM tab2
----
-9

query I rowsort
SELECT - 48 * + 93 * col2 AS col2 FROM tab1
----
-263376
-303552
-428544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT - 41 * - CAST( NULL AS SIGNED ) * + + 14 / + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - 41 * - CAST ( NULL AS INTEGER ) * + + 14 / + col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + 60 + + - col0 FROM tab0 WHERE NOT + + col0 = + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 19
----

query II rowsort
SELECT ALL + 93 * - - col2 AS col0, col1 AS col1 FROM tab0 AS cor0
----
4371
81
9207
1
930
21

query I rowsort
SELECT + col2 * 25 FROM tab0
----
1175
2475
250

query I rowsort
SELECT DISTINCT 33 * + - col1 FROM tab2
----
-1683
-2211
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + COUNT( * ) - - - 12 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-8761
SELECT + COUNT ( * ) - - - 12 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8762
SELECT + col0 + 95 * col1 - col2 DIV + - CAST( - + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
191
2081
7709

skipif mysql # not compatible
query I rowsort label-8762
SELECT + col0 + 95 * col1 - col2 / + - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
191
2081
7709

query II rowsort
SELECT DISTINCT - + ( - col1 ) AS col0, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - - 92 + - col1 * col1 FROM tab2 AS cor0
----
-2509
-4397
-5837

query I rowsort
SELECT + - 40 + 29 AS col0 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - - 45 + 76 * MIN( 22 ) FROM tab0 AS cor0
----
1717

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - - 45 + 76 * MIN ( 22 ) FROM tab0 AS cor0
----
1717

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL SUM( ALL + col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL SUM ( ALL + col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT 33 + + MAX( + + col1 ) - + + 15 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT 33 + + MAX ( + + col1 ) - + + 15 FROM tab2 AS cor0
----
95

query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ( + - ( + - col1 ) ) FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 80 col2 FROM tab0
----
101
161
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 54 * - 0 * - 56 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL - SUM( DISTINCT + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL - SUM ( DISTINCT + col0 ) FROM tab1
----
-227

query I rowsort
SELECT ALL - 5 * + - col0 FROM tab0
----
435
485
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL + COUNT( * ) + - CAST( + 34 AS SIGNED ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + COUNT ( * ) + - CAST ( + 34 AS INTEGER ) FROM tab2
----
-31

query I rowsort
SELECT DISTINCT + 35 + + 57 * - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - col2 IN ( - ( + 18 ) - - ( + 82 ) * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE 2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT DISTINCT 79 DIV COUNT( * ) AS col2 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT 79 / COUNT ( * ) AS col2 FROM tab0
----
26

query I rowsort
SELECT col0 * 15 + 26 FROM tab2
----
1151
716
986

query I rowsort
SELECT + 70 AS col2 FROM tab0 WHERE - ( + col0 ) * + 55 NOT IN ( - col2 )
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8782
SELECT DISTINCT + 4 DIV MAX( ALL 81 ) + 36 DIV 11 col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8782
SELECT DISTINCT + 4 / MAX ( ALL 81 ) + 36 / 11 col0 FROM tab1
----
3

query I rowsort
SELECT - col1 + col2 * - 29 AS col2 FROM tab2
----
-1237
-1749
-718

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT + col2 = ( + ( - 73 ) + + col0 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT + MIN( col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT + MIN ( col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 39 / col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT - 42 + MAX( ALL 46 ) col2 FROM tab2
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8787
SELECT DISTINCT - 42 + MAX ( ALL 46 ) col2 FROM tab2
----
4

query I rowsort
SELECT col0 * - 28 + + col2 FROM tab2
----
-1265
-1752
-2042

query I rowsort
SELECT DISTINCT + col0 + 96 AS col1 FROM tab1
----
147
181
187

query III rowsort
SELECT * FROM tab0 WHERE ( + 96 + col1 ) <= - 86 - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 <> - 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * col0 + + 94 FROM tab2
----
-2022
-4002
-5531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 + + col1 col1 FROM tab1 WHERE + col0 IS NOT NULL
----
47
56
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT + SUM( 27 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8794
SELECT + SUM ( 27 ) FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT 83 * + col1 <= - 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE 37 * col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL = col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT CAST( ( - 7 ) AS SIGNED ) + + col0 col1 FROM tab0
----
8
80
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8798
SELECT CAST ( ( - 7 ) AS INTEGER ) + + col0 col1 FROM tab0
----
8
80
90

query I rowsort
SELECT ALL ( + 2 ) FROM tab1 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8800
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL - col2 * - 48 FROM tab1 AS cor0
----
2832
3264
4608

query I rowsort
SELECT col1 + + 54 FROM tab0 cor0 WHERE NOT ( col1 * col0 ) > ( + col2 ) + - 74
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT - 83 * + CAST( + CAST( NULL AS SIGNED ) * COUNT( * ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT - 83 * + CAST ( + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 95 * + col1 + ( 73 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col1 * 83 AND col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - + 20 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 >= ( 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT DISTINCT + 51 * + ( col1 * - 25 ) + - col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + 51 * + ( col1 * - 25 ) + - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT MAX( - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT MAX ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 * + 20 + col1 FROM tab1 AS cor0 WHERE ( - col1 * ( + col2 ) + - col0 ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 46 * ( ( 1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE - col2 * + 68 IN ( ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL MIN( DISTINCT col2 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL MIN ( DISTINCT col2 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8814
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - col0 ) * col1 ) BETWEEN col1 - - col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8814
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - col0 ) * col1 ) BETWEEN col1 - - col0 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 10 AS col1 FROM tab2 cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL 2 + + COUNT( * ) * MAX( DISTINCT + col2 ) FROM tab0 cor0
----
299

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL 2 + + COUNT ( * ) * MAX ( DISTINCT + col2 ) FROM tab0 cor0
----
299

query I rowsort
SELECT DISTINCT - col1 + ( 55 ) FROM tab2 AS cor0
----
-12
-22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( 16 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( 16 ) >= NULL
----
0

query I rowsort
SELECT - col1 + 14 AS col0 FROM tab2 AS cor0
----
-37
-53
-63

query I rowsort
SELECT - + 9 + col0 AS col0 FROM tab0 cor0
----
6
78
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 + col2 col0 FROM tab1
----
203
227
243

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT - ( 93 ) * col1 + 89 DIV 83 FROM tab0
----
-1952
-7532
-92

skipif mysql # not compatible
query I rowsort label-8823
SELECT - ( 93 ) * col1 + 89 / 83 FROM tab0
----
-1952
-7532
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL + MIN( - - ( + 42 ) ) * - 99 FROM tab2
----
-4158

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + MIN ( - - ( + 42 ) ) * - 99 FROM tab2
----
-4158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( - 65 ) col0 FROM tab1
----
-116
-150
-156

query I rowsort
SELECT + 30 AS col1 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8827
SELECT col0 + + - CAST( + col2 AS SIGNED ) FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-8827
SELECT col0 + + - CAST ( + col2 AS INTEGER ) FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * 4 + - col1 col0 FROM tab0
----
-105
-405
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT DISTINCT + col2 DIV - 84 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT + col2 / - 84 AS col1 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT ALL col0 + + CAST( - col2 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL col0 + + CAST ( - col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT DISTINCT - 17 DIV - + 45 * + col0 + - 74 col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8832
SELECT DISTINCT - 17 / - + 45 * + col0 + - 74 col2 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT DISTINCT MIN( - 65 ) FROM tab2 AS cor0 WHERE NOT - 99 * col1 >= - col0
----
-65

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT MIN ( - 65 ) FROM tab2 AS cor0 WHERE NOT - 99 * col1 >= - col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8834
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 IS NULL AND NOT 91 NOT BETWEEN ( - col1 + 99 ) AND ( - CAST( + col1 AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-8834
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 IS NULL AND NOT 91 NOT BETWEEN ( - col1 + 99 ) AND ( - CAST ( + col1 AS INTEGER ) + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8835
SELECT ALL - COUNT( * ) DIV COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL - COUNT ( * ) / COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT ALL + 74 - + col1 AS col0 FROM tab2
----
-3
23
7

query I rowsort
SELECT DISTINCT col2 * + 41 + - col1 AS col2 FROM tab1
----
2414
2741
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ( + COUNT( * ) ) * - 2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8838
SELECT ( + COUNT ( * ) ) * - 2 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) <> NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col2, 21 AS col0 FROM tab0 AS cor0
----
-15
21
-87
21
-97
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8841
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( col0 * col1 + + col0 * 42 )
----

skipif mysql # not compatible
query III rowsort label-8841
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( col0 * col1 + + col0 * 42 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 3 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT - COUNT( ALL ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8843
SELECT - COUNT ( ALL ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + COUNT( * ) * 35 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
315

skipif mysql # not compatible
query I rowsort label-8844
SELECT + COUNT ( * ) * 35 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
315

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 - 14 NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + 91 * + + col1 * + col1 AS col0 FROM tab0
----
40131
597051
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT 94 * - COUNT( * ) FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT 94 * - COUNT ( * ) FROM tab0
----
-282

query I rowsort
SELECT ALL ( col1 ) FROM tab0 WHERE NOT NULL >= col1
----

query I rowsort
SELECT DISTINCT - col1 * - 99 AS col0 FROM tab0
----
2079
8019
99

query I rowsort
SELECT - 41 FROM tab0 WHERE NOT + 71 IS NULL
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT MIN( - - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8851
SELECT MIN ( - - col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT + MIN( 96 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + MIN ( 96 ) FROM tab1
----
96

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT - - col0 + - 0 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT ALL + col1 * col1 DIV col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL + col1 * col1 / col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT - COUNT( - 13 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT - COUNT ( - 13 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 69 AS col0 FROM tab1 WHERE NOT NULL = + col2 + - 10
----

query I rowsort
SELECT ALL - col2 * ( - 12 ) AS col2 FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
1188
120
564

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 + - - 81 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8860
SELECT ( 99 ) * col2 DIV col1 + - - col1 FROM tab0
----
138
68
9802

skipif mysql # not compatible
query I rowsort label-8860
SELECT ( 99 ) * col2 / col1 + - - col1 FROM tab0
----
138
68
9802

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( + col2 ) ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) + + 41 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) + + 41 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 / + + col2 * col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col1 * + col0 * + 85 col2 FROM tab2 AS cor0
----
199433
418920
427183

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 + col2 AND + - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + COUNT( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8866
SELECT + COUNT ( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8867
SELECT COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL COUNT( DISTINCT - col2 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL COUNT ( DISTINCT - col2 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT - 41 + - col0 / + - col2 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT IN ( + col1, col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col2 * - col1 + + col2 ) AND - col0 * col2
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL col2 - - + 65 FROM tab1
----
124
133
161

query II rowsort
SELECT DISTINCT - col2, col1 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT - - 53 * + col2 * + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - 53 * + col2 * + + col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL col1 AS col2, + col1 + - - 2 AS col2 FROM tab1 AS cor0
----
14
16
47
49
5
7

query I rowsort
SELECT - 27 + 60 AS col2 FROM tab0 cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + 61 + + - col0 FROM tab0 WHERE ( - col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT - 41 + col2 AS col1 FROM tab0
----
-31
58
6

query I rowsort
SELECT ALL + ( + + col0 ) - col0 - + - col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - - ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8881
SELECT - - ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT + MAX( + col0 ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + MAX ( + col0 ) AS col0 FROM tab1 cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 6 + - - col1 + 42 + 69 * + col2 * - 74 * + col1 - - col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8884
SELECT DISTINCT col0, - CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8884
SELECT DISTINCT col0, - CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL MAX( - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL MAX ( - col2 ) FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8886
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - - 28 * + col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8886
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - - 28 * + col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT - MIN( DISTINCT + - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) FROM tab1
----
91

query II rowsort
SELECT 87 AS col0, - col1 FROM tab2
----
87
-51
87
-67
87
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT - SUM( - + 62 ) AS col1 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-8889
SELECT - SUM ( - + 62 ) AS col1 FROM tab0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 57 ) col1 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT ALL + - 83 FROM tab0 AS cor0 WHERE - 76 * - 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL - SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT 60 DIV - + col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8895
SELECT 60 / - + col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 41 / - 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 41 / - 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - - 41 * + col1 + - + col2
----

query I rowsort
SELECT - col2 + 94 AS col0 FROM tab0 AS cor0
----
-5
47
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT 26 * + ( - + COUNT( * ) ) + - + 94 AS col2 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN + col0 AND - 8
----
-172

skipif mysql # not compatible
query I rowsort label-8899
SELECT 26 * + ( - + COUNT ( * ) ) + - + 94 AS col2 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN + col0 AND - 8
----
-172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 + col1 col2 FROM tab1 AS cor0
----
-41
-50
-8

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + ( - + col2 ) + + col1 + + col0 AS col0 FROM tab1
----
-31
31
70

query I rowsort
SELECT DISTINCT col1 - + 2 FROM tab0
----
-1
19
79

query I rowsort
SELECT - col0 + - + col0 FROM tab2
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT 15 + + col0 + - col0 DIV 70 AS col0 FROM tab0
----
101
111
30

skipif mysql # not compatible
query I rowsort label-8905
SELECT 15 + + col0 + - col0 / 70 AS col0 FROM tab0
----
101
111
30

query I rowsort
SELECT col1 * - - 80 + + - 71 FROM tab0
----
1609
6409
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT col1 DIV + 88 + + + 42 AS col2 FROM tab1
----
42
42
42

skipif mysql # not compatible
query I rowsort label-8907
SELECT col1 / + 88 + + + 42 AS col2 FROM tab1
----
42
42
42

query I rowsort
SELECT + col1 + - 90 AS col2 FROM tab2
----
-13
-23
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + 89 * - COUNT( * ) AS col1 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-8909
SELECT + 89 * - COUNT ( * ) AS col1 FROM tab1
----
-267

query I rowsort
SELECT DISTINCT + - 74 FROM tab2 WHERE NOT 51 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT ALL 23 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL 23 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - 48 + col1 AS col0 FROM tab0 AS cor0
----
-3807
-47
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col1 FROM tab1 AS cor0
----
63
63
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( - 16 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT - - COUNT( * ) DIV - + 39 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT - - COUNT ( * ) / - + 39 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + + 28 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + + 28 > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT ALL + col0 DIV + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + col0 / + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT DISTINCT + COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + 1 * + col0 AS col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8921
SELECT - COUNT( * ), - COUNT( * ) col0 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8921
SELECT - COUNT ( * ), - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT + - 31 * col2 + CAST( NULL AS SIGNED ) * + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT + - 31 * col2 + CAST ( NULL AS INTEGER ) * + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND - 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT ALL col1 FROM tab1 WHERE + col0 + - col1 * + - CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL col1 FROM tab1 WHERE + col0 + - col1 * + - CAST ( NULL AS INTEGER ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT + ( - - COUNT( * ) ), - 52 AS col0 FROM tab0
----
3
-52

skipif mysql # not compatible
query II rowsort label-8925
SELECT + ( - - COUNT ( * ) ), - 52 AS col0 FROM tab0
----
3
-52

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - col0, + col1, + - col0 / col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT ( - - col2 + - - col2 ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 64 ) col0 FROM tab0
----
64
64
64

query I rowsort
SELECT ALL ( - - col2 ) * - 42 + col2 FROM tab2 cor0
----
-1640
-2378
-943

onlyif mysql # DIV for integer division: 
query II rowsort label-8930
SELECT 39 + + - col2 DIV + col0 AS col1, - col1 AS col0 FROM tab2
----
39
-51
39
-67
39
-77

skipif mysql # not compatible
query II rowsort label-8930
SELECT 39 + + - col2 / + col0 AS col1, - col1 AS col0 FROM tab2
----
39
-51
39
-67
39
-77

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 = - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - + col2
----

query I rowsort
SELECT ALL 21 + - - col1 FROM tab1 AS cor0
----
26
35
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8934
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - + + CAST( col2 AS SIGNED ) + + ( + - 30 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8934
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - + + CAST ( col2 AS INTEGER ) + + ( + - 30 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col2 + - 89 FROM tab1 cor0
----
-148
-157
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT - ( + - ( + SUM( DISTINCT + - col1 ) ) ) AS col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8936
SELECT - ( + - ( + SUM ( DISTINCT + - col1 ) ) ) AS col2 FROM tab1 cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 43 * - + col1 * + col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT ALL + + col2 * - col2 + - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-102
-2210
-9801

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + + col2 * - col2 + - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-102
-2210
-9801

query I rowsort
SELECT DISTINCT - col1 + + ( - - col0 ) + 10 FROM tab1 AS cor0 WHERE col2 * + + col0 IS NOT NULL
----
47
54
90

query I rowsort
SELECT DISTINCT - ( 29 ) AS col1 FROM tab1
----
-29

query I rowsort
SELECT ALL - ( - + 21 ) - + 99 AS col2 FROM tab1
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8942
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab1
----
6
-3

skipif mysql # not compatible
query II rowsort label-8942
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1
----
6
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT ALL - - col0 AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) + - 6 IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL - - col0 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + - 6 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8944
SELECT DISTINCT - 35 DIV 74 - ( + ( + COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT - 35 / 74 - ( + ( + COUNT ( * ) ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL - 36 * + COUNT( * ) col1 FROM tab2
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8945
SELECT ALL - 36 * + COUNT ( * ) col1 FROM tab2
----
-108

query II rowsort
SELECT + col1 + + col1 AS col2, + col0 AS col0 FROM tab2
----
102
46
134
75
154
64

query I rowsort
SELECT 74 + - 85 + 42 * - ( - col1 ) AS col1 FROM tab2
----
2131
2803
3223

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col0 AS col2 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL 27 - + 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * + + 27 col2 FROM tab2
----
1944
1944
1944

query II rowsort
SELECT - col2, + col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT + ( - - ( - - CAST( NULL AS SIGNED ) ) ) * + - 98 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT + ( - - ( - - CAST ( NULL AS INTEGER ) ) ) * + - 98 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 47 + + col2 FROM tab1
----
106
115
143

query I rowsort
SELECT - col0 + 4 + 59 - - col2 AS col2 FROM tab1
----
108
37
40

query I rowsort
SELECT col1 + 26 FROM tab2
----
103
77
93

query I rowsort
SELECT col1 * + 12 + + - col1 + + ( + + col0 ) * + 72 AS col0 FROM tab2
----
3873
5455
6137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL - ( - col1 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - ( - col1 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 6 * - + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - + col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8963
SELECT - col0 col1, - col2 + + col1 AS col1 FROM tab1 AS cor0 WHERE - col0 * + CAST( NULL AS SIGNED ) IS NULL
----
-51
-82
-85
-54
-91
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8963
SELECT - col0 col1, - col2 + + col1 AS col1 FROM tab1 AS cor0 WHERE - col0 * + CAST ( NULL AS INTEGER ) IS NULL
----
-51
-82
-85
-54
-91
-21

query I rowsort
SELECT DISTINCT 52 + col2 - + 84 * - 94 FROM tab0 AS cor0
----
7958
7995
8047

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - ( + COUNT( * ) ) * - 62 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-8965
SELECT - ( + COUNT ( * ) ) * - 62 FROM tab0
----
186

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT IN ( + 86, - col0 - - - ( - ( - + 12 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + col2 * + col2 + + col0 FROM tab1 AS cor0
----
-295800
-420693
-469965

query I rowsort
SELECT col2 + - - col1 - - + col1 * col0 FROM tab1 AS cor0
----
4392
489
824

query I rowsort
SELECT ALL - col0 * - + 74 + + ( 13 ) FROM tab0 AS cor0
----
1123
6451
7191

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL 17 + - - COUNT( * ) AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL 17 + - - COUNT ( * ) AS col2 FROM tab0
----
20

query II rowsort
SELECT col2 AS col1, col1 * 96 AS col1 FROM tab0
----
10
2016
47
7776
99
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8972
SELECT DISTINCT - + COUNT( * ) DIV + 41 * 36 DIV + COUNT( * ) * + SUM( + col2 ) FROM tab2 WHERE NOT - ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - + COUNT ( * ) / + 41 * 36 / + COUNT ( * ) * + SUM ( + col2 ) FROM tab2 WHERE NOT - ( + col2 ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8973
SELECT + ( - 93 ) * - - MIN( col2 ) AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-930
NULL

skipif mysql # not compatible
query II rowsort label-8973
SELECT + ( - 93 ) * - - MIN ( col2 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-930
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - SUM( ALL - 81 ) col0 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8974
SELECT - SUM ( ALL - 81 ) col0 FROM tab2 AS cor0
----
243

query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT ALL + col2 AS col1, - ( - col1 ) AS col1 FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL + ( COUNT( * ) ) * + 50 * ( 93 ) AS col1 FROM tab0
----
13950

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + ( COUNT ( * ) ) * + 50 * ( 93 ) AS col1 FROM tab0
----
13950

query I rowsort
SELECT DISTINCT + col2 * 43 * 75 AS col2 FROM tab2
----
129000
187050
74175

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - ( col1 ) AS col1 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 31 + + - col0 + - 39 + - - col1 * + - col1 ) NOT IN ( 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 33 * + 97 + + - col2 FROM tab0 AS cor0
----
-3211
-3248
-3300

query I rowsort
SELECT DISTINCT - col1 * + - 1 * 29 FROM tab2 AS cor0
----
1479
1943
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT ( - CAST( NULL AS SIGNED ) ) * + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT ( - CAST ( NULL AS INTEGER ) ) * + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8986
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT CAST( + - col0 AS DECIMAL ) + col2 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8986
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT CAST ( + - col0 AS REAL ) + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT COUNT( * ) * + COUNT( ALL + 11 ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL + 11 ) FROM tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT ALL - 75 * - col0 DIV col0 FROM tab1
----
75
75
75

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL - 75 * - col0 / col0 FROM tab1
----
75
75
75

query I rowsort
SELECT ( + - col2 ) * + 45 - - 33 FROM tab2
----
-1002
-1767
-2577

query I rowsort
SELECT ALL col2 * col2 * + 16 FROM tab0
----
156816
1600
35344

query I rowsort
SELECT DISTINCT ( 3 ) * col0 FROM tab0
----
261
291
45

query I rowsort
SELECT ALL - 74 * - 12 AS col0 FROM tab2
----
888
888
888

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8993
SELECT MIN( ALL - col1 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT MIN ( ALL - col1 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT - 36 + COUNT( * ) FROM tab1 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8994
SELECT - 36 + COUNT ( * ) FROM tab1 cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - COUNT( * ) + - SUM( col0 ) AS col2 FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-8995
SELECT - COUNT ( * ) + - SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
-202

query I rowsort
SELECT - 55 + col0 FROM tab1
----
-4
30
36

query I rowsort
SELECT + + 39 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8998
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 46 * + col2 AS col0 FROM tab1
----
2714
3128
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT ( - 50 ) DIV col1 + - col2 * - col1 + - ( - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1196
3120
3944

skipif mysql # not compatible
query I rowsort label-9000
SELECT ( - 50 ) / col1 + - col2 * - col1 + - ( - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT + SUM( DISTINCT col1 ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-9001
SELECT + SUM ( DISTINCT col1 ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-585

onlyif mysql # DIV for integer division: 
query II rowsort label-9002
SELECT - + col1 AS col1, + 40 DIV - col2 AS col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-9002
SELECT - + col1 AS col1, + 40 / - col2 AS col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query II rowsort
SELECT DISTINCT + 44, col1 FROM tab1 AS cor0
----
44
14
44
47
44
5

query I rowsort
SELECT 41 + + + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= - col2
----

query I rowsort
SELECT + + 72 - + + ( col0 ) * + - col0 + + col0 FROM tab1 AS cor0
----
2724
7382
8444

query I rowsort
SELECT ALL ( - - 21 ) FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT 66 + - col0 FROM tab2 AS cor0
----
-9
2
20

query I rowsort
SELECT - col1 - - ( + col0 ) + col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN 13 * + 71 / + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - MAX( DISTINCT + col2 ) FROM tab0 WHERE NOT ( + 2 ) NOT BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT - MAX ( DISTINCT + col2 ) FROM tab0 WHERE NOT ( + 2 ) NOT BETWEEN + col1 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 92 col0 FROM tab2 WHERE + col1 + + - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9012
SELECT ALL * FROM tab2 WHERE NOT - CAST( + 83 AS SIGNED ) * 99 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9012
SELECT ALL * FROM tab2 WHERE NOT - CAST ( + 83 AS INTEGER ) * 99 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL - MAX( 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - MAX ( 20 ) FROM tab2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9017
SELECT + 15 col2, - ( COUNT( * ) ) + - COUNT( * ) FROM tab1 AS cor0
----
15
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9017
SELECT + 15 col2, - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
15
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 54 AS col0, col0 col0 FROM tab0 AS cor0
----
54
15
54
87
54
97

query I rowsort
SELECT ALL - 99 * col2 AS col1 FROM tab2 AS cor0
----
-2277
-3960
-5742

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 21 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * 23 * - col2 col1 FROM tab1 cor0
----
-120773
-139196
-196512

query I rowsort
SELECT ALL - 93 + col1 FROM tab0 AS cor0 WHERE NOT NULL >= 78
----

query I rowsort
SELECT DISTINCT + 40 + + col2 FROM tab0
----
139
50
87

query I rowsort
SELECT col0 + - - col0 + - 95 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - COUNT( * ) + 6 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9025
SELECT - COUNT ( * ) + 6 AS col1 FROM tab1
----
3

query I rowsort
SELECT 4 * col2 + 91 FROM tab2
----
183
251
323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT - col2 * col1 * CAST( NULL AS SIGNED ) + - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT - col2 * col1 * CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 11 * + - col2 + - 81 AS col0 FROM tab1
----
-1137
-730
-829

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9029
SELECT ALL - CAST( NULL AS DECIMAL ) + + + MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL - CAST ( NULL AS REAL ) + + + MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col0 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT DISTINCT MAX( DISTINCT + 59 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT MAX ( DISTINCT + 59 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT 93 * + 79 + + COUNT( DISTINCT + - col1 ) - - - ( COUNT( * ) ) * + + 80 FROM tab0 AS cor0
----
7110

skipif mysql # not compatible
query I rowsort label-9032
SELECT 93 * + 79 + + COUNT ( DISTINCT + - col1 ) - - - ( COUNT ( * ) ) * + + 80 FROM tab0 AS cor0
----
7110

query I rowsort
SELECT - col0 - + - col2 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL 91 - + 93 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT col1 + col2 FROM tab1 AS cor0 WHERE NOT 69 < + col0
----
110

onlyif mysql # DIV for integer division: 
query II rowsort label-9036
SELECT + col0 AS col2, col2 DIV ( col1 ) * - col1 * + + col1 AS col1 FROM tab0 AS cor0
----
15
0
87
0
97
-99

skipif mysql # not compatible
query II rowsort label-9036
SELECT + col0 AS col2, col2 / ( col1 ) * - col1 * + + col1 AS col1 FROM tab0 AS cor0
----
15
0
87
0
97
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col0 + - col2 - + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - 0 < - - 19 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 28 - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT col0 DIV col1 DIV + 20 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT col0 / col1 / + 20 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 * col2 AS col2 FROM tab2
----
-46
1173
-64
3080
-75
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT DISTINCT + COUNT( * ) AS col0, 77 FROM tab1
----
3
77

skipif mysql # not compatible
query II rowsort label-9042
SELECT DISTINCT + COUNT ( * ) AS col0, 77 FROM tab1
----
3
77

query II rowsort
SELECT ALL - 94 AS col1, col0 AS col1 FROM tab1
----
-94
51
-94
85
-94
91

query I rowsort
SELECT DISTINCT 47 - + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT + COUNT( ALL - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9045
SELECT + COUNT ( ALL - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL - MIN( DISTINCT + - 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - MIN ( DISTINCT + - 0 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * col0 * + 89 BETWEEN ( - + col0 ) AND 5 * + 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE - col0 BETWEEN - ( + 56 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 29 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9050
SELECT + col1 * + + col2 - + 15 * - ( + 39 ) * - CAST( NULL AS SIGNED ) AS col0, ( - col2 ) AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-9050
SELECT + col1 * + + col2 - + 15 * - ( + 39 ) * - CAST ( NULL AS INTEGER ) AS col0, ( - col2 ) AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT ALL - 12 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + COUNT( * ) + 99 FROM tab0, tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9052
SELECT + COUNT ( * ) + 99 FROM tab0, tab1 AS cor0
----
108

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE 82 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT DISTINCT + + ( - + col2 ) - - ( col0 ) FROM tab0 AS cor0 WHERE + 5 NOT BETWEEN CAST( NULL AS SIGNED ) * + - 68 * 54 + + 1 AND + - ( + col2 ) + + - col1 + - + col2 * + + col0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + + ( - + col2 ) - - ( col0 ) FROM tab0 AS cor0 WHERE + 5 NOT BETWEEN CAST ( NULL AS INTEGER ) * + - 68 * 54 + + 1 AND + - ( + col2 ) + + - col1 + - + col2 * + + col0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - - col0 + - 90 * - 11 AS col0 FROM tab1 AS cor0
----
1041
1075
1081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT ALL 32 * - + CAST( NULL AS SIGNED ) * + 62 * + CAST( NULL AS SIGNED ) / - + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL 32 * - + CAST ( NULL AS INTEGER ) * + 62 * + CAST ( NULL AS INTEGER ) / - + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 75 * 2 FROM tab1
----
150
150
150

query I rowsort
SELECT + - ( + + col2 ) FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL <= - col1
----

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL <= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9060
SELECT - COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9060
SELECT - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT DISTINCT + + col2 - + 7 AS col1 FROM tab2 WHERE NOT + col0 - - CAST( NULL AS SIGNED ) <> + col1
----

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT + + col2 - + 7 AS col1 FROM tab2 WHERE NOT + col0 - - CAST ( NULL AS INTEGER ) <> + col1
----

query I rowsort
SELECT + ( + - 86 ) + + col0 + + 18 * - + col0 AS col2 FROM tab1 AS cor0
----
-1531
-1633
-953

query II rowsort
SELECT ALL - col2 * + 3 - + 21 - - col0 * + - ( + col1 ) AS col2, + col0 FROM tab2 AS cor0
----
-2436
46
-5069
64
-5220
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9064
SELECT 62 + 2 + + COUNT( * ) + + + 74 DIV - 34 AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9064
SELECT 62 + 2 + + COUNT ( * ) + + + 74 / - 34 AS col0 FROM tab0 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + ( - 14 ) * + + col1 col2, + 67 AS col1 FROM tab1 cor0
----
-145
67
-567
67
15
67

query I rowsort
SELECT DISTINCT - col2 * + 58 - + col2 AS col1 FROM tab2 AS cor0
----
-1357
-2360
-3422

query II rowsort
SELECT ALL - 1 - - col0, col2 FROM tab1
----
50
96
84
59
90
68

query I rowsort
SELECT ALL - col1 * - 23 - - + 92 FROM tab2
----
1265
1633
1863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 + + + 31 col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
736
901
9634

query I rowsort
SELECT DISTINCT ( 77 ) * 69 FROM tab1 AS cor0
----
5313

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT ALL 46 DIV col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL 46 / col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT 73 * col0 AS col0 FROM tab2 AS cor0
----
3358
4672
5475

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( col2, - 55 * - col0 / - col1 * + 32 * + 8 + + - col2 )
----

query I rowsort
SELECT 18 * + + col2 AS col2 FROM tab0 AS cor0
----
1782
180
846

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9076
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + ( - col0 ) + col1 + 56 DIV - - col0 AS col0 FROM tab2
----
NULL
-8
NULL
13
NULL
6

skipif mysql # not compatible
query II rowsort label-9076
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + ( - col0 ) + col1 + 56 / - - col0 AS col0 FROM tab2
----
NULL
-8
NULL
13
NULL
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT COUNT( * ) * - 60 AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-9078
SELECT COUNT ( * ) * - 60 AS col1 FROM tab2
----
-180

query I rowsort
SELECT DISTINCT - 96 * 70 AS col2 FROM tab0
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + COUNT( * ) * - 57 * - + MIN( DISTINCT 71 ) AS col0 FROM tab2
----
12141

skipif mysql # not compatible
query I rowsort label-9080
SELECT + COUNT ( * ) * - 57 * - + MIN ( DISTINCT 71 ) AS col0 FROM tab2
----
12141

query II rowsort
SELECT - 49, - col0 AS col0 FROM tab2
----
-49
-46
-49
-64
-49
-75

query II rowsort
SELECT col2, - col0 AS col2 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT + COUNT( * ) DIV + SUM( + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9083
SELECT + COUNT ( * ) / + SUM ( + col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + + + 62 FROM tab2 AS cor0
----
113
129
139

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - col2 / 44 BETWEEN 92 + 13 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL + 40 + - COUNT( * ) AS col0 FROM tab1 cor0
----
37

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + 40 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
37

query I rowsort
SELECT - col1 + + 53 AS col1 FROM tab0 AS cor0
----
-28
32
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT 66 DIV + + 29 + + MIN( ALL + - col1 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
233

skipif mysql # not compatible
query I rowsort label-9088
SELECT 66 / + + 29 + + MIN ( ALL + - col1 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT + 8 * + ( - 38 ) - - + MIN( col2 ) FROM tab2 AS cor0
----
-281

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT + 8 * + ( - 38 ) - - + MIN ( col2 ) FROM tab2 AS cor0
----
-281

query I rowsort
SELECT - col1 + + 75 FROM tab0
----
-6
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT - MAX( - - col2 ) + - 11 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - MAX ( - - col2 ) + - 11 FROM tab2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9093
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col0, - 46 * CAST( + 11 AS SIGNED ) AS col1 FROM tab0
----
9
-506

skipif mysql # not compatible
query II rowsort label-9093
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col0, - 46 * CAST ( + 11 AS INTEGER ) AS col1 FROM tab0
----
9
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT + ( - + MAX( ALL + col2 ) ) col0 FROM tab1 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT + ( - + MAX ( ALL + col2 ) ) col0 FROM tab1 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT 98 + col0 - - col0 FROM tab2
----
190
226
248

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL 13 * + COUNT( * ) * + 93 FROM tab0
----
3627

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL 13 * + COUNT ( * ) * + 93 FROM tab0
----
3627

query II rowsort
SELECT DISTINCT + ( + - col2 ) + - col0, + col2 FROM tab2 cor0
----
-104
40
-133
58
-69
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT 51 * COUNT( * ) - - - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9098
SELECT 51 * COUNT ( * ) - - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT ALL - col1 DIV - col1 + 63 FROM tab0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL - col1 / - col1 + 63 FROM tab0
----
64
64
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9100
SELECT DISTINCT col2 col0, CAST( NULL AS DECIMAL ) * - + col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9100
SELECT DISTINCT col2 col0, CAST ( NULL AS REAL ) * - + col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL + + 61 * - 92 AS col2 FROM tab2 AS cor0
----
-5612
-5612
-5612

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9102
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - 89 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9102
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - 89 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - 77 FROM tab1 AS cor0
----
-1078
-3619
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT + - SUM( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT + - SUM ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
156

query II rowsort
SELECT + 92 AS col0, + 24 FROM tab2 AS cor0
----
92
24
92
24
92
24

query II rowsort
SELECT + 35 AS col0, - ( + - col2 ) FROM tab1 AS cor0
----
35
59
35
68
35
96

query I rowsort
SELECT DISTINCT + - ( col1 ) * - col1 AS col1 FROM tab1 WHERE NOT NULL < + 3 + - 36
----

query I rowsort
SELECT ALL ( - 21 ) AS col1 FROM tab0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL - 35 * - COUNT( * ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - 35 * - COUNT ( * ) FROM tab2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9110
SELECT ALL COUNT( * ) DIV + + MIN( - 24 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL COUNT ( * ) / + + MIN ( - 24 ) FROM tab1
----
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT - + ( + MIN( ALL - col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9112
SELECT - + ( + MIN ( ALL - col0 ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - 35 FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 AS cor0 WHERE - 1 + + - col0 >= - col2 + + - 57
----
1
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9115
SELECT DISTINCT + + col0 DIV col2 - - + 30 AS col1 FROM tab1 AS cor0
----
30
31

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT + + col0 / col2 - - + 30 AS col1 FROM tab1 AS cor0
----
30
31

query I rowsort
SELECT ALL 26 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + - col1 ) * + col2 * 6 + - 42 * + + 33 col1 FROM tab0 AS cor0
----
-126
-792
21456

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT + SUM( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9118
SELECT + SUM ( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-9119
SELECT - col1, + col2 DIV col1 col1 FROM tab1 AS cor0
----
-14
6
-47
1
-5
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9119
SELECT - col1, + col2 / col1 col1 FROM tab1 AS cor0
----
-14
6
-47
1
-5
11

query I rowsort
SELECT ALL 72 + - col0 AS col2 FROM tab2 AS cor0
----
-3
26
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT + 79 + 84 - - + col0 DIV - col2 FROM tab2 AS cor0 WHERE col1 >= col2
----
161
162
162

skipif mysql # not compatible
query I rowsort label-9121
SELECT + 79 + 84 - - + col0 / - col2 FROM tab2 AS cor0 WHERE col1 >= col2
----
161
162
162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9122
SELECT + + col0 * + + col1 + - 32 - + 54 FROM tab1 WHERE - 65 - + + CAST( + ( - + col1 ) AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9122
SELECT + + col0 * + + col1 + - 32 - + 54 FROM tab1 WHERE - 65 - + + CAST ( + ( - + col1 ) AS REAL ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + 93 AS col1, + 50 AS col2 FROM tab2
----
93
50
93
50
93
50

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN - 16 AND - col1
----
51
14
96
85
5
59

query I rowsort
SELECT col1 * - + col2 + - col1 FROM tab2
----
-1224
-3157
-3953

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col0 / - - 5 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + col2 AS col2, - col0 - - col0 FROM tab0 AS cor0
----
10
0
47
0
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT DISTINCT CAST( - + 53 AS SIGNED ) + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-3534
-4677
-9269

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT CAST ( - + 53 AS INTEGER ) + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-3534
-4677
-9269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) * - 60 * + ( ( - + COUNT( * ) ) ) - - - 39 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 60 * + ( ( - + COUNT ( * ) ) ) - - - 39 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 + - + 1 * 38 FROM tab2 AS cor0
----
26
37
8

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT - SUM( + col0 ) * + 88 FROM tab2
----
-16280

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT - SUM ( + col0 ) * + 88 FROM tab2
----
-16280

query I rowsort
SELECT - col0 * - 81 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT ALL col2 * - col2 * col0 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 * - col2, col0 col1 FROM tab2
----
-1702
46
-2960
64
-4292
75

query I rowsort
SELECT - + col0 * 49 + - + 65 AS col2 FROM tab1 cor0
----
-2564
-4230
-4524

query I rowsort
SELECT 3 + + col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
100
18
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT + - MAX( ALL 24 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9138
SELECT + - MAX ( ALL 24 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col2 - - col2
----

query I rowsort
SELECT ALL + col1 * + 32 - - col0 FROM tab0 AS cor0
----
129
2607
759

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 / col0 + - - col2, + 76 FROM tab2 WHERE NOT col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT DISTINCT 80 * 38 DIV col0 * - 69 AS col2 FROM tab0
----
-13938
-2139
-2346

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT 80 * 38 / col0 * - 69 AS col2 FROM tab0
----
-13938
-2139
-2346

query I rowsort
SELECT ALL ( - ( + 34 ) ) / - + col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT - 63 * + 47 FROM tab1
----
-2961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 WHERE NOT + + 31 IS NOT NULL
----

query II rowsort
SELECT - col0, - col1 AS col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 42 + + - 59 NOT BETWEEN - 2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 56 AS col0 FROM tab2
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT col0 DIV - - 90 + col2 FROM tab1
----
59
69
96

skipif mysql # not compatible
query I rowsort label-9151
SELECT col0 / - - 90 + col2 FROM tab1
----
59
69
96

query I rowsort
SELECT col0 + 15 FROM tab2
----
61
79
90

query I rowsort
SELECT ALL + 82 + + col2 AS col2 FROM tab2 AS cor0 WHERE NULL >= - 57 * - col0
----

query I rowsort
SELECT DISTINCT - col2 * - 70 AS col2 FROM tab1 AS cor0
----
4130
4760
6720

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT DISTINCT + col2 DIV 82 * + - col2 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + col2 / 82 * + - col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 + + + col0 AS col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9157
SELECT - - col1 DIV + + col0 + + - col2 + + + 88 + col0 + - - 24 AS col1 FROM tab0 AS cor0
----
110
189
85

skipif mysql # not compatible
query I rowsort label-9157
SELECT - - col1 / + + col0 + + - col2 + + + 88 + col0 + - - 24 AS col1 FROM tab0 AS cor0
----
110
189
85

query I rowsort
SELECT ALL col2 + - col2 * 72 + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
-2632
160
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT + SUM( DISTINCT col1 ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT + SUM ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9160
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT CAST( SUM( ALL + 19 ) AS SIGNED ) + 34 AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9161
SELECT CAST ( SUM ( ALL + 19 ) AS INTEGER ) + 34 AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT DISTINCT + + col0 DIV - 17 FROM tab1 AS cor0
----
-3
-5

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT + + col0 / - 17 FROM tab1 AS cor0
----
-3
-5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= + ( - 47 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT DISTINCT col0 DIV 46 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT col0 / 46 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col1 + 99 FROM tab2
----
150
166
176

query I rowsort
SELECT col0 + - col1 + + + ( - col0 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col1 * col1 - - col0 AS col2 FROM tab1
----
-145
-2118
60

query I rowsort
SELECT + 51 * - 19 AS col1 FROM tab1
----
-969
-969
-969

query I rowsort
SELECT DISTINCT - 41 + + col0 - - - col2 AS col2 FROM tab1
----
-15
-18
-86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 BETWEEN - col1 AND + col1
----
75
67
58

query I rowsort
SELECT col2 * 14 AS col2 FROM tab0
----
1386
140
658

query III rowsort
SELECT * FROM tab0 WHERE + 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 41 FROM tab0 cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL + + SUM( - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + + SUM ( - col1 ) FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL + COUNT( col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + COUNT ( col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9176
SELECT CAST( NULL AS DECIMAL ) / 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9176
SELECT CAST ( NULL AS REAL ) / 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL 89 AS col0, + 5 * col2 AS col0 FROM tab0
----
89
235
89
495
89
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9178
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 71 + 42 + - col1 / - - col0 * + CAST( NULL AS DECIMAL ) * - - ( - + 6 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 71 + 42 + - col1 / - - col0 * + CAST ( NULL AS REAL ) * - - ( - + 6 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 * + + col0 + - - 77 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE NOT + 31 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT COUNT( + + col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9181
SELECT COUNT ( + + col0 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT ( + MIN( ALL - col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT ( + MIN ( ALL - col2 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 + + + 78 - ( col2 ) BETWEEN - - col2 * - + 63 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 + + + 78 - ( col2 ) BETWEEN - - col2 * - + 63 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + MIN( DISTINCT + + ( + + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, 56 * 79 * col1 * 27 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT + + ( + + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, 56 * 79 * col1 * 27 * + col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT - 56 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 55 * - CAST( 33 AS SIGNED ) + + - 50 - 55
----

skipif mysql # not compatible
query I rowsort label-9185
SELECT - 56 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 55 * - CAST ( 33 AS INTEGER ) + + - 50 - 55
----

query I rowsort
SELECT + - col2 * - 84 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + - col2
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE col2 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL - ( - MIN( DISTINCT + - col1 ) ) + + 15 AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL - ( - MIN ( DISTINCT + - col1 ) ) + + 15 AS col1 FROM tab0 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col2 FROM tab2
----
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + ( - + 66 ) + + 9 FROM tab1
----
-10
-43
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 15 < - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT 40 * + col2 * - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT 40 * + col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL - 17 - - COUNT( col1 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
-17

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - 17 - - COUNT ( col1 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
-17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9198
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - col2 ) BETWEEN CAST( NULL AS SIGNED ) AND - CAST( col0 AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query III rowsort label-9198
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - col2 ) BETWEEN CAST ( NULL AS INTEGER ) AND - CAST ( col0 AS REAL ) + + col2
----

query I rowsort
SELECT col2 * + 76 AS col2 FROM tab0 AS cor0
----
3572
7524
760

query I rowsort
SELECT DISTINCT + + 32 + - - 75 AS col1 FROM tab1 cor0
----
107

query I rowsort
SELECT col0 - col2 + - - col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + 94 + 51 AS col2 FROM tab1 AS cor0
----
150
159
192

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 61 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT 62 - - + 86 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-9205
SELECT 62 - - + 86 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col2 FROM tab0
----
16

query I rowsort
SELECT DISTINCT + ( + 94 ) FROM tab0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 * + 70 col2 FROM tab1
----
20650
223720
94080

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col2 - - - 24 + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT col1 * + 31 + + col1, col2 FROM tab1 AS cor0
----
1504
68
160
59
448
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9211
SELECT + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT + 68 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT + 68 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT + col2 DIV 14 col2 FROM tab1
----
4
4
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9212
SELECT + col2 / 14 col2 FROM tab1
----
4
4
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL - SUM( ALL + col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - SUM ( ALL + col0 ) AS col0 FROM tab0
----
-199

query II rowsort
SELECT DISTINCT + col2, + 57 FROM tab0
----
10
57
47
57
99
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col2 FROM tab2
----
-30

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT col0 + 45 <= NULL
----

query I rowsort
SELECT + - col2 + ( + ( + + col2 ) ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + ( + col2 ) FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT - - ( MIN( - - col1 ) ) * - COUNT( * ), - 99 AS col1 FROM tab1 AS cor0
----
-15
-99

skipif mysql # not compatible
query II rowsort label-9219
SELECT - - ( MIN ( - - col1 ) ) * - COUNT ( * ), - 99 AS col1 FROM tab1 AS cor0
----
-15
-99

query II rowsort
SELECT col2 AS col1, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL + col2 + - - 57 FROM tab1 AS cor0
----
116
125
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT MAX( col2 ) col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9222
SELECT MAX ( col2 ) col1 FROM tab1 cor0
----
96

query I rowsort
SELECT + + col0 * ( 35 ) + col0 - + - 37 AS col2 FROM tab1 AS cor0
----
1873
3097
3313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 76 * - - 30 col2 FROM tab2
----
2303
2320
2338

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 + col2 = + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT DISTINCT + - col1 * CAST( col1 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-308367
-4410
-99

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT + - col1 * CAST ( col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT 54 + + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
153
264
3861

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT + + 16 * col0 + col0 DIV col2 FROM tab2 AS cor0
----
1025
1201
738

skipif mysql # not compatible
query I rowsort label-9228
SELECT + + 16 * col0 + col0 / col2 FROM tab2 AS cor0
----
1025
1201
738

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT - SUM( ALL + col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9230
SELECT - SUM ( ALL + col2 ) AS col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT - 99 * - + COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT - 99 * - + COUNT ( * ) FROM tab2
----
297

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col2 * + - col0 - col2
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE - 54 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9234
SELECT DISTINCT - COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 54, 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col2 - - col0 col0 FROM tab0 AS cor0
----
10
77
47
-32
99
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col1 * - 15 AND 88 + 49
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col1 + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + COUNT( * ) + + 41 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9239
SELECT + COUNT ( * ) + + 41 FROM tab1
----
44

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 65 < col0
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT 28 + - col1 DIV col2 col2 FROM tab0
----
26
27
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9241
SELECT 28 + - col1 / col2 col2 FROM tab0
----
26
27
28

query I rowsort
SELECT - 84 * - 98 + col0 AS col1 FROM tab0
----
8247
8319
8329

query I rowsort
SELECT - 96 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col0 * col1 - - col1
----

query I rowsort
SELECT col0 + - 27 FROM tab2
----
19
37
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT DISTINCT + CAST( CAST( - 77 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + CAST ( CAST ( - 77 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
-77

query I rowsort
SELECT DISTINCT 30 * - 87 + 6 * col1 FROM tab0
----
-2124
-2484
-2604

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9247
SELECT ALL * FROM tab2 WHERE - ( + col2 ) + + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9247
SELECT ALL * FROM tab2 WHERE - ( + col2 ) + + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL + SUM( ALL - col0 ) + 27 FROM tab1
----
-200

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + SUM ( ALL - col0 ) + 27 FROM tab1
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT - COUNT( col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT - COUNT ( col1 ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 col2 FROM tab1 WHERE - 23 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9251
SELECT ALL * FROM tab0 WHERE + col0 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9251
SELECT ALL * FROM tab0 WHERE + col0 = + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + 66 * + COUNT( * ) - - SUM( DISTINCT 30 ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-9252
SELECT + 66 * + COUNT ( * ) - - SUM ( DISTINCT 30 ) FROM tab0
----
228

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + col1 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * + col1 + + 71 = ( - ( col2 ) + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT COUNT( * ) * 81 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT COUNT ( * ) * 81 FROM tab2
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT ( col2 ) DIV + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT ( col2 ) / + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT MAX( ALL + col0 ) + + 16 FROM tab0 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-9257
SELECT MAX ( ALL + col0 ) + + 16 FROM tab0 AS cor0
----
113

query I rowsort
SELECT + 49 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
4945
5064
6237

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + 49 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + 38 AS col0 FROM tab0 cor0
----
119
39
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < col2 * col0
----

query I rowsort
SELECT 47 + + 38 AS col2 FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT + col1 + + col1 * + 71 FROM tab0 AS cor0
----
1512
5832
72

query I rowsort
SELECT ALL - col2 + - 71 AS col1 FROM tab2 AS cor0
----
-111
-129
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9265
SELECT - CAST( - 31 AS SIGNED ) DIV 83 + - SUM( col2 ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9265
SELECT - CAST ( - 31 AS INTEGER ) / 83 + - SUM ( col2 ) AS col0 FROM tab1 cor0
----
-223

query I rowsort
SELECT ALL + col1 + 93 AS col1 FROM tab0
----
114
174
94

query III rowsort
SELECT * FROM tab1 WHERE - ( 26 ) + col2 * col1 > NULL
----

query I rowsort
SELECT - 27 FROM ( tab2 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * col1 NOT IN ( ( - ( col2 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT ALL - col1 - - col0 DIV - col2 AS col1 FROM tab1
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL - col1 - - col0 / - col2 AS col1 FROM tab1
----
-14
-48
-6

query I rowsort
SELECT + col2 - - 55 AS col2 FROM tab0 AS cor0
----
102
154
65

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * - 37 ) NOT IN ( - col1 / - 26 )
----

query I rowsort
SELECT + 57 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + COUNT( 50 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9275
SELECT + COUNT ( 50 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 94 ) BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT + col1 * - + 64 AS col0 FROM tab0
----
-1344
-5184
-64

query I rowsort
SELECT DISTINCT - 63 AS col1 FROM tab0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9279
SELECT CAST( - COUNT( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT CAST ( - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT + ( col2 ) + + CAST( col2 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
198
20
94

skipif mysql # not compatible
query I rowsort label-9280
SELECT + ( col2 ) + + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
198
20
94

query I rowsort
SELECT + col1 * - - col2 AS col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col0 IN ( 49 + - col0 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT + ( - 86 ) DIV - col0 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9283
SELECT + ( - 86 ) / - col0 AS col2 FROM tab1 AS cor0
----
0
1
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT + col1 DIV + 23 AS col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9285
SELECT + col1 / + 23 AS col1 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT SUM( + 44 ) AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT SUM ( + 44 ) AS col1 FROM tab1
----
132

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 + col2 )
----

query I rowsort
SELECT DISTINCT col2 - + col0 AS col1 FROM tab1 AS cor0 WHERE col2 - + col2 <= + ( + 44 )
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT DISTINCT + 35 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + 35 / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 49 * + ( + 3 ) + 79 AS col0 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT DISTINCT 65 + + 78 FROM tab2 cor0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT + col0 + - + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT + col0 + - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT - col0 + + + 10 * col0 FROM tab1
----
459
765
819

query III rowsort
SELECT * FROM tab2 WHERE NULL > col0 * col0 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col0 ) col2 FROM tab2
----
141
142
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 84 * - + col2 + col2 IN ( 46 + ( col0 + 6 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - ( 82 ) ) + - col0 + - 62 * 85 FROM tab0
----
-5367
-5439
-5449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT + col0 * + + CAST( col1 AS SIGNED ) + - col0 AS col2 FROM tab1
----
340
4186
663

skipif mysql # not compatible
query I rowsort label-9301
SELECT + col0 * + + CAST ( col1 AS INTEGER ) + - col0 AS col2 FROM tab1
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL - ( + - MAX( - 9 ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - ( + - MAX ( - 9 ) ) FROM tab1
----
-9

query I rowsort
SELECT col1 FROM tab0 WHERE - col2 - col1 + - col2 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 60 / col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 + + ( col1 ) col2 FROM tab1 AS cor0
----
-34
-67
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT col1 DIV + 61 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT col1 / + 61 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL ( + - 74 ) + - COUNT( * ) AS col1 FROM tab0 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL ( + - 74 ) + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-77

query I rowsort
SELECT + 29 - - col0 FROM tab0 AS cor0
----
116
126
44

query I rowsort
SELECT + 59 - - col0 * - 88 + + - col2 + + + 98 FROM tab1
----
-4427
-7382
-7919

query I rowsort
SELECT - col2 - - - col1 + - 35 + col0 FROM tab1
----
-14
-59
-94

query I rowsort
SELECT DISTINCT + + 49 / + col1 FROM tab0 WHERE NULL NOT BETWEEN + col0 AND col1
----

query I rowsort
SELECT - col0 - - 10 FROM tab1
----
-41
-75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT + COUNT( ALL + ( col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT + COUNT ( ALL + ( col1 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9314
SELECT DISTINCT + 77, SUM( - 64 ) col1 FROM tab0 AS cor0
----
77
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9314
SELECT DISTINCT + 77, SUM ( - 64 ) col1 FROM tab0 AS cor0
----
77
-192

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9315
SELECT + + col2 DIV + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT + + col2 / + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 2 * - col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT - - col0 * 7 FROM tab0 AS cor0
----
105
609
679

query I rowsort
SELECT + + col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9319
SELECT 1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-9319
SELECT 1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1
NULL
1
NULL
1
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9321
SELECT CAST( NULL AS SIGNED ) + + col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9321
SELECT CAST ( NULL AS INTEGER ) + + col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( col2 ) AND ( NULL )
----

query II rowsort
SELECT ( + + col2 ), col2 * - + 34 + - col1 FROM tab1
----
59
-2011
68
-2359
96
-3278

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE ( NOT - col2 IS NULL )
----
14
47
5

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL COUNT( * ) * - - 17 * 90 AS col2 FROM tab1
----
4590

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL COUNT ( * ) * - - 17 * 90 AS col2 FROM tab1
----
4590

query I rowsort
SELECT ALL col1 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 65 FROM tab0 WHERE NULL NOT BETWEEN - - ( + + 45 ) + col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 31 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( 23 * - + 92 ) NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT + col2, - col2 * col1 AS col1 FROM tab2
----
23
-1173
40
-3080
58
-3886

query II rowsort
SELECT - col1, 65 + 20 AS col2 FROM tab0 AS cor0
----
-1
85
-21
85
-81
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT + + MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9332
SELECT + + MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( + col0 ) col1 FROM tab0
----
174
194
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 18 * - col2 col0, - col1 FROM tab2
----
-1044
-67
-414
-51
-720
-77

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT 90 + - col1 AS col2, - 34 FROM tab2
----
13
-34
23
-34
39
-34

query I rowsort
SELECT DISTINCT - + 56 + + + ( + - 55 ) * + col0 FROM tab2 AS cor0
----
-2586
-3576
-4181

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= ( col2 * + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + + 77 FROM tab2 AS cor0
----
-3542
-4928
-5775

query I rowsort
SELECT DISTINCT + 58 + - col2 AS col2 FROM tab2 AS cor0
----
0
18
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col2 FROM tab2 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 35 + - + col2 col2, - col0 AS col1 FROM tab0 AS cor0
----
-12
-15
-64
-97
25
-87

query II rowsort
SELECT DISTINCT + col1, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT + - 36 FROM tab1 WHERE NOT + + col1 BETWEEN NULL AND - 77
----
-36

query I rowsort
SELECT - 15 FROM tab1 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT col0 - - 9 FROM tab2
----
55
73
84

query I rowsort
SELECT col0 - + col1 + + col2 + - + col0 AS col2 FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - + 2 * + col2 col1 FROM tab2 WHERE NOT NULL BETWEEN + col1 AND col1 + 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT + CAST( NULL AS SIGNED ) - - ( + COUNT( * ) ) * - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT + CAST ( NULL AS INTEGER ) - - ( + COUNT ( * ) ) * - - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT COUNT( * ) + COUNT( * ) + + 96 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-9351
SELECT COUNT ( * ) + COUNT ( * ) + + 96 FROM tab1
----
102

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + - 98 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL + + MAX( + - 8 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + + MAX ( + - 8 ) FROM tab1 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL SUM( + col2 ) + - 98 AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL SUM ( + col2 ) + - 98 AS col1 FROM tab2 AS cor0
----
23

query II rowsort
SELECT + col1 + - 56 + + - 72, ( col0 ) FROM tab2 AS cor0
----
-51
64
-61
75
-77
46

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT + CAST( COUNT( ALL col0 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9357
SELECT + CAST ( COUNT ( ALL col0 ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT - MAX( ALL + col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - MAX ( ALL + col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT ALL - 4 * 24 + col2 FROM tab0 AS cor0 WHERE NOT 37 + - col0 <= NULL
----

query I rowsort
SELECT + 61 * + col0 * col0 * col1 AS col0 FROM tab2 cor0
----
19238912
22989375
6582876

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + - col1 * col1 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT COUNT( * ) + + 2 FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND col2 * + col0 * + 34
----
2

skipif mysql # not compatible
query I rowsort label-9363
SELECT COUNT ( * ) + + 2 FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND col2 * + col0 * + 34
----
2

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 / - col0 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( 76 ) * - 69 FROM tab1
----
-5244
-5244
-5244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col0 FROM tab0
----
80
80
80

query II rowsort
SELECT ( - col0 ) * 31 AS col0, col2 AS col1 FROM tab2
----
-1426
23
-1984
40
-2325
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9368
SELECT * FROM tab1 WHERE NOT - - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9368
SELECT * FROM tab1 WHERE NOT - - CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT + col2 AS col0, - 86 FROM tab0
----
10
-86
47
-86
99
-86

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 + col2 - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT DISTINCT + CAST( + ( - ( - 12 ) ) AS SIGNED ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT + CAST ( + ( - ( - 12 ) ) AS INTEGER ) FROM tab1 AS cor0
----
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 83, 70, - ( - - col0 ), 63 )
----

query I rowsort
SELECT DISTINCT - - 87 * + ( col0 ) FROM tab0 cor0
----
1305
7569
8439

query I rowsort
SELECT DISTINCT + + 94 * - col1 * - + col0 * + 72 FROM tab0 AS cor0
----
12365136
656496
8223120

query II rowsort
SELECT DISTINCT col0, + 82 * - 81 AS col2 FROM tab2
----
46
-6642
64
-6642
75
-6642

query I rowsort
SELECT + col1 * + + 69 AS col0 FROM tab0
----
1449
5589
69

query I rowsort
SELECT - col1 + - 98 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT - COUNT( * ) + - 36 AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9378
SELECT - COUNT ( * ) + - 36 AS col1 FROM tab2 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN ( - - col1 ) AND + col2
----
1

skipif mysql # not compatible
query I rowsort label-9379
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN ( - - col1 ) AND + col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT + ( - ( COUNT( * ) ) ) AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) <> NULL AND ( ( NOT ( + col1 ) < ( NULL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT + ( - ( COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) <> NULL AND ( ( NOT ( + col1 ) < ( NULL ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9381
SELECT ALL - CAST( ( col2 ) AS SIGNED ) + - 90, col1 FROM tab2 AS cor0
----
-113
51
-130
77
-148
67

skipif mysql # not compatible
query II rowsort label-9381
SELECT ALL - CAST ( ( col2 ) AS INTEGER ) + - 90, col1 FROM tab2 AS cor0
----
-113
51
-130
77
-148
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9382
SELECT ALL - 93 DIV + ( - - 37 ) + MIN( DISTINCT 34 ) + + 46 AS col1, - COUNT( ALL col1 ) FROM tab1 cor0
----
78
-3

skipif mysql # not compatible
query II rowsort label-9382
SELECT ALL - 93 / + ( - - 37 ) + MIN ( DISTINCT 34 ) + + 46 AS col1, - COUNT ( ALL col1 ) FROM tab1 cor0
----
78
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT 17 * + 16 + - + col2 * + CAST( + 24 AS SIGNED ) FROM tab2 AS cor0
----
-1120
-280
-688

skipif mysql # not compatible
query I rowsort label-9383
SELECT 17 * + 16 + - + col2 * + CAST ( + 24 AS INTEGER ) FROM tab2 AS cor0
----
-1120
-280
-688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT + CAST( NULL AS SIGNED ) + - - ( + COUNT( ALL col0 ) ) / - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT + CAST ( NULL AS INTEGER ) + - - ( + COUNT ( ALL col0 ) ) / - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 48 * - + col0 + - col0 + + col2 AS col1 FROM tab2
----
-2231
-3096
-3617

query II rowsort
SELECT ALL 15 + + 62 AS col2, - col2 * col1 AS col2 FROM tab0
----
77
-210
77
-3807
77
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT - col1 + + + col0 DIV - col1 AS col1 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-9387
SELECT - col1 + + + col0 / - col1 AS col1 FROM tab2
----
-51
-68
-77

query I rowsort
SELECT + col2 * col0 FROM tab1 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT + + 34 * - + MIN( ALL + - col1 ) FROM tab2 AS cor0
----
2618

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + + 34 * - + MIN ( ALL + - col1 ) FROM tab2 AS cor0
----
2618

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND - col2 / col1 * - 97 * col2
----

query I rowsort
SELECT ALL + - ( + ( 96 ) ) * col0 FROM tab1 AS cor0
----
-4896
-8160
-8736

query I rowsort
SELECT 17 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * + + ( + 82 ) IS NULL
----
17
17
17

query I rowsort
SELECT ALL 83 * ( - 33 ) * - 31 - 51 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cac2c4085982ca32de5afe1f02b3ae2a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 98 col0, + 10 FROM tab2
----
-98
10

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 72 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9397
SELECT DISTINCT col1 AS col2, CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-9397
SELECT DISTINCT col1 AS col2, CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 4 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + SUM( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9399
SELECT + SUM ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-9400
SELECT COUNT( + - col2 ) * 82, COUNT( * ) AS col0 FROM tab2 AS cor0
----
246
3

skipif mysql # not compatible
query II rowsort label-9400
SELECT COUNT ( + - col2 ) * 82, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
246
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL - COUNT( DISTINCT + col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL - COUNT ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 / - col2 IS NOT NULL ) )
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * + col2 col2 FROM tab0 AS cor0
----
2397
5049
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT ALL - ( + COUNT( * ) ) DIV + - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL - ( + COUNT ( * ) ) / + - COUNT ( * ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col1 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT DISTINCT - SUM( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT - SUM ( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT col2 < ( 22 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9408
SELECT + COUNT( - col2 ) AS col0, 4 DIV + + COUNT( * ) AS col2 FROM tab2
----
3
1

skipif mysql # not compatible
query II rowsort label-9408
SELECT + COUNT ( - col2 ) AS col0, 4 / + + COUNT ( * ) AS col2 FROM tab2
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT DISTINCT + CAST( 86 AS SIGNED ) AS col0 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + CAST ( 86 AS INTEGER ) AS col0 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL MAX( DISTINCT 13 ) AS col1 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL MAX ( DISTINCT 13 ) AS col1 FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9411
SELECT ALL * FROM tab0 WHERE NOT + 76 > col0 - - col0 * + CAST( 45 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9411
SELECT ALL * FROM tab0 WHERE NOT + 76 > col0 - - col0 * + CAST ( 45 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0 * + col1 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT DISTINCT - col1 + 90 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 18 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT - col1 + 90 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 18 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - col2 ) IS NULL AND NOT col0 IS NOT NULL
----

query I rowsort
SELECT 44 * - col2 + 23 FROM tab0 AS cor0 WHERE 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9417
SELECT * FROM tab1 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9417
SELECT * FROM tab1 WHERE NULL = CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab2 WHERE ( NOT NULL NOT BETWEEN + col0 AND ( NULL ) )
----

query I rowsort
SELECT + col1 + - + col0 AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9420
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + + ( - - 91 ) + - + col2 * + + col2 + + col1 FROM tab2 AS cor0
----
-1432
-3206
-387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT ALL - CAST( + + col2 AS SIGNED ) + + ( - 26 ) AS col1 FROM tab0 AS cor0
----
-125
-36
-73

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - CAST ( + + col2 AS INTEGER ) + + ( - 26 ) AS col1 FROM tab0 AS cor0
----
-125
-36
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT + COUNT( DISTINCT - - 8 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9423
SELECT + COUNT ( DISTINCT - - 8 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 9 < 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT DISTINCT + col0 + - + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT + col0 + - + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
138
65
90

onlyif mysql # DIV for integer division: 
query II rowsort label-9426
SELECT - 92 DIV col1 * + col0 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
-1530
59
-306
96
-91
68

skipif mysql # not compatible
query II rowsort label-9426
SELECT - 92 / col1 * + col0 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
-1530
59
-306
96
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 21 * - col0 col0 FROM tab0 AS cor0
----
-1740
-1940
-300

query I rowsort
SELECT ALL - 50 - col2 AS col2 FROM tab2 AS cor0
----
-108
-73
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9429
SELECT DISTINCT - ( + col1 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT - ( + col1 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT + col2 * col2 + 20 - + + col1 AS col0 FROM tab1 AS cor0
----
3496
4597
9222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL + + CAST( NULL AS SIGNED ) / - 33 + - 13 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL + + CAST ( NULL AS INTEGER ) / - 33 + - 13 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 94 * + col2 AS col2 FROM tab0
----
4418
9306
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT 40 + + + ( + - 87 ) - col2 * + - CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT 40 + + + ( + - 87 ) - col2 * + - CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 92 * - col1 * + - 36 * - + col2 FROM tab1
----
-10585152
-4451328
-977040

query I rowsort
SELECT ALL 97 - - + col0 + - col2 FROM tab1
----
120
123
52

query I rowsort
SELECT + col0 * + + 7 FROM tab0 AS cor0
----
105
609
679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT - CAST( 52 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-3068
-3536
-4992

skipif mysql # not compatible
query I rowsort label-9438
SELECT - CAST ( 52 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-3068
-3536
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - COUNT( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9439
SELECT - COUNT ( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - 85 * col0 AS col1 FROM tab1 AS cor0
----
-4335
-7225
-7735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 55 ) col2, 36 FROM tab0 AS cor0
----
-55
36
-55
36
-55
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2, col2, col1 + + 47 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2, col2, col1 + + 47 * + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT ALL + CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - ( - ( - col1 ) ) * + 16 FROM tab1 AS cor0
----
-224
-752
-80

query I rowsort
SELECT col2 * - - 26 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT - 3 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT - 3 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 98 * 81 AS col2 FROM tab2
----
-7938
-7938
-7938

query I rowsort
SELECT col2 + + + ( - col1 ) - - col0 AS col1 FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT DISTINCT + SUM( ALL - - 15 ) AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT + SUM ( ALL - - 15 ) AS col0 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT + + col1 * - col2 / + CAST( + - 24 AS SIGNED ) * - 8 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + + col1 * - col2 / + CAST ( + - 24 AS INTEGER ) * - 8 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 57 + 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL - COUNT( DISTINCT 77 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - COUNT ( DISTINCT 77 ) FROM tab1
----
-1

query I rowsort
SELECT ALL - + 79 AS col2 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT ALL - 1 / - - col0 + + - ( - - 33 ) * - 71 + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL - 1 / - - col0 + + - ( - - 33 ) * - 71 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT 55 AS col1, col0 * + - 35 AS col2 FROM tab2
----
55
-1610
55
-2240
55
-2625

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( + - col2 + - - col0 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9459
SELECT ALL - CAST( NULL AS DECIMAL ) * ( col2 ) * - - col0 * 94 + + col0 AS col0, - 68 FROM tab1
----
NULL
-68
NULL
-68
NULL
-68

skipif mysql # not compatible
query II rowsort label-9459
SELECT ALL - CAST ( NULL AS REAL ) * ( col2 ) * - - col0 * 94 + + col0 AS col0, - 68 FROM tab1
----
NULL
-68
NULL
-68
NULL
-68

onlyif mysql # DIV for integer division: 
query III rowsort label-9460
SELECT DISTINCT 10 AS col0, col1 DIV - 37 AS col1, col1 * + + ( 62 ) + - 38 FROM tab1
----
9 values hashing to e84530d3842676490cc541d5f810d143

skipif mysql # not compatible
query III rowsort label-9460
SELECT DISTINCT 10 AS col0, col1 / - 37 AS col1, col1 * + + ( 62 ) + - 38 FROM tab1
----
9 values hashing to e84530d3842676490cc541d5f810d143

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL 22 * MIN( + col0 ) AS col2 FROM tab2
----
1012

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL 22 * MIN ( + col0 ) AS col2 FROM tab2
----
1012

query II rowsort
SELECT ALL col1 AS col1, col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + 38 * - col1 * - col2 AS col2 FROM tab2
----
117040
147668
44574

query I rowsort
SELECT - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-45
23
26

query I rowsort
SELECT ALL + col1 * + + 95 - + col2 FROM tab0 AS cor0
----
-4
1985
7648

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL - COUNT( * ) * MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - COUNT ( * ) * MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
174

query I rowsort
SELECT + col2 * - - 69 AS col0 FROM tab2 AS cor0
----
1587
2760
4002

query II rowsort
SELECT DISTINCT - - col1 AS col1, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 9 * + + col2 col0 FROM tab0 AS cor0
----
423
891
90

query I rowsort
SELECT DISTINCT ( + 82 ) + + col2 FROM tab0 AS cor0
----
129
181
92

query I rowsort
SELECT ALL - - 57 * ( - - col1 ) * + col1 FROM tab2 AS cor0
----
148257
255873
337953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT DISTINCT CAST( 9 AS SIGNED ) * col2 AS col1 FROM tab0
----
423
891
90

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT CAST ( 9 AS INTEGER ) * col2 AS col1 FROM tab0
----
423
891
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT - 32 * COUNT( ALL - col0 ) * - - ( ( + 27 ) ) * + - SUM( - + col1 ) AS col2 FROM tab0
----
-266976

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - 32 * COUNT ( ALL - col0 ) * - - ( ( + 27 ) ) * + - SUM ( - + col1 ) AS col2 FROM tab0
----
-266976

query I rowsort
SELECT ALL + + 54 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + MAX( col2 ) + COUNT( DISTINCT - col1 ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9476
SELECT + MAX ( col2 ) + COUNT ( DISTINCT - col1 ) FROM tab1 cor0
----
99

query I rowsort
SELECT - 12 + - col2 FROM tab2 AS cor0
----
-35
-52
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT 47 + + SUM( 83 ) AS col2 FROM tab1 AS cor0
----
296

skipif mysql # not compatible
query I rowsort label-9478
SELECT 47 + + SUM ( 83 ) AS col2 FROM tab1 AS cor0
----
296

query I rowsort
SELECT DISTINCT 19 - col0 * col2 * + col2 AS col1 FROM tab1
----
-295866
-420765
-469997

query I rowsort
SELECT 17 * + - col1 FROM tab0
----
-1377
-17
-357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ( - + CAST( NULL AS SIGNED ) ) * - col2 - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ( - + CAST ( NULL AS INTEGER ) ) * - col2 - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > NULL AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col1 * - col0 + - + col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT DISTINCT - 41 + - - col2 FROM tab1 cor0
----
18
27
55

query II rowsort
SELECT + 17 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
17
10
17
47
17
99

query I rowsort
SELECT 1 * + - 66 - - col2 FROM tab0 AS cor0 WHERE NOT NULL > 59
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - ( COUNT( DISTINCT - ( 11 ) ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9489
SELECT - ( COUNT ( DISTINCT - ( 11 ) ) ) FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 + ( - 9 ) IS NULL
----

query I rowsort
SELECT ALL + col0 * - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT - COUNT( ALL - - col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9492
SELECT - COUNT ( ALL - - col2 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL ( + + MAX( DISTINCT - col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL ( + + MAX ( DISTINCT - col0 ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + MIN( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9494
SELECT + MIN ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT MIN( - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT MIN ( - col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT 24 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( + 73 * - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT 24 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( + 73 * - 61 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT DISTINCT - - 63 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT - - 63 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 17 + col2 FROM tab2 AS cor0
----
1044
414
720

query I rowsort
SELECT DISTINCT + 28 * + col0 AS col1 FROM tab0 AS cor0
----
2436
2716
420

query I rowsort
SELECT - - col2 + + ( - + col2 ) + - + col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT DISTINCT 56 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT 56 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT ALL + COUNT( * ) DIV - - 63 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + COUNT ( * ) / - - 63 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT CAST( NULL AS SIGNED ) * - 7 * + - 60 * - - 49 * + 87 / ( - + col0 ) + + - col1 - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT CAST ( NULL AS INTEGER ) * - 7 * + - 60 * - - 49 * + 87 / ( - + col0 ) + + - col1 - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT 3 DIV 53 + - COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9504
SELECT 3 / 53 + - COUNT ( * ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / - 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT - CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9506
SELECT - CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT + MAX( - col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT + MAX ( - col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 90 col1, + col1 AS col2 FROM tab0 AS cor0
----
90
1
90
21
90
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9509
SELECT * FROM tab1 WHERE + col1 + - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9509
SELECT * FROM tab1 WHERE + col1 + - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 * - col0 * ( - - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 92 - - col0 * + col0 FROM tab2
----
2208
4188
5717

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT COUNT( DISTINCT - 35 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9512
SELECT COUNT ( DISTINCT - 35 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT MIN( + 60 ) col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9513
SELECT MIN ( + 60 ) col1 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT 58 DIV MAX( + + col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9514
SELECT 58 / MAX ( + + col1 ) AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + - col0 * 26 AS col0, - 57 AS col0 FROM tab2 AS cor0
----
-1196
-57
-1664
-57
-1950
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9516
SELECT ALL + 78 AS col2, COUNT( * ) AS col2 FROM tab0
----
78
3

skipif mysql # not compatible
query II rowsort label-9516
SELECT ALL + 78 AS col2, COUNT ( * ) AS col2 FROM tab0
----
78
3

query I rowsort
SELECT - 29 * col2 AS col0 FROM tab0 WHERE NOT - - 25 IS NULL
----
-1363
-2871
-290

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT 86 DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9518
SELECT 86 / - col0 FROM tab0
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9519
SELECT - CAST( NULL AS SIGNED ), 68 + + col2 AS col2 FROM tab2
----
NULL
108
NULL
126
NULL
91

skipif mysql # not compatible
query II rowsort label-9519
SELECT - CAST ( NULL AS INTEGER ), 68 + + col2 AS col2 FROM tab2
----
NULL
108
NULL
126
NULL
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 - - - ( + - col2 ) * col1 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 20 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 81 = - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + MAX( - + col1 ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9523
SELECT + MAX ( - + col1 ) AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT 51 * + - col2 AS col0 FROM tab0 AS cor0
----
-2397
-5049
-510

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 27 * - col1 NOT IN ( - - col0, - col0 )
----

query II rowsort
SELECT ALL 52, - 58 AS col2 FROM tab0 AS cor0
----
52
-58
52
-58
52
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL + SUM( + 43 ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + SUM ( + 43 ) FROM tab0
----
129

query I rowsort
SELECT + 40 + + 31 + - 61 AS col2 FROM tab2
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + col0 AS col1, col0 col0 FROM tab2
----
128
64
150
75
92
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9530
SELECT * FROM tab2 AS cor0 WHERE 40 + + - CAST( NULL AS SIGNED ) + - + 62 * + col0 * - 71 < + 76 + - col2 / + col2
----

skipif mysql # not compatible
query III rowsort label-9530
SELECT * FROM tab2 AS cor0 WHERE 40 + + - CAST ( NULL AS INTEGER ) + - + 62 * + col0 * - 71 < + 76 + - col2 / + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 35 NOT IN ( + col1, + col2, + col1 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + 97 AS col0 FROM tab2 AS cor0
----
148
164
174

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT COUNT( * ) AS col1, + SUM( ALL col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9533
SELECT COUNT ( * ) AS col1, + SUM ( ALL col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 = NULL )
----

query I rowsort
SELECT DISTINCT col2 * - 99 * + 63 AS col1 FROM tab1
----
-367983
-424116
-598752

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( NULL IS NOT NULL )
----
0

query I rowsort
SELECT ALL + 3 * - col2 + - + col0 + + + col0 FROM tab0
----
-141
-297
-30

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 96 NOT IN ( - ( - ( - 56 ) ) / 60, + 74 * - col0 * - 30 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT ALL col1 DIV - col0 + - col1 + - 14 FROM tab1 AS cor0
----
-19
-28
-61

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL col1 / - col0 + - col1 + - 14 FROM tab1 AS cor0
----
-19
-28
-61

query I rowsort
SELECT col0 * + - col0 + + col0 + - - 62 FROM tab2 AS cor0
----
-2008
-3970
-5488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 74 col1 FROM tab2 AS cor0
----
120
138
149

query I rowsort
SELECT ALL + col2 + + 5 + + col0 * + + col0 AS col2 FROM tab1 AS cor0
----
2702
7289
8354

query I rowsort
SELECT 95 + col0 * - col0 - - ( col0 ) AS col2 FROM tab0 cor0
----
-115
-7387
-9217

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT + col2 * - col2 - + - col2 < - 56
----

query I rowsort
SELECT + - col1 * - - col2 - + 93 - 92 FROM tab1 AS cor0
----
-1529
-3381
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT MAX( + + 6 ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9547
SELECT MAX ( + + 6 ) AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - - 95 * + col1 FROM tab1 cor0
----
1330
4465
475

query I rowsort
SELECT ALL - 45 * + col2 * - 22 AS col1 FROM tab2 AS cor0
----
22770
39600
57420

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT col2, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT MIN( ALL col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT MIN ( ALL col1 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - 10 <= ( - + col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT + COUNT( - col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9554
SELECT DISTINCT + COUNT ( - col2 ) col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 21 * 25 * + col2 AS col1 FROM tab2
----
12075
21000
30450

query II rowsort
SELECT ALL - col1 + + 13 * col2, col2 FROM tab2 AS cor0
----
248
23
443
40
687
58

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( 51 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9559
SELECT ALL CAST( NULL AS DECIMAL ) + 22 * - + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL CAST ( NULL AS REAL ) + 22 * - + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + + col2 * + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 75 BETWEEN col1 AND NULL
----

query I rowsort
SELECT col1 + + 20 FROM tab2 cor0
----
71
87
97

query I rowsort
SELECT ALL col2 * - 83 + col1 AS col2 FROM tab0 cor0
----
-3820
-809
-8216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 76 col1 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT ALL + MAX( DISTINCT + col2 ) + CAST( + - AVG ( - 55 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
151

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + MAX ( DISTINCT + col2 ) + CAST ( + - AVG ( - 55 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
151

query III rowsort
SELECT * FROM tab2 WHERE 9 * + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT 2 * - - CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT 2 * - - CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT DISTINCT + COUNT( - + ( - col0 ) ) * + + COUNT( * ) AS col1, + 55 * - COUNT( * ) AS col0 FROM tab1
----
9
-165

skipif mysql # not compatible
query II rowsort label-9568
SELECT DISTINCT + COUNT ( - + ( - col0 ) ) * + + COUNT ( * ) AS col1, + 55 * - COUNT ( * ) AS col0 FROM tab1
----
9
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT DISTINCT col2 * - + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT col2 * - + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT COUNT( * ) * + 98 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT COUNT ( * ) * + 98 FROM tab0 AS cor0
----
294

query I rowsort
SELECT ALL - col2 + + 90 FROM tab2 AS cor0
----
32
50
67

query II rowsort
SELECT DISTINCT 39 + col0 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
103
77
114
67
85
51

query I rowsort
SELECT - 87 * - + col1 * + + 91 + 49 - - - col0 AS col2 FROM tab0 AS cor0
----
166219
641311
7869

query I rowsort
SELECT - 40 * + - col2 - col0 AS col0 FROM tab2 AS cor0
----
1536
2245
874

query I rowsort
SELECT DISTINCT ( + col2 ) - - col0 + col2 + col1 FROM tab2 AS cor0
----
143
221
258

query I rowsort
SELECT 50 * col1 AS col1 FROM tab2
----
2550
3350
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + COUNT( ALL 13 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9577
SELECT + COUNT ( ALL 13 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL - - ( + + MAX( + - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - - ( + + MAX ( + - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + + 34 AS col1 FROM tab2 AS cor0 WHERE NOT 4 > col0
----
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col1 ) * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * 26 * + col2 AS col0 FROM tab1 AS cor0
----
127296
130390
160888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT ALL + 83 FROM tab1 AS cor0 WHERE NOT - 38 * + - col2 + + + 22 <= + - col0 * + col0 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL + 83 FROM tab1 AS cor0 WHERE NOT - 38 * + - col2 + + + 22 <= + - col0 * + col0 / CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT ( + CAST( + col1 AS SIGNED ) ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9583
SELECT ( + CAST ( + col1 AS INTEGER ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - col2 * - + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT - col1 DIV + 69 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9585
SELECT - col1 / + 69 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL + 60 * - col2 AS col1 FROM tab2
----
-1380
-2400
-3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-9587
SELECT + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL <> + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT DISTINCT - - col1 FROM tab0 WHERE + - CAST( + CAST( 16 AS SIGNED ) AS SIGNED ) <= col1
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - - col1 FROM tab0 WHERE + - CAST ( + CAST ( 16 AS INTEGER ) AS INTEGER ) <= col1
----
1
21
81

query I rowsort
SELECT DISTINCT + 73 FROM tab1 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9591
SELECT DISTINCT - ( - - ( - - 45 ) ) + + 70 + + COUNT( * ), + COUNT( DISTINCT col0 ) * - 45 + - - MIN( ALL + 24 ) AS col0 FROM tab1 AS cor0
----
28
-111

skipif mysql # not compatible
query II rowsort label-9591
SELECT DISTINCT - ( - - ( - - 45 ) ) + + 70 + + COUNT ( * ), + COUNT ( DISTINCT col0 ) * - 45 + - - MIN ( ALL + 24 ) AS col0 FROM tab1 AS cor0
----
28
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + COUNT( * ) * - COUNT( * ) + 77 AS col1 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9592
SELECT + COUNT ( * ) * - COUNT ( * ) + 77 AS col1 FROM tab0 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 97 + + 44 - - + 6 col1 FROM tab0 AS cor0
----
147
147
147

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col2 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-177
-3060

query I rowsort
SELECT - 92 AS col0 FROM tab1 cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9596
SELECT DISTINCT * FROM tab0 WHERE + ( - col2 ) <= - + CAST( + + 99 AS SIGNED )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-9596
SELECT DISTINCT * FROM tab0 WHERE + ( - col2 ) <= - + CAST ( + + 99 AS INTEGER )
----
97
1
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9597
SELECT ALL - col2 * + - 99 - + col2, + col2 DIV - + col1 AS col0 FROM tab2
----
2254
0
3920
0
5684
0

skipif mysql # not compatible
query II rowsort label-9597
SELECT ALL - col2 * + - 99 - + col2, + col2 / - + col1 AS col0 FROM tab2
----
2254
0
3920
0
5684
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9598
SELECT - col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT - col2 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 26 AND - + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - COUNT( * ) + + 50 AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9600
SELECT - COUNT ( * ) + + 50 AS col1 FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + 47 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 52, + col2 FROM tab1 AS cor0
----
-52
59
-52
68
-52
96

query II rowsort
SELECT - col2 AS col0, - 48 FROM tab0 AS cor0
----
-10
-48
-47
-48
-99
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL + - SUM( DISTINCT + + 5 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + - SUM ( DISTINCT + + 5 ) FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9606
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 / + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9606
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 / + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 4 AS col1 FROM tab1 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL + COUNT( - 93 ) * - MIN( + - col2 ) AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + COUNT ( - 93 ) * - MIN ( + - col2 ) AS col0 FROM tab1
----
288

query II rowsort
SELECT col0 * col2, col1 AS col2 FROM tab0 AS cor0
----
705
81
870
21
9603
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col1 + - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col1 + - + col1 )
----
0

query I rowsort
SELECT DISTINCT + + col0 * - 86 FROM tab2 AS cor0
----
-3956
-5504
-6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT ALL + CAST( NULL AS SIGNED ) * - 39 + + col1 FROM tab1 AS cor0 WHERE + col2 * col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + CAST ( NULL AS INTEGER ) * - 39 + + col1 FROM tab1 AS cor0 WHERE + col2 * col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9613
SELECT MIN( + ( - CAST( NULL AS SIGNED ) ) ) AS col2, + COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9613
SELECT MIN ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col2, + COUNT ( * ) AS col0 FROM tab2
----
NULL
3

query I rowsort
SELECT DISTINCT - col1 * + ( - - col2 ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT SUM( - + col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9615
SELECT SUM ( - + col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9616
SELECT DISTINCT * FROM tab0 WHERE - col1 - - CAST( NULL AS SIGNED ) BETWEEN + col1 AND + + col0
----

skipif mysql # not compatible
query III rowsort label-9616
SELECT DISTINCT * FROM tab0 WHERE - col1 - - CAST ( NULL AS INTEGER ) BETWEEN + col1 AND + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9617
SELECT ALL + MIN( DISTINCT + + 12 ) DIV + - 71 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + MIN ( DISTINCT + + 12 ) / + - 71 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT 47 + - + COUNT( * ) AS col2 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-9618
SELECT 47 + - + COUNT ( * ) AS col2 FROM tab0
----
44

query I rowsort
SELECT + 49 * 12 + 14 AS col1 FROM tab1
----
602
602
602

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * 83 + + ( col0 ) + + + 33 col2 FROM tab1
----
6807
6841
6847

query III rowsort
SELECT DISTINCT 99 AS col0, + col2 + + 15, - + col1 AS col1 FROM tab2
----
9 values hashing to 9c5cd1b5876c3ba9d341dedc438cf8b9

query II rowsort
SELECT + col2 + + ( + col0 ), col2 * 49 * + 59 AS col1 FROM tab0 AS cor0
----
196
286209
62
135877
97
28910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9624
SELECT CAST( NULL AS SIGNED ), AVG ( ALL - + col2 ) - AVG ( col2 ) + + AVG ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL = - 30
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9624
SELECT CAST ( NULL AS INTEGER ), AVG ( ALL - + col2 ) - AVG ( col2 ) + + AVG ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL = - 30
----
NULL
NULL

query I rowsort
SELECT - - 98 * col0 AS col1 FROM tab0 AS cor0
----
1470
8526
9506

query I rowsort
SELECT - 54 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT + 89 + + - 70 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL AND NOT - 15 - - 24 NOT BETWEEN + ( col1 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9630
SELECT DISTINCT 47, COUNT( * ) + - MAX( DISTINCT + 25 ) + + COUNT( * ) * 22 AS col2 FROM tab1 AS cor0
----
47
44

skipif mysql # not compatible
query II rowsort label-9630
SELECT DISTINCT 47, COUNT ( * ) + - MAX ( DISTINCT + 25 ) + + COUNT ( * ) * 22 AS col2 FROM tab1 AS cor0
----
47
44

query I rowsort
SELECT + 36 + + - 10 AS col2 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT DISTINCT MIN( ( + col0 ) ) * + AVG ( - 64 ) FROM tab2 AS cor0 WHERE 84 IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT MIN ( ( + col0 ) ) * + AVG ( - 64 ) FROM tab2 AS cor0 WHERE 84 IN ( - col2 )
----
NULL

query I rowsort
SELECT - col1 + + - col0 + 96 FROM tab0 AS cor0
----
-12
-2
0

query I rowsort
SELECT ALL col0 - + - col0 * - 32 AS col2 FROM tab1 AS cor0
----
-1581
-2635
-2821

query II rowsort
SELECT DISTINCT + col1 - - - col0 * - + col0 + - - col0 AS col2, 39 FROM tab1 AS cor0
----
2666
39
7315
39
8419
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT ALL + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) - - 85 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - 85 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL COUNT( ALL - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL COUNT ( ALL - col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col0 * col1 - + col1 FROM tab2
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT MAX( + col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9640
SELECT DISTINCT MAX ( + col0 ) col0 FROM tab1
----
91

query I rowsort
SELECT DISTINCT - + col0 + - col1 FROM tab1 AS cor0 WHERE NOT + ( - + 62 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col1 * - + col2 - col0 FROM tab2 AS cor0
----
-123264
-225463
-27025

query I rowsort
SELECT - + 33 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9644
SELECT 43 + - 24 AS col2 FROM tab1 WHERE NOT + 81 BETWEEN 73 - - col0 + col2 - - - CAST( - - col0 AS DECIMAL ) AND - - col2 * 83 + + col2
----
19
19
19

skipif mysql # not compatible
query I rowsort label-9644
SELECT 43 + - 24 AS col2 FROM tab1 WHERE NOT + 81 BETWEEN 73 - - col0 + col2 - - - CAST ( - - col0 AS REAL ) AND - - col2 * 83 + + col2
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9645
SELECT DISTINCT CAST( - ( 67 ) AS SIGNED ), col1 * + 65 AS col0 FROM tab0 cor0
----
-67
1365
-67
5265
-67
65

skipif mysql # not compatible
query II rowsort label-9645
SELECT DISTINCT CAST ( - ( 67 ) AS INTEGER ), col1 * + 65 AS col0 FROM tab0 cor0
----
-67
1365
-67
5265
-67
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + 47 * - COUNT( * ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-9646
SELECT + 47 * - COUNT ( * ) FROM tab1 AS cor0
----
-141

query I rowsort
SELECT ALL + - col2 * 39 * 35 AS col1 FROM tab2 AS cor0
----
-31395
-54600
-79170

query I rowsort
SELECT 29 * + ( - ( + + col1 ) ) AS col0 FROM tab1 AS cor0
----
-1363
-145
-406

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT + COUNT( * ), - COUNT( * ) * 44 AS col0 FROM tab0 AS cor0
----
3
-132

skipif mysql # not compatible
query II rowsort label-9649
SELECT + COUNT ( * ), - COUNT ( * ) * 44 AS col0 FROM tab0 AS cor0
----
3
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT CAST( NULL AS SIGNED ) * + 86 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9650
SELECT CAST ( NULL AS INTEGER ) * + 86 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT - col0 DIV + 56 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9651
SELECT - col0 / + 56 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + + 16 AS col0 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + col1 * + 52 FROM tab0
----
1092
4212
52

query II rowsort
SELECT - col2, col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT ( 30 ) AS col0, - col2 * + - col0 * col1 FROM tab2
----
30
197120
30
291450
30
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT + 94 DIV 10 FROM tab0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-9656
SELECT + 94 / 10 FROM tab0
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9657
SELECT + CAST( + 54 AS SIGNED ) AS col2, 40 * - SUM( + - 98 ) FROM tab2
----
54
11760

skipif mysql # not compatible
query II rowsort label-9657
SELECT + CAST ( + 54 AS INTEGER ) AS col2, 40 * - SUM ( + - 98 ) FROM tab2
----
54
11760

query I rowsort
SELECT ALL + ( - + ( + col1 ) ) + + col0 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT 51 + + - col2 * + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT 51 + + - col2 * + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT - col0 + + CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT - col0 + + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT 33 + COUNT( * ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9661
SELECT 33 + COUNT ( * ) FROM tab0 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL + CAST( col0 AS SIGNED ) + - 72 * + col1 FROM tab2 AS cor0
----
-3626
-4749
-5480

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL + CAST ( col0 AS INTEGER ) + - 72 * + col1 FROM tab2 AS cor0
----
-3626
-4749
-5480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL + 33 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + 33 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - - 88 AS col0 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT ALL col0 * + - CAST( - col1 AS SIGNED ) + - 44 + col0 col2 FROM tab0 AS cor0
----
1186
150
1870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9666
SELECT ALL col0 * + - CAST ( - col1 AS INTEGER ) + - 44 + col0 col2 FROM tab0 AS cor0
----
1186
150
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - 3 - + COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9667
SELECT - 3 - + COUNT ( * ) FROM tab1 cor0
----
-6

query I rowsort
SELECT + col1 - - + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + - col0 + + + col2 AS col0 FROM tab0 AS cor0 WHERE + 27 - - col0 / - col1 + - col0 IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE + - col2 + + + col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT DISTINCT + SUM( ALL + CAST( col1 AS SIGNED ) ) - - - 65 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT + SUM ( ALL + CAST ( col1 AS INTEGER ) ) - - - 65 AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL 19 + + col2 AS col0 FROM tab2
----
42
59
77

query I rowsort
SELECT - col0 * ( + 47 ) FROM tab2
----
-2162
-3008
-3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 69, col2 * + - 93 col0 FROM tab2
----
69
-2139
69
-3720
69
-5394

query II rowsort
SELECT ALL - col1, 30 AS col2 FROM tab0
----
-1
30
-21
30
-81
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9676
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9677
SELECT - col2 col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9677
SELECT - col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT + col0 * + col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT col1 AS col2, 25 FROM tab2 AS cor0
----
51
25
67
25
77
25

query II rowsort
SELECT ALL col0 AS col2, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT col2, col1 AS col1, + col1 * - col2 + + col0 * - + 7 + - 11 * col1 FROM tab2 AS cor0
----
9 values hashing to f02f07616b8d7277885ad2542170fa3f

query I rowsort
SELECT ALL - 21 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + ( - - col2 )
----

query I rowsort
SELECT col2 * 9 AS col1 FROM tab2 AS cor0
----
207
360
522

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT ALL + col0 * 54 DIV col2 + + + 19 FROM tab1 AS cor0
----
47
91
96

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL + col0 * 54 / col2 + + + 19 FROM tab1 AS cor0
----
47
91
96

query I rowsort
SELECT DISTINCT - - 20 AS col1 FROM tab2 AS cor0
----
20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * col1 * + ( - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col2, col2 * - col1 FROM tab0 AS cor0 WHERE col2 BETWEEN + - col0 * + + col2 * + col0 * + ( - 26 ) AND + 18 / col2 * 96 + + col2
----

query I rowsort
SELECT DISTINCT - 54 * + - 5 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query II rowsort
SELECT + col2 * ( col2 ) + + col2 + + col1 * - col1 + 7, 73 * 24 AS col2 FROM tab1 AS cor0
----
2490
1752
3522
1752
9123
1752

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT - COUNT( ALL col1 ) * - ( 8 ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - COUNT ( ALL col1 ) * - ( 8 ) AS col0 FROM tab1
----
24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 11 NOT IN ( - col0 + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT 88 + - COUNT( * ) * + 6 col1 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9693
SELECT 88 + - COUNT ( * ) * + 6 col1 FROM tab0
----
70

query I rowsort
SELECT 6 + - col1 AS col0 FROM tab1
----
-41
-8
1

query II rowsort
SELECT DISTINCT col1 AS col0, 54 AS col0 FROM tab2
----
51
54
67
54
77
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL MAX( ALL 75 ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL MAX ( ALL 75 ) AS col0 FROM tab1
----
75

query I rowsort
SELECT + col1 + ( - 37 ) + + col0 AS col2 FROM tab0
----
59
61
71

query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab1 WHERE NOT - + 74 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9699
SELECT col1, col2 DIV - col1 AS col1 FROM tab1
----
14
-6
47
-1
5
-11

skipif mysql # not compatible
query II rowsort label-9699
SELECT col1, col2 / - col1 AS col1 FROM tab1
----
14
-6
47
-1
5
-11

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9701
SELECT + SUM( - col0 ) - + COUNT( * ) - MAX( col0 ) + - COUNT( * ) col0 FROM tab1 cor0 WHERE NULL NOT IN ( col2 / - col1 * - 64, - CAST( NULL AS DECIMAL ), col2 + col2, - - ( + + ( col2 ) ) * + ( col2 ) * - + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9701
SELECT + SUM ( - col0 ) - + COUNT ( * ) - MAX ( col0 ) + - COUNT ( * ) col0 FROM tab1 cor0 WHERE NULL NOT IN ( col2 / - col1 * - 64, - CAST ( NULL AS REAL ), col2 + col2, - - ( + + ( col2 ) ) * + ( col2 ) * - + col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT col1 DIV - ( col0 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT col1 / - ( col0 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT - 8 DIV - 15 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 8 / - 15 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + - col0 FROM tab2 WHERE ( - 41 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9705
SELECT DISTINCT 65 AS col0 FROM tab1 WHERE ( col1 ) - + 30 * + col2 BETWEEN CAST( col0 AS DECIMAL ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT 65 AS col0 FROM tab1 WHERE ( col1 ) - + 30 * + col2 BETWEEN CAST ( col0 AS REAL ) AND - col2
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT CAST( NULL AS SIGNED ) * - SUM( - 82 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT CAST ( NULL AS INTEGER ) * - SUM ( - 82 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 + + 32 AS col2 FROM tab2
----
55
72
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT 14 + - col2 DIV col1 FROM tab0
----
-85
14
14

skipif mysql # not compatible
query I rowsort label-9709
SELECT 14 + - col2 / col1 FROM tab0
----
-85
14
14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + + ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - ( col1 ) ) * - 73 AS col2 FROM tab1
----
1022
3431
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + + 99 col2 FROM tab0
----
180
180
180

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT MIN( DISTINCT col0 ) * + SUM( ALL + col2 ) col2 FROM tab1 WHERE ( 80 ) BETWEEN ( - col1 ) AND - col2 + - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9714
SELECT MIN ( DISTINCT col0 ) * + SUM ( ALL + col2 ) col2 FROM tab1 WHERE ( 80 ) BETWEEN ( - col1 ) AND - col2 + - col0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col0 AND ( - ( 83 ) )
----

query I rowsort
SELECT ALL 45 / - col0 AS col1 FROM tab2 WHERE NOT NULL < - col0 + - col0 * + 62
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> ( + 72 ) * + col2 - col2
----

query I rowsort
SELECT ALL col2 + - ( - col1 ) * - 88 FROM tab1
----
-1136
-381
-4068

query I rowsort
SELECT DISTINCT col1 + - 35 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT BETWEEN ( NULL ) AND - 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN 68 AND + 14 * - 27
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col1 + 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE 93 * col0 + + col1 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT 23 - 53 * SUM( ALL col1 * ( 88 ) ) AS col2 FROM tab1
----
-307801

skipif mysql # not compatible
query I rowsort label-9724
SELECT 23 - 53 * SUM ( ALL col1 * ( 88 ) ) AS col2 FROM tab1
----
-307801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col0 FROM tab2 AS cor0 WHERE + 43 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ( MAX( + 41 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT ( MAX ( + 41 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9727
SELECT + 84 DIV MIN( + CAST( col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9727
SELECT + 84 / MIN ( + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9728
SELECT ALL - COUNT( * ) DIV - 65 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - COUNT ( * ) / - 65 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 * col0 )
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 cor0 WHERE ( + 63 ) NOT IN ( col2 - col0 / col0 )
----
46
64
75

query I rowsort
SELECT DISTINCT - ( + 74 ) + col1 FROM tab2 AS cor0
----
-23
-7
3

query I rowsort
SELECT ALL - - col2 + + ( - 59 ) FROM tab1 AS cor0
----
0
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT + - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT + - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 + + 81 AS col0 FROM tab0 AS cor0
----
-19
-2128
-9720

query I rowsort
SELECT + + 51 * col0 FROM tab2 AS cor0
----
2346
3264
3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT + SUM( + 14 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + SUM ( + 14 ) FROM tab1
----
42

query I rowsort
SELECT - col1 * - col1 FROM tab0 WHERE ( NULL ) IN ( ( - 98 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT ALL col0 * 73 FROM tab2 WHERE NOT ( NULL ) IN ( + CAST( - 85 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL col0 * 73 FROM tab2 WHERE NOT ( NULL ) IN ( + CAST ( - 85 AS INTEGER ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT COUNT( * ) + + MAX( ALL + col0 ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-9741
SELECT COUNT ( * ) + + MAX ( ALL + col0 ) AS col0 FROM tab0
----
100

query I rowsort
SELECT + + ( col1 ) + + 56 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
3309
3855
5390

query I rowsort
SELECT + + col2 * ( col0 ) + + 44 AS col2 FROM tab1 AS cor0
----
4940
5059
6232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col2 col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL - 61 + - - col0 AS col2 FROM tab0 AS cor0
----
-46
26
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9746
SELECT ALL COUNT( - col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE - 14 = 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL COUNT ( - col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE - 14 = 80
----
NULL

query I rowsort
SELECT DISTINCT 31 + - + col0 FROM tab1 AS cor0
----
-20
-54
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 44 IN ( - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - - col1 > NULL
----

query I rowsort
SELECT col0 * 91 AS col1 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT - 74 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT DISTINCT col0 * 70 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT col0 * 70 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - 80 - - - COUNT( * ) + 82 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9753
SELECT - 80 - - - COUNT ( * ) + 82 AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - 87 * ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9754
SELECT - 87 * ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-261

query I rowsort
SELECT 91 * + 88 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - COUNT( * ) * + 83 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - COUNT ( * ) * + 83 FROM tab1 AS cor0
----
-249

query I rowsort
SELECT ALL - + 69 AS col2 FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT DISTINCT + 58 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST( 58 AS SIGNED ) * + col1 AND + 36
----

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + 58 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( 58 AS INTEGER ) * + col1 AND + 36
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 + + 0 * ( + 26 + + col0 ) ) > NULL
----

query I rowsort
SELECT col2 * 98 AS col1 FROM tab0 WHERE NOT ( + col2 - + + col2 * - col0 ) <= col0
----
4606
9702
980

query I rowsort
SELECT DISTINCT 81 * - col0 AS col1 FROM tab0
----
-1215
-7047
-7857

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9763
SELECT + ( 3 ) FROM tab0 WHERE NOT + CAST( + - col0 AS DECIMAL ) * + col2 + col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-9763
SELECT + ( 3 ) FROM tab0 WHERE NOT + CAST ( + - col0 AS REAL ) * + col2 + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT MIN( DISTINCT - 37 ) col0 FROM tab0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9764
SELECT MIN ( DISTINCT - 37 ) col0 FROM tab0
----
-37

query I rowsort
SELECT DISTINCT + col2 * col2 * - 46 * - 77 * 73 AS col0 FROM tab2
----
136781414
413705600
869816024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT col2 * - col0 + col1 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9766
SELECT col2 * - col0 + col1 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9767
SELECT ALL - ( + ( + + 2 ) ) DIV 99 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - ( + ( + + 2 ) ) / 99 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 9 FROM tab2 WHERE NOT NULL IS NOT NULL
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT + col0 DIV - 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT + col0 / - 83 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT ( - MIN( DISTINCT + col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT ( - MIN ( DISTINCT + col2 ) ) FROM tab1
----
-59

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + + col1 = + 53 * + 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT 45 * + col1 AS col1 FROM tab0
----
3645
45
945

query I rowsort
SELECT + 33 * + col1 AS col0 FROM tab0
----
2673
33
693

query II rowsort
SELECT col0 AS col1, ( - + col0 ) AS col0 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9776
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * col1 + + + ( + col2 ) + - ( - col1 ) * 98 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT - + CAST ( NULL AS REAL ) * col1 + + + ( + col2 ) + - ( - col1 ) * 98 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9778
SELECT - + CAST( NULL AS SIGNED ) AS col1, - col2 AS col1 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-9778
SELECT - + CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT ALL - - MIN( DISTINCT col2 ) + COUNT( * ) DIV - + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - - MIN ( DISTINCT col2 ) + COUNT ( * ) / - + COUNT ( * ) FROM tab0 cor0
----
9

query II rowsort
SELECT - 44 AS col0, + col2 AS col1 FROM tab2 cor0
----
-44
23
-44
40
-44
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT COUNT( * ) + - MAX( + - ( + 54 ) ) AS col1 FROM tab1 cor0
----
57

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT COUNT ( * ) + - MAX ( + - ( + 54 ) ) AS col1 FROM tab1 cor0
----
57

query I rowsort
SELECT DISTINCT col2 + + + col2 - - col2 + + col1 + + + 31 FROM tab2 AS cor0
----
151
228
272

query I rowsort
SELECT DISTINCT ( - 4 ) * + - 62 + col2 FROM tab1 cor0
----
307
316
344

query I rowsort
SELECT DISTINCT + col0 * + col0 + + 86 + - col0 FROM tab0 AS cor0
----
296
7568
9398

query I rowsort
SELECT ALL - + ( + 48 ) * col0 + + col1 AS col0 FROM tab1 AS cor0
----
-2434
-4075
-4321

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT COUNT( * ) + SUM( DISTINCT + col2 ) * + SUM( col2 ) AS col0 FROM tab2
----
14644

skipif mysql # not compatible
query I rowsort label-9786
SELECT COUNT ( * ) + SUM ( DISTINCT + col2 ) * + SUM ( col2 ) AS col0 FROM tab2
----
14644

query I rowsort
SELECT 80 + 10 AS col1 FROM tab1
----
90
90
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - 14 NOT IN ( col0 + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + 64 + - + MAX( ALL + + 5 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9789
SELECT + 64 + - + MAX ( ALL + + 5 ) FROM tab1
----
59

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE ( NULL ) > + col0
----

query I rowsort
SELECT - col1 * 81 AS col1 FROM tab1
----
-1134
-3807
-405

query III rowsort
SELECT * FROM tab2 WHERE ( 96 >= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9793
SELECT DISTINCT + 3, 66 / - - COUNT( ALL - 84 ) * COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9793
SELECT DISTINCT + 3, 66 / - - COUNT ( ALL - 84 ) * COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 < ( + col1 + + col2 * + col1 / - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 + - 37 AS col1 FROM tab0 AS cor0
----
-118
-38
-58

query I rowsort
SELECT DISTINCT col2 * - col0 - + + col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 94 ) >= + 24 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 91 * + col1 - + - col0 FROM tab1 AS cor0
----
1325
4368
540

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT + - COUNT( * ) - + MIN( + + col2 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9800
SELECT + - COUNT ( * ) - + MIN ( + + col2 ) FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT SUM( DISTINCT col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT - + ( 20 ) AS col0 FROM tab1 cor0 WHERE NOT - col1 IN ( - col0, - col2 )
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT + MAX( DISTINCT + + col1 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT + MAX ( DISTINCT + + col1 ) AS col1 FROM tab1 cor0
----
47

query I rowsort
SELECT 17 * col2 AS col2 FROM tab2
----
391
680
986

query I rowsort
SELECT DISTINCT + 6 * + + col0 FROM tab1
----
306
510
546

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT SUM( ALL - col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT SUM ( ALL - col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 17 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9810
SELECT ALL 55, + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0
----
55
9

skipif mysql # not compatible
query II rowsort label-9810
SELECT ALL 55, + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0
----
55
9

query I rowsort
SELECT DISTINCT 89 * + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
1335
7743
8633

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 26 = NULL
----

query I rowsort
SELECT DISTINCT + 11 * - col1 AS col1 FROM tab1 AS cor0
----
-154
-517
-55

query I rowsort
SELECT DISTINCT - + 40 * 83 AS col2 FROM tab1 AS cor0
----
-3320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9816
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( + + MAX( ALL - col0 ) AS SIGNED ) / - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( + + MAX ( ALL - col0 ) AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL + col2 FROM tab2 WHERE NOT NULL NOT IN ( + col2 + + CAST( NULL AS SIGNED ) * - + col0 + col0 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL + col2 FROM tab2 WHERE NOT NULL NOT IN ( + col2 + + CAST ( NULL AS INTEGER ) * - + col0 + col0 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 3 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + col2 AS col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT + 33 * + 84 + - 58 + MIN( - 62 ) AS col0 FROM tab1 AS cor0
----
2652

skipif mysql # not compatible
query I rowsort label-9821
SELECT + 33 * + 84 + - 58 + MIN ( - 62 ) AS col0 FROM tab1 AS cor0
----
2652

query I rowsort
SELECT ALL + - col2 + - - col2 * + - col2 FROM tab2 AS cor0
----
-1640
-3422
-552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT ALL CAST( + - ( + 98 ) AS SIGNED ) AS col1 FROM tab2
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL CAST ( + - ( + 98 ) AS INTEGER ) AS col1 FROM tab2
----
-98
-98
-98

query I rowsort
SELECT - ( + + col2 ) + + + col0 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT DISTINCT + CAST( - col1 AS SIGNED ) / - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL + - 78 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + - 78 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT 85 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9827
SELECT 85 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
82

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND + col1 + - col2 * - col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9829
SELECT * FROM tab0 WHERE NOT col1 * - 47 * + col2 + + + col2 * col0 + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9829
SELECT * FROM tab0 WHERE NOT col1 * - 47 * + col2 + + + col2 * col0 + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL + ( + + MAX( DISTINCT - col2 ) ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + ( + + MAX ( DISTINCT - col2 ) ) AS col2 FROM tab0 cor0
----
-10

query II rowsort
SELECT DISTINCT + col2 * 26 AS col1, 79 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - + 71 ) AS col1 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL SUM( ALL + + 88 ) FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL SUM ( ALL + + 88 ) FROM tab0 AS cor0
----
264

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9834
SELECT ALL + col2 + + col2 + + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST( + + 13 AS DECIMAL ), 40, 88, - col2 * - - 24 * 57 )
----

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL + col2 + + col2 + + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( + + 13 AS REAL ), 40, 88, - col2 * - - 24 * 57 )
----

query I rowsort
SELECT + 55 * 83 * col0 FROM tab0
----
397155
442805
68475

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - 73 * + + COUNT( * ) * + - 20 FROM tab0
----
4380

skipif mysql # not compatible
query I rowsort label-9836
SELECT - 73 * + + COUNT ( * ) * + - 20 FROM tab0
----
4380

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT 44 + COUNT( * ) col1 FROM tab0 WHERE NOT - - col0 * - 9 + 3 + col0 * + + 24 NOT IN ( 30 )
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9837
SELECT DISTINCT 44 + COUNT ( * ) col1 FROM tab0 WHERE NOT - - col0 * - 9 + 3 + col0 * + + 24 NOT IN ( 30 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + COUNT( * ) * + 83 AS col2 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-9838
SELECT + COUNT ( * ) * + 83 AS col2 FROM tab0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT 5 + COUNT( * ) FROM tab1, tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9839
SELECT 5 + COUNT ( * ) FROM tab1, tab0 AS cor0
----
14

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col1, - col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 33 + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9842
SELECT DISTINCT - SUM( + col2 ) AS col0, MAX( - col1 ) + - 19 AS col1 FROM tab2 AS cor0
----
-121
-70

skipif mysql # not compatible
query II rowsort label-9842
SELECT DISTINCT - SUM ( + col2 ) AS col0, MAX ( - col1 ) + - 19 AS col1 FROM tab2 AS cor0
----
-121
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9843
SELECT ALL + col2 + 79 AS col1, + ( + + CAST( - col2 AS SIGNED ) ) + ( + col1 ) FROM tab2 cor0
----
102
28
119
37
137
9

skipif mysql # not compatible
query II rowsort label-9843
SELECT ALL + col2 + 79 AS col1, + ( + + CAST ( - col2 AS INTEGER ) ) + ( + col1 ) FROM tab2 cor0
----
102
28
119
37
137
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT 17 / + 23 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT 17 / + 23 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 85 + - col0 FROM tab2 AS cor0
----
10
21
39

query I rowsort
SELECT DISTINCT - col1 + - col0 - col0 FROM tab2 AS cor0
----
-143
-205
-217

query I rowsort
SELECT + col1 * + col1 - + ( ( + col1 ) ) FROM tab0 AS cor0 WHERE 62 <> + - col2
----
0
420
6480

query I rowsort
SELECT ALL + + 82 AS col1 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT col0 - + 87 FROM tab0
----
-72
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT COUNT( * ) * - + COUNT( * ) * - COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9850
SELECT COUNT ( * ) * - + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT col0 * - + col2 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9852
SELECT DISTINCT + ( MAX( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + ( MAX ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 - 59 + - 57 AS col1 FROM tab0
----
-115
-35
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT COUNT( - 78 ) * - 67 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-9854
SELECT COUNT ( - 78 ) * - 67 FROM tab1
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col1 FROM tab1
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 * + col0 col2 FROM tab2 AS cor0
----
-2990
-4160
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT DISTINCT SUM( - 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT SUM ( - 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-75

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * - - col2 FROM tab1 cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 49 + col0 IN ( - + 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - - 6 ) FROM tab1 AS cor0
----
-6
-6
-6

query II rowsort
SELECT col1 AS col0, col2 * - - col1 AS col2 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 56 NOT BETWEEN + col2 AND 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + MAX( - - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9864
SELECT + MAX ( - - col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - col0 * + - 0 - - 55 AS col1 FROM tab2 AS cor0
----
55
55
55

query II rowsort
SELECT DISTINCT col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + 10 * - col1 * + col0 + col0 FROM tab0 WHERE NOT - + col2 * col0 IS NULL
----
-12135
-18183
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT DISTINCT + COUNT( ALL + - 62 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT + COUNT ( ALL + - 62 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT ALL + col0, - 63 FROM tab0
----
15
-63
87
-63
97
-63

query I rowsort
SELECT ALL - 58 AS col0 FROM tab2
----
-58
-58
-58

query II rowsort
SELECT DISTINCT col0 AS col1, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT ALL - COUNT( * ), 17 * + 44 col2 FROM tab2
----
-3
748

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9872
SELECT ALL - COUNT ( * ), 17 * + 44 col2 FROM tab2
----
-3
748

query II rowsort
SELECT DISTINCT - 99 AS col1, - 32 * - - col2 AS col0 FROM tab1
----
-99
-1888
-99
-2176
-99
-3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT ALL + MIN( DISTINCT - + col0 ) DIV - 97 + MAX( ALL - col0 ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL + MIN ( DISTINCT - + col0 ) / - 97 + MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-9875
SELECT - col0 AS col2, + 87 DIV 5 DIV - col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
-17

skipif mysql # not compatible
query II rowsort label-9875
SELECT - col0 AS col2, + 87 / 5 / - col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
-17

query I rowsort
SELECT ALL + 30 + + - col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 54 * + + ( col2 )
----

query I rowsort
SELECT - col2 + - col0 - + 39 FROM tab1 AS cor0
----
-183
-186
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT ( 26 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT ( 26 ) > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab2
----
52
52
52

query I rowsort
SELECT 5 + - - col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL ( + 79 ) * col1 + - 7 FROM tab2 AS cor0
----
4022
5286
6076

query I rowsort
SELECT ALL + + col1 + + 32 FROM tab0 AS cor0
----
113
33
53

query I rowsort
SELECT + col2 - - 4 AS col0 FROM tab2 AS cor0
----
27
44
62

query I rowsort
SELECT col1 - ( - + col2 ) AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - col2 + 88 AS col1 FROM tab1 AS cor0
----
-8
20
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9886
SELECT ALL COUNT( * ) - 1 AS col0, COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
2
3

skipif mysql # not compatible
query II rowsort label-9886
SELECT ALL COUNT ( * ) - 1 AS col0, COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT col2 + CAST( NULL AS SIGNED ) - 2 * + 52 FROM tab1 AS cor0 WHERE - CAST( + col1 AS SIGNED ) + + - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT col2 + CAST ( NULL AS INTEGER ) - 2 * + 52 FROM tab1 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) + + - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 + col1 col1, col2 FROM tab1 cor0
----
10
59
28
96
94
68

query I rowsort
SELECT DISTINCT + 50 * 56 AS col2 FROM tab1
----
2800

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL col2 - col2 + - col0 + + ( 90 ) AS col0 FROM tab1
----
-1
39
5

query I rowsort
SELECT DISTINCT 7 * - col1 AS col2 FROM tab1
----
-329
-35
-98

query I rowsort
SELECT ALL 34 * 27 FROM tab0
----
918
918
918

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT - MIN( + + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9894
SELECT - MIN ( + + col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT MAX( col0 ) * + MAX( - + col0 ) FROM tab2 AS cor0
----
-3450

skipif mysql # not compatible
query I rowsort label-9895
SELECT MAX ( col0 ) * + MAX ( - + col0 ) FROM tab2 AS cor0
----
-3450

query II rowsort
SELECT + 43 * + - col2 * - + col0 AS col0, col0 + + 94 FROM tab0 AS cor0
----
30315
109
37410
181
412929
191

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 WHERE + 81 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 33 * - col2 <> - ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 * - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 63 * + + 96 col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT ALL + + 85 DIV + col2 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + + 85 / + col2 FROM tab0 AS cor0
----
0
1
8

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + + col1 AND + 46
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT MAX( DISTINCT + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9903
SELECT MAX ( DISTINCT + col1 ) FROM tab1 cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + - col1 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9904
SELECT col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + - col1 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + + 44 * + MIN( ALL - + col0 ) col0 FROM tab2 AS cor0
----
-3300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9905
SELECT + + 44 * + MIN ( ALL - + col0 ) col0 FROM tab2 AS cor0
----
-3300

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT - col2 - - 58 IS NOT NULL
----

query I rowsort
SELECT ALL + + 45 AS col1 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT - col0 BETWEEN col1 / col2 AND + col2
----
51
67
77

query I rowsort
SELECT 79 + - col1 AS col2 FROM tab2
----
12
2
28

query I rowsort
SELECT DISTINCT ( + - ( 8 ) ) FROM tab1
----
-8

query I rowsort
SELECT col1 + + + col0 AS col1 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT - CAST( + col0 AS SIGNED ) + + col2 - - 79 FROM tab1
----
124
53
56

skipif mysql # not compatible
query I rowsort label-9912
SELECT - CAST ( + col0 AS INTEGER ) + + col2 - - 79 FROM tab1
----
124
53
56

query I rowsort
SELECT ALL - col1 + - + col0 FROM tab0 WHERE NOT - + 93 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 1 * - ( + + col2 ) FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT - COUNT( - col1 ) - - - MAX( DISTINCT - col2 ) * - COUNT( * ) col1 FROM tab0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9915
SELECT DISTINCT - COUNT ( - col1 ) - - - MAX ( DISTINCT - col2 ) * - COUNT ( * ) col1 FROM tab0
----
-33

query I rowsort
SELECT + col2 - - 35 FROM tab1
----
103
131
94

query I rowsort
SELECT ALL + + col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 47 IS NULL
----

query I rowsort
SELECT + + col2 + 44 + col2 + col2 * + col1 * col0 FROM tab2 AS cor0
----
197244
291610
54048

query I rowsort
SELECT ALL + 44 + - 55 + col0 FROM tab2 AS cor0
----
35
53
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 26 * - col0 * + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - COUNT( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9923
SELECT - COUNT ( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT MAX( ALL - 82 ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9924
SELECT MAX ( ALL - 82 ) FROM tab2 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT + CAST( - 92 AS SIGNED ) * - + 74 + - + col1 AS col0 FROM tab2 AS cor0 WHERE + 69 + + - col1 IS NOT NULL
----
6731
6741
6757

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + CAST ( - 92 AS INTEGER ) * - + 74 + - + col1 AS col0 FROM tab2 AS cor0 WHERE + 69 + + - col1 IS NOT NULL
----
6731
6741
6757

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL + ( - COUNT( * ) ) - COUNT( * ) col0 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9926
SELECT ALL + ( - COUNT ( * ) ) - COUNT ( * ) col0 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT col0 * - 63 + ( - 65 ) FROM tab2
----
-2963
-4097
-4790

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL + ( - MIN( DISTINCT + + 87 ) ) col1 FROM tab1
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9928
SELECT ALL + ( - MIN ( DISTINCT + + 87 ) ) col1 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL SUM( + ( + col2 ) ) * COUNT( * ) AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL SUM ( + ( + col2 ) ) * COUNT ( * ) AS col2 FROM tab0
----
468

query II rowsort
SELECT ALL - col0 + - ( - 60 ) AS col0, + 30 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0, 86 FROM tab1
----
-9
86

skipif mysql # not compatible
query II rowsort label-9931
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0, 86 FROM tab1
----
-9
86

query I rowsort
SELECT ALL + ( 10 ) FROM tab0 AS cor0 WHERE NOT + col2 = 36 / - col1
----
10
10
10

query I rowsort
SELECT - 16 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT ( 15 ) FROM tab1
----
15

query I rowsort
SELECT + 59 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL - COUNT( * ) * 70 AS col0 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL - COUNT ( * ) * 70 AS col0 FROM tab0
----
-210

query III rowsort
SELECT * FROM tab0 WHERE NOT + 42 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-12558
-3315
-7650

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 / - 93 + + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 31 + - - col2 FROM tab1 AS cor0
----
127
90
99

query I rowsort
SELECT col0 * col1 + - - ( 17 ) FROM tab1 AS cor0
----
4294
442
731

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 39 BETWEEN NULL AND + col1 / col2 - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 34 * + 87, + col1 col1 FROM tab0
----
2958
1
2958
21
2958
81

query I rowsort
SELECT 31 FROM tab0 WHERE ( NOT - col0 IS NOT NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT 17 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + col0 * - col1 * - col2 * + col0 + - - 46 * + + 51 AS col0 FROM tab1 WHERE + col0 + + col2 IS NOT NULL
----
2133721
26468422
3498090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT ALL - ( 42 ) DIV + - COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - ( 42 ) / + - COUNT ( * ) FROM tab0
----
14

query I rowsort
SELECT col0 * - col2 + - 45 * 40 AS col0 FROM tab0
----
-11403
-2505
-2670

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + col2 * col2 * + - col2 - - ( col0 ) + - col2
----

query I rowsort
SELECT + col2 + col1 * - col2 - - col1 * col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT + CAST( NULL AS SIGNED ) + + 92 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT + CAST ( NULL AS INTEGER ) + + 92 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 84 + + 40 FROM tab1 AS cor0
----
124
124
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9954
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) - + + 41 * 23 FROM tab1
----
-1028
-1034
-994

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) - + + 41 * 23 FROM tab1
----
-1028
-1034
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT ALL col2 + - col2 * - + ( + 15 ) FROM tab0 AS cor0
----
1584
160
752

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL <= + 65 )
----

query I rowsort
SELECT + 75 FROM tab2 AS cor0 WHERE 78 IS NULL
----

query I rowsort
SELECT - col1 - - 37 - + + 48 FROM tab0 AS cor0
----
-12
-32
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - - 1 ) col2 FROM tab1 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 67 / + 9 AND - - 27 * + - col2 + col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * + col0 + col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - - col1 IN ( - 4 * + 94 * 63 )
----

query II rowsort
SELECT ALL col0 AS col2, + 83 * + - col1 * col0 FROM tab0
----
15
-100845
87
-151641
97
-8051

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9965
SELECT - col0 AS col2, + CAST( NULL AS SIGNED ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9965
SELECT - col0 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT DISTINCT CAST( CAST( 94 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT CAST ( CAST ( 94 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
94

query II rowsort
SELECT + 53, 81 AS col0 FROM tab0
----
53
81
53
81
53
81

query I rowsort
SELECT - ( + ( + - 37 ) ) AS col2 FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT COUNT( - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT COUNT ( - + col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT - - COUNT( * ) * ( 37 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
333

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - - COUNT ( * ) * ( 37 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
333

query I rowsort
SELECT DISTINCT 54 * - - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2754
3618
4158

query II rowsort
SELECT 12 + col0, - col0 AS col0 FROM tab2 AS cor0
----
58
-46
76
-64
87
-75

query II rowsort
SELECT ( + + 19 ) + + + col0 AS col1, + col0 FROM tab0
----
106
87
116
97
34
15

query I rowsort
SELECT 87 AS col2 FROM tab2 WHERE ( ( + col2 ) ) IS NOT NULL
----
87
87
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT - 46 DIV + COUNT( * ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - 46 / + COUNT ( * ) AS col2 FROM tab1
----
-15

query I rowsort
SELECT - col2 FROM tab1 WHERE - ( + ( - col2 ) ) IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col0 + + col1 col0 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 WHERE NOT + + col1 + 76 IS NOT NULL
----

query I rowsort
SELECT ( + - col2 ) * - 11 + + + col1 * - col1 FROM tab1
----
-1461
624
860

query I rowsort
SELECT col1 * + ( - + 67 ) FROM tab0
----
-1407
-5427
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT ALL + - col1 - col0 DIV + 81 + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL + - col1 - col0 / + 81 + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-13
-5
8

query I rowsort
SELECT ALL + ( - col0 ) * col1 + - - 77 AS col0 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + SUM( DISTINCT - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9985
SELECT + SUM ( DISTINCT - col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT DISTINCT 72 + col2 + 29 DIV - col0 col0 FROM tab2 AS cor0
----
112
130
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9986
SELECT DISTINCT 72 + col2 + 29 / - col0 col0 FROM tab2 AS cor0
----
112
130
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL > col0 * + - 80 )
----

query I rowsort
SELECT + ( + + 72 ) AS col2 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT col0 + - col1 * - + 77 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND 84
----

query I rowsort
SELECT DISTINCT - 41 / - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT - SUM( ALL + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - SUM ( ALL + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - - MIN( col0 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - - MIN ( col0 ) AS col0 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT + + 19 FROM tab0 AS cor0 WHERE + col2 BETWEEN 29 / - col1 - - col1 AND + col1 / col1 + col0 - - + col2 / col0 - - col0 / + col1 * - + col1
----

query I rowsort
SELECT DISTINCT + 35 * - 73 * + col2 FROM tab1 AS cor0
----
-150745
-173740
-245280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT CAST( + + ( + - col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( + + ( + - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col1
----

query I rowsort
SELECT ALL + - 2 AS col2 FROM tab2 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9998
SELECT ALL * FROM tab2 cor0 WHERE col0 + + col1 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9998
SELECT ALL * FROM tab2 cor0 WHERE col0 + + col1 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT MAX( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9999
SELECT MAX ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
47

