sqllogictest
Artifact Content
Not logged in

Artifact 803d89609144c208efc2bbf7d58f4c390300b612:


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