sqllogictest
Artifact Content
Not logged in

Artifact bcb8f2c2b3587476693426315ec5065566477af4:


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)

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 * - - col1 * - col1 col2 FROM tab0
----
24255
360855
55

query I rowsort
SELECT ALL - 82 FROM tab2 WHERE + col2 IS NOT NULL
----
-82
-82
-82

query I rowsort
SELECT ALL col1 + col1 * - 41 FROM tab2 WHERE + ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 20 + + - 11 + ( 59 ) * - col0 FROM tab1
----
-3000
-5006
-5360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4
SELECT CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4
SELECT CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

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

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

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

query I rowsort
SELECT + 53 FROM tab0 AS cor0 WHERE - col1 = ( ( col1 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( - col2 * col0 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-10
SELECT + + COUNT( * ) DIV 14 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-10
SELECT + + COUNT ( * ) / 14 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT DISTINCT - col2 + + 66 FROM tab0
----
-33
19
56

query I rowsort
SELECT ALL + 8 AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE 76 * - col1 IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE 76 * - col1 IN ( - col2 )
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-15
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 col0 FROM tab0 AS cor0 WHERE NULL IN ( - 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-16
SELECT * FROM tab2 AS cor0 WHERE NULL < - CAST( NULL AS SIGNED ) * col2 * + 5 - 56 / col1
----

skipif mysql # not compatible
query III rowsort label-16
SELECT * FROM tab2 AS cor0 WHERE NULL < - CAST ( NULL AS INTEGER ) * col2 * + 5 - 56 / col1
----

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

query I rowsort
SELECT DISTINCT - + col2 * 12 AS col0 FROM tab2 AS cor0
----
-276
-480
-696

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-19
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-19
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL + col0 + - ( + - col1 ) AS col0 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * - + 25 col0 FROM tab1 AS cor0
----
-1725
-1725
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT + SUM( ALL + col2 ) + 29 col1 FROM tab2 cor0 WHERE col2 - - col1 * ( + col0 * + col1 ) IS NOT NULL
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-22
SELECT + SUM ( ALL + col2 ) + 29 col1 FROM tab2 cor0 WHERE col2 - - col1 * ( + col0 * + col1 ) IS NOT NULL
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-23
SELECT DISTINCT + 49 DIV + SUM( + 93 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + 49 / + SUM ( + 93 ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT - 25 DIV - col1 FROM tab0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-24
SELECT - 25 / - col1 FROM tab0
----
0
1
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( ( - - 43 ) / col2 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + 80 * col2 >= col2 - - col1 * 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 73 AS col0 FROM tab2 cor0
----
73
73
73

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

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT col2 DIV 15 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) <> + ( + 96 )
----
0
3
6

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT col2 / 15 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) <> + ( + 96 )
----
0
3
6

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

query I rowsort
SELECT 51 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT ( - + MAX( - + col1 ) ) * - 48 + COUNT( * ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-34
SELECT ( - + MAX ( - + col1 ) ) * - 48 + COUNT ( * ) FROM tab1
----
-237

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 4 <= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 59 ) <> ( + col0 )
----

query I rowsort
SELECT ALL - ( + + col2 ) * - col1 + - ( + col0 ) FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT 11 * 34 AS col1 FROM tab2 AS cor0
----
374
374
374

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

skipif mysql # not compatible
query I rowsort label-39
SELECT MIN ( DISTINCT + 88 ) FROM tab1 cor0
----
88

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-41
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + col0 IN ( - - 13 * - col1 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-45
SELECT 82 col0, col0 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
82
NULL
82
NULL
82
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-45
SELECT 82 col0, col0 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
82
NULL
82
NULL
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-46
SELECT - + CAST( NULL AS SIGNED ) / - MAX( - + col2 ) + 83 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT - + CAST ( NULL AS INTEGER ) / - MAX ( - + col2 ) + 83 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-48
SELECT + CAST( col0 AS SIGNED ) DIV col1 AS col2 FROM tab0 AS cor0 WHERE ( - 15 ) NOT IN ( col0 + - 98 )
----
0
4
97

skipif mysql # not compatible
query I rowsort label-48
SELECT + CAST ( col0 AS INTEGER ) / col1 AS col2 FROM tab0 AS cor0 WHERE ( - 15 ) NOT IN ( col0 + - 98 )
----
0
4
97

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

query I rowsort
SELECT + col2 + 95 AS col2 FROM tab2 AS cor0
----
118
135
153

query I rowsort
SELECT - 40 + + col0 + + + col1 FROM tab0 AS cor0
----
56
58
68

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

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

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT - COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-54
SELECT col0 DIV + col2, + col2 AS col1 FROM tab2
----
1
40
1
58
2
23

skipif mysql # not compatible
query II rowsort label-54
SELECT col0 / + col2, + col2 AS col1 FROM tab2
----
1
40
1
58
2
23

query I rowsort
SELECT ALL - col0 + + 66 FROM tab2 AS cor0
----
-9
2
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - 93 = + + 79
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT ALL + + col1 * - - 47 * + col1 + - 91 + col0 - 2 + - 7 DIV ( - 80 ) AS col0 FROM tab2 AS cor0
----
122200
210965
278634

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + + col1 * - - 47 * + col1 + - 91 + col0 - 2 + - 7 / ( - 80 ) AS col0 FROM tab2 AS cor0
----
122200
210965
278634

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT - - COUNT( * ) + 27 + - MAX( ALL - - 58 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - - COUNT ( * ) + 27 + - MAX ( ALL - - 58 ) FROM tab1 AS cor0
----
-28

query I rowsort
SELECT - + col2 - - 1 + - - col1 * - + col1 AS col2 FROM tab2 AS cor0
----
-2623
-4546
-5968

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

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

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

query II rowsort
SELECT DISTINCT + col1 + + col0 AS col2, + col1 FROM tab0 AS cor0
----
108
21
96
81
98
1

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

query I rowsort
SELECT DISTINCT - col0 - - + 48 AS col0 FROM tab2 AS cor0
----
-16
-27
2

query I rowsort
SELECT col1 + + 77 AS col2 FROM tab1
----
124
82
91

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

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

query II rowsort
SELECT ALL col2 AS col0, - col0 * + + 42 FROM tab2
----
23
-1932
40
-2688
58
-3150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61 AS col1, col2 + - 9 * col1 col1 FROM tab1
----
-61
-30
-61
-355
-61
14

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

query I rowsort
SELECT col0 * col0 * - + 44 FROM tab0
----
-333036
-413996
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL + COUNT( * ) * 24 AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL + COUNT ( * ) * 24 AS col1 FROM tab0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 26 * - ( - + 16 ) col1, - col1 col0 FROM tab1
----
416
-14
416
-47
416
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-74
SELECT * FROM tab1 WHERE NOT 68 * + - CAST( NULL AS SIGNED ) < col0
----

skipif mysql # not compatible
query III rowsort label-74
SELECT * FROM tab1 WHERE NOT 68 * + - CAST ( NULL AS INTEGER ) < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT ALL - + 12 DIV + 81 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL - + 12 / + 81 AS col2 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-77
SELECT ALL 54 * - CAST( NULL AS SIGNED ) - - 43 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL 54 * - CAST ( NULL AS INTEGER ) - - 43 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT + 30 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-78
SELECT + 30 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-90

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + col1 * - + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - - col2 / + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT ( CAST( 29 AS SIGNED ) ) AS col1 FROM tab1
----
29
29
29

skipif mysql # not compatible
query I rowsort label-82
SELECT ( CAST ( 29 AS INTEGER ) ) AS col1 FROM tab1
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + COUNT( * ) - 4 AS col0 FROM tab1, tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-83
SELECT + COUNT ( * ) - 4 AS col0 FROM tab1, tab2 AS cor0
----
5

query I rowsort
SELECT 86 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-86
SELECT - col1 * CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-86
SELECT - col1 * CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT - col1 + - col2 * - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1122
3003
3819

query I rowsort
SELECT + 39 + + - col2 AS col0 FROM tab0 AS cor0
----
-60
-8
29

query I rowsort
SELECT col1 + 9 FROM tab2
----
60
76
86

query I rowsort
SELECT + ( + - col2 ) + col1 AS col0 FROM tab0
----
-98
11
34

query II rowsort
SELECT DISTINCT col2, 75 + - col0 AS col0 FROM tab0
----
10
-12
47
60
99
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT - COUNT( * ) + + - 96 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-92
SELECT - COUNT ( * ) + + - 96 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT + col0 * - ( + + col0 ) + + ( + + col2 ) AS col1 FROM tab1
----
-2505
-7166
-8213

query I rowsort
SELECT DISTINCT col1 + + - 72 FROM tab1
----
-25
-58
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-95
SELECT 29 AS col1, CAST( + COUNT( ALL ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) FROM tab1
----
29
0

skipif mysql # not compatible
query II rowsort label-95
SELECT 29 AS col1, CAST ( + COUNT ( ALL ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) FROM tab1
----
29
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( - - col2 )
----

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

skipif mysql # not compatible
query I rowsort label-97
SELECT - + 7 / + - col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL - 76 + + - 88 FROM tab1
----
-164
-164
-164

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL + + 3 / + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL + col2 * - CAST( + + 23 AS SIGNED ) col2 FROM tab1
----
-1357
-1564
-2208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-106
SELECT ALL + col2 * - CAST ( + + 23 AS INTEGER ) col2 FROM tab1
----
-1357
-1564
-2208

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 19 ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + 9 + - col2 + - col0 + + - col1 AS col0 FROM tab2 WHERE NOT ( NOT ( NOT - col1 IS NULL ) )
----
-579
-803
-874

query I rowsort
SELECT DISTINCT - 77 * col0 AS col1 FROM tab0
----
-1155
-6699
-7469

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-112
SELECT col2 * col2 * - + 90 + col2 + - col2 * CAST( - 70 AS SIGNED ) * + col2 * - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-184224
-69561
-92412

skipif mysql # not compatible
query I rowsort label-112
SELECT col2 * col2 * - + 90 + col2 + - col2 * CAST ( - 70 AS INTEGER ) * + col2 * - col0 / - col0 AS col2 FROM tab1 AS cor0
----
-184224
-69561
-92412

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

query I rowsort
SELECT + 49 * + + col0 FROM tab2 cor0
----
2254
3136
3675

onlyif mysql # DIV for integer division: 
query II rowsort label-115
SELECT + + col2 AS col1, - col1 DIV + + col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-115
SELECT + + col2 AS col1, - col1 / + + col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT col0 * - 1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE 34 + 73 IS NOT NULL
----
23
40
58

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

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

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

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

query I rowsort
SELECT 55 + col0 AS col0 FROM tab1
----
106
140
146

query I rowsort
SELECT DISTINCT + 64 * - 47 - col1 + 8 - + col0 FROM tab1 AS cor0
----
-3065
-3090
-3138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 95 - - col0 col1, - col0 AS col1 FROM tab2 AS cor0
----
141
-46
159
-64
170
-75

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

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
77

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

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

query I rowsort
SELECT + 29 FROM tab2 AS cor0 WHERE 32 + + + col1 IS NOT NULL
----
29
29
29

query I rowsort
SELECT - 10 * 86 - - 53 + - 86 + - + 10 AS col2 FROM tab0 AS cor0
----
-903
-903
-903

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

query I rowsort
SELECT DISTINCT + + 22 FROM tab0 cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-131
SELECT CAST( NULL AS SIGNED ) AS col0, - 79 AS col1 FROM tab2 cor0
----
NULL
-79
NULL
-79
NULL
-79

skipif mysql # not compatible
query II rowsort label-131
SELECT CAST ( NULL AS INTEGER ) AS col0, - 79 AS col1 FROM tab2 cor0
----
NULL
-79
NULL
-79
NULL
-79

query I rowsort
SELECT ALL col1 * - 55 * + col1 FROM tab2
----
-143055
-246895
-326095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-133
SELECT SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT NULL BETWEEN + col0 + - 92 AND col2 - - + col0 * + + 18 + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL BETWEEN + col0 + - 92 AND col2 - - + col0 * + + 18 + + 95
----
NULL

query I rowsort
SELECT + col0 * - ( + 93 ) FROM tab2
----
-4278
-5952
-6975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-135
SELECT ALL - 56 AS col0, - MAX( CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-135
SELECT ALL - 56 AS col0, - MAX ( CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab1
----
-56
NULL

query I rowsort
SELECT - 60 * - + col2 FROM tab0
----
2820
5940
600

query I rowsort
SELECT ALL 47 * + - col2 FROM tab1
----
-2773
-3196
-4512

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

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

query I rowsort
SELECT DISTINCT - - 24 * - 29 FROM tab0 cor0
----
-696

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT 26 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT ALL + 12 DIV + col1 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL + 12 / + col1 FROM tab1 AS cor0
----
0
0
2

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

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

query I rowsort
SELECT ALL col1 * + 19 * + col0 FROM tab2 AS cor0
----
44574
93632
95475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - + ( 32 ), 56 AS col2, - col0 + - 38 col0 FROM tab1 AS cor0
----
9 values hashing to 559071847e7170d32af1b0f8050ed1ac

query I rowsort
SELECT ALL + + 95 * + - col2 AS col1 FROM tab0 AS cor0
----
-4465
-9405
-950

query I rowsort
SELECT + col2 + + 10 AS col2 FROM tab2
----
33
50
68

query I rowsort
SELECT + col0 + + + col0 AS col2 FROM tab0
----
174
194
30

query II rowsort
SELECT DISTINCT - col0, + col1 + + 44 AS col2 FROM tab1
----
-51
58
-85
49
-91
91

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

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

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

query I rowsort
SELECT DISTINCT - + col2 + 6 FROM tab1 AS cor0
----
-53
-62
-90

query I rowsort
SELECT - - col1 * 74 + + + col2 FROM tab2 AS cor0 WHERE + 76 > - - col2 * col1 + + 66
----

query I rowsort
SELECT ALL - 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 93 / 89 + 46 = + - col0 + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - 33 ) * + col1 - + - col0 AS col0 FROM tab0 WHERE 49 IS NULL
----

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

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE col2 * + - col1 <= col2
----
10
47
99

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

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

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-161
SELECT CAST( + 1 AS SIGNED ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-161
SELECT CAST ( + 1 AS INTEGER ) AS col1 FROM tab0
----
1
1
1

query II rowsort
SELECT ALL + ( + 18 ) * + - col2, col1 AS col2 FROM tab1
----
-1062
5
-1224
47
-1728
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT - 72 - + 10 * + ( + AVG ( + - col1 ) ) AS col1 FROM tab2 WHERE NOT + - CAST( + col1 AS SIGNED ) - + - 72 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT - 72 - + 10 * + ( + AVG ( + - col1 ) ) AS col1 FROM tab2 WHERE NOT + - CAST ( + col1 AS INTEGER ) - + - 72 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL 59, + col1 FROM tab2
----
59
51
59
67
59
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - + ( - col0 ) col2 FROM tab0
----
-3828
-4268
-660

query I rowsort
SELECT DISTINCT + - 51 * + 15 AS col1 FROM tab1 AS cor0
----
-765

query I rowsort
SELECT - - 44 * - col0 FROM tab2 AS cor0
----
-2024
-2816
-3300

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT - + 93 * MAX( ALL - col1 ) FROM tab1 AS cor0
----
465

skipif mysql # not compatible
query I rowsort label-171
SELECT - + 93 * MAX ( ALL - col1 ) FROM tab1 AS cor0
----
465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + col2 * - - col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

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

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

query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab0 cor0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-176
SELECT DISTINCT 48 DIV + MIN( ALL col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT 48 / + MIN ( ALL col0 ) FROM tab1
----
0

query I rowsort
SELECT - col1 + + - 31 - + 61 FROM tab1 AS cor0
----
-106
-139
-97

query II rowsort
SELECT + - col1 + - col0 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
-141
77
-142
67
-97
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-179
SELECT + ( + + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-179
SELECT + ( + + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL + - 65 - COUNT( - ( - col1 ) ) col2 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-180
SELECT ALL + - 65 - COUNT ( - ( - col1 ) ) col2 FROM tab0 AS cor0
----
-68

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

query I rowsort
SELECT col2 * - 20 FROM tab2
----
-1160
-460
-800

query II rowsort
SELECT col0 AS col1, 89 AS col0 FROM tab1
----
51
89
85
89
91
89

query I rowsort
SELECT ALL - ( + 81 ) * - 7 AS col2 FROM tab0 AS cor0
----
567
567
567

query I rowsort
SELECT DISTINCT - col0 * + 37 AS col1 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT DISTINCT 73 DIV col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT 73 / col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-187
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-187
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * col2 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL + 73 AS col0 FROM tab1 AS cor0 WHERE + col0 <= NULL
----

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

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

query I rowsort
SELECT ALL + col0 * - - col0 * + - 7 * col1 FROM tab1
----
-252875
-254898
-2724449

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

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT MIN ( ALL - col2 ) AS col2 FROM tab0
----
-99

query II rowsort
SELECT + 79, 66 / - col2 FROM tab1 WHERE NOT + + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-195
SELECT + CAST( - - col1 AS SIGNED ), + col2 FROM tab1
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-195
SELECT + CAST ( - - col1 AS INTEGER ), + col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 + - col0 = + col0 + 19 / - 34
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-199
SELECT - ( + - 19 ) * - - COUNT( * ) - + - 66, COUNT( * ) AS col0 FROM tab0 AS cor0
----
123
3

skipif mysql # not compatible
query II rowsort label-199
SELECT - ( + - 19 ) * - - COUNT ( * ) - + - 66, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
123
3

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

query I rowsort
SELECT DISTINCT + 75 + col0 FROM tab1 WHERE NOT + - col0 IS NULL
----
126
160
166

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT - SUM( DISTINCT + - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-202
SELECT - SUM ( DISTINCT + - col0 ) FROM tab2
----
185

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

query I rowsort
SELECT ALL - + col0 + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT + ( 92 ) + + + COUNT( * ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-205
SELECT + ( 92 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT - + col0 * + 67 FROM tab0 AS cor0
----
-1005
-5829
-6499

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT ALL COUNT( * ) AS col0, 77 AS col2 FROM tab1
----
3
77

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL COUNT ( * ) AS col0, 77 AS col2 FROM tab1
----
3
77

query II rowsort
SELECT ALL + 76 + + + col2 AS col0, col0 AS col2 FROM tab0
----
123
15
175
97
86
87

query I rowsort
SELECT - col1 * + 36 AS col0 FROM tab1
----
-1692
-180
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 46 ) col2 FROM tab0
----
46
46
46

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

onlyif mysql # aggregate syntax: 
query II rowsort label-212
SELECT DISTINCT + COUNT( * ) col2, 65 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
3
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-212
SELECT DISTINCT + COUNT ( * ) col2, 65 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
3
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-213
SELECT ALL - 49 * - COUNT( ALL - 36 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL - 49 * - COUNT ( ALL - 36 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - - 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-216
SELECT DISTINCT COUNT( * ) * - - CAST( + - ( + - COUNT( * ) ) AS SIGNED ) FROM tab0
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-217
SELECT - 0 FROM tab1 AS cor0 WHERE NOT CAST( 91 AS SIGNED ) + + + col1 + - col1 BETWEEN NULL AND + - col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-217
SELECT - 0 FROM tab1 AS cor0 WHERE NOT CAST ( 91 AS INTEGER ) + + + col1 + - col1 BETWEEN NULL AND + - col2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-218
SELECT DISTINCT + COUNT( * ) DIV - + MIN( ALL - + 38 ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-218
SELECT DISTINCT + COUNT ( * ) / - + MIN ( ALL - + 38 ) col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT col2 DIV ( 72 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-219
SELECT col2 / ( 72 ) FROM tab0 AS cor0
----
0
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT - 50 * - MIN( ALL - + col0 ) AS col0 FROM tab2 cor0
----
-3750

skipif mysql # not compatible
query I rowsort label-221
SELECT - 50 * - MIN ( ALL - + col0 ) AS col0 FROM tab2 cor0
----
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT - - COUNT( * ) * - 6 * - AVG ( 57 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT - - COUNT ( * ) * - 6 * - AVG ( 57 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT - 54 DIV - COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-223
SELECT - 54 / - COUNT ( * ) FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT - SUM( ALL - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT - SUM ( ALL - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT - SUM( ALL + 8 ) AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT - SUM ( ALL + 8 ) AS col1 FROM tab0
----
-24

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN col2 AND + ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-230
SELECT - - ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL <= ( col1 ) + - + col1
----

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

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

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

query I rowsort
SELECT - 91 * - - 73 FROM tab0 AS cor0
----
-6643
-6643
-6643

query I rowsort
SELECT - 65 + col2 - + 57 AS col1 FROM tab1
----
-26
-54
-63

query I rowsort
SELECT ALL + 79 AS col1 FROM tab1 AS cor0 WHERE - col2 + - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT + MIN( ALL - col1 ) + + 72 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + MIN ( ALL - col1 ) + + 72 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL - 85 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL - 85 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT - MIN( DISTINCT - 73 ) col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-238
SELECT DISTINCT - MIN ( DISTINCT - 73 ) col1 FROM tab2 AS cor0
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT DISTINCT - MIN( ALL - - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT - MIN ( ALL - - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-241
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT col0 + col0 + - + col1 + - + CAST( NULL AS SIGNED ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-241
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT col0 + col0 + - + col1 + - + CAST ( NULL AS INTEGER ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 47 ) + - col2 AS col1 FROM tab0
----
-146
-57
-94

query I rowsort
SELECT col2 + 46 AS col2 FROM tab1
----
105
114
142

query I rowsort
SELECT ALL + 12 * 20 FROM tab1
----
240
240
240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ( - ( + 29 ) ) + + 3 * 97 + - COUNT( ALL col0 ) FROM tab1
----
259

skipif mysql # not compatible
query I rowsort label-246
SELECT ( - ( + 29 ) ) + + 3 * 97 + - COUNT ( ALL col0 ) FROM tab1
----
259

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT + 91 DIV 83 + - 21 AS col1 FROM tab2 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-247
SELECT + 91 / 83 + - 21 AS col1 FROM tab2 AS cor0
----
-20
-20
-20

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

query II rowsort
SELECT DISTINCT + col1, + col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT + COUNT( * ) + - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-250
SELECT + COUNT ( * ) + - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * - 24 col0 FROM tab1
----
-1128
-120
-336

query I rowsort
SELECT DISTINCT 96 * - 98 FROM tab0
----
-9408

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT DISTINCT - 1 DIV SUM( 38 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT - 1 / SUM ( 38 ) AS col1 FROM tab0 cor0
----
0

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

query I rowsort
SELECT ALL - - 4 AS col2 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT ALL + ( - - ( + 35 ) ) * + COUNT( * ), + MAX( DISTINCT + 33 ) AS col0 FROM tab1 cor0
----
105
33

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL + ( - - ( + 35 ) ) * + COUNT ( * ), + MAX ( DISTINCT + 33 ) AS col0 FROM tab1 cor0
----
105
33

query I rowsort
SELECT ( - col0 ) + - 52 AS col2 FROM tab2
----
-116
-127
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT 41 * COUNT( + 66 ) FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT 41 * COUNT ( + 66 ) FROM tab2
----
123

query I rowsort
SELECT col1 * + col0 * 38 + + + col2 AS col0 FROM tab0
----
3785
46217
69436

query I rowsort
SELECT 64 + - - 2 AS col1 FROM tab1
----
66
66
66

query I rowsort
SELECT - col2 + + - col2 + - col0 AS col2 FROM tab1
----
-203
-227
-243

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

query I rowsort
SELECT ALL - ( + + col1 ) + + col1 * - col1 FROM tab0
----
-2
-462
-6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + 60 ) * + + 77 col2 FROM tab0
----
-4620

query I rowsort
SELECT ALL 13 + + - 20 FROM tab2
----
-7
-7
-7

query I rowsort
SELECT ALL - 79 + col2 FROM tab0
----
-32
-69
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT + COUNT( col2 ) + - - MIN( DISTINCT + 76 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + COUNT ( col2 ) + - - MIN ( DISTINCT + 76 ) FROM tab1
----
79

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

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

query II rowsort
SELECT DISTINCT col1 + + col0 * + col1 AS col0, - col0 FROM tab0
----
1296
-15
1848
-87
98
-97

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

query II rowsort
SELECT - col2 * + col1 + col1, + col0 AS col0 FROM tab0 AS cor0
----
-189
87
-3726
15
-98
97

query I rowsort
SELECT DISTINCT + 27 * - - col0 FROM tab0 AS cor0 WHERE col2 > col1
----
2619

query I rowsort
SELECT - col1 + + col0 - + 24 - - col0 + - ( col2 ) * 49 FROM tab1 AS cor0
----
-2750
-3221
-4640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT 90 * - COUNT( * ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-277
SELECT 90 * - COUNT ( * ) FROM tab2 AS cor0
----
-270

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT DISTINCT 35 * ( + 18 ) - COUNT( * ) col1 FROM tab0 AS cor0
----
627

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-279
SELECT DISTINCT 35 * ( + 18 ) - COUNT ( * ) col1 FROM tab0 AS cor0
----
627

query II rowsort
SELECT ALL + - col1 * - 27 - + 99, col2 FROM tab2 AS cor0
----
1278
23
1710
58
1980
40

query I rowsort
SELECT + 4 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
2820
3480
38412

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT 13 AS col1, MAX( DISTINCT ( - 61 ) ) * COUNT( ALL - col1 ) FROM tab1 AS cor0
----
13
-183

skipif mysql # not compatible
query II rowsort label-282
SELECT 13 AS col1, MAX ( DISTINCT ( - 61 ) ) * COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
13
-183

query II rowsort
SELECT 63 * + + col2, + col2 FROM tab2
----
1449
23
2520
40
3654
58

query I rowsort
SELECT ALL - ( + 68 ) - + - col1 FROM tab1
----
-21
-54
-63

query I rowsort
SELECT col1 - + col1 * + col1 AS col1 FROM tab1
----
-182
-20
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL ( COUNT( * ) ) * + 18 AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL ( COUNT ( * ) ) * + 18 AS col2 FROM tab2
----
54

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL AND ( NULL ) IS NULL
----

query I rowsort
SELECT + col0 - + col0 + col1 AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 * 8 + - ( - - col2 ) + - + col0 / + + 69 >= NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-291
SELECT DISTINCT ( + + CAST( NULL AS DECIMAL ) ) AS col1, + 32 AS col0 FROM tab2 AS cor0
----
NULL
32

skipif mysql # not compatible
query II rowsort label-291
SELECT DISTINCT ( + + CAST ( NULL AS REAL ) ) AS col1, + 32 AS col0 FROM tab2 AS cor0
----
NULL
32

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-293
SELECT - col2 * col2 col1 FROM tab1 WHERE NOT + col1 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-293
SELECT - col2 * col2 col1 FROM tab1 WHERE NOT + col1 * + CAST ( NULL AS REAL ) IS NULL
----

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

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

query I rowsort
SELECT ALL - - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> 77
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 55 * + col2 - - col0 + - col0 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-297
SELECT 5 DIV + + ( - - COUNT( * ) ), + MIN( ( + + col1 ) ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-297
SELECT 5 / + + ( - - COUNT ( * ) ), + MIN ( ( + + col1 ) ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
1
3

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + 59
----

query II rowsort
SELECT 42 AS col2, - 87 AS col1 FROM tab0 AS cor0
----
42
-87
42
-87
42
-87

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

skipif mysql # not compatible
query I rowsort label-301
SELECT MAX ( - 47 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-302
SELECT ALL - CAST( NULL AS SIGNED ) * + MIN( DISTINCT - + 27 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL - CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT - + 27 ) AS col0 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT 67 * + ( - 15 ), - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-1005
-9

skipif mysql # not compatible
query II rowsort label-304
SELECT 67 * + ( - 15 ), - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-1005
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT COUNT( * ) FROM tab2 WHERE + 31 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-305
SELECT COUNT ( * ) FROM tab2 WHERE + 31 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-306
SELECT ALL + ( + 50 ) + + - CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
-37
-47
35

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + ( + 50 ) + + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
-37
-47
35

query I rowsort
SELECT + col2 + + col1 * + ( col0 ) * + 18 + - 88 + + 57 AS col1 FROM tab0 AS cor0
----
1814
21886
32865

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + - col2 AND ( - - ( - + 69 ) )
----

query I rowsort
SELECT ALL col2 * + col0 + + + 95 * + col1 * 50 + + col0 FROM tab0
----
100707
14450
385470

query I rowsort
SELECT + ( 14 ) FROM tab2
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-311
SELECT + col1 DIV + col1 - - + col1 AS col1 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-311
SELECT + col1 / + col1 - - + col1 AS col1 FROM tab2 cor0
----
52
68
78

query I rowsort
SELECT ALL col2 + - 92 - 73 AS col1 FROM tab1 AS cor0
----
-106
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL 47 + - + 7 + - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----
40

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL 47 + - + 7 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT COUNT( * ) - + 78 col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-314
SELECT COUNT ( * ) - + 78 col1 FROM tab1 AS cor0
----
-75

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

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

query I rowsort
SELECT DISTINCT + + col1 - - col2 + - + col2 - + 33 AS col0 FROM tab1 AS cor0
----
-19
-28
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 90
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 >= ( - col2 + 79 * col1 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT DISTINCT + 87 + + - 95 + + + ( + COUNT( * ) ) + - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT + 87 + + - 95 + + + ( + COUNT ( * ) ) + - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT DISTINCT SUM( + - 64 ) AS col2 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT SUM ( + - 64 ) AS col2 FROM tab2 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT + + col1 / - 49 FROM tab1 WHERE NOT + col0 + col2 NOT BETWEEN CAST( ( - 46 ) AS SIGNED ) AND 52 / - col0 * + ( + col2 ) + col2 + 51 * - col2 + + - col0
----

skipif mysql # not compatible
query I rowsort label-321
SELECT + + col1 / - 49 FROM tab1 WHERE NOT + col0 + col2 NOT BETWEEN CAST ( ( - 46 ) AS INTEGER ) AND 52 / - col0 * + ( + col2 ) + col2 + 51 * - col2 + + - col0
----

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

query I rowsort
SELECT ALL + ( + + 46 ) FROM tab1
----
46
46
46

query I rowsort
SELECT ALL + - ( + col1 ) - - ( - + 80 ) + + - 82 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT + COUNT( * ), - COUNT( ALL + 51 ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-325
SELECT + COUNT ( * ), - COUNT ( ALL + 51 ) AS col0 FROM tab0
----
3
-3

query I rowsort
SELECT col2 * + - col2 * + col0 FROM tab1
----
-295885
-420784
-470016

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * col0 > NULL
----

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

query II rowsort
SELECT - ( + + 67 ) AS col2, 18 AS col1 FROM tab0
----
-67
18
-67
18
-67
18

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 BETWEEN 56 + - col0 * - - 7 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + 69 * SUM( + col0 ) FROM tab2 AS cor0
----
12765

skipif mysql # not compatible
query I rowsort label-331
SELECT + 69 * SUM ( + col0 ) FROM tab2 AS cor0
----
12765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT DISTINCT col2 / + CAST( - 51 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * 7 )
----

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT col2 / + CAST ( - 51 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * 7 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 25 * - col2 col2 FROM tab2 AS cor0
----
-108750
-26450
-64000

query I rowsort
SELECT ALL 20 * 84 AS col1 FROM tab2
----
1680
1680
1680

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

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT - 35 DIV 75 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-336
SELECT - 35 / 75 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-337
SELECT 18 AS col0, - COUNT( * ) FROM tab2
----
18
-3

skipif mysql # not compatible
query II rowsort label-337
SELECT 18 AS col0, - COUNT ( * ) FROM tab2
----
18
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 + + col0 col1 FROM tab2
----
129
147
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 35 ) col0 FROM tab2
----
35
35
35

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 84 = NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT + 6 * - + COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-343
SELECT + 6 * - + COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT + 93 AS col0 FROM tab2 AS cor0 WHERE - 5 IS NULL
----

query I rowsort
SELECT col1 - - 88 AS col1 FROM tab0 cor0
----
109
169
89

query I rowsort
SELECT - 20 - + - col0 FROM tab2 AS cor0
----
26
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + - 99 - col2 col2 FROM tab2
----
-110
-75
-92

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 15 + 14 col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT + col2 * - col1 + - 30 - + col2 * 43 FROM tab2 AS cor0
----
-2192
-4830
-6410

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

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

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

skipif mysql # not compatible
query II rowsort label-353
SELECT - + ( + COUNT ( * ) ), - MAX ( DISTINCT + 66 ) AS col2 FROM tab1 cor0
----
-3
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( - 84 ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT DISTINCT - SUM( + 3 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - SUM ( + 3 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col2 * col2 col1 FROM tab0
----
178929
2100
9801

query II rowsort
SELECT ALL + 50 * - col1 AS col0, 56 FROM tab1
----
-2350
56
-250
56
-700
56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-361
SELECT * FROM tab0 WHERE NOT ( NOT + CAST( - 27 AS SIGNED ) = - col0 )
----

skipif mysql # not compatible
query III rowsort label-361
SELECT * FROM tab0 WHERE NOT ( NOT + CAST ( - 27 AS INTEGER ) = - col0 )
----

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

query I rowsort
SELECT - ( + + 92 ) FROM tab2 cor0
----
-92
-92
-92

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 90 col0, + 95 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to d465aa41f89778875550cfacd2e45844

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT MIN( DISTINCT + - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-367
SELECT MIN ( DISTINCT + - col0 ) AS col1 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND NULL
----

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

query I rowsort
SELECT ALL - + col0 - 20 AS col0 FROM tab2 AS cor0 WHERE NOT 57 IS NULL
----
-66
-84
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT DISTINCT - 55 * - COUNT( * ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT - 55 * - COUNT ( * ) FROM tab1 AS cor0
----
165

query I rowsort
SELECT ALL + 6 + 58 AS col2 FROM tab2 AS cor0
----
64
64
64

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT 33 * - COUNT( * ) AS col1 FROM tab2 WHERE + col0 <> - col2 + - ( - ( - 32 ) ) + + 58
----
-99

skipif mysql # not compatible
query I rowsort label-376
SELECT 33 * - COUNT ( * ) AS col1 FROM tab2 WHERE + col0 <> - col2 + - ( - ( - 32 ) ) + + 58
----
-99

query I rowsort
SELECT + col2 + 81 FROM tab1
----
140
149
177

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-378
SELECT - col1 + - 61 * - col0 + - CAST ( NULL AS INTEGER ) * - + ( + - 17 ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 75 * col1 col2 FROM tab0
----
1596
6156
76

query I rowsort
SELECT + 51 + - ( + + col0 ) FROM tab1
----
-34
-40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL COUNT( * ) + 90 AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL COUNT ( * ) + 90 AS col1 FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT ALL - col1 DIV + 95 - - + 7 AS col0 FROM tab1
----
7
7
7

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL - col1 / + 95 - - + 7 AS col0 FROM tab1
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-383
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-383
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) = NULL )
----

query I rowsort
SELECT + 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL col2 * + + 53 FROM tab0 AS cor0
----
2491
5247
530

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-388
SELECT - - COUNT( - - col0 ) DIV + - 20 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-388
SELECT - - COUNT ( - - col0 ) / + - 20 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * + 67 AS col0 FROM tab2 cor0
----
-1541
-2680
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT DISTINCT 22 DIV - - 80 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT 22 / - - 80 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0, - col0 AS col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT ALL + MAX( + 19 ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + MAX ( + 19 ) AS col0 FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * - - 80 + col0 * + - 67 IS NOT NULL
----

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

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

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

query I rowsort
SELECT + 88 * + + 2 FROM tab1
----
176
176
176

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT SUM( - - col1 ) * - COUNT( * ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT SUM ( - - col1 ) * - COUNT ( * ) FROM tab0
----
-309

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

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

query I rowsort
SELECT + col0 * - - col0 AS col0 FROM tab0 cor0
----
225
7569
9409

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

query II rowsort
SELECT + + col2 AS col0, + col2 * + - col0 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT + 82 - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73

skipif mysql # not compatible
query I rowsort label-404
SELECT + 82 - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-405
SELECT - col2 + + col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 / + col0 - 24 + + col0 - + - 39 + col0 - - col2 AND + + CAST( NULL AS DECIMAL ) + - 88
----

skipif mysql # not compatible
query I rowsort label-405
SELECT - col2 + + col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 / + col0 - 24 + + col0 - + - 39 + col0 - - col2 AND + + CAST ( NULL AS REAL ) + - 88
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-406
SELECT + col2 col0 FROM tab0 AS cor0 WHERE - col0 IS NULL AND CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col0 + ( + - col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1536
-3289
-483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 * - + 93 + col1 + + 45 col1 FROM tab1 AS cor0
----
6188
6197
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT + MIN( ALL - 0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT + MIN ( ALL - 0 ) FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - ( - 36 ) AS col0 FROM tab0
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT col2 DIV - + col0 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-411
SELECT col2 / - + col0 AS col0 FROM tab0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-412
SELECT ALL - col2 AS col1, 42 - CAST( NULL AS SIGNED ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-412
SELECT ALL - col2 AS col1, 42 - CAST ( NULL AS INTEGER ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-413
SELECT DISTINCT + 45 AS col0, - MIN( + CAST( + 0 AS SIGNED ) ) AS col0 FROM tab1
----
45
0

skipif mysql # not compatible
query II rowsort label-413
SELECT DISTINCT + 45 AS col0, - MIN ( + CAST ( + 0 AS INTEGER ) ) AS col0 FROM tab1
----
45
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 67 col1, + col2 AS col1 FROM tab1 WHERE - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 89 FROM tab0
----
104
176
186

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

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

query II rowsort
SELECT + col2 - - + 0 * - col1, col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
59
7230
68
8328
96
2615

query II rowsort
SELECT DISTINCT + + col0 + + col1 + - 23, + col1 FROM tab1 AS cor0
----
115
47
42
14
67
5

query I rowsort
SELECT + 51 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
4947
5066
6239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT ALL 8 AS col0 FROM tab1 WHERE + 47 * CAST( col2 AS SIGNED ) + - col2 * + col0 <= - col0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL 8 AS col0 FROM tab1 WHERE + 47 * CAST ( col2 AS INTEGER ) + - col2 * + col0 <= - col0
----
8
8
8

query I rowsort
SELECT + col0 * + 91 + - col1 FROM tab1 WHERE - col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT ALL MIN( ALL CAST( col2 AS SIGNED ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL MIN ( ALL CAST ( col2 AS INTEGER ) ) FROM tab2
----
23

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

query I rowsort
SELECT ALL + ( + col2 ) FROM tab1 WHERE NOT col2 > NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT SUM( - col0 ) FROM tab1 WHERE NOT - col1 = ( - col2 )
----
-227

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT SUM ( - col0 ) FROM tab1 WHERE NOT - col1 = ( - col2 )
----
-227

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT NULL >= ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ( + SUM( + ( 85 ) ) ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-431
SELECT ( + SUM ( + ( 85 ) ) ) FROM tab1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-432
SELECT CAST( COUNT( col1 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-432
SELECT CAST ( COUNT ( col1 ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT COUNT( DISTINCT + 14 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-433
SELECT COUNT ( DISTINCT + 14 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 + 0 col1 FROM tab0
----
-34

query III rowsort
SELECT * FROM tab1 WHERE + 66 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 96 + + col2 BETWEEN ( - col2 ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-437
SELECT DISTINCT MIN( - ( - CAST( NULL AS SIGNED ) ) ) * ( - 30 ) + - 55 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) * ( - 30 ) + - 55 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 58 * - col1 + 6 FROM tab1
----
-2720
-284
-806

query I rowsort
SELECT - 69 FROM tab1 WHERE NOT NULL NOT IN ( 22 + + col0 * 84 )
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col2 + - 1
----

query I rowsort
SELECT 0 + col0 * col0 AS col0 FROM tab1 WHERE ( 70 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT - - 25 * SUM( - 98 ) FROM tab0 AS cor0
----
-7350

skipif mysql # not compatible
query I rowsort label-444
SELECT - - 25 * SUM ( - 98 ) FROM tab0 AS cor0
----
-7350

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

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

query I rowsort
SELECT DISTINCT + ( + ( + col0 ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + col2 + 42 * ( col0 ) AS col1 FROM tab2 AS cor0
----
1955
2728
3208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT - MAX( col1 ) * ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
243

skipif mysql # not compatible
query I rowsort label-449
SELECT - MAX ( col1 ) * ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
243

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + ( col2 ) - ( col1 ) / 50 ) < ( col0 )
----
47
99

query I rowsort
SELECT + col2 + col2 FROM tab1 AS cor0 WHERE + col0 + + 94 * + 76 NOT BETWEEN NULL AND 13 * col0
----
118
136
192

query I rowsort
SELECT + 16 * + col1 + col1 AS col2 FROM tab0
----
1377
17
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 28 + col0 * - col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT ALL - COUNT( * ) + 2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL - COUNT ( * ) + 2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT CAST( + + col1 AS SIGNED ) + - col0 * CAST( col0 * - 14 AS SIGNED ) FROM tab0
----
105987
131727
3231

skipif mysql # not compatible
query I rowsort label-456
SELECT CAST ( + + col1 AS INTEGER ) + - col0 * CAST ( col0 * - 14 AS INTEGER ) FROM tab0
----
105987
131727
3231

query I rowsort
SELECT + 38 FROM tab1 WHERE + 33 IS NOT NULL
----
38
38
38

query I rowsort
SELECT - col1 + + - 8 AS col2 FROM tab2
----
-59
-75
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT - 19 * 0 + + CAST( - 55 AS SIGNED ) * col1 AS col1 FROM tab1 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-459
SELECT - 19 * 0 + + CAST ( - 55 AS INTEGER ) * col1 AS col1 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT col1 + - col0 + - 97 * 24 FROM tab1
----
-2365
-2372
-2408

query I rowsort
SELECT col0 + - - 15 AS col2 FROM tab0
----
102
112
30

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL - 39 + + SUM( ALL col2 ) FROM tab1
----
184

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - 39 + + SUM ( ALL col2 ) FROM tab1
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT - + 40 + - MAX( DISTINCT 96 ) - 11 AS col0 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT - + 40 + - MAX ( DISTINCT 96 ) - 11 AS col0 FROM tab0 AS cor0
----
-147

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

skipif mysql # not compatible
query I rowsort label-464
SELECT - CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col1 * - col0 - col1 * + col1 FROM tab1 AS cor0
----
-450
-6486
-910

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

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

query II rowsort
SELECT 64 AS col0, col2 * - - col0 FROM tab0
----
64
705
64
870
64
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - MIN( ALL col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-468
SELECT - MIN ( ALL col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab0, tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab0, tab1 AS cor0
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT 66 * COUNT( * ) * 26 FROM tab2 AS cor0
----
5148

skipif mysql # not compatible
query I rowsort label-471
SELECT 66 * COUNT ( * ) * 26 FROM tab2 AS cor0
----
5148

onlyif mysql # DIV for integer division: 
query II rowsort label-472
SELECT ALL col2, 12 DIV - col0 + 50 AS col2 FROM tab0 AS cor0
----
10
50
47
50
99
50

skipif mysql # not compatible
query II rowsort label-472
SELECT ALL col2, 12 / - col0 + 50 AS col2 FROM tab0 AS cor0
----
10
50
47
50
99
50

query I rowsort
SELECT 81 * - 55 * + col2 * + col2 AS col1 FROM tab2 cor0
----
-14986620
-2356695
-7128000

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 94 col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT COUNT( + 50 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-476
SELECT COUNT ( + 50 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - COUNT( * ) * 14 AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - COUNT ( * ) * 14 AS col1 FROM tab0
----
-42

query III rowsort
SELECT * FROM tab0 WHERE - col1 IS NULL AND 56 + 39 / 61 IS NOT NULL
----

query II rowsort
SELECT col0 * - col0, + col2 AS col2 FROM tab1
----
-2601
96
-7225
59
-8281
68

query I rowsort
SELECT ALL col0 + col2 + - col0 * - 12 * - col2 AS col1 FROM tab1
----
-58605
-60036
-74097

query I rowsort
SELECT 3 * col0 * 78 FROM tab1
----
11934
19890
21294

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT + MIN( DISTINCT - + 76 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT + MIN ( DISTINCT - + 76 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-483
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * + + col0 + + 55 IN ( + CAST( 5 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-483
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * + + col0 + + 55 IN ( + CAST ( 5 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 35 + + + col1 AS col1 FROM tab2 AS cor0
----
102
112
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( + - 39 + + + 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL + - 26 + 55 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 86 IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + - 26 + 55 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 86 IS NULL
----
29

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-489
SELECT - + ( - col1 ) DIV + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-489
SELECT - + ( - col1 ) / + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 * + col2 / + 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 81 * + 44 FROM tab2
----
3564
3564
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT DISTINCT + + MAX( DISTINCT 14 ) + + + 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT + + MAX ( DISTINCT 14 ) + + + 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
87

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

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

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab0 WHERE ( col0 + 80 - - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + - + col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT + ( - - 42 ) * col1 AS col2 FROM tab1 AS cor0
----
1974
210
588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + + col1 + - 62 * col0 col0 FROM tab2 AS cor0
----
-2857
-3981
-4642

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT + col1 DIV col0 + - col2 + ( - - 10 ) DIV 99 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-498
SELECT + col1 / col0 + - col2 + ( - - 10 ) / 99 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT ALL col2 - + + col2 DIV col2 + - 22 AS col1 FROM tab0 AS cor0
----
-13
24
76

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL col2 - + + col2 / col2 + - 22 AS col1 FROM tab0 AS cor0
----
-13
24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT DISTINCT + COUNT( * ) * 5 * 58 * + + COUNT( 89 ) FROM tab2
----
2610

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT + COUNT ( * ) * 5 * 58 * + + COUNT ( 89 ) FROM tab2
----
2610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT ALL ( - col0 ) / col2 * col0 * + + 6 * + 33 - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL ( - col0 ) / col2 * col0 * + + 6 * + 33 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 34 AS col1 FROM tab2 WHERE ( + ( - 44 ) ) IN ( - col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-507
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( - - col2 AS SIGNED ) * + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-507
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) * + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-508
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-508
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL + 20 * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-180

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL + 20 * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-180

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-512
SELECT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN 85 AND - CAST( - + 47 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-512
SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN 85 AND - CAST ( - + 47 AS INTEGER )
----
0

query I rowsort
SELECT + 51 * + col1 * + col0 AS col0 FROM tab0 AS cor0
----
4947
61965
93177

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT SUM( ALL 18 ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-514
SELECT SUM ( ALL 18 ) FROM tab2 cor0
----
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * + + ( - 48 ) ) NOT BETWEEN 97 AND ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-516
SELECT + SUM( ( + col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 - - 69 + col2 * + col1 / col0 * - 54 - CAST( NULL AS SIGNED ) IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-516
SELECT + SUM ( ( + col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 - - 69 + col2 * + col1 / col0 * - 54 - CAST ( NULL AS INTEGER ) IS NOT NULL
----
195

query II rowsort
SELECT + + 56 * - col1 + col1 AS col2, 39 FROM tab2 cor0
----
-2805
39
-3685
39
-4235
39

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT - + CAST( + 87 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( - + col0 AS SIGNED ) + 20 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-520
SELECT - + CAST ( + 87 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( - + col0 AS INTEGER ) + 20 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-521
SELECT ALL - CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + + 32 * + 99 * - col2 + + col0 * - col1 )
----

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

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

skipif mysql # not compatible
query I rowsort label-524
SELECT - ( + COUNT ( * ) ) FROM tab2 WHERE - - 91 BETWEEN NULL AND col0
----
0

query I rowsort
SELECT + 93 + + col1 FROM tab0
----
114
174
94

query I rowsort
SELECT DISTINCT ( + + 94 ) + col2 + + 99 + + 88 AS col2 FROM tab1 AS cor0
----
340
349
377

query I rowsort
SELECT - col2 + + + 97 AS col2 FROM tab2 AS cor0
----
39
57
74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT - - COUNT( * ) col0 FROM tab0 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-530
SELECT - - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - col0 - ( + - 77 ) AS col2 FROM tab1 AS cor0
----
-14
-8
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT + SUM( - - 26 ) + - - MIN( ALL + 88 ) AS col2 FROM tab2 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT + SUM ( - - 26 ) + - - MIN ( ALL + 88 ) AS col2 FROM tab2 AS cor0
----
166

query I rowsort
SELECT col0 - - - col0 + + 75 FROM tab1 cor0
----
75
75
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 79 * - - 58 <= - ( - + col0 )
----

query I rowsort
SELECT DISTINCT + + 56 AS col2 FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT - 42 - - col2 FROM tab0 AS cor0
----
-32
5
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > 31
----

query I rowsort
SELECT + 57 * 61 + + 34 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( 21 ) FROM tab0
----
21
21
21

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

query II rowsort
SELECT DISTINCT + col0, - col0 * + 61 + + col1 + col2 AS col1 FROM tab0
----
15
-787
87
-5276
97
-5817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT + col2 + + CAST( - 0 AS SIGNED ) - + - 81 AS col2 FROM tab0
----
128
180
91

skipif mysql # not compatible
query I rowsort label-543
SELECT + col2 + + CAST ( - 0 AS INTEGER ) - + - 81 AS col2 FROM tab0
----
128
180
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - 60 ) * - col0 * + col2 BETWEEN - col0 AND - - 64 / + ( - 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 col0, - col0 FROM tab2
----
41
-46
41
-64
41
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT - col1 DIV - - 78 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-547
SELECT - col1 / - - 78 FROM tab0
----
-1
0
0

query I rowsort
SELECT col1 * - 89 AS col0 FROM tab2
----
-4539
-5963
-6853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * + 71 col1 FROM tab1
----
3124
3124
3124

onlyif mysql # DIV for integer division: 
query I rowsort label-550
SELECT ALL ( + + 8 ) DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL ( + + 8 ) / + col0 FROM tab0
----
0
0
0

query II rowsort
SELECT col2 AS col0, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT ALL + ( - - col1 ) DIV + + col1 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + ( - - col1 ) / + + col1 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-553
SELECT ALL + 29 / - CAST( NULL AS SIGNED ) + + 92, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-553
SELECT ALL + 29 / - CAST ( NULL AS INTEGER ) + + 92, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + 36 * - COUNT( * ) col1 FROM tab0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-554
SELECT + 36 * - COUNT ( * ) col1 FROM tab0
----
-108

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT 41 IS NULL
----
46
64
75

query I rowsort
SELECT 36 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( + 35 - col0 + - col1 ) AND + col0 * + 80
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + col2 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 14 AS col2 FROM tab0 cor0 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT col2 + - + 62 AS col1 FROM tab2
----
-22
-39
-4

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

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

query I rowsort
SELECT DISTINCT col1 + - 40 AS col0 FROM tab1
----
-26
-35
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-562
SELECT + 24 FROM tab1 WHERE NULL IN ( - - col1, + col1 * CAST( - col2 AS SIGNED ), col1 * 67 / - - 25 / 77 )
----

skipif mysql # not compatible
query I rowsort label-562
SELECT + 24 FROM tab1 WHERE NULL IN ( - - col1, + col1 * CAST ( - col2 AS INTEGER ), col1 * 67 / - - 25 / 77 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * 15 col1 FROM tab2 WHERE + 24 > NULL
----

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

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

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

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

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

query I rowsort
SELECT - ( col2 ) * - + col2 * col2 + + 82 FROM tab0
----
103905
1082
970381

query I rowsort
SELECT col0 * - + col1 + - 35 FROM tab2
----
-2381
-4963
-5060

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-570
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) / col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-570
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / col0 IS NOT NULL
----

query II rowsort
SELECT + + col2 AS col1, 99 * + + 47 FROM tab1 AS cor0
----
59
4653
68
4653
96
4653

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT DISTINCT - - col0 - + 37 DIV + - 27 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - - col0 - + 37 / + - 27 FROM tab1 AS cor0
----
52
86
92

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

query I rowsort
SELECT - col0 / + 73 + col0 / 55 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT 82 * - col1 - + 14 + + - CAST( + ( - 39 ) AS SIGNED ) * + col1 FROM tab1 AS cor0 WHERE + 26 + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-575
SELECT 82 * - col1 - + 14 + + - CAST ( + ( - 39 ) AS INTEGER ) * + col1 FROM tab1 AS cor0 WHERE + 26 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - 96 FROM tab0 AS cor0
----
-81
-9
1

query I rowsort
SELECT ALL - 71 - + col2 FROM tab0 AS cor0
----
-118
-170
-81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 97 ) < 85 * + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT DISTINCT ( + 82 ) * MAX( + 36 ) - - - 63 - - - COUNT( * ) FROM tab0
----
2886

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT ( + 82 ) * MAX ( + 36 ) - - - 63 - - - COUNT ( * ) FROM tab0
----
2886

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 - + - col0 + + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT MIN( ALL - 80 ) AS col0 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-582
SELECT MIN ( ALL - 80 ) AS col0 FROM tab1
----
-80

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT COUNT( * ) DIV + + COUNT( DISTINCT col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT COUNT ( * ) / + + COUNT ( DISTINCT col2 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT - ( - ( - 55 ) ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE col0 * + col1 * col1 > 61
----
59
68
96

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

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

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

query I rowsort
SELECT - ( + col1 ) * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT ALL + 66 DIV 52 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + 66 / 52 AS col2 FROM tab1 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT - - 16 * + col1 FROM tab0 AS cor0
----
1296
16
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT DISTINCT CAST( - MAX( ALL - 73 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT CAST ( - MAX ( ALL - 73 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT - 6 * MAX( col1 ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-594
SELECT - 6 * MAX ( col1 ) FROM tab1 AS cor0
----
-282

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

query I rowsort
SELECT - 70 FROM tab2 WHERE ( NULL ) IN ( - col2, 77 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT 8 + ( col0 ) + + col2 DIV ( + - col2 ) * 36 * + 20 + - + col2 AS col2 FROM tab1
----
-686
-689
-757

skipif mysql # not compatible
query I rowsort label-597
SELECT 8 + ( col0 ) + + col2 / ( + - col2 ) * 36 * + 20 + - + col2 AS col2 FROM tab1
----
-686
-689
-757

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + col1 col2, 98 - 40 + + col0 * + col0 FROM tab0
----
100
9467
128
283
31
7627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 + - + col0 col1 FROM tab2
----
-65
-83
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT ALL + col0 + + - CAST( - 68 AS SIGNED ) FROM tab0 AS cor0
----
155
165
83

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + col0 + + - CAST ( - 68 AS INTEGER ) FROM tab0 AS cor0
----
155
165
83

query III rowsort
SELECT * FROM tab1 WHERE ( - + col2 ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 85 - - col1 * 62 FROM tab2
----
3247
4239
4859

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-604
SELECT ALL col0 DIV + CAST( + 86 AS SIGNED ) + + + 34 FROM tab1
----
34
34
35

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL col0 / + CAST ( + 86 AS INTEGER ) + + + 34 FROM tab1
----
34
34
35

query I rowsort
SELECT + + 21 FROM tab0 AS cor0 WHERE 50 + col1 IS NULL
----

query I rowsort
SELECT - col2 * + 48 - - 91 FROM tab2 AS cor0
----
-1013
-1829
-2693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab1 AS cor0 WHERE NOT ( 87 ) IS NOT NULL
----

query I rowsort
SELECT + - 89 AS col2 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + + col0 * + - col0 * - - 25 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 * + - col1 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 * 38 FROM tab2
----
-1748
-2432
-2850

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 74
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT - COUNT( * ) * + 94 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT - COUNT ( * ) * + 94 FROM tab0
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT - 24 DIV - 61 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-616
SELECT - 24 / - 61 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT 95 * - + MAX( + ( + 97 ) ) FROM tab2 AS cor0
----
-9215

skipif mysql # not compatible
query I rowsort label-617
SELECT 95 * - + MAX ( + ( + 97 ) ) FROM tab2 AS cor0
----
-9215

query II rowsort
SELECT ALL - col2 AS col2, col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT DISTINCT - MAX( - 64 ) FROM tab1 AS cor0 WHERE NULL IN ( - col1 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - MAX ( - 64 ) FROM tab1 AS cor0 WHERE NULL IN ( - col1 + + col2 )
----
NULL

query I rowsort
SELECT 94 * - col1 FROM tab2 AS cor0
----
-4794
-6298
-7238

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

query I rowsort
SELECT ALL col2 + + ( + col0 ) AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL 37 + - 5 * - 80 FROM tab2
----
437
437
437

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ( - ( + - COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-624
SELECT ( - ( + - COUNT ( * ) ) ) FROM tab2
----
3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 16 IS NOT NULL
----

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

skipif mysql # not compatible
query III rowsort label-626
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) * col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT DISTINCT - col1 * col2 DIV - col2 AS col2 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT - col1 * col2 / - col2 AS col2 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT col1 * - + col2 + + + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT ALL - - ( + + col0 ) * + + col2 AS col2 FROM tab0 cor0
----
705
870
9603

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

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

query I rowsort
SELECT + col1 + - - col0 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + - col1 + col2 IN ( - col0 * col0 + 36 / - col0 + - col0 )
----

query I rowsort
SELECT col0 + + 58 * + - col2 AS col2 FROM tab0 AS cor0
----
-2711
-493
-5645

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT - 29 * + COUNT( * ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-634
SELECT - 29 * + COUNT ( * ) FROM tab1
----
-87

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

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

query I rowsort
SELECT + col2 * 30 FROM tab2
----
1200
1740
690

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

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

query I rowsort
SELECT ALL col1 + + 16 AS col0 FROM tab0
----
17
37
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-639
SELECT ALL 23 * - 42 * - col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL 23 * - 42 * - col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT col1 DIV - 65 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-640
SELECT col1 / - 65 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL + 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-642
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON ( NULL ) IS NOT NULL OR CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-642
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON ( NULL ) IS NOT NULL OR CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

query I rowsort
SELECT ALL 51 AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT SUM( - + 2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-645
SELECT SUM ( - + 2 ) FROM tab2 AS cor0
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT - + CAST( + 60 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

skipif mysql # not compatible
query I rowsort label-647
SELECT - + CAST ( + 60 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 40 AS col1, + col0 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col2 AS col0, - col1 FROM tab0 AS cor0 WHERE NOT 57 - - col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT 65 AS col0, - COUNT( * ) col2 FROM tab1 AS cor0
----
65
-3

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

query I rowsort
SELECT ALL - + col0 * - - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - MAX( DISTINCT - + col0 ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-652
SELECT - MAX ( DISTINCT - + col0 ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15

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

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

query II rowsort
SELECT DISTINCT 91 * - col1 AS col2, - 41 FROM tab2 AS cor0
----
-4641
-41
-6097
-41
-7007
-41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT COUNT( DISTINCT 77 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-656
SELECT COUNT ( DISTINCT 77 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT - SUM( + + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-657
SELECT - SUM ( + + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT + - ( ( MAX( + col2 ) ) ) * + + 57 AS col2 FROM tab0 AS cor0
----
-5643

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT + - ( ( MAX ( + col2 ) ) ) * + + 57 AS col2 FROM tab0 AS cor0
----
-5643

query II rowsort
SELECT DISTINCT ( - 72 ) * 99 AS col1, 43 FROM tab0 AS cor0
----
-7128
43

query II rowsort
SELECT DISTINCT - + 78 * + col1 * + col0, col0 AS col0 FROM tab2 AS cor0
----
-182988
46
-384384
64
-391950
75

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

query II rowsort
SELECT ALL + col0 * - col2 + col0 AS col1, 97 + 70 * + + col0 * col2 AS col2 FROM tab2 AS cor0
----
-1012
74157
-2496
179297
-4275
304597

query II rowsort
SELECT DISTINCT 65 AS col2, + 4 FROM tab1 AS cor0
----
65
4

query I rowsort
SELECT DISTINCT 67 * + col1 - + 71 + + 61 - + + 79 + - col0 FROM tab1 AS cor0
----
161
2969
798

query I rowsort
SELECT 92 - - 51 AS col2 FROM tab1 AS cor0
----
143
143
143

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-667
SELECT ALL CAST( NULL AS DECIMAL ) + - - col0 AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-667
SELECT ALL CAST ( NULL AS REAL ) + - - col0 AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT COUNT( * ) + + 32 col1 FROM tab1
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-668
SELECT DISTINCT COUNT ( * ) + + 32 col1 FROM tab1
----
35

query I rowsort
SELECT + 1 * + col0 + + - col0 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT col1 + - col1 AS col1, col2 * + ( + col0 ) + + col2 * + col2 FROM tab2
----
0
1587
0
4160
0
7714

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-671
SELECT + 64 / - - 47 + 40 * - - CAST ( NULL AS INTEGER ) * + + col2 * + col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 * 91 + - col1 FROM tab2 AS cor0
----
2107
2117
2133

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

onlyif mysql # aggregate syntax: 
query II rowsort label-674
SELECT DISTINCT + COUNT( * ) AS col2, + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 / - 53 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-674
SELECT DISTINCT + COUNT ( * ) AS col2, + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 / - 53 IS NULL
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-675
SELECT - 90 DIV - COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-675
SELECT - 90 / - COUNT ( * ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT ALL 70 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - 38 + - col1 * + col1 col1 FROM tab0 AS cor0
----
-5991
2865
3685

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

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

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

query I rowsort
SELECT ALL + + 73 AS col1 FROM tab0 AS cor0
----
73
73
73

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - 65 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 22 IS NOT NULL
----

query II rowsort
SELECT + 4, + col2 FROM tab2
----
4
23
4
40
4
58

query II rowsort
SELECT DISTINCT col1, ( ( col1 ) ) FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL ( - 30 ) AS col2 FROM tab0
----
-30
-30
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-689
SELECT + 94 col2, 9, - CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab2
----
9 values hashing to d8b4f13aae2f0b6da5867d0a1d97633e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-689
SELECT + 94 col2, 9, - CAST ( NULL AS REAL ) + col2 AS col1 FROM tab2
----
9 values hashing to d8b4f13aae2f0b6da5867d0a1d97633e

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL 59 + - MAX( 48 ) col0 FROM tab2
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-690
SELECT ALL 59 + - MAX ( 48 ) col0 FROM tab2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT - col1 * - + CAST( + - 74 AS SIGNED ) AS col2 FROM tab2
----
-3774
-4958
-5698

skipif mysql # not compatible
query I rowsort label-691
SELECT - col1 * - + CAST ( + - 74 AS INTEGER ) AS col2 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT - col0 * - col0 * ( col0 ) AS col0 FROM tab0
----
3375
658503
912673

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 90 BETWEEN NULL AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - SUM( + 80 ) AS col2 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-695
SELECT - SUM ( + 80 ) AS col2 FROM tab1
----
-240

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

query III rowsort
SELECT * FROM tab1 WHERE + + col1 >= + col2
----

query II rowsort
SELECT ALL col1 * - col1 + col0 - 6 * + - 19 AS col1, + col1 AS col0 FROM tab1 AS cor0
----
-2004
47
-31
14
174
5

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - - 23 < - - col0
----
97
1
99

query I rowsort
SELECT + 26 + 98 - + + col1 AS col2 FROM tab0 AS cor0
----
103
123
43

query I rowsort
SELECT ALL + 71 - + 86 * col1 FROM tab0 cor0
----
-15
-1735
-6895

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-704
SELECT 87 * + + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-704
SELECT 87 * + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
261

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

query I rowsort
SELECT col2 * ( + - col2 ) AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-707
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + - + 93, + col1 FROM tab2
----
-144
51
-160
67
-170
77

skipif mysql # not compatible
query II rowsort label-707
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + - + 93, + col1 FROM tab2
----
-144
51
-160
67
-170
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 + ( + col1 ) col1 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT DISTINCT + 99 / + col1, 0 / - col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 - 86 * + col1 FROM tab2 cor0
----
-4432
-5837
-6686

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT ALL + MAX( col0 ) * - + MIN( DISTINCT col1 ) AS col2, 47 FROM tab0
----
-97
47

skipif mysql # not compatible
query II rowsort label-712
SELECT ALL + MAX ( col0 ) * - + MIN ( DISTINCT col1 ) AS col2, 47 FROM tab0
----
-97
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * - 81 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT - - SUM( ALL 94 ) FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - - SUM ( ALL 94 ) FROM tab0 AS cor0
----
282

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

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

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

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT DISTINCT MIN( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT MIN ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT - 42 * - col2 FROM tab2
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT + 60 * + ( + COUNT( * ) ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-721
SELECT + 60 * + ( + COUNT ( * ) ) FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT + 74 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-722
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 74 <= NULL
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-724
SELECT ALL - - 53 * 93 - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 62 * - + 1 >= + CAST( NULL AS DECIMAL ) / + 80
----

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - - 53 * 93 - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 62 * - + 1 >= + CAST ( NULL AS REAL ) / + 80
----

query II rowsort
SELECT DISTINCT - 78 AS col1, - ( - 86 ) * - - 13 FROM tab1 AS cor0
----
-78
1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT + 62 IS NOT NULL
----
0

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

query I rowsort
SELECT + 57 + + + col2 FROM tab1 AS cor0
----
116
125
153

query I rowsort
SELECT - + 0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab1 WHERE + 5 / col0 + col1 - + - 77 * + col0 = - col0 * 35
----

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

query I rowsort
SELECT DISTINCT col0 + + - 22 AS col1 FROM tab0 AS cor0
----
-7
65
75

onlyif mysql # aggregate syntax: 
query II rowsort label-732
SELECT 76, COUNT( * ) + - - 73 col0 FROM tab0 AS cor0
----
76
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-732
SELECT 76, COUNT ( * ) + - - 73 col0 FROM tab0 AS cor0
----
76
76

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE 33 <= NULL
----

query I rowsort
SELECT DISTINCT - - 2 * + col1 - ( + ( ( + + ( - ( 0 ) ) ) ) ) * - 48 AS col2 FROM tab1 AS cor0
----
10
28
94

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + col0 / 68 < 54 * - - col2
----

query II rowsort
SELECT + col2 + - + 81 AS col0, - col0 AS col1 FROM tab2
----
-23
-75
-41
-64
-58
-46

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

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

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE + 52 + col0 >= NULL
----

query I rowsort
SELECT + col1 + + col2 + col2 - + 90 FROM tab2
----
67
7
93

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

skipif mysql # not compatible
query III rowsort label-741
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 + - col2 * 75 FROM tab2
----
-1679
-2936
-4275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT DISTINCT COUNT( * ) * - COUNT( * ) DIV 37 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-743
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) / 37 col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( 56 ) - - col1 FROM tab1 cor0 WHERE + col1 IS NULL
----

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

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

query II rowsort
SELECT ALL + ( col0 ), + 94 * + 57 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT ALL + 21 * - col2 AS col2 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT - 51 * - 53 + - 90 + 96 + - + 81 * - + col0 * + 63 * col2 FROM tab0 AS cor0
----
3600324
4442319
49006818

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT DISTINCT - 30 * + COUNT( * ) AS col2, MIN( DISTINCT + col0 ) FROM tab1
----
-90
51

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT - 30 * + COUNT ( * ) AS col2, MIN ( DISTINCT + col0 ) FROM tab1
----
-90
51

onlyif mysql # DIV for integer division: 
query I rowsort label-755
SELECT col0 DIV + - col2 FROM tab1 WHERE NOT - col0 >= + ( 56 )
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-755
SELECT col0 / + - col2 FROM tab1 WHERE NOT - col0 >= + ( 56 )
----
-1
-1
0

query I rowsort
SELECT - col1 + + 35 FROM tab2
----
-16
-32
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT DISTINCT + col0 DIV + col2 + col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT + col0 / + col2 + col2 FROM tab2
----
25
41
59

onlyif mysql # DIV for integer division: 
query II rowsort label-758
SELECT ( col2 ), + col2 DIV col0 AS col0 FROM tab1
----
59
0
68
0
96
1

skipif mysql # not compatible
query II rowsort label-758
SELECT ( col2 ), + col2 / col0 AS col0 FROM tab1
----
59
0
68
0
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-759
SELECT * FROM tab0 WHERE - CAST( - col1 AS SIGNED ) + - - col0 + - col1 NOT IN ( CAST( + col1 AS SIGNED ) + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-759
SELECT * FROM tab0 WHERE - CAST ( - col1 AS INTEGER ) + - - col0 + - col1 NOT IN ( CAST ( + col1 AS INTEGER ) + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT 62 / + CAST( - 42 AS SIGNED ) - col2 / - - 11 + + - col1 + col1 + col0 + - 11 * - ( 86 ) * + + 60 AS col1 FROM tab2 cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-760
SELECT 62 / + CAST ( - 42 AS INTEGER ) - col2 / - - 11 + + - col1 + col1 + col0 + - 11 * - ( 86 ) * + + 60 AS col1 FROM tab2 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - - 49 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT - col2 * + + 9 FROM tab1 AS cor0
----
-531
-612
-864

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 * - 7 - - + col2 IS NOT NULL
----

query I rowsort
SELECT col1 + 95 FROM tab0
----
116
176
96

query I rowsort
SELECT col0 + 15 + 4 AS col1 FROM tab1
----
104
110
70

query I rowsort
SELECT ALL 23 - 86 AS col1 FROM tab1
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * - - col2 + - 27 col2 FROM tab0 AS cor0 WHERE + col0 < col0 * - - col1
----
133
725

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

query I rowsort
SELECT - 57 - + - 95 AS col2 FROM tab2
----
38
38
38

query I rowsort
SELECT ALL - 26 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT - 23 * + MAX( ALL col0 ) * - MIN( DISTINCT - 54 ) FROM tab0
----
-120474

skipif mysql # not compatible
query I rowsort label-771
SELECT - 23 * + MAX ( ALL col0 ) * - MIN ( DISTINCT - 54 ) FROM tab0
----
-120474

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + - 73 * col0 / + - 27 + + col2 AS col0 FROM tab0 cor0 WHERE + 44 + - - col0 / + - 74 = NULL
----

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

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

query I rowsort
SELECT 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-779
SELECT DISTINCT + 22 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col0, CAST( NULL AS SIGNED ), - col0 / + + 34 - + - 64 )
----

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + 22 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col0, CAST ( NULL AS INTEGER ), - col0 / + + 34 - + - 64 )
----

query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 AS cor0 WHERE NOT col2 + 78 + - ( + 99 ) IN ( col1 + - col0, col1 / 22, + col0 )
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT + CAST( 99 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
99
99
99

skipif mysql # not compatible
query I rowsort label-781
SELECT + CAST ( 99 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
99
99
99

query I rowsort
SELECT DISTINCT - + ( - + col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT ALL col2 * + + CAST( - 43 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2537
-2924
-4128

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL col2 * + + CAST ( - 43 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2537
-2924
-4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col2 col1 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT - col1 * + 9 * + + col2 FROM tab0 AS cor0
----
-1890
-34263
-891

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-787
SELECT col1 DIV col1, + col0 FROM tab0 AS cor0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-787
SELECT col1 / col1, + col0 FROM tab0 AS cor0
----
1
15
1
87
1
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT 49 + - COUNT( * ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT 49 + - COUNT ( * ) FROM tab1
----
46

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 NOT IN ( + col2, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT COUNT( col0 ) + MIN( ALL - col2 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-792
SELECT COUNT ( col0 ) + MIN ( ALL - col2 ) AS col1 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT - 69 + - + MAX( DISTINCT - col0 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT - 69 + - + MAX ( DISTINCT - col0 ) AS col1 FROM tab2
----
-23

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-795
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) > - - 84
----

skipif mysql # not compatible
query III rowsort label-795
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) > - - 84
----

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

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

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

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - col1 - 55 FROM tab2 AS cor0
----
-106
-122
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT DISTINCT + col0 DIV - ( - 81 ) - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT + col0 / - ( - 81 ) - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + - ( + + 3 ) - - col0 FROM tab2 cor0
----
43
61
72

query I rowsort
SELECT - + 49 + + col2 FROM tab2 AS cor0
----
-26
-9
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 90 >= - col1
----

query I rowsort
SELECT DISTINCT - + ( - - ( + col2 ) ) - 40 AS col1 FROM tab0 AS cor0
----
-139
-50
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT - - MAX( ALL + 80 ) + - COUNT( * ) * + + 95 * + 17 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-4762

skipif mysql # not compatible
query I rowsort label-805
SELECT - - MAX ( ALL + 80 ) + - COUNT ( * ) * + + 95 * + 17 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-4762

query I rowsort
SELECT ALL - 22 FROM tab2 cor0
----
-22
-22
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT DISTINCT - col2 DIV + 20 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT - col2 / + 20 FROM tab1
----
-2
-3
-4

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

query I rowsort
SELECT DISTINCT + col2 * + 49 + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

query II rowsort
SELECT + col2 * ( + + 51 ) AS col2, col0 FROM tab0
----
2397
15
5049
97
510
87

query I rowsort
SELECT ALL + 64 * col2 AS col1 FROM tab2
----
1472
2560
3712

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-815
SELECT DISTINCT COUNT( * ) DIV + 15 * - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT COUNT ( * ) / + 15 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 46 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT + COUNT( * ) * + AVG ( ALL - 84 ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT + COUNT ( * ) * + AVG ( ALL - 84 ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT + 69 * - - col2 FROM tab1 AS cor0
----
4071
4692
6624

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

query II rowsort
SELECT ALL col2, + col2 * - - col1 AS col0 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT - + CAST( - 28 AS SIGNED ) * + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE 88 <= CAST( 94 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-821
SELECT - + CAST ( - 28 AS INTEGER ) * + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE 88 <= CAST ( 94 AS INTEGER )
----
-84

query I rowsort
SELECT ALL col0 * - - 89 AS col1 FROM tab0
----
1335
7743
8633

query II rowsort
SELECT ALL - col1 + - col1 AS col1, col1 FROM tab1
----
-10
5
-28
14
-94
47

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

query II rowsort
SELECT ALL + 55 * + col1 + + col0, 1 AS col1 FROM tab0 AS cor0
----
1242
1
152
1
4470
1

query I rowsort
SELECT ALL + col1 + + col2 + - + 5 - - + ( + col0 ) AS col2 FROM tab1 AS cor0
----
144
156
201

query I rowsort
SELECT + + 67 + + col0 AS col2 FROM tab2 AS cor0
----
113
131
142

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT 24 + - - col1 DIV col1 FROM tab1
----
25
25
25

skipif mysql # not compatible
query I rowsort label-828
SELECT 24 + - - col1 / col1 FROM tab1
----
25
25
25

query I rowsort
SELECT - 45 + + col2 AS col2 FROM tab1
----
14
23
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-830
SELECT ALL * FROM tab0 AS cor0 WHERE + 44 * ( - ( - CAST( - col1 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-830
SELECT ALL * FROM tab0 AS cor0 WHERE + 44 * ( - ( - CAST ( - col1 AS INTEGER ) ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-831
SELECT ALL COUNT( * ) DIV 18 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL COUNT ( * ) / 18 AS col0 FROM tab0 AS cor0
----
0

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

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

query II rowsort
SELECT - + col2 + - + col1, 6 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-834
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, MIN( DISTINCT - + col1 ) FROM tab1 AS cor0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-834
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, MIN ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
NULL
-47

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

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

query I rowsort
SELECT - col0 * - + 62 * - + ( 13 ) FROM tab1 cor0
----
-41106
-68510
-73346

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

query II rowsort
SELECT col2 * - 33, col2 FROM tab0
----
-1551
47
-3267
99
-330
10

query I rowsort
SELECT 10 * + col1 AS col1 FROM tab1
----
140
470
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-840
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
1

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

query I rowsort
SELECT ALL - 52 * + ( + + col1 ) FROM tab1
----
-2444
-260
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT COUNT( - col0 ) * + 58 AS col0 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-842
SELECT COUNT ( - col0 ) * + 58 AS col0 FROM tab2
----
174

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

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

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

query I rowsort
SELECT - col2 + + + col2 FROM tab1 WHERE NOT - 56 = + ( + col2 )
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + - col0 * + - 94 / - ( + col2 ) - + 82 AND 62 + + 5 * + - col2 * + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + ( - - SUM( ALL 27 ) ) AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-847
SELECT + ( - - SUM ( ALL 27 ) ) AS col1 FROM tab2 AS cor0
----
81

query I rowsort
SELECT - 71 FROM tab0 AS cor0 WHERE NOT NULL >= 15 * + + col0 * + 63
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-850
SELECT - CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <> col2
----

query II rowsort
SELECT + col2 + + col0, - 58 AS col0 FROM tab0 AS cor0
----
196
-58
62
-58
97
-58

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

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL - 57 FROM tab1, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT + + COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT + + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-856
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE CAST( NULL AS SIGNED ) - - 88 IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-856
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE CAST ( NULL AS INTEGER ) - - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT - 57 * COUNT( + 10 ) * + + 27 + 61 AS col2 FROM tab1 AS cor0
----
-4556

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT - 57 * COUNT ( + 10 ) * + + 27 + 61 AS col2 FROM tab1 AS cor0
----
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL - + MAX( + 50 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - + MAX ( + 50 ) FROM tab1 AS cor0
----
-50

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT ALL - COUNT( * ), + ( - - 31 ) AS col1 FROM tab0
----
-3
31

skipif mysql # not compatible
query II rowsort label-862
SELECT ALL - COUNT ( * ), + ( - - 31 ) AS col1 FROM tab0
----
-3
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( - 75 ) + 42 AND + ( + + ( col2 ) ) * + 8 + + + col0 AND NULL NOT BETWEEN col0 / col2 AND + 38
----

query I rowsort
SELECT DISTINCT 22 + + col0 AS col2 FROM tab2
----
68
86
97

query I rowsort
SELECT + + 56 AS col2 FROM tab1 WHERE + ( col2 ) + + + 87 BETWEEN NULL AND + - col2 + - 95
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT COUNT( + col1 ) + - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-867
SELECT + - CAST( NULL AS SIGNED ) + col2 AS col1, col2 * CAST( NULL AS SIGNED ) / - 65 * - - col1 * + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-867
SELECT + - CAST ( NULL AS INTEGER ) + col2 AS col1, col2 * CAST ( NULL AS INTEGER ) / - 65 * - - col1 * + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 + - - 73 AS col0 FROM tab1 AS cor0
----
120
78
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-869
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 6 * + 51 BETWEEN - 89 AND NULL
----

skipif mysql # not compatible
query III rowsort label-869
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 6 * + 51 BETWEEN - 89 AND NULL
----

query I rowsort
SELECT ALL - - 80 - + 99 AS col0 FROM tab0 cor0
----
-19
-19
-19

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-873
SELECT CAST( + col2 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT 27 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-873
SELECT CAST ( + col2 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT 27 IS NOT NULL
----

query I rowsort
SELECT col0 * + 99 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT DISTINCT 28 * COUNT( * ) * + - 87 * + 92 AS col0, 54 FROM tab2
----
-672336
54

skipif mysql # not compatible
query II rowsort label-875
SELECT DISTINCT 28 * COUNT ( * ) * + - 87 * + 92 AS col0, 54 FROM tab2
----
-672336
54

query I rowsort
SELECT 79 * - - col0 FROM tab2
----
3634
5056
5925

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

onlyif mysql # aggregate syntax: 
query II rowsort label-878
SELECT DISTINCT + COUNT( * ) col0, ( COUNT( * ) ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-878
SELECT DISTINCT + COUNT ( * ) col0, ( COUNT ( * ) ) FROM tab2
----
3
3

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( - 66 + - 51 ) <= NULL
----

query I rowsort
SELECT ALL 26 * + col2 AS col0 FROM tab1
----
1534
1768
2496

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

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

query I rowsort
SELECT - 52 * 98 FROM tab2 WHERE NOT + + 45 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-883
SELECT CAST( - ( MIN( ALL + - col1 ) ) AS SIGNED ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-883
SELECT CAST ( - ( MIN ( ALL + - col1 ) ) AS INTEGER ) FROM tab2
----
77

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 21 BETWEEN 90 AND 78 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT DISTINCT + col1 * + - col0 AS col1, 16 AS col2, + + col2 * 1 * + col2 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( 95 ) FROM tab0 WHERE NOT col1 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT ALL + col0 * CAST( - 29 AS SIGNED ) FROM tab1
----
-1479
-2465
-2639

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + col0 * CAST ( - 29 AS INTEGER ) FROM tab1
----
-1479
-2465
-2639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-890
SELECT ALL 57 + 22 FROM tab1 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) NOT IN ( + col2 + 71 )
----

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL 57 + 22 FROM tab1 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) NOT IN ( + col2 + 71 )
----

query I rowsort
SELECT ALL + col0 + 25 AS col0 FROM tab0 WHERE NOT ( col1 + + col2 ) IS NULL
----
112
122
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT ( 69 ) FROM tab2 WHERE NOT NULL <> col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-893
SELECT ( 69 ) FROM tab2 WHERE NOT NULL <> col2 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 + 46 FROM tab2
----
110
121
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * + 8 BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT ALL - col2 DIV col1 + 13 AS col1 FROM tab0
----
-86
13
13

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL - col2 / col1 + 13 AS col1 FROM tab0
----
-86
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * col1 col2 FROM tab0
----
1785
6885
85

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 + 56 * + col0 col2 FROM tab1
----
2937
4841
5177

query I rowsort
SELECT ALL 70 AS col0 FROM tab2 WHERE - 89 = col0
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-904
SELECT ALL * FROM tab1 WHERE CAST( NULL AS DECIMAL ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-904
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS REAL ) <> ( NULL )
----

query I rowsort
SELECT - 65 * col1 FROM tab2
----
-3315
-4355
-5005

query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab1 WHERE NOT col0 * col0 BETWEEN NULL AND + col0
----
-21
-54
-82

query I rowsort
SELECT 13 FROM tab0 WHERE ( - col0 + 74 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL + COUNT( * ) * 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + COUNT ( * ) * 93 FROM tab0
----
279

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col1 + 21 AND - 37
----

query I rowsort
SELECT DISTINCT col1 * + 7 AS col2 FROM tab0
----
147
567
7

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL = ( col0 + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT ( - COUNT( * ) ) DIV - 2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-912
SELECT ( - COUNT ( * ) ) / - 2 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT ALL 20 + col1 DIV col1 AS col1 FROM tab1 cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL 20 + col1 / col1 AS col1 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT DISTINCT col1 - 86 AS col0 FROM tab1 AS cor0
----
-39
-72
-81

query I rowsort
SELECT ALL + 37 + 97 * col0 AS col1 FROM tab1 AS cor0
----
4984
8282
8864

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT DISTINCT 4 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT 4 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT DISTINCT - 63 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT - 63 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT ALL ( + MIN( + col0 ) ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL ( + MIN ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
51

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

query I rowsort
SELECT ALL ( + 62 ) AS col2 FROM tab0
----
62
62
62

query I rowsort
SELECT DISTINCT - col0 * 42 FROM tab2
----
-1932
-2688
-3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT COUNT( ALL col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 93 * + ( CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-922
SELECT COUNT ( ALL col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 93 * + ( CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-923
SELECT + CAST( COUNT( * ) AS DECIMAL ) - AVG ( - ( + col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT + CAST ( COUNT ( * ) AS REAL ) - AVG ( - ( + col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + ( 47 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT col2 + 55 FROM tab1 AS cor0 WHERE NOT ( 60 ) < ( NULL )
----

query I rowsort
SELECT ALL col1 * - + col2 AS col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * col2 + 3 / col1 BETWEEN NULL AND - 21 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT + MAX( DISTINCT col1 ) * - 35 FROM tab1
----
-1645

skipif mysql # not compatible
query I rowsort label-930
SELECT + MAX ( DISTINCT col1 ) * - 35 FROM tab1
----
-1645

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

query I rowsort
SELECT DISTINCT - 57 * + - 91 FROM tab0
----
5187

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - col1 + - col1 * + col1 BETWEEN NULL AND col2 * col2
----

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

query I rowsort
SELECT ALL 57 * - col2 FROM tab0
----
-2679
-5643
-570

query I rowsort
SELECT + 79 FROM tab2 WHERE NOT - 97 > ( 79 )
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL - COUNT( ALL - - 27 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL - COUNT ( ALL - - 27 ) FROM tab1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT + AVG ( ALL + 21 ) * + COUNT( * ) + MAX( 13 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT + AVG ( ALL + 21 ) * + COUNT ( * ) + MAX ( 13 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT + col2 + - col2 + 8 * 65 FROM tab2 AS cor0
----
520
520
520

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL NOT IN ( 75 / - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL NOT IN ( 75 / - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT + - col1 * + 75 + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1577
-6076
-75

skipif mysql # not compatible
query I rowsort label-944
SELECT + - col1 * + 75 + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-1577
-6076
-75

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

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

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

query I rowsort
SELECT + 22 + + 59 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE + col2 >= NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-950
SELECT ALL 73 * COUNT( * ) DIV + SUM( DISTINCT 31 ) + - 93 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL 73 * COUNT ( * ) / + SUM ( DISTINCT 31 ) + - 93 FROM tab1 AS cor0
----
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT - 12 + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 IN ( - 79 * + col0 + - col0 )
----
-12

skipif mysql # not compatible
query I rowsort label-952
SELECT - 12 + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 IN ( - 79 * + col0 + - col0 )
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - col0 + + 2 + - col0 col2 FROM tab1 AS cor0
----
-4366
-508
-763

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

skipif mysql # not compatible
query III rowsort label-954
SELECT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT - + 66 AS col2 FROM tab1 AS cor0
----
-66
-66
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT - ( + 53 ) + + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-957
SELECT - ( + 53 ) + + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-62

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

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

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

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

query I rowsort
SELECT ALL - col2 + - 33 + + - 82 AS col0 FROM tab2
----
-138
-155
-173

query I rowsort
SELECT ALL + 65 - - col0 AS col1 FROM tab0 WHERE NOT + col1 * - col0 IS NULL
----
152
162
80

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * + col1 + + col1 - col2 ) = ( ( col2 ) * + col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 + ( - + 90 ) col0 FROM tab2
----
-42
-42
-42

query I rowsort
SELECT + 43 * + + col0 + col2 + + col0 - - 71 * - 54 FROM tab0
----
-3127
4
533

query I rowsort
SELECT - 33 FROM tab1 WHERE 67 NOT IN ( 42 )
----
-33
-33
-33

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

onlyif mysql # aggregate syntax: 
query II rowsort label-968
SELECT + 49 + 53, + COUNT( * ) AS col2 FROM tab2
----
102
3

skipif mysql # not compatible
query II rowsort label-968
SELECT + 49 + 53, + COUNT ( * ) AS col2 FROM tab2
----
102
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT DISTINCT col0 + + + 7 * + CAST( 42 AS SIGNED ) AS col0 FROM tab1
----
345
379
385

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT col0 + + + 7 * + CAST ( 42 AS INTEGER ) AS col0 FROM tab1
----
345
379
385

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

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT 58 * COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL < ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-971
SELECT 58 * COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL < ( col0 )
----
0

query I rowsort
SELECT - col1 * col2 * - col0 AS col0 FROM tab0
----
18270
57105
9603

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

skipif mysql # not compatible
query I rowsort label-973
SELECT + + col0 / + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT DISTINCT SUM( 43 ) AS col1 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT SUM ( 43 ) AS col1 FROM tab0 AS cor0
----
129

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20, 77 - 68 col2 FROM tab0
----
20
9

query I rowsort
SELECT + 55 * + col1 FROM tab2
----
2805
3685
4235

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

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

query I rowsort
SELECT DISTINCT 39 + - col0 * - + col1 FROM tab1
----
4316
464
753

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

query I rowsort
SELECT col2 * 18 AS col2 FROM tab2 AS cor0 WHERE NOT ( 32 / + col2 + - + col2 ) >= 5 * - col1
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 53 + + 16 IN ( + col1 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT ( + + col1 ) * - col2 * 70 AS col0 FROM tab1
----
-20650
-223720
-94080

query II rowsort
SELECT - 39 * 77 AS col2, - 45 + + + 65 AS col1 FROM tab1
----
-3003
20
-3003
20
-3003
20

query I rowsort
SELECT ALL col1 + - + ( + 5 ) * - col1 AS col1 FROM tab2
----
306
402
462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-988
SELECT ALL + col2, 69 * CAST( - ( - col1 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-988
SELECT ALL + col2, 69 * CAST ( - ( - col1 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-989
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 - + 41 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col1 NOT IN ( + + col2, 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL + ( + COUNT( DISTINCT - col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 - + - 97 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL + ( + COUNT ( DISTINCT - col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 - + - 97 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-992
SELECT ALL - 63 DIV COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - 63 / COUNT ( * ) FROM tab2
----
-21

query I rowsort
SELECT 6 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT 45 DIV + col1 FROM tab0
----
0
2
45

skipif mysql # not compatible
query I rowsort label-994
SELECT 45 / + col1 FROM tab0
----
0
2
45

query I rowsort
SELECT 63 * - col2 FROM tab1
----
-3717
-4284
-6048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT DISTINCT - SUM( + + 82 ) DIV + ( - 84 ) + + COUNT( * ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - SUM ( + + 82 ) / + ( - 84 ) + + COUNT ( * ) AS col2 FROM tab1
----
5

query I rowsort
SELECT ALL 39 + + - col1 + - + 13 + - + 94 FROM tab0
----
-149
-69
-89

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <> - 45
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT - SUM( 92 ) FROM tab2 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-1000
SELECT - SUM ( 92 ) FROM tab2 cor0
----
-276

query I rowsort
SELECT ALL - 86 AS col2 FROM tab0 AS cor0 WHERE NOT 93 IS NULL
----
-86
-86
-86

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT col2 + + - col1 + + 1 IS NOT NULL
----

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

query I rowsort
SELECT - + ( - - 17 ) - + 74 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( + 33 + 45 ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1007
SELECT - + col1 / col2 col2, + col1 - + col1 FROM tab0 AS cor0
----
-1
0
-2
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT COUNT( * ) * COUNT( * ) + - + 37 * 0 * COUNT( 25 ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1009
SELECT COUNT ( * ) * COUNT ( * ) + - + 37 * 0 * COUNT ( 25 ) FROM tab2 cor0
----
9

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

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

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

query II rowsort
SELECT col0 AS col0, col2 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - 17 col1 FROM tab1
----
238
799
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT COUNT( * ) + 70 FROM tab0 WHERE ( ( - 67 ) * - col2 * col1 / col0 * + 49 + col0 * - col2 / ( + col0 * + col1 ) + col1 ) IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT COUNT ( * ) + 70 FROM tab0 WHERE ( ( - 67 ) * - col2 * col1 / col0 * + 49 + col0 * - col2 / ( + col0 * + col1 ) + col1 ) IS NOT NULL
----
73

query II rowsort
SELECT DISTINCT - ( + col0 ) + - + 66, col1 FROM tab2
----
-112
51
-130
77
-141
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT 41 + + - COUNT( * ) + COUNT( * ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-1016
SELECT 41 + + - COUNT ( * ) + COUNT ( * ) FROM tab2
----
41

query I rowsort
SELECT col0 + - ( - col1 ) FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT 48 + - + COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-1018
SELECT 48 + - + COUNT ( * ) FROM tab0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL + CAST( NULL AS SIGNED ) + - - MIN( 15 ) + - 41 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + CAST ( NULL AS INTEGER ) + - - MIN ( 15 ) + - 41 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1020
SELECT DISTINCT CAST( + - 61 AS SIGNED ) AS col1, + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - + col1 ) ) / - col1 <> ( - + col2 )
----

skipif mysql # not compatible
query II rowsort label-1020
SELECT DISTINCT CAST ( + - 61 AS INTEGER ) AS col1, + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - + col1 ) ) / - col1 <> ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1021
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - 36 NOT BETWEEN NULL AND + col1 - + - CAST( ( - - col1 ) AS SIGNED ) + + 13
----

skipif mysql # not compatible
query III rowsort label-1021
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - 36 NOT BETWEEN NULL AND + col1 - + - CAST ( ( - - col1 ) AS INTEGER ) + + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 9 col0 FROM tab2 AS cor0
----
37
55
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1023
SELECT ALL - + 88 AS col1, + CAST( 22 AS SIGNED ) FROM tab0 AS cor0
----
-88
22
-88
22
-88
22

skipif mysql # not compatible
query II rowsort label-1023
SELECT ALL - + 88 AS col1, + CAST ( 22 AS INTEGER ) FROM tab0 AS cor0
----
-88
22
-88
22
-88
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT - SUM( ALL col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1024
SELECT - SUM ( ALL col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT DISTINCT col0 - - + col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1026
SELECT 14 / - MIN( col0 ) AS col1 FROM tab1 AS cor0 WHERE + col1 + - CAST( + col0 AS SIGNED ) * + col2 > NULL AND NOT + col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT 14 / - MIN ( col0 ) AS col1 FROM tab1 AS cor0 WHERE + col1 + - CAST ( + col0 AS INTEGER ) * + col2 > NULL AND NOT + col0 >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col0 * - col2 + 4 * - + col2 ) IS NULL AND ( col1 - 48 ) IS NULL
----

query I rowsort
SELECT ALL - 74 + col2 AS col2 FROM tab1 AS cor0
----
-15
-6
22

query I rowsort
SELECT ALL col0 - - 18 * + col2 AS col0 FROM tab0 AS cor0
----
1879
267
861

query I rowsort
SELECT + col2 - + col2 + + + col0 + 81 AS col2 FROM tab2 AS cor0
----
127
145
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL - SUM( ALL - + 75 ) AS col0 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL - SUM ( ALL - + 75 ) AS col0 FROM tab1 AS cor0
----
225

query II rowsort
SELECT + col2 + + 70 + 95, 5 AS col2 FROM tab2 cor0 WHERE - col0 / + + col1 IS NOT NULL
----
188
5
205
5
223
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT + col2 DIV + col0 + + col0 AS col0 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-1033
SELECT + col2 / + col0 + + col0 AS col0 FROM tab1
----
52
85
91

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT ( - col1 * - col2 * - col2 IS NULL )
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT ALL col2 DIV - col0 + col1 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL col2 / - col0 + col1 FROM tab1 AS cor0
----
13
47
5

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

query I rowsort
SELECT DISTINCT - 48 + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL > col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT + COUNT( * ) * - 87 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + COUNT ( * ) * - 87 FROM tab0
----
-261

query I rowsort
SELECT DISTINCT 92 / - 65 FROM tab0 WHERE NULL >= + col1 - + col1
----

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

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL - 92 * + + COUNT ( * ) FROM tab2
----
-276

query II rowsort
SELECT DISTINCT - 67 AS col0, 91 FROM tab0
----
-67
91

query I rowsort
SELECT - 38 * - col2 + - + col1 FROM tab0 cor0
----
1705
359
3761

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

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

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

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

query I rowsort
SELECT ALL - + 21 AS col1 FROM tab1 AS cor0
----
-21
-21
-21

query II rowsort
SELECT DISTINCT col2 AS col2, ( + + 65 ) FROM tab2 cor0
----
23
65
40
65
58
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1049
SELECT ALL + - 3 - - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + - 3 - - - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT + 12 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ( + 98 ) + COUNT( * ) + + COUNT( * ) * 98 AS col2 FROM tab1 AS cor0
----
395

skipif mysql # not compatible
query I rowsort label-1051
SELECT ( + 98 ) + COUNT ( * ) + + COUNT ( * ) * 98 AS col2 FROM tab1 AS cor0
----
395

query I rowsort
SELECT col0 * + col2 + - col1 + + col1 FROM tab0
----
705
870
9603

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

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

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

skipif mysql # not compatible
query I rowsort label-1054
SELECT + 74 / CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL COUNT( * ) * + SUM( - + col0 ) + - + ( - - COUNT( * ) ) col1 FROM tab0
----
-600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1055
SELECT ALL COUNT ( * ) * + SUM ( - + col0 ) + - + ( - - COUNT ( * ) ) col1 FROM tab0
----
-600

query I rowsort
SELECT col1 FROM tab1 WHERE - col2 / + col2 > + + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT MIN( ALL - col0 ) + + 0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT MIN ( ALL - col0 ) + + 0 FROM tab0
----
-97

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 43 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT DISTINCT + SUM( + 14 ) + + 80 - COUNT( * ) + + 85 * 54 FROM tab0 AS cor0
----
4709

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + SUM ( + 14 ) + + 80 - COUNT ( * ) + + 85 * 54 FROM tab0 AS cor0
----
4709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1061
SELECT DISTINCT - col0 + CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT - col0 + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

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

query II rowsort
SELECT - col2 - + + col2, - 23 - - - ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-116
35
-46
0
-80
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1064
SELECT DISTINCT + 49 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT + 49 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT + COUNT( * ) * + COUNT( * ) + 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-1067
SELECT + COUNT ( * ) * + COUNT ( * ) + 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL - 52 - + - COUNT( * ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - 52 - + - COUNT ( * ) FROM tab1 AS cor0
----
-49

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

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

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

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

query I rowsort
SELECT + 85 * 5 FROM tab0
----
425
425
425

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

query I rowsort
SELECT DISTINCT col1 * + 4 FROM tab0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT ALL + ( + MIN( ALL - 8 ) ) * + COUNT( ALL + 95 ) + - - 97 * COUNT( * ) FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + ( + MIN ( ALL - 8 ) ) * + COUNT ( ALL + 95 ) + - - 97 * COUNT ( * ) FROM tab1
----
267

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

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

query I rowsort
SELECT + col2 * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

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

query I rowsort
SELECT - - 21 AS col2 FROM tab1 AS cor0
----
21
21
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1085
SELECT ALL - - ( col0 ) + - + col1 DIV - 62 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - - ( col0 ) + - + col1 / - 62 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT col0 * - - col0 * + CAST( - 79 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-17775
-597951
-743311

skipif mysql # not compatible
query I rowsort label-1088
SELECT col0 * - - col0 * + CAST ( - 79 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-17775
-597951
-743311

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 46 col1 FROM tab2
----
2346
3082
3542

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT - COUNT( DISTINCT - col1 ) * MAX( DISTINCT - col1 ) FROM tab1 WHERE + col0 + + 82 - + - col2 + col2 >= - - col0
----
15

skipif mysql # not compatible
query I rowsort label-1092
SELECT - COUNT ( DISTINCT - col1 ) * MAX ( DISTINCT - col1 ) FROM tab1 WHERE + col0 + + 82 - + - col2 + col2 >= - - col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1093
SELECT DISTINCT CAST( + 77 AS SIGNED ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT CAST ( + 77 AS INTEGER ) FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1094
SELECT DISTINCT * FROM tab2 WHERE ( ( - - 73 BETWEEN + 25 + + CAST( - 19 AS SIGNED ) AND NULL ) )
----

skipif mysql # not compatible
query III rowsort label-1094
SELECT DISTINCT * FROM tab2 WHERE ( ( - - 73 BETWEEN + 25 + + CAST ( - 19 AS INTEGER ) AND NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT - CAST( + 1 AS SIGNED ) AS col0 FROM tab0, tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT - CAST ( + 1 AS INTEGER ) AS col0 FROM tab0, tab1 cor0
----
-1

query I rowsort
SELECT - ( ( col0 ) ) + - ( col1 ) + - 64 AS col2 FROM tab0
----
-160
-162
-172

query III rowsort
SELECT * FROM tab1 WHERE + - ( + col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1098
SELECT + CAST( + 38 AS SIGNED ) + col0 - + col2 AS col2 FROM tab1
----
-7
61
64

skipif mysql # not compatible
query I rowsort label-1098
SELECT + CAST ( + 38 AS INTEGER ) + col0 - + col2 AS col2 FROM tab1
----
-7
61
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ( 47 ) - + COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-1099
SELECT ( 47 ) - + COUNT ( * ) FROM tab1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT ( CAST( + + 22 AS SIGNED ) ) FROM tab2 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1100
SELECT ( CAST ( + + 22 AS INTEGER ) ) FROM tab2 WHERE col0 IS NULL
----

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

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

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

query II rowsort
SELECT - col0, 13 AS col0 FROM tab0 WHERE NOT + + 52 < col1
----
-87
13
-97
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT MAX( ALL - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1104
SELECT MAX ( ALL - + col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1105
SELECT - - 39 * - 24 * - COUNT( * ) AS col1, + ( + + CAST( NULL AS SIGNED ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2808
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1105
SELECT - - 39 * - 24 * - COUNT ( * ) AS col1, + ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2808
NULL

query I rowsort
SELECT ALL 29 * - col2 AS col1 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT ALL - 11 AS col2 FROM tab2
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT COUNT( * ) * + 99 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT COUNT ( * ) * + 99 FROM tab0
----
297

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

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

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL COUNT ( ALL 51 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 34 * + - col0 AS col0 FROM tab0 AS cor0
----
-2958
-3298
-510

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 16 * - 86 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT - ( - COUNT( * ) ) * - + 52 + + 92 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1113
SELECT - ( - COUNT ( * ) ) * - + 52 + + 92 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-376

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1114
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT ALL 71 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL 71 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT DISTINCT - col0 + + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - col0 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col0 * 96 AS col0 FROM tab1 cor0
----
4896
8160
8736

query I rowsort
SELECT DISTINCT 61 * - - col0 AS col1 FROM tab0 cor0
----
5307
5917
915

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

query I rowsort
SELECT - + 48 + + - col2 + col1 * + - ( - 33 ) FROM tab0 AS cor0
----
-114
2578
635

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

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - 19 + + 51 >= col1 + + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT DISTINCT COUNT( * ) * - + MAX( ALL - col2 ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT COUNT ( * ) * - + MAX ( ALL - col2 ) FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-1124
SELECT ( 68 ) AS col0, COUNT( * ) FROM tab2
----
68
3

skipif mysql # not compatible
query II rowsort label-1124
SELECT ( 68 ) AS col0, COUNT ( * ) FROM tab2
----
68
3

query I rowsort
SELECT ALL + 76 - - 49 AS col2 FROM tab0 WHERE NULL IS NULL
----
125
125
125

query I rowsort
SELECT DISTINCT 20 + - 76 AS col1 FROM tab2
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 33 ), 48 col0 FROM tab1
----
-33
48
-33
48
-33
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT + COUNT( ALL 88 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1128
SELECT + COUNT ( ALL 88 ) FROM tab2
----
3

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

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

query I rowsort
SELECT ALL col0 + col1 * - col0 + + + col0 FROM tab1
----
-255
-4095
-612

query II rowsort
SELECT DISTINCT 22 + - - col1 AS col0, ( - + col0 ) FROM tab1 AS cor0
----
27
-85
36
-51
69
-91

query I rowsort
SELECT DISTINCT + 57 - - col0 AS col0 FROM tab2 AS cor0
----
103
121
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT - 67 + + - 55 + - + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
-145
-162
-180

skipif mysql # not compatible
query I rowsort label-1133
SELECT - 67 + + - 55 + - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
-145
-162
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1134
SELECT DISTINCT + CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) / CAST( NULL AS SIGNED ) / + COUNT( * ) AS col2, + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1134
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) / CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT DISTINCT + col1 + col0 + col1 DIV - col2 AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
140
141
95

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT + col1 + col0 + col1 / - col2 AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
140
141
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 85 col2 FROM tab1 AS cor0 WHERE - col2 NOT IN ( + ( - 24 ) * - col0, + col0, + col0 )
----
14
-85
47
-85
5
-85

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

skipif mysql # not compatible
query I rowsort label-1137
SELECT + + MIN ( + 38 ) FROM tab1 AS cor0
----
38

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

query II rowsort
SELECT DISTINCT - col2, 96 AS col2 FROM tab0 AS cor0
----
-10
96
-47
96
-99
96

query I rowsort
SELECT DISTINCT + - 57 AS col2 FROM tab0 AS cor0
----
-57

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT ALL - 89 * + ( + + col1 ) + - + col1 DIV 85 FROM tab1 AS cor0
----
-1246
-4183
-445

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - 89 * + ( + + col1 ) + - + col1 / 85 FROM tab1 AS cor0
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT + - 89 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT + - 89 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-267

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

query I rowsort
SELECT col0 * + 9 * + col0 - - col1 FROM tab0 AS cor0
----
2106
68142
84682

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT SUM( - 22 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1146
SELECT SUM ( - 22 ) FROM tab1
----
-66

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 + + + col0 * + - col2 = NULL
----

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

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

query I rowsort
SELECT DISTINCT 59 * col1 AS col2 FROM tab1
----
2773
295
826

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT - COUNT( * ) + - ( + - 77 ) AS col2 FROM tab2 WHERE + 56 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - COUNT ( * ) + - ( + - 77 ) AS col2 FROM tab2 WHERE + 56 IS NULL
----
77

query I rowsort
SELECT DISTINCT - + col1 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL + col1 + - 90 AS col0 FROM tab0 AS cor0
----
-69
-89
-9

query I rowsort
SELECT DISTINCT + 84 * + col2 FROM tab2 AS cor0
----
1932
3360
4872

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT + + col2 DIV ( - 88 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT + + col2 / ( - 88 ) FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 15 * col0 - - col0 FROM tab2 AS cor0
----
-1050
-644
-896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 17 col0 FROM tab2 AS cor0
----
23
41
6

query I rowsort
SELECT DISTINCT - - 3 * col0 + col2 AS col1 FROM tab1 AS cor0
----
249
314
341

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 5 * + col0 col1 FROM tab1 AS cor0
----
255
425
455

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT + - col0 + + 97 * 84 IS NOT NULL
----

query I rowsort
SELECT 51 * + 85 * + col1 + ( + col0 ) + + col2 FROM tab2
----
221154
290578
333899

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

query I rowsort
SELECT - col0 + + ( - col0 ) FROM tab0
----
-174
-194
-30

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1167
SELECT DISTINCT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col0 + - - 45 FROM tab1
----
130
136
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) * - - 14 - col0 FROM tab1 AS cor0
----
1293
741
861

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) * - - 14 - col0 FROM tab1 AS cor0
----
1293
741
861

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

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

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + + col2 - - + 73 FROM tab0 AS cor0
----
120
172
83

query I rowsort
SELECT ALL - - col0 - - - 57 FROM tab2 AS cor0
----
-11
18
7

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query II rowsort
SELECT col1 * + 31, - 46 AS col1 FROM tab2
----
1581
-46
2077
-46
2387
-46

query I rowsort
SELECT 16 * - 99 FROM tab2
----
-1584
-1584
-1584

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 35 AND NULL
----

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

query II rowsort
SELECT ALL - 7 * + + col0 AS col0, - 20 AS col1 FROM tab1 AS cor0
----
-357
-20
-595
-20
-637
-20

query II rowsort
SELECT ALL + col2 + - - col0 + - col1 AS col2, 30 AS col1 FROM tab2 AS cor0 WHERE col2 > NULL
----

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

query II rowsort
SELECT + 66 AS col2, col1 AS col2 FROM tab0
----
66
1
66
21
66
81

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1186
SELECT ALL + col2, - col0 DIV - + col0 FROM tab2 AS cor0
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-1186
SELECT ALL + col2, - col0 / - + col0 FROM tab2 AS cor0
----
23
1
40
1
58
1

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

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

query I rowsort
SELECT col2 * + col2 + - 98 AS col1 FROM tab2
----
1502
3266
431

query I rowsort
SELECT ALL - col0 + - - col1 AS col0 FROM tab1 cor0
----
-37
-44
-80

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

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

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

query I rowsort
SELECT DISTINCT col2 * 12 FROM tab2 AS cor0
----
276
480
696

query I rowsort
SELECT 28 * - 91 FROM tab0
----
-2548
-2548
-2548

query I rowsort
SELECT - 27 * - 38 AS col2 FROM tab0
----
1026
1026
1026

query I rowsort
SELECT 84 - - - col1 FROM tab0
----
3
63
83

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1199
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1199
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT + + ( - COUNT( DISTINCT + col2 ) ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + + ( - COUNT ( DISTINCT + col2 ) ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT ALL - 39 DIV + 56 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - 39 / + 56 FROM tab0 AS cor0
----
0
0
0

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

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

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

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

query II rowsort
SELECT ALL - 3, - 42 AS col0 FROM tab1 cor0
----
-3
-42
-3
-42
-3
-42

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <> + 80
----

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

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

query I rowsort
SELECT + col2 + 12 AS col2 FROM tab1
----
108
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT 85 + - 61 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1210
SELECT 85 + - 61 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
27

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + 96 col1, + col2 AS col2 FROM tab0 AS cor0
----
-2016
10
-7776
47
-96
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT DISTINCT SUM( - + CAST( NULL AS SIGNED ) ) + - 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT SUM ( - + CAST ( NULL AS INTEGER ) ) + - 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT ALL ( + 77 ) + - - col0 * - 8 + + col0 * - 85 AS col2, col2 FROM tab2
----
-4201
23
-5875
40
-6898
58

query III rowsort
SELECT * FROM tab2 WHERE + + col1 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1216
SELECT + 65 AS col1, ( - CAST( - 58 AS SIGNED ) ) * - 39 + + col1 / - 79 AS col2 FROM tab1 WHERE + + col1 BETWEEN NULL AND + col1 * 30
----

skipif mysql # not compatible
query II rowsort label-1216
SELECT + 65 AS col1, ( - CAST ( - 58 AS INTEGER ) ) * - 39 + + col1 / - 79 AS col2 FROM tab1 WHERE + + col1 BETWEEN NULL AND + col1 * 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

query I rowsort
SELECT ALL 51 + col0 AS col2 FROM tab0
----
138
148
66

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - 89 - + ( + col2 ) * - col1 FROM tab0 AS cor0
----
10
121
3718

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + COUNT ( ALL - - 53 ) FROM tab2
----
3

query I rowsort
SELECT ALL col1 - col2 + - 3 * ( + - col0 ) FROM tab2
----
166
229
234

query I rowsort
SELECT ALL col0 * + - 76 AS col2 FROM tab1
----
-3876
-6460
-6916

query III rowsort
SELECT * FROM tab1 WHERE - 13 + - - col0 + - 95 < NULL
----

query I rowsort
SELECT 4 + col0 AS col1 FROM tab2
----
50
68
79

query II rowsort
SELECT col1 + + + col2, + col1 AS col0 FROM tab2
----
117
77
125
67
74
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1227
SELECT DISTINCT col0 DIV col1 + - col2 AS col2 FROM tab2
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT col0 / col1 + - col2 AS col2 FROM tab2
----
-23
-40
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT + col2 DIV ( + 10 ) FROM tab2
----
2
4
5

skipif mysql # not compatible
query I rowsort label-1228
SELECT + col2 / ( + 10 ) FROM tab2
----
2
4
5

query I rowsort
SELECT 45 * - 25 FROM tab2
----
-1125
-1125
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT ( COUNT( * ) ) * 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT ( COUNT ( * ) ) * 63 FROM tab1
----
189

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT ALL - 16 DIV col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - 16 / col2 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT DISTINCT 24 DIV + col1 AS col1 FROM tab0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT 24 / + col1 AS col1 FROM tab0
----
0
1
24

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1236
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - ( - CAST( NULL AS SIGNED ) ) ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-1236
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - ( - CAST ( NULL AS INTEGER ) ) ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + 0 + + - col0 + - col1 + 10 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT ALL + col0 DIV + col1 AS col0 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL + col0 / + col1 AS col0 FROM tab1 cor0
----
1
17
3

query II rowsort
SELECT ALL - col2 AS col2, 8 AS col2 FROM tab0 AS cor0
----
-10
8
-47
8
-99
8

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

query II rowsort
SELECT 76, - col1 * + - 31 * col1 AS col2 FROM tab0
----
76
13671
76
203391
76
31

query I rowsort
SELECT ALL + 93 + - col0 AS col1 FROM tab1
----
2
42
8

query I rowsort
SELECT - col1 FROM tab2 WHERE - 66 >= + 90
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT - COUNT( - 8 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1246
SELECT - COUNT ( - 8 ) AS col0 FROM tab0 AS cor0
----
-3

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT + - MIN ( - + col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + + col2 - + 5 FROM tab2 AS cor0
----
18
35
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT SUM( DISTINCT col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT SUM ( DISTINCT col2 ) AS col0 FROM tab2
----
121

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

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

query I rowsort
SELECT ALL + 60 * - - col2 AS col0 FROM tab0
----
2820
5940
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1253
SELECT DISTINCT + col2 - - ( - col2 ) / col2 FROM tab0 WHERE NOT + col1 * ( - 72 ) - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT + col2 - - ( - col2 ) / col2 FROM tab0 WHERE NOT + col1 * ( - 72 ) - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col0 * + - col2 * 88 FROM tab0
----
-62040
-76560
-845064

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT COUNT( - 88 ) * - - 69 + 1 FROM tab1 WHERE NOT NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-1255
SELECT COUNT ( - 88 ) * - - 69 + 1 FROM tab1 WHERE NOT NULL IS NULL
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1256
SELECT DISTINCT ( + - 5 ) * - col1 + - + col1 + - + col1 DIV 83 AS col0, - col1 * + - 83 FROM tab0
----
324
6723
4
83
84
1743

skipif mysql # not compatible
query II rowsort label-1256
SELECT DISTINCT ( + - 5 ) * - col1 + - + col1 + - + col1 / 83 AS col0, - col1 * + - 83 FROM tab0
----
324
6723
4
83
84
1743

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

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

query I rowsort
SELECT ALL + ( 72 ) FROM tab0 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 93 + - col1 - + + col0
----

query I rowsort
SELECT DISTINCT - 88 * + col1 AS col0 FROM tab1
----
-1232
-4136
-440

query I rowsort
SELECT ALL - col1 * - col0 * + + 51 FROM tab0
----
4947
61965
93177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1263
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL col2 * - 52 FROM tab1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT + col0 * + 51 FROM tab0 AS cor0
----
4437
4947
765

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT + + col2 DIV 79 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1268
SELECT + + col2 / 79 FROM tab1 cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1269
SELECT 62 * - ( COUNT( * ) ) DIV + COUNT( * ) AS col0, 64 AS col1 FROM tab2 AS cor0
----
-62
64

skipif mysql # not compatible
query II rowsort label-1269
SELECT 62 * - ( COUNT ( * ) ) / + COUNT ( * ) AS col0, 64 AS col1 FROM tab2 AS cor0
----
-62
64

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

query I rowsort
SELECT DISTINCT col0 * col0 + + - 8 FROM tab1
----
2593
7217
8273

query I rowsort
SELECT ALL 7 + + + col1 * 42 + - + 79 AS col1 FROM tab1
----
138
1902
516

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

query I rowsort
SELECT DISTINCT + 27 + - 1 FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT DISTINCT + 47 * - COUNT( * ) * + MIN( + 9 ) + - COUNT( * ) FROM tab0
----
-1272

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT + 47 * - COUNT ( * ) * + MIN ( + 9 ) + - COUNT ( * ) FROM tab0
----
-1272

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 32 <= - ( + - 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + col2 FROM tab2 AS cor0 WHERE ( col2 * - col0 / + col0 BETWEEN NULL AND - - col2 )
----

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

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

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

query I rowsort
SELECT DISTINCT + + col2 - - + col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT 61 * + - col2 + - col1 FROM tab0 AS cor0
----
-2948
-6040
-631

query I rowsort
SELECT + - col2 * - col1 * col0 + - col1 * + 58 FROM tab1 AS cor0
----
24785
288110
67732

onlyif mysql # aggregate syntax: 
query II rowsort label-1284
SELECT ( + + 72 ) + - MAX( ALL - 62 ) AS col2, 86 col1 FROM tab0 AS cor0
----
134
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1284
SELECT ( + + 72 ) + - MAX ( ALL - 62 ) AS col2, 86 col1 FROM tab0 AS cor0
----
134
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT DISTINCT - + col0 DIV - + 43 - col1 col1 FROM tab0 cor0
----
-19
-81
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT DISTINCT - + col0 / - + 43 - col1 col1 FROM tab0 cor0
----
-19
-81
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT - col0 + - col1 DIV - col1 FROM tab1 cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-1286
SELECT - col0 + - col1 / - col1 FROM tab1 cor0
----
-50
-84
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT DISTINCT + 17 DIV - col1 * + - ( + - col2 ) + col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT + 17 / - col1 * + - ( + - col2 ) + col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT - 39 * + 16 AS col1 FROM tab1 AS cor0
----
-624
-624
-624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 + - + col0 col0, - 35 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 AND col1 - - - col2
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1292
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * col0 < - col1
----

skipif mysql # not compatible
query III rowsort label-1292
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL - + MIN( ALL - - col1 ) * COUNT( * ) AS col1 FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - + MIN ( ALL - - col1 ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
-153

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 41 IS NULL
----

query I rowsort
SELECT DISTINCT + 89 * + 13 FROM tab2
----
1157

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

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

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

query II rowsort
SELECT + col2 + + col0 * - col2 AS col1, - 91 - + + 20 + + 82 FROM tab1 AS cor0
----
-4800
-29
-4956
-29
-6120
-29

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 * - col2 >= col0 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT ALL + col0 AS col2, + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1304
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - CAST( + col0 AS DECIMAL ) <= - 62 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1304
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - CAST ( + col0 AS REAL ) <= - 62 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT - SUM( - - 71 ) AS col2 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-1305
SELECT - SUM ( - - 71 ) AS col2 FROM tab2
----
-213

query I rowsort
SELECT col2 * - 24 AS col2 FROM tab0
----
-1128
-2376
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1307
SELECT + CAST( + 37 AS SIGNED ) FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-1307
SELECT + CAST ( + 37 AS INTEGER ) FROM tab0
----
37
37
37

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

query I rowsort
SELECT DISTINCT 17 + - col0 - - col0 FROM tab1
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-1310
SELECT - 35 DIV col1 AS col1, ( 2 ) DIV - - col1 + + + 65 * 45 AS col2 FROM tab0
----
-1
2925
-35
2927
0
2925

skipif mysql # not compatible
query II rowsort label-1310
SELECT - 35 / col1 AS col1, ( 2 ) / - - col1 + + + 65 * 45 AS col2 FROM tab0
----
-1
2925
-35
2927
0
2925

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

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

query I rowsort
SELECT + ( + ( col0 ) ) FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT + ( + + 54 ) AS col0 FROM tab1
----
54
54
54

query I rowsort
SELECT ALL + 98 + + col0 - + + col1 * + + 43 AS col1 FROM tab1
----
-1832
-32
-453

query I rowsort
SELECT DISTINCT + ( + + col1 ) + + + col0 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + col2 / 51 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT ALL - col0 DIV col2 + + + col1 * 75 + - + 17 + - col1 FROM tab0 cor0
----
1529
57
5977

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - col0 / col2 + + + col1 * 75 + - + 17 + - col1 FROM tab0 cor0
----
1529
57
5977

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( col1 <= + col2 * + 96 * 11 * + + 87 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT - 35 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT - 35 / - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + 14 AS col2 FROM tab0 AS cor0
----
14
14
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 18 / + col0 BETWEEN - 40 AND ( col1 )
----

query I rowsort
SELECT DISTINCT - 39 * + col2 AS col1 FROM tab2 cor0
----
-1560
-2262
-897

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 / col0 + - col0 AND + 21
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT ALL - 0 DIV - - 83 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - 0 / - - 83 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + + 86 FROM tab2 cor0
----
4386
5762
6622

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT + SUM( ALL + 57 ) FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + SUM ( ALL + 57 ) FROM tab0
----
171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT 54 * COUNT( * ) FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT 54 * COUNT ( * ) FROM tab2
----
162

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT 93 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-93

skipif mysql # not compatible
query I rowsort label-1336
SELECT 93 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT - 54 + - SUM( + 64 ) AS col0 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT - 54 + - SUM ( + 64 ) AS col0 FROM tab1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT - + MIN( - 80 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-1339
SELECT - + MIN ( - 80 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1340
SELECT DISTINCT + + 67 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 71 * + - 48, col2 * + col1 - - + 55 + + col1 col1 FROM tab1 AS cor0
----
-3408
1413
-3408
3298
-3408
355

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * - + 30 col1, 21 col2 FROM tab1 AS cor0
----
-1770
21
-2040
21
-2880
21

query I rowsort
SELECT ALL 43 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1344
SELECT 95, - 32 - + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
95
-29

skipif mysql # not compatible
query II rowsort label-1344
SELECT 95, - 32 - + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
95
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT DISTINCT MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT 53 FROM tab1 AS cor0 WHERE 40 IS NOT NULL
----
53
53
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 41 FROM tab2 WHERE ( col2 ) <= + 91 * - - col1 + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 41 FROM tab2 WHERE ( col2 ) <= + 91 * - - col1 + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1349
SELECT * FROM tab2 WHERE ( NOT ( col0 IN ( - 34 + - col2, 95 * - - col1 * - 82 - col2 + - + ( - 88 ) + + - 60 + + 11 / - col1 / + - col1 + - CAST( NULL AS SIGNED ), col0 * + col0, + + 85 ) ) )
----

skipif mysql # not compatible
query III rowsort label-1349
SELECT * FROM tab2 WHERE ( NOT ( col0 IN ( - 34 + - col2, 95 * - - col1 * - 82 - col2 + - + ( - 88 ) + + - 60 + + 11 / - col1 / + - col1 + - CAST ( NULL AS INTEGER ), col0 * + col0, + + 85 ) ) )
----

query I rowsort
SELECT ( + 45 ) + col1 * + - 37 AS col2 FROM tab1
----
-140
-1694
-473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1351
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
3

query I rowsort
SELECT - col2 FROM tab0 WHERE + 43 >= col2
----
-10

query II rowsort
SELECT + 88 + - - col2 * col1 AS col0, 13 AS col0 FROM tab0 AS cor0
----
187
13
298
13
3895
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT DISTINCT - MAX( + col0 ) - + SUM( DISTINCT + col0 ) col2 FROM tab2 AS cor0
----
-260

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT DISTINCT + col1 - col1 DIV + col0 FROM tab0 AS cor0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT + col1 - col1 / + col0 FROM tab0 AS cor0
----
1
21
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1357
SELECT - ( COUNT( * ) ) DIV + COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1357
SELECT - ( COUNT ( * ) ) / + COUNT ( * ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT ALL + col1 - 33 AS col2 FROM tab2
----
18
34
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT + 30 DIV ( col2 ) FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1359
SELECT + 30 / ( col2 ) FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - 21 * 40 + col1 AS col1 FROM tab1
----
-793
-826
-835

query I rowsort
SELECT - ( 49 ) + + col0 FROM tab0
----
-34
38
48

query I rowsort
SELECT ALL + 47 FROM tab1 WHERE 9 NOT BETWEEN 39 AND col1 * + col0 - + col1 * + col0
----
47
47
47

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

query I rowsort
SELECT ALL ( 90 ) * - col2 + col0 * + 69 FROM tab1
----
-5121
159
555

query I rowsort
SELECT col0 + - 61 AS col1 FROM tab1
----
-10
24
30

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT DISTINCT CAST( ( - col0 ) AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col1 BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT CAST ( ( - col0 ) AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col1 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT - COUNT( * ) - 81 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-1369
SELECT - COUNT ( * ) - 81 FROM tab2
----
-84

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

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

query I rowsort
SELECT + 76 + col2 FROM tab2
----
116
134
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 29 / col2 ) BETWEEN - 48 AND ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * + col2 - col0 * - col0 AS col0 FROM tab1
----
11477
3945
7520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1375
SELECT + ( COUNT( * ) ) AS col2 FROM tab0 WHERE - 57 - CAST( + 3 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1375
SELECT + ( COUNT ( * ) ) AS col2 FROM tab0 WHERE - 57 - CAST ( + 3 AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1376
SELECT DISTINCT ( - 8 ) DIV COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT ( - 8 ) / COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT CAST( + 57 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif mysql # not compatible
query I rowsort label-1377
SELECT CAST ( + 57 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

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

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT + MIN ( - ( col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT ALL 78 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT 80 + - col1 AS col2 FROM tab0
----
-1
59
79

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

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( + 95 + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT SUM( - col1 ) FROM tab1 WHERE ( - col0 * 48 ) IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1383
SELECT SUM ( - col1 ) FROM tab1 WHERE ( - col0 * 48 ) IS NOT NULL
----
-66

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL + MIN( ALL - col0 ) + - 69 AS col1 FROM tab0 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + MIN ( ALL - col0 ) + - 69 AS col1 FROM tab0 AS cor0
----
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1387
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN col0 AND ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1387
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN col0 AND ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - col0 col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-425
-4277
-714

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

query I rowsort
SELECT DISTINCT + + 52 - - 21 AS col0 FROM tab2 AS cor0
----
73

query I rowsort
SELECT - col0 + - 52 FROM tab2 AS cor0
----
-116
-127
-98

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

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

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

query I rowsort
SELECT DISTINCT - AVG ( 60 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT 10 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT 10 / col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 43 - col0 ) IN ( - 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT - MIN( col0 ) + - 63 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-114

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT - MIN ( col0 ) + - 63 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-114

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

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

query I rowsort
SELECT col2 - - col0 * - 31 FROM tab2
----
-1403
-1944
-2267

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1402
SELECT ALL - col1 / 74 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL - col1 / 74 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( NULL ) AND NULL IS NULL
----

query I rowsort
SELECT ALL 37 - + 92 AS col1 FROM tab0 cor0
----
-55
-55
-55

query I rowsort
SELECT ALL + - 90 * - + col2 + + col0 * 72 - + col2 AS col0 FROM tab0 AS cor0
----
15795
5263
7154

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

query I rowsort
SELECT DISTINCT ( - 48 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT SUM( - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1409
SELECT SUM ( - - col2 ) FROM tab2
----
121

query I rowsort
SELECT + + 73 + 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c44598517721ad29c019d831d2e0959

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL

query II rowsort
SELECT ALL - col2 AS col1, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1416
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
1

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 58 * + + ( - 49 ) + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1418
SELECT + 66 AS col0, - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1418
SELECT + 66 AS col0, - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
66
NULL
66
NULL
66
NULL

query II rowsort
SELECT + col2, col0 * col2 - 33 AS col1 FROM tab0 AS cor0
----
10
837
47
672
99
9570

query I rowsort
SELECT - col0 * - 35 FROM tab2 cor0
----
1610
2240
2625

query I rowsort
SELECT DISTINCT + col2 * - - col0 FROM tab0
----
705
870
9603

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

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

query I rowsort
SELECT ALL 33 * - 97 * - col2 FROM tab2
----
128040
185658
73623

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT + COUNT( DISTINCT - col0 ) + + 56 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) + + 56 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT col2 AS col2 FROM tab2 WHERE NOT ( - 27 * - - CAST( col0 AS SIGNED ) ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1426
SELECT col2 AS col2 FROM tab2 WHERE NOT ( - 27 * - - CAST ( col0 AS INTEGER ) ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL - 45 / CAST( NULL AS SIGNED ) + + - COUNT( * ) - - 95 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL - 45 / CAST ( NULL AS INTEGER ) + + - COUNT ( * ) - - 95 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1428
SELECT + - col2 + - col0 - - - 97 DIV + col1 FROM tab1 AS cor0
----
-153
-161
-163

skipif mysql # not compatible
query I rowsort label-1428
SELECT + - col2 + - col0 - - - 97 / + col1 FROM tab1 AS cor0
----
-153
-161
-163

query I rowsort
SELECT + 68 * col1 FROM tab2 AS cor0 WHERE ( NOT - 18 IS NULL )
----
3468
4556
5236

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1430
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > col0 * + ( - CAST( - ( 43 ) AS SIGNED ) ) * 79
----

skipif mysql # not compatible
query III rowsort label-1430
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > col0 * + ( - CAST ( - ( 43 ) AS INTEGER ) ) * 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + COUNT( ALL 19 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1431
SELECT + COUNT ( ALL 19 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

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

query I rowsort
SELECT - + col1 * + + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

query I rowsort
SELECT + 46 - ( col2 ) * + + 47 AS col2 FROM tab2 cor0
----
-1035
-1834
-2680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + 66 * 89 AS col1, ( + col2 ) col0 FROM tab1 AS cor0
----
5933
59
5942
68
5970
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1438
SELECT col2 + - 3 + ( + col1 ) - + col2 DIV 43 FROM tab2 AS cor0
----
114
121
71

skipif mysql # not compatible
query I rowsort label-1438
SELECT col2 + - 3 + ( + col1 ) - + col2 / 43 FROM tab2 AS cor0
----
114
121
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT 39 + - COUNT( * ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1440
SELECT 39 + - COUNT ( * ) AS col2 FROM tab0
----
36

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) NOT BETWEEN 82 AND ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT ALL - col1 + + col2 DIV - col2 AS col1 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL - col1 + + col2 / - col2 AS col1 FROM tab1
----
-15
-48
-6

query I rowsort
SELECT + col1 * + 6 AS col2 FROM tab1 WHERE - - col1 NOT IN ( + 35 )
----
282
30
84

query I rowsort
SELECT DISTINCT col0 * + + col0 * + + col1 + - + col1 + - + col2 FROM tab0
----
158918
18097
9309

query II rowsort
SELECT + col1 AS col2, 65 * 19 FROM tab1 AS cor0
----
14
1235
47
1235
5
1235

query I rowsort
SELECT + 40 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

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

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

query I rowsort
SELECT col0 * + ( - - 22 ) FROM tab1
----
1122
1870
2002

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 <> - col2 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= - col2 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 89 col2 FROM tab0 AS cor0 WHERE ( NOT col0 * - + col0 >= - - col1 )
----
104
176
186

query I rowsort
SELECT ALL 31 + - + col2 * - + 81 FROM tab1
----
4810
5539
7807

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

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

query I rowsort
SELECT 78 * - col1 FROM tab0
----
-1638
-6318
-78

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

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

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

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col2 * + col0 / - 63 * + + 21 IS NULL
----
1
21
81

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1463
SELECT + col1 / - 91 col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE 24 / - 95 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT DISTINCT + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1465
SELECT DISTINCT + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-87

query I rowsort
SELECT ALL + col0 * col0 - col1 + col1 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-1468
SELECT + COUNT( ALL 63 ) col0, 10 * 59 FROM tab0 AS cor0
----
3
590

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1468
SELECT + COUNT ( ALL 63 ) col0, 10 * 59 FROM tab0 AS cor0
----
3
590

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - - 58
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col0 + + col2 + - col0 col2 FROM tab1
----
-2556
-7251
-8304

query I rowsort
SELECT + 83 - + col2 - + - 51 AS col2 FROM tab2
----
111
76
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col1 FROM tab1
----
-51
-51
-51

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1477
SELECT ALL col2 col1, col0 + + col1 DIV + - 52 FROM tab0
----
10
87
47
14
99
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1477
SELECT ALL col2 col1, col0 + + col1 / + - 52 FROM tab0
----
10
87
47
14
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT - 49 - ( + CAST( - + AVG ( - col1 ) AS SIGNED ) ) AS col1 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-1478
SELECT - 49 - ( + CAST ( - + AVG ( - col1 ) AS INTEGER ) ) AS col1 FROM tab2
----
-114

query III rowsort
SELECT * FROM tab0 WHERE 96 NOT IN ( - 75, ( col2 ) + - col1 * + + 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT DISTINCT + COUNT( * ) * 38 * + 82 * + 70 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT + COUNT ( * ) * 38 * + 82 * + 70 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * + + 99 col2 FROM tab1 AS cor0
----
2277
2277
2277

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

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

query II rowsort
SELECT DISTINCT - - 5 AS col2, + 72 FROM tab2 AS cor0
----
5
72

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

query I rowsort
SELECT + col0 * - 60 AS col0 FROM tab2
----
-2760
-3840
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT DISTINCT ( - ( + COUNT( * ) ) ) + ( 40 ) * + + 66 AS col0 FROM tab0
----
2637

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) + ( 40 ) * + + 66 AS col0 FROM tab0
----
2637

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - col2 + - col1 AND + col1 / - col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT + 9 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + 15 * + col2 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) * + + 33 col2 FROM tab2 AS cor0
----
-1683
-2211
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL + COUNT( * ) - - MAX( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + COUNT ( * ) - - MAX ( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL + + col0 + - + col1 AS col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT col0 - + 26 AS col1 FROM tab2 AS cor0
----
20
38
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1498
SELECT + + SUM( + + col2 ) + - MIN( CAST( NULL AS SIGNED ) ) + - - MAX( + - col1 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT + + SUM ( + + col2 ) + - MIN ( CAST ( NULL AS INTEGER ) ) + - - MAX ( + - col1 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT + 95 + SUM( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
322

skipif mysql # not compatible
query I rowsort label-1499
SELECT + 95 + SUM ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
322

query I rowsort
SELECT + + 98 + 49 FROM tab0 cor0
----
147
147
147

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 46 / + + col1 IS NOT NULL
----

query I rowsort
SELECT + col2 + - + col2 + col2 / 63 * - col1 - 96 AS col2 FROM tab2 WHERE NOT + + 33 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1504
SELECT - ( - MAX ( - + col0 ) ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1505
SELECT + col2 * + - 14 col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-1386
NULL
-140
NULL
-658
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1505
SELECT + col2 * + - 14 col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-1386
NULL
-140
NULL
-658
NULL

query I rowsort
SELECT ( + ( 84 ) ) AS col2 FROM tab0
----
84
84
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1507
SELECT DISTINCT + COUNT( * ) * + COUNT( * ), - 2 col1 FROM tab0
----
9
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1507
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ), - 2 col1 FROM tab0
----
9
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT - col1 * + CAST( - 5 AS SIGNED ) FROM tab1
----
235
25
70

skipif mysql # not compatible
query I rowsort label-1508
SELECT - col1 * + CAST ( - 5 AS INTEGER ) FROM tab1
----
235
25
70

query I rowsort
SELECT ALL - 77 * + col2 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT COUNT( * ) * + 45 * + + 91 FROM tab2
----
12285

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT COUNT ( * ) * + 45 * + + 91 FROM tab2
----
12285

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

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

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT col2 / col1 + 82 AS col0 FROM tab2 cor0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1514
SELECT ALL - MIN( DISTINCT - col2 ) DIV 13 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL - MIN ( DISTINCT - col2 ) / 13 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT ALL + - 95 FROM tab2, tab2 AS cor0 WHERE ( NULL ) <= + CAST( 46 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL + - 95 FROM tab2, tab2 AS cor0 WHERE ( NULL ) <= + CAST ( 46 AS INTEGER )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1516
SELECT - + COUNT ( * ) * - 60 col1 FROM tab2 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT + 6 DIV - 70 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1517
SELECT + 6 / - 70 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL + MAX( - 7 ) col2 FROM tab1 cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1518
SELECT ALL + MAX ( - 7 ) col2 FROM tab1 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT + MAX( ALL - col1 ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT + MAX ( ALL - col1 ) AS col1 FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - col0 AND - 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab2 cor0
----
92

query I rowsort
SELECT + 53 * + - ( col2 ) AS col0 FROM tab0
----
-2491
-5247
-530

query I rowsort
SELECT ALL + 29 FROM tab2 WHERE NOT + + col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 70 * 32 + ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + + 77 AS col0 FROM tab1
----
136
145
173

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL MAX( ALL - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL MAX ( ALL - col0 ) AS col0 FROM tab1
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL + COUNT( DISTINCT + - 53 ) + - 39 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL + COUNT ( DISTINCT + - 53 ) + - 39 FROM tab2
----
-38

query II rowsort
SELECT col2, col2 * + col0 AS col1 FROM tab0
----
10
870
47
705
99
9603

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1532
SELECT col2 + col0 DIV - - col2 - + - col1 + + + col0 AS col2 FROM tab0 AS cor0
----
126
143
197

skipif mysql # not compatible
query I rowsort label-1532
SELECT col2 + col0 / - - col2 - + - col1 + + + col0 AS col2 FROM tab0 AS cor0
----
126
143
197

query I rowsort
SELECT col2 + col1 + + col2 * - - 77 + col2 AS col1 FROM tab2
----
1868
3237
4649

query I rowsort
SELECT ALL 75 + - col2 AS col2 FROM tab2 cor0
----
17
35
52

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT + - COUNT( * ) * - 40, - 14 col1 FROM tab1 AS cor0
----
120
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1536
SELECT + - COUNT ( * ) * - 40, - 14 col1 FROM tab1 AS cor0
----
120
-14

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1539
SELECT - MIN ( ALL + + col0 ) FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1540
SELECT DISTINCT - CAST( - 34 AS SIGNED ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - CAST ( - 34 AS INTEGER ) FROM tab0
----
34

query I rowsort
SELECT DISTINCT 42 * - 16 * ( + col2 ) FROM tab2
----
-15456
-26880
-38976

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT - ( + 18 ) * MIN( - 64 ) + ( - MAX( ALL - - ( col2 ) ) ) AS col2 FROM tab1
----
1056

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT - ( + 18 ) * MIN ( - 64 ) + ( - MAX ( ALL - - ( col2 ) ) ) AS col2 FROM tab1
----
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-1543
SELECT DISTINCT - + col1 * - col1 DIV - + ( - - col1 ) + - + 23 AS col2 FROM tab2 cor0
----
-100
-74
-90

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - + col1 * - col1 / - + ( - - col1 ) + - + 23 AS col2 FROM tab2 cor0
----
-100
-74
-90

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

query II rowsort
SELECT DISTINCT - + col2 AS col2, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

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

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + col1 * - col1 / - - col2 >= ( - - 48 )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + ( + + 72 ) + + 42 AS col1 FROM tab0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT DISTINCT + col1 DIV - col1 + - - col2 AS col1 FROM tab1 cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT + col1 / - col1 + - - col2 AS col1 FROM tab1 cor0
----
58
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1550
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + col2 * + + CAST( NULL AS SIGNED ) / + col0 * + + CAST( + + 6 AS SIGNED ) ) <> ( NULL ) )
----

skipif mysql # not compatible
query III rowsort label-1550
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + col2 * + + CAST ( NULL AS INTEGER ) / + col0 * + + CAST ( + + 6 AS INTEGER ) ) <> ( NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col1 col1, - 13 AS col0 FROM tab0 AS cor0
----
-210
-13
-3807
-13
-99
-13

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

query I rowsort
SELECT 52 * + - col2 AS col2 FROM tab1 AS cor0
----
-3068
-3536
-4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT - 74 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1554
SELECT - 74 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-24

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

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

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

query II rowsort
SELECT DISTINCT 2 AS col1, + 27 FROM tab2
----
2
27

query I rowsort
SELECT ALL 48 + + 85 AS col0 FROM tab1
----
133
133
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT 82 * - COUNT( * ) FROM tab2 AS cor0 WHERE col2 >= - - col0
----
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT 82 * - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 >= - - col0
----
0

query I rowsort
SELECT DISTINCT + col0 - + col1 AS col1 FROM tab1 AS cor0
----
37
44
80

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

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

query II rowsort
SELECT DISTINCT - col1 - + - ( - col0 ), col1 AS col1 FROM tab0 AS cor0
----
-108
21
-96
81
-98
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1563
SELECT ALL + COUNT( * ) - - ( - COUNT( * ) ), 85 + 85 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0
-170

skipif mysql # not compatible
query II rowsort label-1563
SELECT ALL + COUNT ( * ) - - ( - COUNT ( * ) ), 85 + 85 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0
-170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT + SUM( ALL - col0 ) - + ( + COUNT( * ) ) FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-1565
SELECT + SUM ( ALL - col0 ) - + ( + COUNT ( * ) ) FROM tab0
----
-202

query I rowsort
SELECT + 53 - col0 AS col1 FROM tab1
----
-32
-38
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT ALL col1 * + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL col1 * + col1 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 44 * + col0 * 3 + ( - col0 ) * - col1 / + col2 * + col2 + - 20 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - - MAX( + 12 ) AS col2 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-1570
SELECT - - MAX ( + 12 ) AS col2 FROM tab2 cor0
----
12

query I rowsort
SELECT ALL 66 * - + col0 + - 31 AS col0 FROM tab0 AS cor0
----
-1021
-5773
-6433

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> col1 * - 22 - col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 + - col1 * + col2 IN ( + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-1574
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 + - col1 * + col2 IN ( + col2 )
----
-3

query I rowsort
SELECT 69 * + col0 FROM tab1
----
3519
5865
6279

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

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

query II rowsort
SELECT col1 * - col2, col2 * + col2 + - 48 * + + col2 * col2 AS col1 FROM tab1
----
-1344
-433152
-295
-163607
-3196
-217328

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

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE + ( + col2 ) + - 22 BETWEEN - - ( - + col2 ) AND NULL
----

query II rowsort
SELECT col2, 85 - col0 * + col2 AS col0 FROM tab0
----
10
-785
47
-620
99
-9518

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

query I rowsort
SELECT DISTINCT - 11 * + col2 + col0 - - + 44 AS col2 FROM tab2 AS cor0
----
-163
-332
-519

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 89 * - col1 = col1 * - col2
----

query II rowsort
SELECT DISTINCT - col0, col2 AS col0 FROM tab0 cor0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT ALL - col2 AS col1, - 88 FROM tab0 AS cor0
----
-10
-88
-47
-88
-99
-88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - - 47 col0 FROM tab1 AS cor0
----
2773
3196
4512

query I rowsort
SELECT DISTINCT 57 * + ( - col1 ) AS col0 FROM tab2
----
-2907
-3819
-4389

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL MAX( 90 ) * - COUNT( * ) + COUNT( * ) * + 95 + 1 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL MAX ( 90 ) * - COUNT ( * ) + COUNT ( * ) * + 95 + 1 FROM tab0
----
16

query I rowsort
SELECT 60 * + col0 - col1 AS col1 FROM tab2
----
2709
3763
4433

query I rowsort
SELECT DISTINCT - 20 + 0 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL COUNT( * ) - - MIN( DISTINCT - 36 ) * 50 AS col0 FROM tab1 cor0
----
-1797

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL COUNT ( * ) - - MIN ( DISTINCT - 36 ) * 50 AS col0 FROM tab1 cor0
----
-1797

query I rowsort
SELECT DISTINCT + col2 - - 36 FROM tab0 cor0
----
135
46
83

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

query I rowsort
SELECT DISTINCT + ( 54 ) FROM tab0
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 55 < + col0
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + 50 FROM tab2 cor0
----
50

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

skipif mysql # not compatible
query I rowsort label-1600
SELECT - SUM ( DISTINCT - 0 ) FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT ( 66 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1604
SELECT SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1605
SELECT DISTINCT CAST( - ( + 21 ) AS SIGNED ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT CAST ( - ( + 21 ) AS INTEGER ) FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT COUNT( * ), + 5 - - 28 AS col0 FROM tab2
----
3
33

skipif mysql # not compatible
query II rowsort label-1606
SELECT COUNT ( * ), + 5 - - 28 AS col0 FROM tab2
----
3
33

query I rowsort
SELECT DISTINCT - col2 * - - col1 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 * ( 7 ) col2 FROM tab2
----
-434
-434
-434

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col2 / + + col0, + 62 )
----

query II rowsort
SELECT col2 AS col2, col2 - + 93 FROM tab2
----
23
-70
40
-53
58
-35

query I rowsort
SELECT + + 92 + + col2 FROM tab1 AS cor0
----
151
160
188

query I rowsort
SELECT + 80 + 70 FROM tab0 AS cor0
----
150
150
150

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT ALL - col2 DIV - 8 AS col2 FROM tab1 AS cor0
----
12
7
8

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - col2 / - 8 AS col2 FROM tab1 AS cor0
----
12
7
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1614
SELECT - 47 + + SUM( DISTINCT + + 66 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * + + col0 * - col0 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT - 47 + + SUM ( DISTINCT + + 66 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * + + col0 * - col0 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL - ( + 10 ) * - col0 + + - col1 FROM tab1
----
496
845
863

query I rowsort
SELECT ALL 49 * 98 FROM tab0
----
4802
4802
4802

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON - 74 * 35 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - MIN( ALL + + 72 ) * - - 37 + - ( 7 ) - + 74 + - 88 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT - MIN ( ALL + + 72 ) * - - 37 + - ( 7 ) - + 74 + - 88 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL - + COUNT( * ) + + + ( SUM( DISTINCT + + col1 ) ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL - + COUNT ( * ) + + + ( SUM ( DISTINCT + + col1 ) ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT DISTINCT - 87 * - col2 + + 60 + - col1 FROM tab2 cor0
----
2010
3463
5039

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

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

query II rowsort
SELECT - 19 * + col2 - + - col0, - col1 AS col1 FROM tab1 AS cor0
----
-1036
-5
-1201
-47
-1773
-14

query I rowsort
SELECT ALL - col1 - + 43 FROM tab1 AS cor0
----
-48
-57
-90

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1626
SELECT DISTINCT - col1 DIV + + col2, col2 AS col1 FROM tab0 AS cor0
----
-1
47
-2
10
0
99

skipif mysql # not compatible
query II rowsort label-1626
SELECT DISTINCT - col1 / + + col2, col2 AS col1 FROM tab0 AS cor0
----
-1
47
-2
10
0
99

query I rowsort
SELECT + col2 + - - col1 * - + 54 AS col2 FROM tab0 AS cor0
----
-1124
-4327
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 36 / 40 <= - + col2 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT + 84 DIV - COUNT( col0 ) FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + 84 / - COUNT ( col0 ) FROM tab2 cor0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - 64 + + ( + + 19 ) * - + col0 col2 FROM tab1
----
-1620
-1725
-937

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1631
SELECT DISTINCT ( - col1 ) DIV + CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT ( - col1 ) / + CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-1
-2

query I rowsort
SELECT DISTINCT - col1 * col1 + + 72 - - col0 / + ( + col2 ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 21 + 32 AS col0 FROM tab0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT - col1 DIV 35 + - + col1 FROM tab1
----
-14
-48
-5

skipif mysql # not compatible
query I rowsort label-1634
SELECT - col1 / 35 + - + col1 FROM tab1
----
-14
-48
-5

query I rowsort
SELECT ALL - col1 + col1 * + 68 + - col0 FROM tab2
----
3371
4414
5095

query III rowsort
SELECT ALL - ( + - col0 ) + col0 AS col0, + col2 + ( + col1 ) AS col2, col0 AS col1 FROM tab2
----
9 values hashing to 728105cb81025fb488512a6122df010e

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT DISTINCT ( col1 ) - 75 + + 85 DIV col1 AS col2 FROM tab1
----
-27
-53
-55

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT ( col1 ) - 75 + + 85 / col1 AS col2 FROM tab1
----
-27
-53
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT DISTINCT - MAX( DISTINCT + col2 ) + 22 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT - MAX ( DISTINCT + col2 ) + 22 FROM tab2
----
-36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1640
SELECT * FROM tab2 AS cor0 WHERE + col1 / + - col2 > - + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1640
SELECT * FROM tab2 AS cor0 WHERE + col1 / + - col2 > - + CAST ( - col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT + - col0 DIV - 27 FROM tab1 AS cor0
----
1
3
3

skipif mysql # not compatible
query I rowsort label-1641
SELECT + - col0 / - 27 FROM tab1 AS cor0
----
1
3
3

query I rowsort
SELECT ALL + - ( - + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 / 4 * 5 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE col1 / - col1 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT ALL - 47 DIV 5 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - 47 / 5 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

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

query I rowsort
SELECT + ( 11 ) AS col2 FROM tab0
----
11
11
11

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - 29
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1655
SELECT + 49 DIV MAX( DISTINCT 10 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-1655
SELECT + 49 / MAX ( DISTINCT 10 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4

query I rowsort
SELECT DISTINCT - 96 + - 72 FROM tab2 AS cor0
----
-168

query I rowsort
SELECT 7 + + - 15 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT - 32 + - col1 AS col0 FROM tab0
----
-113
-33
-53

query I rowsort
SELECT ALL col1 + + 10 FROM tab2 AS cor0
----
61
77
87

onlyif mysql # DIV for integer division: 
query II rowsort label-1660
SELECT ALL col1 AS col2, - col1 DIV 33 AS col2 FROM tab0 cor0
----
1
0
21
0
81
-2

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL col1 AS col2, - col1 / 33 AS col2 FROM tab0 cor0
----
1
0
21
0
81
-2

query I rowsort
SELECT DISTINCT - col0 * - - col2 FROM tab0 AS cor0
----
-705
-870
-9603

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + COUNT( DISTINCT - 39 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1664
SELECT + COUNT ( DISTINCT - 39 ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT ALL col1 + + 89 + - + col1 * + - col1 + + 84 DIV - 99 FROM tab2
----
2741
4645
6095

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL col1 + + 89 + - + col1 * + - col1 + + 84 / - 99 FROM tab2
----
2741
4645
6095

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1666
SELECT - 60 DIV 93 - CAST( 52 AS SIGNED ) AS col0 FROM tab2
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-1666
SELECT - 60 / 93 - CAST ( 52 AS INTEGER ) AS col0 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT 31 * - - col2 - + col1 AS col0 FROM tab2
----
1163
1731
662

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT DISTINCT col0 + - col1 + + 77 DIV col0 AS col0 FROM tab2 AS cor0
----
-12
-4
9

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT col0 + - col1 + + 77 / col0 AS col0 FROM tab2 AS cor0
----
-12
-4
9

query I rowsort
SELECT ALL 35 FROM tab1 AS cor0 WHERE NULL = ( - 23 * + col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT COUNT( * ) * 94 AS col1 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-1673
SELECT COUNT ( * ) * 94 AS col1 FROM tab0
----
282

query I rowsort
SELECT ALL - 48 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT DISTINCT - - col1 * - - col2 FROM tab0 AS cor0
----
210
3807
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT + MIN( DISTINCT - 92 ) AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-1678
SELECT + MIN ( DISTINCT - 92 ) AS col1 FROM tab2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT - MIN( DISTINCT + col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT - MIN ( DISTINCT + col1 ) AS col0 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - + 97 AS col0 FROM tab1 WHERE NULL IN ( col1 * - + col2 * - col0 * + - col1 * + 54 / + + col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT - ( - MAX( 71 ) ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1681
SELECT - ( - MAX ( 71 ) ) FROM tab1
----
71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE col2 <> NULL
----

query I rowsort
SELECT ALL col2 * + + 33 + + col2 AS col0 FROM tab1
----
2006
2312
3264

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 8 * + col2 < - col1
----

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

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

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

query I rowsort
SELECT DISTINCT 56 - + col2 FROM tab0
----
-43
46
9

query I rowsort
SELECT ALL 96 + + - col0 AS col0 FROM tab0
----
-1
81
9

query I rowsort
SELECT + 5 - + + col1 AS col1 FROM tab0 AS cor0
----
-16
-76
4

query I rowsort
SELECT ALL - + col1 * + col0 * - col0 * + ( - col0 ) - - col2 AS col1 FROM tab2 cor0
----
-20185048
-28265567
-4964113

query I rowsort
SELECT DISTINCT + col1 + + col2 - + - col1 AS col2 FROM tab0 AS cor0
----
101
209
52

query I rowsort
SELECT col0 - 78 AS col0 FROM tab1 AS cor0
----
-27
13
7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT col0 + - + col2 + 28 * + CAST( col1 AS SIGNED ) * - col0 + - col1 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
108987
5531
97595

skipif mysql # not compatible
query I rowsort label-1696
SELECT col0 + - + col2 + 28 * + CAST ( col1 AS INTEGER ) * - col0 + - col1 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
108987
5531
97595

query I rowsort
SELECT ALL - 23 * + col2 * + 22 - + col0 FROM tab0 AS cor0
----
-23797
-50191
-5147

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 30 ) + + - col1 col2 FROM tab1
----
-35
-44
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT + - COUNT( * ) FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT + - COUNT ( * ) FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT + col2 * + col0 * - col1 AS col0 FROM tab0
----
-18270
-57105
-9603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT COUNT( * ) * + + 51 AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT COUNT ( * ) * + + 51 AS col0 FROM tab2
----
153

query I rowsort
SELECT + 50 * + 89 FROM tab1
----
4450
4450
4450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - ( + COUNT ( * ) ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1709
SELECT ( + 90 ) + MIN( - col2 ), COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1709
SELECT ( + 90 ) + MIN ( - col2 ), COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT DISTINCT - + COUNT ( * ) / + COUNT ( * ) col0 FROM tab0 AS cor0
----
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col2, - 81 * col1 col2 FROM tab1 cor0
----
37
-1134
37
-3807
37
-405

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

query I rowsort
SELECT - 48 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

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

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

query I rowsort
SELECT + - col1 * col0 + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1727
9704
994

query II rowsort
SELECT DISTINCT + col0 * + + col0 + col1 - col1 AS col0, - col0 + + 95 * - col0 FROM tab2
----
2116
-4416
4096
-6144
5625
-7200

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

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

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

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

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

query I rowsort
SELECT ALL + col0 + + - 43 AS col2 FROM tab2 AS cor0
----
21
3
32

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

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

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

skipif mysql # not compatible
query I rowsort label-1723
SELECT - COUNT ( * ) + + ( - 91 ) FROM tab1
----
-94

query I rowsort
SELECT + 86 + - col1 AS col0 FROM tab2
----
19
35
9

query I rowsort
SELECT - 11 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT ALL 49 - col0 FROM tab2 AS cor0
----
-15
-26
3

query I rowsort
SELECT ALL - 51 - - col1 * 85 FROM tab2 cor0
----
4284
5644
6494

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

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

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

query I rowsort
SELECT DISTINCT + - 1 - - col2 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # DIV for integer division: 
query II rowsort label-1731
SELECT - 25 * - 0 DIV + - col0 AS col0, - 5 * col2 AS col2 FROM tab1
----
0
-295
0
-340
0
-480

skipif mysql # not compatible
query II rowsort label-1731
SELECT - 25 * - 0 / + - col0 AS col0, - 5 * col2 AS col2 FROM tab1
----
0
-295
0
-340
0
-480

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NOT NULL AND - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT ALL - COUNT( * ) * + 98 * + 45 AS col0, + SUM( ALL + col0 ) AS col1 FROM tab1
----
-13230
227

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL - COUNT ( * ) * + 98 * + 45 AS col0, + SUM ( ALL + col0 ) AS col1 FROM tab1
----
-13230
227

query I rowsort
SELECT DISTINCT 71 * - col0 AS col1 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL COUNT( * ) * - 60 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL COUNT ( * ) * - 60 FROM tab1
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1737
SELECT * FROM tab0 WHERE NOT + 22 + col1 + + - CAST( NULL AS SIGNED ) * + + 44 * + CAST( NULL AS SIGNED ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-1737
SELECT * FROM tab0 WHERE NOT + 22 + col1 + + - CAST ( NULL AS INTEGER ) * + + 44 * + CAST ( NULL AS INTEGER ) NOT IN ( + col2 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT - ( - 91 ) FROM tab0
----
91

query II rowsort
SELECT DISTINCT 38 AS col2, - ( 51 ) FROM tab2 AS cor0
----
38
-51

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

query I rowsort
SELECT + 26 * ( - 45 ) FROM tab0 AS cor0
----
-1170
-1170
-1170

onlyif mysql # aggregate syntax: 
query II rowsort label-1744
SELECT 13 col1, COUNT( * ) * - COUNT( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
13
-9

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

query I rowsort
SELECT + - 3 * + 66 FROM tab2 AS cor0
----
-198
-198
-198

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 16 * col1 + + - col1 <> - + col1 * col2 + - col1 * + col2 + + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT - col2 * + 85 * - - col1 FROM tab2 AS cor0
----
-261800
-330310
-99705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT 74 * + col2 * + CAST( - + 20 AS SIGNED ) AS col1 FROM tab1
----
-100640
-142080
-87320

skipif mysql # not compatible
query I rowsort label-1750
SELECT 74 * + col2 * + CAST ( - + 20 AS INTEGER ) AS col1 FROM tab1
----
-100640
-142080
-87320

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT + COUNT( ALL + - 7 ) col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT + COUNT ( ALL + - 7 ) col1 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - 90 * 11 * - ( - 31 ) * + + COUNT( ALL - - 90 ) FROM tab1
----
-92070

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - 90 * 11 * - ( - 31 ) * + + COUNT ( ALL - - 90 ) FROM tab1
----
-92070

query I rowsort
SELECT ALL - 83 + + col1 FROM tab1
----
-36
-69
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1754
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 96 + - CAST( - col1 AS SIGNED ) * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1754
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 96 + - CAST ( - col1 AS INTEGER ) * col1 AND NULL
----

query I rowsort
SELECT + col1 * ( col2 ) + - - col0 AS col2 FROM tab2 cor0
----
1219
3144
3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * - col1 - col0 - - - col0 + + 59 col0 FROM tab2 AS cor0
----
2568
4398
5860

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1756
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * - col1 - col0 - - - col0 + + 59 col0 FROM tab2 AS cor0
----
2568
4398
5860

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

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

query I rowsort
SELECT DISTINCT col1 + - 24 FROM tab0
----
-23
-3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT + 69 - + 43 * + COUNT( * ) * 46 FROM tab2
----
-5865

skipif mysql # not compatible
query I rowsort label-1760
SELECT + 69 - + 43 * + COUNT ( * ) * 46 FROM tab2
----
-5865

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT ALL - col2 DIV col0 * + col2 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - col2 / col0 * + col2 + + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 + + 73 FROM tab2 AS cor0
----
119
137
148

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

query I rowsort
SELECT ALL col0 + col1 * + 90 AS col2 FROM tab1 AS cor0
----
1311
4321
535

query II rowsort
SELECT DISTINCT col0, - 44 FROM tab2 AS cor0
----
46
-44
64
-44
75
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL + - SUM( 71 ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL + - SUM ( 71 ) FROM tab2 AS cor0
----
-213

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 89 < + col2 / + 39 * + col2
----

query II rowsort
SELECT ALL - 35 AS col0, col2 FROM tab0 cor0
----
-35
10
-35
47
-35
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 40 * + col2 col1 FROM tab0
----
152280
3960
8400

query I rowsort
SELECT DISTINCT + ( - 88 ) FROM tab2
----
-88

query I rowsort
SELECT DISTINCT - ( 48 ) FROM tab2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT - 34 DIV - - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 34 / - - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL - MAX( + col1 ) * - 81 FROM tab0 AS cor0
----
6561

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - MAX ( + col1 ) * - 81 FROM tab0 AS cor0
----
6561

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + col0 <= + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL + SUM( DISTINCT ( - 20 ) ) FROM tab1 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL + SUM ( DISTINCT ( - 20 ) ) FROM tab1 cor0
----
-20

query I rowsort
SELECT DISTINCT + 79 * + - 47 FROM tab1
----
-3713

query I rowsort
SELECT ALL + - col2 + + 52 AS col2 FROM tab1 AS cor0
----
-16
-44
-7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL ( - 53 ) FROM tab2 cor0
----
-53
-53
-53

query I rowsort
SELECT ALL col0 * + - 70 FROM tab0
----
-1050
-6090
-6790

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1783
SELECT - COUNT( * ), - ( + + COUNT( * ) ) FROM tab1 WHERE + col2 IS NOT NULL
----
-3
-3

skipif mysql # not compatible
query II rowsort label-1783
SELECT - COUNT ( * ), - ( + + COUNT ( * ) ) FROM tab1 WHERE + col2 IS NOT NULL
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1784
SELECT - col2 col2, + CAST( NULL AS SIGNED ) * - - col0 - - - col2, - CAST( col1 AS SIGNED ) * - - 33 + col0 + + 37 AS col2 FROM tab2
----
9 values hashing to 153d607fdcf017ec38a4e98b02950ceb

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1784
SELECT - col2 col2, + CAST ( NULL AS INTEGER ) * - - col0 - - - col2, - CAST ( col1 AS INTEGER ) * - - 33 + col0 + + 37 AS col2 FROM tab2
----
9 values hashing to 153d607fdcf017ec38a4e98b02950ceb

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1785
SELECT col0 DIV - CAST( + col0 AS SIGNED ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1785
SELECT col0 / - CAST ( + col0 AS INTEGER ) FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL + 56 + - col1 AS col2 FROM tab1
----
42
51
9

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

query III rowsort
SELECT * FROM tab1 WHERE + col1 > - - col0 AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + ( + ( - + col1 ) ) + + 62 + - col2 AS col1 FROM tab1 AS cor0
----
-20
41
8

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

query I rowsort
SELECT - - col0 + - 67 + + col2 * - 95 + col1 AS col2 FROM tab2 AS cor0
----
-2155
-3726
-5435

query I rowsort
SELECT col0 + - + 3 FROM tab0
----
12
84
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT + 80 + COUNT( ALL - col0 ) AS col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-1793
SELECT + 80 + COUNT ( ALL - col0 ) AS col1 FROM tab2
----
83

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1797
SELECT DISTINCT 16 AS col2, - COUNT( * ) AS col1 FROM tab0
----
16
-3

skipif mysql # not compatible
query II rowsort label-1797
SELECT DISTINCT 16 AS col2, - COUNT ( * ) AS col1 FROM tab0
----
16
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT DISTINCT MAX( DISTINCT - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT MAX ( DISTINCT - col1 ) FROM tab0
----
-1

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

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT + 63 IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + - ( - col0 ) + + col0 - - - col0 + + 53
----

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

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

query I rowsort
SELECT DISTINCT ( 86 ) FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT + col1 * 40 AS col0 FROM tab2 AS cor0
----
2040
2680
3080

query I rowsort
SELECT 73 + - 45 * 93 + col0 AS col0 FROM tab0 AS cor0
----
-4015
-4025
-4097

onlyif mysql # aggregate syntax: 
query II rowsort label-1807
SELECT + 6 AS col2, COUNT( * ) * - COUNT( * ) col2 FROM tab2 AS cor0
----
6
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1807
SELECT + 6 AS col2, COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0
----
6
-9

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

query I rowsort
SELECT ALL - 28 * 62 FROM tab2
----
-1736
-1736
-1736

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1810
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN 63 * col1 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1810
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN 63 * col1 + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - COUNT( * ) - 85 * + 95 AS col2 FROM tab2
----
-8078

skipif mysql # not compatible
query I rowsort label-1811
SELECT - COUNT ( * ) - 85 * + 95 AS col2 FROM tab2
----
-8078

query I rowsort
SELECT DISTINCT - 69 * 90 AS col0 FROM tab1
----
-6210

query I rowsort
SELECT DISTINCT - 72 FROM tab1 WHERE NOT 31 IN ( col2 )
----
-72

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

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

query I rowsort
SELECT DISTINCT - col1 * 47 FROM tab0
----
-3807
-47
-987

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( - 53 ) ) >= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 99 NOT IN ( col2 * - 98 )
----

query I rowsort
SELECT + 16 FROM tab2 WHERE + 9 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col1 col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT - 49 - - ( + col0 ) FROM tab1
----
2
36
42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1823
SELECT ALL * FROM tab2 WHERE col0 / - CAST( NULL AS DECIMAL ) - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1823
SELECT ALL * FROM tab2 WHERE col0 / - CAST ( NULL AS REAL ) - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 * 49 FROM tab1 WHERE NOT ( col0 * col1 ) < NULL
----

query I rowsort
SELECT ALL + 36 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 * - 29 AS col2 FROM tab0
----
1363
2871
290

query I rowsort
SELECT col1 * + 68 AS col2 FROM tab0
----
1428
5508
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 58 / - col0 IN ( ( col0 ) )
----

query I rowsort
SELECT DISTINCT - col0 * 66 + col2 AS col0 FROM tab2
----
-3013
-4184
-4892

query I rowsort
SELECT + col1 * 1 AS col0 FROM tab2
----
51
67
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT col2 col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * + 2 NOT BETWEEN ( + 96 ) AND - 68
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1832
SELECT col2 col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 2 NOT BETWEEN ( + 96 ) AND - 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL 61 FROM tab1 WHERE NOT 68 * + CAST( - 39 * 78 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL 61 FROM tab1 WHERE NOT 68 * + CAST ( - 39 * 78 AS INTEGER ) IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT ALL ( + col0 ) * col1 - - 15 * - 58 AS col1 FROM tab2 AS cor0
----
1476
4058
4155

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 / col0 + 38 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL + 94 * - ( COUNT( * ) * COUNT( * ) + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-1128

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + 94 * - ( COUNT ( * ) * COUNT ( * ) + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-1128

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT DISTINCT col1 DIV 46 col0 FROM tab2 AS cor0
----
1

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

query I rowsort
SELECT col2 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - ( + MAX( ALL + 15 ) ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - ( + MAX ( ALL + 15 ) ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT col1 + - 80 FROM tab2 AS cor0 WHERE NOT 63 + - col2 * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 * 59 + + 49 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col2 * - + ( 65 ) AS col0 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT ALL 28 * - col2 AS col2 FROM tab1
----
-1652
-1904
-2688

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT COUNT( * ) DIV COUNT( col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT COUNT ( * ) / COUNT ( col0 ) FROM tab0
----
1

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

query I rowsort
SELECT ALL ( col0 ) * 96 FROM tab0 WHERE NOT 25 * - 14 + + col2 * - 48 IN ( - col0 )
----
1440
8352
9312

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

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

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

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

query I rowsort
SELECT + 13 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN col1 AND ( + col2 )
----
-1261

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

query I rowsort
SELECT DISTINCT + 96 FROM tab0 WHERE + 60 >= col0 * + col1
----

query I rowsort
SELECT DISTINCT - col2 * col2 + 34 FROM tab2
----
-1566
-3330
-495

query I rowsort
SELECT - 62 + - col2 AS col0 FROM tab1
----
-121
-130
-158

query I rowsort
SELECT col0 + + col1 + col0 + - col2 * - col2 FROM tab2
----
1805
3581
672

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

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

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

query I rowsort
SELECT - - col2 + - col1 * - col2 FROM tab2 cor0
----
1196
3120
3944

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

query I rowsort
SELECT + 44 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( - col0 + 75 ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL - MAX( + 50 ) + COUNT( * ) FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - MAX ( + 50 ) + COUNT ( * ) FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT DISTINCT - ( - - 55 ) * - - COUNT( * ) AS col2 FROM tab1 cor0
----
-165

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - ( - - 55 ) * - - COUNT ( * ) AS col2 FROM tab1 cor0
----
-165

query I rowsort
SELECT + ( ( col2 ) ) * col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 25 )
----

query I rowsort
SELECT 56 FROM tab1 cor0 WHERE NULL NOT IN ( 47 )
----

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

query I rowsort
SELECT + col0 * + ( 12 ) * + 78 AS col2 FROM tab0 AS cor0
----
14040
81432
90792

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT + SUM( DISTINCT - + 35 ) col2 FROM tab2
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1872
SELECT + SUM ( DISTINCT - + 35 ) col2 FROM tab2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT + SUM( DISTINCT + + col2 ) DIV - ( - - 74 ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-1873
SELECT + SUM ( DISTINCT + + col2 ) / - ( - - 74 ) AS col1 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT AVG ( DISTINCT ( 79 ) ) - - SUM( DISTINCT col0 - 95 ) AS col0 FROM tab1 WHERE NULL >= - col1 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT AVG ( DISTINCT ( 79 ) ) - - SUM ( DISTINCT col0 - 95 ) AS col0 FROM tab1 WHERE NULL >= - col1 * + col1
----
NULL

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

query I rowsort
SELECT ALL + 46 + - - 51 AS col0 FROM tab0
----
97
97
97

query I rowsort
SELECT + col2 - - col1 * - - col1 FROM tab2
----
2624
4547
5969

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ( - 58 ) * ( - ( MAX( - 77 ) ) ) AS col0 FROM tab1
----
-4466

skipif mysql # not compatible
query I rowsort label-1880
SELECT ( - 58 ) * ( - ( MAX ( - 77 ) ) ) AS col0 FROM tab1
----
-4466

query I rowsort
SELECT 73 * + col1 FROM tab1
----
1022
3431
365

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1883
SELECT MIN( - - col2 ) DIV + 1 col2, SUM( 11 ) AS col1 FROM tab1 AS cor0
----
59
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1883
SELECT MIN ( - - col2 ) / + 1 col2, SUM ( 11 ) AS col1 FROM tab1 AS cor0
----
59
33

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

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

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

query I rowsort
SELECT DISTINCT 25 FROM tab0 AS cor0 WHERE NOT - 67 NOT BETWEEN + + col0 AND + 92
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT ALL + col1 / + 8 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + col1 / + 8 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - ( - col0 ) col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT col0 AS col0, 99 AS col2 FROM tab2
----
46
99
64
99
75
99

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1892
SELECT ALL CAST( NULL AS DECIMAL ) col2 FROM tab1 WHERE ( + 76 * - 79 * + 7 + col2 ) BETWEEN - 69 AND + 21
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1892
SELECT ALL CAST ( NULL AS REAL ) col2 FROM tab1 WHERE ( + 76 * - 79 * + 7 + col2 ) BETWEEN - 69 AND + 21
----

query II rowsort
SELECT + col2 * + - col2 AS col1, - 32 AS col2 FROM tab1
----
-3481
-32
-4624
-32
-9216
-32

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> - ( - - 9 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < 97
----

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

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

query II rowsort
SELECT ALL + - 8 AS col0, + 73 AS col0 FROM tab1 AS cor0
----
-8
73
-8
73
-8
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT col0 DIV 15 + - col1 * - + col0 + - col2 + col2 FROM tab0 cor0
----
103
1216
1832

skipif mysql # not compatible
query I rowsort label-1901
SELECT col0 / 15 + - col1 * - + col0 + - col2 + col2 FROM tab0 cor0
----
103
1216
1832

query I rowsort
SELECT DISTINCT + col1 * + 58 + 56 FROM tab0 AS cor0
----
114
1274
4754

query I rowsort
SELECT - col0 + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL = col1
----

query I rowsort
SELECT + col1 + 30 FROM tab1 AS cor0
----
35
44
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT DISTINCT 30 - + CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
107
81
97

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT 30 - + CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
107
81
97

query I rowsort
SELECT ALL + - 6 - ( 70 ) AS col2 FROM tab1 AS cor0
----
-76
-76
-76

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

query I rowsort
SELECT + col2 + - - col0 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT - 7 FROM tab1 WHERE ( - col2 ) > col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL - col1 DIV ( - col1 ) * + + 18 - + col0 * - 52 AS col1 FROM tab1 WHERE NULL IS NULL
----
2670
4438
4750

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL - col1 / ( - col1 ) * + + 18 - + col0 * - 52 AS col1 FROM tab1 WHERE NULL IS NULL
----
2670
4438
4750

query I rowsort
SELECT - col0 * + 62 * 38 AS col1 FROM tab0 AS cor0
----
-204972
-228532
-35340

query I rowsort
SELECT + 15 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL + COUNT( * ) * - - COUNT( - 70 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + COUNT ( * ) * - - COUNT ( - 70 ) AS col2 FROM tab2
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE 35 IS NULL
----

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT 6 NOT IN ( + col2, col0 - 77 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT + + ( - 97 ) DIV col1 FROM tab0 AS cor0
----
-1
-4
-97

skipif mysql # not compatible
query I rowsort label-1917
SELECT + + ( - 97 ) / col1 FROM tab0 AS cor0
----
-1
-4
-97

query I rowsort
SELECT - col0 * - + 44 FROM tab1 cor0
----
2244
3740
4004

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT - COUNT( + + col1 ) AS col1 FROM tab1 cor0 WHERE NOT - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1922
SELECT - COUNT ( + + col1 ) AS col1 FROM tab1 cor0 WHERE NOT - col0 = NULL
----
0

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

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

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

query I rowsort
SELECT DISTINCT + col0 + 10 + - + col0 FROM tab0
----
10

query I rowsort
SELECT ALL col0 * + 18 - - col0 * + col1 AS col0 FROM tab2 WHERE NOT + 48 + - col1 + + 94 * - - col0 IS NULL
----
3174
6080
6375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - col0 FROM tab2
----
23
-46
40
-64
58
-75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT col2 * + ( - CAST( - col2 AS SIGNED ) ) + + + col1 AS col2 FROM tab2
----
1677
3431
580

skipif mysql # not compatible
query I rowsort label-1929
SELECT col2 * + ( - CAST ( - col2 AS INTEGER ) ) + + + col1 AS col2 FROM tab2
----
1677
3431
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT CAST( - col1 AS SIGNED ) + 14 AS col2 FROM tab1
----
-33
0
9

skipif mysql # not compatible
query I rowsort label-1930
SELECT CAST ( - col1 AS INTEGER ) + 14 AS col2 FROM tab1
----
-33
0
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE 31 IS NULL
----

query I rowsort
SELECT + + 56 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + 21 IS NOT NULL
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

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

query I rowsort
SELECT ALL + col2 - + - col1 * - col1 + + col2 * + ( - col1 ) FROM tab1 AS cor0
----
-1444
-261
-5337

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ALL - - 16 + - COUNT( * ) * 40 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - - 16 + - COUNT ( * ) * 40 FROM tab2 AS cor0
----
-104

query I rowsort
SELECT ALL + - col0 * 92 AS col1 FROM tab1 cor0
----
-4692
-7820
-8372

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + 93 + - - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL + MAX( ( col0 ) ) - - 88 * SUM( - - 54 ) AS col1 FROM tab0 AS cor0
----
14353

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL + MAX ( ( col0 ) ) - - 88 * SUM ( - - 54 ) AS col1 FROM tab0 AS cor0
----
14353

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

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

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

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

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

query I rowsort
SELECT - col2 - + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT 76 - - col2 + col1 FROM tab1
----
140
186
191

query I rowsort
SELECT DISTINCT 28 - + 41 + + 57 FROM tab1
----
44

query I rowsort
SELECT + ( - + 39 ) - - col0 + + col0 + - 72 * - ( - - 5 ) AS col2 FROM tab2
----
413
449
471

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1946
SELECT 17 - - COUNT( * ) DIV - ( SUM( ALL + col1 ) ), 52 + - - COUNT( * ) + 36 AS col1 FROM tab1
----
17
91

skipif mysql # not compatible
query II rowsort label-1946
SELECT 17 - - COUNT ( * ) / - ( SUM ( ALL + col1 ) ), 52 + - - COUNT ( * ) + 36 AS col1 FROM tab1
----
17
91

onlyif mysql # DIV for integer division: 
query II rowsort label-1947
SELECT - col0 DIV - col1, col1 FROM tab0
----
0
81
4
21
97
1

skipif mysql # not compatible
query II rowsort label-1947
SELECT - col0 / - col1, col1 FROM tab0
----
0
81
4
21
97
1

query I rowsort
SELECT col2 * - 86 * + - 77 * - - 74 FROM tab1
----
28911652
33321904
47042688

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

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

query I rowsort
SELECT col1 * + 28 AS col1 FROM tab1
----
1316
140
392

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 48 col2, + ( + - col0 ) + col2 AS col1 FROM tab0 AS cor0
----
-48
-77
-48
2
-48
32

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1955
SELECT + + 94 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1955
SELECT + + 94 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-31

query II rowsort
SELECT + + col2, col0 AS col0 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT - 10 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL - COUNT( - - 56 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL - COUNT ( - - 56 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( - + col2 ) + + col1 FROM tab2
----
117
125
74

query III rowsort
SELECT ALL * FROM tab2 WHERE + 14 NOT BETWEEN + + 82 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT - COUNT( - col2 ) + - - 59 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - COUNT ( - col2 ) + - - 59 FROM tab2
----
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - 5 * + COUNT( * ) + 75 AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 5 * + COUNT ( * ) + 75 AS col0 FROM tab2
----
60

query I rowsort
SELECT - 56 + + 81 AS col0 FROM tab2 AS cor0
----
25
25
25

query II rowsort
SELECT - - 16 * + 45 * col1 * + 69 AS col1, - 40 FROM tab0 AS cor0
----
1043280
-40
4024080
-40
49680
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT DISTINCT + COUNT( * ) + + - 76 + 27 AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + COUNT ( * ) + + - 76 + 27 AS col1 FROM tab1
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43 col0, 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
43
57

query I rowsort
SELECT 66 + - col2 FROM tab2 AS cor0
----
26
43
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - 74 + + col1 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + 50 AS col2 FROM tab2 AS cor0
----
101
117
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT + 91 + - + CAST( - AVG ( DISTINCT - - col1 ) AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
193

skipif mysql # not compatible
query I rowsort label-1971
SELECT + 91 + - + CAST ( - AVG ( DISTINCT - - col1 ) AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT DISTINCT - ( COUNT( DISTINCT - 85 ) ) - + COUNT( * ) AS col1 FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT - ( COUNT ( DISTINCT - 85 ) ) - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-4

query II rowsort
SELECT 45 * - col2, col0 AS col1 FROM tab1
----
-2655
85
-3060
91
-4320
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT - MAX( - col0 ) * + 40 + - - 21 AS col0 FROM tab0
----
621

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - MAX ( - col0 ) * + 40 + - - 21 AS col0 FROM tab0
----
621

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

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

query I rowsort
SELECT + 70 * + - 41 FROM tab0
----
-2870
-2870
-2870

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1979
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED ) - - + 3
----

skipif mysql # not compatible
query III rowsort label-1979
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) - - + 3
----

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

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

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

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

query I rowsort
SELECT - ( 8 ) * col1 AS col0 FROM tab2 AS cor0
----
-408
-536
-616

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT + 3 DIV - - 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1983
SELECT + 3 / - - 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

query II rowsort
SELECT - 7 + + col1 - - col2 AS col0, + col1 FROM tab2 AS cor0
----
110
77
118
67
67
51

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

query I rowsort
SELECT 7 + - - 51 FROM tab1 AS cor0
----
58
58
58

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

query I rowsort
SELECT ALL + 12 * 13 - + col1 AS col0 FROM tab0 AS cor0
----
135
155
75

query I rowsort
SELECT + + 76 AS col2 FROM tab2 AS cor0 WHERE + col2 * + - 49 IS NOT NULL
----
76
76
76

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1992
SELECT * FROM tab1 WHERE ( + CAST( + ( 51 ) AS DECIMAL ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-1992
SELECT * FROM tab1 WHERE ( + CAST ( + ( 51 ) AS REAL ) IS NULL )
----

query II rowsort
SELECT - col2 AS col2, - col2 - + col0 AS col2 FROM tab1
----
-59
-144
-68
-159
-96
-147

query II rowsort
SELECT DISTINCT + col2 - col2 * + col2 AS col0, + 14 FROM tab1 cor0
----
-3422
14
-4556
14
-9120
14

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

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

query I rowsort
SELECT DISTINCT + col1 * - + col0 FROM tab1 WHERE + col0 * - ( 39 ) * - ( + + col1 ) IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL + 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2000
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col2 / - + 70 BETWEEN 47 AND - col2 - + col2
----

skipif mysql # not compatible
query III rowsort label-2000
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col2 / - + 70 BETWEEN 47 AND - col2 - + col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( - 75 ) IN ( 44 / - col0 * 73 + - + col1, col1 * 73 * + - 12, + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 * col2 * col0 AS col0 FROM tab0 cor0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT + col0 + + col0 * - + col0 FROM tab2 AS cor0 WHERE + 75 + - 43 IS NOT NULL
----
-2070
-4032
-5550

onlyif mysql # DIV for integer division: 
query II rowsort label-2004
SELECT DISTINCT col2 DIV + - 30, col1 + + - col2 + - + col0 - - + 83 * + col1 * + 84 col0 FROM tab0 AS cor0
----
-1
564751
-3
6777
0
146336

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2004
SELECT DISTINCT col2 / + - 30, col1 + + - col2 + - + col0 - - + 83 * + col1 * + 84 col0 FROM tab0 AS cor0
----
-1
564751
-3
6777
0
146336

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 * - - col1 col0 FROM tab2 AS cor0
----
2091
2747
3157

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + 66 IS NULL
----
-15
-87
-97

query I rowsort
SELECT col0 * + col1 * + col0 FROM tab1
----
36125
36414
389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 54 col1, - col1 - col0 AS col2 FROM tab2
----
54
-141
54
-142
54
-97

query I rowsort
SELECT DISTINCT + col2 * + + col1 AS col0 FROM tab2
----
1173
3080
3886

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

query I rowsort
SELECT + ( + col0 ) * col0 AS col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL - 63 * 57 FROM tab2 AS cor0
----
-3591
-3591
-3591

query I rowsort
SELECT ALL - 13 * col0 AS col0 FROM tab2 AS cor0
----
-598
-832
-975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT CAST( 28 AS SIGNED ) FROM tab0 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2016
SELECT CAST ( 28 AS INTEGER ) FROM tab0 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2018
SELECT ALL - MAX( DISTINCT - col0 ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - MAX ( DISTINCT - col0 ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

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

query II rowsort
SELECT ALL - 60 AS col0, 81 - col0 + - - 89 FROM tab2 AS cor0
----
-60
106
-60
124
-60
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT + MIN( ALL - + col2 ) FROM tab2 AS cor0 WHERE - col2 / col2 + - col0 + + col0 + + + col1 * + col2 - - + col2 + col0 NOT BETWEEN + ( + 2 ) AND NULL OR NOT NULL > - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2021
SELECT + MIN ( ALL - + col2 ) FROM tab2 AS cor0 WHERE - col2 / col2 + - col0 + + col0 + + + col1 * + col2 - - + col2 + col0 NOT BETWEEN + ( + 2 ) AND NULL OR NOT NULL > - 76
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 / + 43 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 / + 43 IS NULL
----
3

query I rowsort
SELECT ALL - ( - + ( - - col0 ) ) + - 78 FROM tab1
----
-27
13
7

query III rowsort
SELECT * FROM tab2 WHERE + + 62 * - + 96 NOT IN ( - 47, + col1, + col1, - - 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 25 - col2, 95 AS col0 FROM tab1
----
-34
95
-43
95
-71
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT DISTINCT + - COUNT( DISTINCT - + CAST( - - 25 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT + - COUNT ( DISTINCT - + CAST ( - - 25 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( ( + + 74 ) ) col0 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT - col0 * - ( 36 ) FROM tab2 AS cor0
----
1656
2304
2700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2030
SELECT - CAST( col0 AS SIGNED ) * - 62 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
5394
21
6014
1
930
81

skipif mysql # not compatible
query II rowsort label-2030
SELECT - CAST ( col0 AS INTEGER ) * - 62 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
5394
21
6014
1
930
81

query II rowsort
SELECT + + col0 AS col0, + 74 * col1 - + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 42
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col1, 90 FROM tab0 AS cor0
----
59
90
59
90
59
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * + - 44 * + col2 + - col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-112717
-191467
-46603

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT - SUM( ALL + ( col2 ) ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2035
SELECT - SUM ( ALL + ( col2 ) ) FROM tab2 cor0
----
-121

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - - col2 * - 14 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT MAX( - 74 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-2037
SELECT MAX ( - 74 ) FROM tab0
----
-74

query I rowsort
SELECT col0 * - col1 * - - 63 * + - 93 AS col2 FROM tab1 AS cor0
----
2490075
25058943
4183326

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT COUNT( * ) * 50 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
150

skipif mysql # not compatible
query I rowsort label-2041
SELECT COUNT ( * ) * 50 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
150

query III rowsort
SELECT 94 AS col1, + col2 * - col1, - - col0 + + 41 AS col1 FROM tab2
----
9 values hashing to 98853f0b93dee834ac65c19c18c8ab11

query I rowsort
SELECT col2 + + 23 FROM tab0
----
122
33
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2044
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / CAST( - 62 AS SIGNED ) <= col1 / col0 * + + col2
----

skipif mysql # not compatible
query III rowsort label-2044
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / CAST ( - 62 AS INTEGER ) <= col1 / col0 * + + col2
----

query I rowsort
SELECT - 42 + - + 14 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL COUNT( * ) + + MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL COUNT ( * ) + + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT DISTINCT - 27 + col1 FROM tab1 AS cor0
----
-13
-22
20

query I rowsort
SELECT DISTINCT + + ( + 58 ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL - col0 + - 35 AS col2 FROM tab1 AS cor0
----
-120
-126
-86

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

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

query I rowsort
SELECT ALL - col1 / - col1 FROM tab0 AS cor0 WHERE NOT NULL > 66 + + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2052
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 59 * + - col0 AND ( col1 * ( - + 36 ) + - - col0 * + CAST( NULL AS SIGNED ) / + - 25 )
----

skipif mysql # not compatible
query III rowsort label-2052
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 59 * + - col0 AND ( col1 * ( - + 36 ) + - - col0 * + CAST ( NULL AS INTEGER ) / + - 25 )
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + 47 * 68
----

query I rowsort
SELECT + 77 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT SUM( ALL - 10 ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT SUM ( ALL - 10 ) AS col1 FROM tab1
----
-30

query II rowsort
SELECT ( col1 ) AS col0, 16 * - col0 AS col1 FROM tab2
----
51
-736
67
-1200
77
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT MAX( - + col2 ) - COUNT( * ) AS col2 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-2060
SELECT MAX ( - + col2 ) - COUNT ( * ) AS col2 FROM tab0
----
-13

query I rowsort
SELECT col1 - - - col2 + col2 * - col0 * + + col1 FROM tab1
----
-25129
-290857
-68626

query II rowsort
SELECT DISTINCT col1 - - col1 + col1 + + + col0, 36 AS col1 FROM tab2
----
199
36
276
36
295
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * + col2 * - col2 + + 12 - - col2 * + col1 * - + col0 - - + 19 + - col1 col1 FROM tab2 AS cor0
----
-261166
-486598
-66145

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT 53 * SUM( col0 ) FROM tab0
----
10547

skipif mysql # not compatible
query I rowsort label-2064
SELECT 53 * SUM ( col0 ) FROM tab0
----
10547

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

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

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

query I rowsort
SELECT ALL + 48 AS col1 FROM tab2 cor0
----
48
48
48

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 * 68 * - col1, + col0 FROM tab2
----
-159528
46
-335104
64
-341700
75

query I rowsort
SELECT ( - 90 ) AS col1 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT col1 * - col2 * - - col0 AS col0 FROM tab2 WHERE NOT - - col0 IS NULL
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL COUNT( - 87 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL COUNT ( - 87 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 19 ) >= - 25
----

query I rowsort
SELECT col2 + + + col1 * - + 31 FROM tab1 AS cor0
----
-1389
-338
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 cor0 WHERE NOT col1 + - 65 * - col2 IS NULL
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT COUNT( * ) AS col0, + 20 + 24 AS col2 FROM tab1 AS cor0
----
3
44

skipif mysql # not compatible
query II rowsort label-2078
SELECT COUNT ( * ) AS col0, + 20 + 24 AS col2 FROM tab1 AS cor0
----
3
44

query I rowsort
SELECT DISTINCT + + 40 * 18 FROM tab1 AS cor0
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2080
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 6 AS col0, - col1 + + 57 FROM tab2
----
NULL
-10
NULL
-20
NULL
6

skipif mysql # not compatible
query II rowsort label-2080
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 6 AS col0, - col1 + + 57 FROM tab2
----
NULL
-10
NULL
-20
NULL
6

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 >= + col1 * col2 + 21
----

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

skipif mysql # not compatible
query I rowsort label-2084
SELECT + CAST ( NULL AS INTEGER ) + 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 - CAST( NULL AS SIGNED ) * SUM( ALL + + 44 ) AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + - col1 + - + col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

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

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

query I rowsort
SELECT ALL ( - ( col1 ) ) - - col1 * + 13 FROM tab0 AS cor0
----
12
252
972

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT - MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - col1 + + 35 * - - col0 FROM tab0
----
3024
3394
444

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT DISTINCT 32 DIV col2 AS col0 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT 32 / col2 AS col0 FROM tab0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL COUNT( * ) + - 14 * + + 99 AS col0 FROM tab1
----
-1383

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL COUNT ( * ) + - 14 * + + 99 AS col0 FROM tab1
----
-1383

query II rowsort
SELECT + 92, col2 FROM tab1
----
92
59
92
68
92
96

query I rowsort
SELECT + ( + 72 ) AS col2 FROM tab2 AS cor0 WHERE NULL <> + col0 / col2 + 44
----

query I rowsort
SELECT ALL col1 + 50 AS col0 FROM tab1 AS cor0
----
55
64
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL COUNT( * ) * - 64 + + + MIN( DISTINCT + 42 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL COUNT ( * ) * - 64 + + + MIN ( DISTINCT + 42 ) FROM tab0 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 11 - SUM( - 0 ) + - - 48 AS col1 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2097
SELECT 11 - SUM ( - 0 ) + - - 48 AS col1 FROM tab0 AS cor0
----
59

query II rowsort
SELECT ALL + col2 * + col0 + - 67 AS col1, - col2 - + 80 FROM tab1 AS cor0
----
4829
-176
4948
-139
6121
-148

query I rowsort
SELECT - ( 2 ) FROM tab1 AS cor0
----
-2
-2
-2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT 15 DIV ( col0 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT 15 / ( col0 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL MIN( DISTINCT - + col1 ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2102
SELECT ALL MIN ( DISTINCT - + col1 ) col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT COUNT( * ) * + + 8 * 39 FROM tab1
----
936

skipif mysql # not compatible
query I rowsort label-2103
SELECT COUNT ( * ) * + + 8 * 39 FROM tab1
----
936

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 17 * + col1 * ( ( 50 ) ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 17 * + col1 * ( ( 50 ) ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 16 col1, - col1 + + - col1 + + - col2 AS col1 FROM tab0 AS cor0
----
16
-101
16
-209
16
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + ( + + col0 ) AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT + + SUM( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + + SUM ( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL 68 * SUM( ALL + col1 ) FROM tab2 AS cor0
----
13260

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL 68 * SUM ( ALL + col1 ) FROM tab2 AS cor0
----
13260

query I rowsort
SELECT 20 * - 82 * 53 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + - col0 + + - col0 AND + col2 + - - col1
----
-86920

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= 97
----

query I rowsort
SELECT DISTINCT 50 + 69 + + col0 FROM tab2
----
165
183
194

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

skipif mysql # not compatible
query I rowsort label-2114
SELECT - MIN ( ALL - + col0 ) FROM tab0
----
97

query II rowsort
SELECT col2 * 1 AS col0, - 71 AS col0 FROM tab2
----
23
-71
40
-71
58
-71

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT DISTINCT - COUNT( ALL + 53 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT - COUNT ( ALL + 53 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT ( + col2 ) * 5 * + + col1 AS col1 FROM tab2 AS cor0
----
15400
19430
5865

query I rowsort
SELECT DISTINCT - - 38 AS col1 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT DISTINCT - COUNT( DISTINCT - col1 ) AS col1, + 41 - + 0 col0 FROM tab1 AS cor0
----
-3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2120
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) AS col1, + 41 - + 0 col0 FROM tab1 AS cor0
----
-3
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + ( col1 ) col2, col2 FROM tab1
----
110
96
115
68
64
59

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE col1 + + 92 BETWEEN - + 47 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT - MAX( ALL 18 ) AS col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2123
SELECT - MAX ( ALL 18 ) AS col1 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - - col1 + - col0 + + col2 - + + col2 * + 96 FROM tab1 cor0
----
-5685
-6504
-9157

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT MIN( DISTINCT - + col2 ) * + 29 / 41 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT MIN ( DISTINCT - + col2 ) * + 29 / 41 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE ( + col0 ) > NULL
----

query I rowsort
SELECT ALL - col2 + - col0 * + - col0 AS col0 FROM tab0 AS cor0
----
178
7559
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - col1 * - col1 * - col2 * + col0 = col2
----
3

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - col1 * - col1 * - col2 * + col0 = col2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - col2 col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE + + col2 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL 57 + + col2 * + ( - + col2 ) FROM tab2
----
-1543
-3307
-472

query I rowsort
SELECT 58 * - - col0 - + col1 AS col1 FROM tab0
----
5025
5625
789

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ALL - 70 + MIN( DISTINCT - 27 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL - 70 + MIN ( DISTINCT - 27 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT - 29 * + - 49 * 65 + + + 50 + - 29 FROM tab1
----
92386
92386
92386

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT DISTINCT + ( + SUM( DISTINCT 36 ) ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT + ( + SUM ( DISTINCT 36 ) ) AS col0 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * col2 col0 FROM tab1 cor0
----
4366
5032
7104

query I rowsort
SELECT ( 93 ) FROM tab1 AS cor0
----
93
93
93

onlyif mysql # DIV for integer division: 
query II rowsort label-2138
SELECT DISTINCT - + ( - + 99 ) col2, col1 * 94 DIV - col2 FROM tab1 AS cor0
----
99
-13
99
-64
99
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2138
SELECT DISTINCT - + ( - + 99 ) col2, col1 * 94 / - col2 FROM tab1 AS cor0
----
99
-13
99
-64
99
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + SUM( + + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + SUM ( + + col2 ) AS col0 FROM tab2
----
121

query II rowsort
SELECT ALL 96 AS col0, 30 FROM tab2 AS cor0
----
96
30
96
30
96
30

query I rowsort
SELECT 34 AS col0 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2142
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 IN ( - col1 * ( - 27 ), 58, + 90 * - CAST( NULL AS SIGNED ) / - - 44 * - 90 + - 72 * - col2 * + - 43 * + col0 + + col0, - - col2, - ( 98 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2142
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 IN ( - col1 * ( - 27 ), 58, + 90 * - CAST ( NULL AS INTEGER ) / - - 44 * - 90 + - 72 * - col2 * + - 43 * + col0 + + col0, - - col2, - ( 98 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - + col1 * - 62 / + 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN + 6 AND + 97
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2145
SELECT ALL - COUNT( ALL CAST( - col1 AS SIGNED ) ) DIV - 35 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL - COUNT ( ALL CAST ( - col1 AS INTEGER ) ) / - 35 AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * 39 col1, - 65 * ( - 76 ) * + col0 * + + col1 FROM tab0
----
-3159
6002100
-39
479180
-819
9025380

onlyif mysql # DIV for integer division: 
query II rowsort label-2147
SELECT DISTINCT col2 DIV - - col0 + + ( - 89 ), + col2 + + 83 AS col0 FROM tab2
----
-89
106
-89
123
-89
141

skipif mysql # not compatible
query II rowsort label-2147
SELECT DISTINCT col2 / - - col0 + + ( - 89 ), + col2 + + 83 AS col0 FROM tab2
----
-89
106
-89
123
-89
141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col0 + + 36 + + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT DISTINCT + CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) + col2 FROM tab1 cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) + col2 FROM tab1 cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2150
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) + - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2150
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2151
SELECT DISTINCT + SUM( ALL + 21 ) + COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
189

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT + SUM ( ALL + 21 ) + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
189

query I rowsort
SELECT DISTINCT - ( + - 63 ) + 81 AS col1 FROM tab1 AS cor0
----
144

query I rowsort
SELECT - col0 + - + 23 * - col0 AS col2 FROM tab2 cor0
----
1012
1408
1650

query I rowsort
SELECT ALL col2 - + ( - 64 ) - 90 FROM tab1 AS cor0
----
33
42
70

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2156
SELECT - col1 + + col0 AS col0, - 84 + col0 - 66 DIV + col0 col2 FROM tab2 AS cor0
----
-13
-21
-5
-39
8
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2156
SELECT - col1 + + col0 AS col0, - 84 + col0 - 66 / + col0 col2 FROM tab2 AS cor0
----
-13
-21
-5
-39
8
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT + 65 + - - 36 DIV - col2 AS col0 FROM tab2 AS cor0
----
64
65
65

skipif mysql # not compatible
query I rowsort label-2157
SELECT + 65 + - - 36 / - col2 AS col0 FROM tab2 AS cor0
----
64
65
65

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab1 cor0 WHERE NOT 8 = NULL
----

query I rowsort
SELECT ALL + col0 - + 66 AS col2 FROM tab1
----
-15
19
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT DISTINCT MAX( ALL + - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT MAX ( ALL + - col2 ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT ( + 69 ) FROM tab1
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT DISTINCT col1 DIV - - col1 col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2162
SELECT DISTINCT col1 / - - col1 col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT + 4 DIV - - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT + 4 / - - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 6 * 42 FROM tab0 AS cor0
----
-252
-252
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT + + MIN( DISTINCT col0 ) col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2165
SELECT + + MIN ( DISTINCT col0 ) col0 FROM tab1 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2166
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0, ( + col1 ) FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2166
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, ( + col1 ) FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 <> ( NULL )
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT - col1 >= + - col0 + col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - COUNT( * ) - - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-2169
SELECT - COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT + col2 * + 86 + - 57 + + - col0 AS col1 FROM tab0 cor0
----
3970
716
8360

query I rowsort
SELECT DISTINCT + 79 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT - CAST( + - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT 92 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2172
SELECT - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT 92 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT ALL + 76 + col2 DIV 33 AS col2 FROM tab1
----
77
78
78

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + 76 + col2 / 33 AS col2 FROM tab1
----
77
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT COUNT( * ) FROM tab0 WHERE + + col1 NOT IN ( + ( - + col2 ), + 64, col2, - - 90 )
----
3

skipif mysql # not compatible
query I rowsort label-2174
SELECT COUNT ( * ) FROM tab0 WHERE + + col1 NOT IN ( + ( - + col2 ), + 64, col2, - - 90 )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2175
SELECT DISTINCT * FROM tab1 WHERE 76 * + CAST( - + 60 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2175
SELECT DISTINCT * FROM tab1 WHERE 76 * + CAST ( - + 60 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT - + MIN( 61 ) FROM tab2 WHERE NULL IS NULL
----
-61

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - + MIN ( 61 ) FROM tab2 WHERE NULL IS NULL
----
-61

query II rowsort
SELECT col2, + col0 * + - col2 - - + col0 AS col0 FROM tab2
----
23
-1012
40
-2496
58
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col1 * 33, col0 col0 FROM tab2
----
101640
64
128238
75
38709
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2179
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + 46 - 0 + 73 col2 FROM tab0 AS cor0
----
-2089
-387
-4481

query II rowsort
SELECT DISTINCT - 1 AS col1, col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 98 + + col0 FROM tab2
----
144
162
173

query I rowsort
SELECT col1 + + 81 AS col2 FROM tab1
----
128
86
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2184
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col2, + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2184
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col2, + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2185
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2185
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2186
SELECT DISTINCT 44 + - - COUNT( * ) DIV + + COUNT( * ) - + + COUNT( * ), - 63 DIV COUNT( * ) * + MIN( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
42
-21

skipif mysql # not compatible
query II rowsort label-2186
SELECT DISTINCT 44 + - - COUNT ( * ) / + + COUNT ( * ) - + + COUNT ( * ), - 63 / COUNT ( * ) * + MIN ( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
42
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL - COUNT( * ) - + ( 10 ) AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - COUNT ( * ) - + ( 10 ) AS col0 FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT - MIN( ALL - col0 ) * - + 22 AS col2 FROM tab1
----
-2002

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - MIN ( ALL - col0 ) * - + 22 AS col2 FROM tab1
----
-2002

query II rowsort
SELECT ALL col1 * - + 63 AS col1, 36 FROM tab1
----
-2961
36
-315
36
-882
36

query II rowsort
SELECT DISTINCT - 47 * - - 31 * - col2, col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 88 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT ALL + MAX( DISTINCT - ( 69 ) ) DIV - 29 AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + MAX ( DISTINCT - ( 69 ) ) / - 29 AS col0 FROM tab0
----
2

query I rowsort
SELECT + col2 * + - ( + col2 ) AS col1 FROM tab1
----
-3481
-4624
-9216

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL < - - 99
----

query I rowsort
SELECT ( - 66 ) AS col2 FROM tab0
----
-66
-66
-66

query I rowsort
SELECT ALL 24 / + col0 AS col0 FROM tab2 WHERE NOT ( NULL >= 26 )
----

query I rowsort
SELECT ALL - 23 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL ( - 52 ) FROM tab2
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col0, + 31 col0 FROM tab2
----
-2116
31
-4096
31
-5625
31

query II rowsort
SELECT ALL + ( + col0 ) AS col1, + col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL col0 * + col0 - col2 AS col1 FROM tab1 cor0
----
2505
7166
8213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2202
SELECT * FROM tab2 AS cor0 WHERE NOT 63 + + + 6 * - CAST( NULL AS SIGNED ) - - ( + 78 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2202
SELECT * FROM tab2 AS cor0 WHERE NOT 63 + + + 6 * - CAST ( NULL AS INTEGER ) - - ( + 78 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col1 * + col1 AS col1 FROM tab2
----
-237160
-260362
-59823

query II rowsort
SELECT DISTINCT - 48 * + col0 + + col0 AS col2, col1 FROM tab0
----
-4089
21
-4559
1
-705
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL - COUNT( - 99 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - COUNT ( - 99 ) FROM tab2
----
-3

query II rowsort
SELECT + col0, col1 + + 82 FROM tab2 AS cor0
----
46
133
64
159
75
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT + + 86 DIV + MAX( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2207
SELECT + + 86 / + MAX ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2208
SELECT - col1 AS col0, col1 * - CAST( NULL AS SIGNED ) * col1 * + 17 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2208
SELECT - col1 AS col0, col1 * - CAST ( NULL AS INTEGER ) * col1 * + 17 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT + col1 + - 9 + col1 AS col2 FROM tab1 AS cor0
----
1
19
85

query I rowsort
SELECT - 11 + + col1 AS col0 FROM tab2 cor0
----
40
56
66

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 cor0 WHERE ( NOT NULL < ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2212
SELECT DISTINCT + COUNT( * ) * - + CAST( NULL AS SIGNED ), - COUNT( * ) AS col0 FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2212
SELECT DISTINCT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab2
----
NULL
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2213
SELECT DISTINCT + ( - + 16 ) + CAST( + + 62 AS SIGNED ), COUNT( ALL + 29 ) DIV - COUNT( * ) AS col0 FROM tab2
----
46
-1

skipif mysql # not compatible
query II rowsort label-2213
SELECT DISTINCT + ( - + 16 ) + CAST ( + + 62 AS INTEGER ), COUNT ( ALL + 29 ) / - COUNT ( * ) AS col0 FROM tab2
----
46
-1

query I rowsort
SELECT + col2 * + - 88 * - 29 * col0 + - - col2 + + - col2 * ( - col1 ) FROM tab1 cor0
----
12496032
12798634
15795040

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT DISTINCT + - SUM( - col0 ) * + + COUNT( * ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT + - SUM ( - col0 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
597

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 96 NOT IN ( + - 98 )
----

query I rowsort
SELECT + 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col2 col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT 94 FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT - MIN( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2220
SELECT - MIN ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2221
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / - col2 BETWEEN - 75 + ( - + col2 ) AND col0 + - CAST( ( - col0 ) AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2221
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / - col2 BETWEEN - 75 + ( - + col2 ) AND col0 + - CAST ( ( - col0 ) AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2222
SELECT + CAST( - AVG ( DISTINCT - col0 ) AS SIGNED ), + 67 AS col2 FROM tab0 AS cor0
----
66
67

skipif mysql # not compatible
query II rowsort label-2222
SELECT + CAST ( - AVG ( DISTINCT - col0 ) AS INTEGER ), + 67 AS col2 FROM tab0 AS cor0
----
66
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT + MAX( - 5 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT + MAX ( - 5 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - 11 * 34 FROM tab2 AS cor0
----
-374
-374
-374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - 99 AS col2 FROM tab0
----
15
-99
87
-99
97
-99

query I rowsort
SELECT DISTINCT - col2 * 61 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 + + - col1 AS col2 FROM tab2
----
46
-102
64
-154
75
-134

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2228
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0, CAST( NULL AS SIGNED ) * - - col0 + - col2 + CAST( + col2 AS SIGNED ) * col0, - 62 )
----

skipif mysql # not compatible
query III rowsort label-2228
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0, CAST ( NULL AS INTEGER ) * - - col0 + - col2 + CAST ( + col2 AS INTEGER ) * col0, - 62 )
----

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT - col2 / - 74 IS NULL
----
-51
-67
-77

query II rowsort
SELECT DISTINCT - col0, col0 * + + col2 AS col2 FROM tab0
----
-15
705
-87
870
-97
9603

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + + 94 )
----

query I rowsort
SELECT + 66 * col2 AS col2 FROM tab2
----
1518
2640
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2233
SELECT + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT MAX( DISTINCT - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT MAX ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT - + 49 * COUNT( * ) AS col0 FROM tab1 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - + 49 * COUNT ( * ) AS col0 FROM tab1 cor0
----
-147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2236
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + SUM( + + 27 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT CAST ( NULL AS REAL ) + + SUM ( + + 27 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 77 + + col0 * - col0 FROM tab2
----
-2039
-4019
-5548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * - + ( + - ( 4 ) ) * - 37 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * - + ( + - ( 4 ) ) * - 37 FROM tab2
----
NULL

query I rowsort
SELECT + 8 + 99 FROM tab0 AS cor0
----
107
107
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + COUNT( * ) + + 55 + - - COUNT( col0 ) + + - 46 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + COUNT ( * ) + + 55 + - - COUNT ( col0 ) + + - 46 FROM tab2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2241
SELECT - 36 DIV COUNT( * ) col2 FROM tab2
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2241
SELECT - 36 / COUNT ( * ) col2 FROM tab2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL col0 * col2 DIV + - col2 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL col0 * col2 / + - col2 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT + COUNT( ALL + 40 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2243
SELECT + COUNT ( ALL + 40 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT + COUNT( DISTINCT + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2244
SELECT + COUNT ( DISTINCT + col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL - - ( - - col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 64 + col0 * + ( - 71 ) FROM tab0
----
-1001
-6113
-6823

query II rowsort
SELECT + 48 AS col1, - 65 FROM tab2
----
48
-65
48
-65
48
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-2248
SELECT DISTINCT 31 DIV - 71 * - 73 AS col1, + 21 AS col2 FROM tab0
----
0
21

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT 31 / - 71 * - 73 AS col1, + 21 AS col2 FROM tab0
----
0
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) * - col0 * col2 * + col1 + - col2 FROM tab2
----
1241011
16904042
7884760

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) * - col0 * col2 * + col1 + - col2 FROM tab2
----
1241011
16904042
7884760

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2250
SELECT ALL - 26 / MAX( CAST( NULL AS DECIMAL ) ) - 98 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - 26 / MAX ( CAST ( NULL AS REAL ) ) - 98 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 > - col0 * + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT + 75 DIV - 44 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 75 / - 44 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 + col1 * - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 + col1 * - col0 < NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2254
SELECT CAST( NULL AS DECIMAL ) * - col2 - col2 * + ( 64 * col0 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT CAST ( NULL AS REAL ) * - col2 - col2 * + ( 64 * col0 ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ( + COUNT( * ) ) - + MIN( + col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT ( + COUNT ( * ) ) - + MIN ( + col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2256
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ( - col1 ) * + 66 - - col1 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT + col2 * 79 + - CAST( 58 AS SIGNED ) FROM tab0
----
3655
732
7763

skipif mysql # not compatible
query I rowsort label-2258
SELECT + col2 * 79 + - CAST ( 58 AS INTEGER ) FROM tab0
----
3655
732
7763

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN col2 AND 2 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2260
SELECT ALL CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col0 - 96 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 - 96 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT SUM( + 67 ) + + COUNT( * ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-2261
SELECT SUM ( + 67 ) + + COUNT ( * ) FROM tab1
----
204

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT - SUM( DISTINCT - 42 ) - 97 AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-2263
SELECT - SUM ( DISTINCT - 42 ) - 97 AS col2 FROM tab0
----
-55

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE + col2 * + 49 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col0 * 46 - 33 AND + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 57 * - col1 AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-2267
SELECT - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 57 * - col1 AND ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 68 * - col2 = NULL
----

query I rowsort
SELECT col0 * 27 - + col2 FROM tab1
----
1281
2236
2389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + - ( ( col2 ) ) col2 FROM tab1 WHERE NOT - ( + col2 ) < - col0 / 48
----

query I rowsort
SELECT ALL col1 * ( col0 ) + col0 FROM tab2
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT COUNT( ALL ( ( col0 ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2272
SELECT COUNT ( ALL ( ( col0 ) ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL IN ( ( col1 ) + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2274
SELECT * FROM tab0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2274
SELECT * FROM tab0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - ( 36 ) AS col1 FROM tab2
----
-36
-36
-36

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2276
SELECT DISTINCT col0 DIV - 73 FROM tab2 WHERE NOT - col0 + ( + CAST( col1 AS DECIMAL ) + - 71 ) * col0 < + 66
----
0

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT col0 / - 73 FROM tab2 WHERE NOT - col0 + ( + CAST ( col1 AS REAL ) + - 71 ) * col0 < + 66
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2278
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN col1 + + CAST( 65 - + col0 AS SIGNED ) AND ( NULL )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-2278
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN col1 + + CAST ( 65 - + col0 AS INTEGER ) AND ( NULL )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2279
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL COUNT( ALL + 94 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL COUNT ( ALL + 94 ) FROM tab1
----
3

query I rowsort
SELECT col2 + + 5 AS col2 FROM tab0 WHERE NOT - 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 + + 12 * col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - 29 * col1 NOT BETWEEN NULL AND ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2285
SELECT COUNT( * ) DIV + 86 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( * ) / + 86 AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT MAX( ALL + 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2286
SELECT MAX ( ALL + 69 ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT + MAX( col1 ) * COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2287
SELECT + MAX ( col1 ) * COUNT ( * ) FROM tab0
----
243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2288
SELECT ALL - COUNT( * ) * 87 + + 60 * - SUM( col0 DIV col0 ) FROM tab1
----
-441

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - COUNT ( * ) * 87 + + 60 * - SUM ( col0 / col0 ) FROM tab1
----
-441

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab2 WHERE col2 / col0 + - col0 NOT IN ( + col2 )
----
-63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 9 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > col2
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT col1 * - col1 + col1 * - 83 AS col1 FROM tab1 cor0
----
-1358
-440
-6110

query I rowsort
SELECT ALL + 1 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - + 61 + col1 * 80 AS col1 FROM tab0 AS cor0
----
1619
19
6419

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT - COUNT( * ) + - 68 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2295
SELECT - COUNT ( * ) + - 68 FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2296
SELECT DISTINCT 89 * 74 AS col1 FROM tab2 cor0 WHERE NOT ( + 75 ) NOT BETWEEN NULL AND - col0 / + CAST( + ( col2 ) * ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) + + col2 * + 85
----

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT 89 * 74 AS col1 FROM tab2 cor0 WHERE NOT ( + 75 ) NOT BETWEEN NULL AND - col0 / + CAST ( + ( col2 ) * ( - CAST ( NULL AS REAL ) ) AS INTEGER ) + + col2 * + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT 74 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2297
SELECT 74 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col2 ) + - 54 * col1 col1 FROM tab0 AS cor0
----
-1144
-153
-4421

query III rowsort
SELECT * FROM tab2 cor0 WHERE 82 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2300
SELECT - - COUNT( * ) + - AVG ( + CAST( NULL AS SIGNED ) + 65 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2300
SELECT - - COUNT ( * ) + - AVG ( + CAST ( NULL AS INTEGER ) + 65 ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 29 + col1 FROM tab2
----
106
80
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL COUNT( * ) + - 87 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL COUNT ( * ) + - 87 FROM tab1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT COUNT( * ) + + SUM( DISTINCT - 80 ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-2303
SELECT COUNT ( * ) + + SUM ( DISTINCT - 80 ) FROM tab1
----
-77

query I rowsort
SELECT DISTINCT col1 + - col0 FROM tab1 WHERE ( - 39 / col2 ) IN ( col0 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT col2 DIV 90 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2305
SELECT col2 / 90 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + col2 + + col0 + 85 FROM tab0
----
147
182
281

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT - 44 + COUNT( * ) * + 23 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - 44 + COUNT ( * ) * + 23 FROM tab0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT ALL CAST( NULL AS SIGNED ) + - 78 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL CAST ( NULL AS INTEGER ) + - 78 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 7 * - col0 + - ( 22 + + col2 ) - col1 FROM tab2 AS cor0
----
226
309
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE NULL < - ( ( - col1 ) ) * 42
----

query I rowsort
SELECT ALL + 66 - + + 63 AS col0 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - ( - 57 ) + COUNT( + col1 ) AS col1 FROM tab0 AS cor0 WHERE 23 IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-2312
SELECT - ( - 57 ) + COUNT ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE 23 IS NOT NULL
----
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0 AS col2, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( - col2 ) = ( + col2 )
----
15
87
97

query I rowsort
SELECT DISTINCT + 72 * - ( - 27 + col2 ) FROM tab0 AS cor0 WHERE NOT 87 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * - - 51 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( - col1 ) + col0 AS col2 FROM tab0 AS cor0
----
1230
1914
194

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 57 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 14 <= ( - col1 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 33 * col1 FROM tab2 AS cor0 WHERE NOT 66 - + + col2 IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 63 NOT BETWEEN NULL AND ( 48 + col2 )
----

query I rowsort
SELECT ALL - - 40 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
127
137
55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 + - col0 - - 70 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT - - SUM( + col0 ) * ( - 80 ) DIV + 66 FROM tab1 cor0
----
-275

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT - - SUM ( + col0 ) * ( - 80 ) / + 66 FROM tab1 cor0
----
-275

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - ( + 82 ) AND ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + 88 ) * - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 65 < col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT col2 + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT ALL - SUM( col1 ) AS col0, COUNT( ALL + col1 ) FROM tab0
----
-103
3

skipif mysql # not compatible
query II rowsort label-2332
SELECT ALL - SUM ( col1 ) AS col0, COUNT ( ALL + col1 ) FROM tab0
----
-103
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2333
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + CAST( + + 89 AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-2333
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + CAST ( + + 89 AS INTEGER ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL SUM( ALL ( - 5 ) ) * - 97 * COUNT( * ) FROM tab1 AS cor0
----
4365

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL SUM ( ALL ( - 5 ) ) * - 97 * COUNT ( * ) FROM tab1 AS cor0
----
4365

query I rowsort
SELECT DISTINCT 63 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL COUNT( DISTINCT + col1 ) + + 22 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL COUNT ( DISTINCT + col1 ) + + 22 FROM tab1
----
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) * - - col0 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - COUNT( * ) + - 59 FROM tab0 cor0 WHERE ( + col0 ) IS NOT NULL
----
-62

skipif mysql # not compatible
query I rowsort label-2338
SELECT - COUNT ( * ) + - 59 FROM tab0 cor0 WHERE ( + col0 ) IS NOT NULL
----
-62

query II rowsort
SELECT DISTINCT col1 AS col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 - - col0 ) = 9 / - col0 + - col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT + COUNT( * ) * - 28 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2341
SELECT + COUNT ( * ) * - 28 FROM tab2 AS cor0
----
-84

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( + - col0 ) / - col2 + col1 - - 30 * col1 ) = NULL
----

query I rowsort
SELECT col2 - col1 - - - 72 FROM tab2
----
-100
-109
-81

query I rowsort
SELECT - col0 - + 35 AS col1 FROM tab0
----
-122
-132
-50

query I rowsort
SELECT 24 * + 88 - - col1 FROM tab1
----
2117
2126
2159

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col0 + + + col0 ) IN ( col0 / - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT COUNT( * ) - - 42 AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2347
SELECT COUNT ( * ) - - 42 AS col1 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2348
SELECT * FROM tab1 WHERE + col1 BETWEEN CAST( NULL AS SIGNED ) * - + col2 - - + 93 AND col2 / col2
----

skipif mysql # not compatible
query III rowsort label-2348
SELECT * FROM tab1 WHERE + col1 BETWEEN CAST ( NULL AS INTEGER ) * - + col2 - - + 93 AND col2 / col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col0 FROM tab2 WHERE 49 * col2 BETWEEN + 93 AND 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col2 FROM tab1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT 11 + + - col1 AS col1 FROM tab1
----
-3
-36
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2352
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( + col2 * + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2352
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( + col2 * + CAST ( + col1 AS INTEGER ) )
----

query II rowsort
SELECT + - col2, col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT - col1 * + - col2 * + col1 FROM tab0 AS cor0
----
308367
4410
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL + ( - COUNT( * ) ) FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL + ( - COUNT ( * ) ) FROM tab2 WHERE NOT NULL >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN 3 + + + 37 + - 2 + - + 77 + 60 + + col1 AND ( col2 ) / col1
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT - col1 * col2 * - col0 FROM tab1 cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT ALL - CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 IS NULL )
----

query I rowsort
SELECT ALL - col0 * col1 + + col2 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL - 57 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - 57 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
171

query I rowsort
SELECT ( - col0 ) * + col0 * - - col1 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 15 col2, 7 AS col2 FROM tab1
----
-15
7
-15
7
-15
7

query II rowsort
SELECT DISTINCT 16 AS col1, - col1 AS col0 FROM tab0
----
16
-1
16
-21
16
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT COUNT( * ) AS col2, - 53 FROM tab1
----
3
-53

skipif mysql # not compatible
query II rowsort label-2367
SELECT COUNT ( * ) AS col2, - 53 FROM tab1
----
3
-53

query I rowsort
SELECT DISTINCT col0 + 21 AS col1 FROM tab1
----
106
112
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 + - + 62 col2 FROM tab2 AS cor0
----
-158
-158
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 9 + + col2, - col0 col2 FROM tab0 AS cor0
----
100
-87
470
-15
990
-97

query II rowsort
SELECT ALL - col0 AS col0, col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT - 48 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 47 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL + COUNT( * ) * - 9 * COUNT( * ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + COUNT ( * ) * - 9 * COUNT ( * ) AS col2 FROM tab1
----
-81

query II rowsort
SELECT + ( - col2 ) - + + ( + col2 ) AS col2, col1 AS col2 FROM tab1 AS cor0
----
-118
5
-136
47
-192
14

query I rowsort
SELECT DISTINCT + 76 + + col0 FROM tab0 AS cor0
----
163
173
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT + 18 + - - COUNT( * ) * 10 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2377
SELECT + 18 + - - COUNT ( * ) * 10 FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL - + ( + col1 ) - + col0 + col2 AS col0 FROM tab2 AS cor0
----
-101
-74
-84

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN 28 + + col0 + + - col0 AND ( - ( + col2 ) )
----

query I rowsort
SELECT 47 + + - 80 FROM tab2 cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2381
SELECT DISTINCT + SUM( - col2 ) - 56 DIV - MAX( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2381
SELECT DISTINCT + SUM ( - col2 ) - 56 / - MAX ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - ( 27 ) col0, - col0 AS col1 FROM tab2
----
24
-46
40
-75
50
-64

query III rowsort
SELECT * FROM tab0 WHERE + col2 < + 73
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + - 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT MAX( DISTINCT + + 66 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-2386
SELECT MAX ( DISTINCT + + 66 ) FROM tab0
----
66

query I rowsort
SELECT + col1 * - col1 + 72 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - col1 * + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT col0 <= + col2 * + + col0
----
0

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col0 <= + col2 * + + col0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT - col2 * + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 WHERE - - 17 / + col0 * - ( + col1 ) IS NOT NULL
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2390
SELECT - col2 * + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 WHERE - - 17 / + col0 * - ( + col1 ) IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT - ( + - 58 ) AS col2 FROM tab2
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - - 65 ) col0 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 17 ) BETWEEN 48 + - + col0 + - col0 AND - col2
----
87
21
10

query I rowsort
SELECT ALL 42 * - - col1 AS col2 FROM tab2
----
2142
2814
3234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63, 56 col1 FROM tab1
----
63
56
63
56
63
56

query I rowsort
SELECT - - 38 * ( - ( - + col1 ) ) * - 28 AS col1 FROM tab0 AS cor0
----
-1064
-22344
-86184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 61, col0 col1 FROM tab2 AS cor0
----
61
46
61
64
61
75

query I rowsort
SELECT col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2399
SELECT DISTINCT - 46 AS col0, col1 * - CAST( NULL AS SIGNED ) + - + col1 FROM tab2 AS cor0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-2399
SELECT DISTINCT - 46 AS col0, col1 * - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0
----
-46
NULL

query II rowsort
SELECT + + 92 AS col0, + col1 AS col1 FROM tab2 cor0
----
92
51
92
67
92
77

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( + - 1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2402
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST( + col1 AS DECIMAL ) - + - col1 * col2
----

skipif mysql # not compatible
query III rowsort label-2402
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( + col1 AS REAL ) - + - col1 * col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT DISTINCT - COUNT( * ) AS col1, + MAX( ALL + - col0 ) FROM tab0 cor0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-2403
SELECT DISTINCT - COUNT ( * ) AS col1, + MAX ( ALL + - col0 ) FROM tab0 cor0
----
-3
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-2404
SELECT ALL + 61 AS col1, col0 DIV + - 89 AS col2 FROM tab1 cor0
----
61
-1
61
0
61
0

skipif mysql # not compatible
query II rowsort label-2404
SELECT ALL + 61 AS col1, col0 / + - 89 AS col2 FROM tab1 cor0
----
61
-1
61
0
61
0

query I rowsort
SELECT DISTINCT + col2 * 22 * + col1 AS col2 FROM tab2 AS cor0
----
25806
67760
85492

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - ( + 94 ) * + + col1 FROM tab0
----
-1974
-7614
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-2408
SELECT DISTINCT col0 + + col1 AS col0, - 54 + 13 * + col2 DIV - col2 + 14 * - col0 FROM tab0
----
108
-1285
96
-277
98
-1425

skipif mysql # not compatible
query II rowsort label-2408
SELECT DISTINCT col0 + + col1 AS col0, - 54 + 13 * + col2 / - col2 + 14 * - col0 FROM tab0
----
108
-1285
96
-277
98
-1425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 5 col2 FROM tab1
----
-235
-25
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT SUM( col0 ) * + 35 * COUNT( * ) AS col0 FROM tab1
----
23835

skipif mysql # not compatible
query I rowsort label-2410
SELECT SUM ( col0 ) * + 35 * COUNT ( * ) AS col0 FROM tab1
----
23835

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - 8, + 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT DISTINCT + MAX( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT + MAX ( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - 59 + - ( col2 ) FROM tab2 cor0
----
-117
-82
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT COUNT( * ) + + + 13 + - + 91 AS col2 FROM tab1 WHERE + 18 BETWEEN - col0 AND ( - - 11 + col1 )
----
-76

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT COUNT ( * ) + + + 13 + - + 91 AS col2 FROM tab1 WHERE + 18 BETWEEN - col0 AND ( - - 11 + col1 )
----
-76

query I rowsort
SELECT col1 * - + col0 + + + 61 AS col2 FROM tab0
----
-1154
-1766
-36

query I rowsort
SELECT ALL + col0 + + 7 + + ( - - col2 ) * + - col1 - + - 55 AS col2 FROM tab1 AS cor0
----
-1231
-148
-3043

query II rowsort
SELECT DISTINCT - col0 * col2 - col0, ( + 5 ) AS col2 FROM tab1 cor0
----
-4947
5
-5100
5
-6279
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / - col0 = - 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT + CAST( + 56 AS SIGNED ) * ( ( + 57 ) ) - - - col0 * + 57 AS col2 FROM tab0 AS cor0
----
-1767
-2337
2337

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + CAST ( + 56 AS INTEGER ) * ( ( + 57 ) ) - - - col0 * + 57 AS col2 FROM tab0 AS cor0
----
-1767
-2337
2337

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2420
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST( - - col0 AS SIGNED ) ) >= + + 6 / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2420
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( - - col0 AS INTEGER ) ) >= + + 6 / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 + + + 83 + col2 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
147
-59
193
-96
198
-68

query I rowsort
SELECT + - col1 - + + col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query II rowsort
SELECT ALL + 21 AS col2, - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
21
-59
21
-68
21
-96

query I rowsort
SELECT DISTINCT + col1 + + + 79 FROM tab2
----
130
146
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 76 col0 FROM tab0
----
1140
6612
7372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT 65 * - - CAST( - - col2 AS SIGNED ) col0 FROM tab1
----
3835
4420
6240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2426
SELECT 65 * - - CAST ( - - col2 AS INTEGER ) col0 FROM tab1
----
3835
4420
6240

query I rowsort
SELECT + col2 * - 68 AS col0 FROM tab1
----
-4012
-4624
-6528

query I rowsort
SELECT - 74 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 + + col2 AND - col1 + + col0
----

query I rowsort
SELECT ALL + - 31 FROM tab0 cor0
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT 13 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT 13 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 74 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND ( - col0 )
----
1110
6438
7178

query I rowsort
SELECT ALL 86 * 69 AS col2 FROM tab2 AS cor0
----
5934
5934
5934

query I rowsort
SELECT - - col1 * + - col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 55 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - - col2 * - 94 * col2 * + - 9 AS col1 FROM tab1 AS cor0
----
2944926
3911904
7796736

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT + SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT + SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2439
SELECT ALL col1 * CAST( + 77 AS SIGNED ) AS col1, col1 FROM tab0 AS cor0
----
1617
21
6237
81
77
1

skipif mysql # not compatible
query II rowsort label-2439
SELECT ALL col1 * CAST ( + 77 AS INTEGER ) AS col1, col1 FROM tab0 AS cor0
----
1617
21
6237
81
77
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + - ( col2 ) + - col1 FROM tab2
----
-28
-50
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + ( - - col0 ) col2, + col2 * - col0 AS col0 FROM tab0 WHERE - + col2 IS NOT NULL
----
705
-705
870
-870
9603
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT - COUNT( * ) + + - MAX( + col1 ) AS col2 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - COUNT ( * ) + + - MAX ( + col1 ) AS col2 FROM tab2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL ( - col0 ) + + col0 DIV 68 + col0 - - col1 - 38 + col1 + col1 DIV 93 col2 FROM tab2
----
116
64
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2444
SELECT ALL ( - col0 ) + + col0 / 68 + col0 - - col1 - 38 + col1 + col1 / 93 col2 FROM tab2
----
116
64
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2445
SELECT ALL 8 * + col2 AS col0, - col2 + - + CAST( + 8 AS SIGNED ) * + col2 FROM tab1
----
472
-531
544
-612
768
-864

skipif mysql # not compatible
query II rowsort label-2445
SELECT ALL 8 * + col2 AS col0, - col2 + - + CAST ( + 8 AS INTEGER ) * + col2 FROM tab1
----
472
-531
544
-612
768
-864

query I rowsort
SELECT DISTINCT 62 * - 23 AS col2 FROM tab1 AS cor0
----
-1426

query I rowsort
SELECT + 14 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) >= + ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT + + CAST( + - 60 AS SIGNED ) FROM tab0 cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-2448
SELECT + + CAST ( + - 60 AS INTEGER ) FROM tab0 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL - 97 + 25 - COUNT( + col2 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - 97 + 25 - COUNT ( + col2 ) FROM tab0 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 12 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL - 58 * - COUNT( DISTINCT + 67 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL - 58 * - COUNT ( DISTINCT + 67 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2452
SELECT * FROM tab0 AS cor0 WHERE ( - ( - CAST( + col2 AS SIGNED ) ) NOT IN ( + 1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2452
SELECT * FROM tab0 AS cor0 WHERE ( - ( - CAST ( + col2 AS INTEGER ) ) NOT IN ( + 1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT - MAX( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - 17 >= col2 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT - MAX ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - 17 >= col2 * 34
----
NULL

query I rowsort
SELECT - col1 * col0 + + col0 * 74 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT + - COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT + - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2456
SELECT + + col2 + - col2 + + col2, col0 + - + CAST( + - col2 AS SIGNED ) - - 71 + col1 * + 23 AS col0 FROM tab0 AS cor0
----
10
651
47
1996
99
290

skipif mysql # not compatible
query II rowsort label-2456
SELECT + + col2 + - col2 + + col2, col0 + - + CAST ( + - col2 AS INTEGER ) - - 71 + col1 * + 23 AS col0 FROM tab0 AS cor0
----
10
651
47
1996
99
290

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT - MIN( 39 ) + - 26 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2457
SELECT - MIN ( 39 ) + - 26 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT + - COUNT( * ) + - 44 AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-47
3

skipif mysql # not compatible
query II rowsort label-2458
SELECT + - COUNT ( * ) + - 44 AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-47
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( + 55, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT ALL col1 * col1 DIV + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL col1 * col1 / + col1 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 47 col0 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ( - + 92 ) * - col2 AS col0 FROM tab1
----
5428
6256
8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 57 col0 FROM tab1
----
3363
3876
5472

query II rowsort
SELECT DISTINCT col1, - col2 * + 25 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * col2 * - - col2 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT - col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col2 * + 45 * + col0 AS col0 FROM tab0 AS cor0
----
31725
39150
432135

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL + - SUM( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL + - SUM ( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - - COUNT( * ) * 53 + - COUNT( * ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2469
SELECT - - COUNT ( * ) * 53 + - COUNT ( * ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT - ( - col0 ) + 39 AS col1 FROM tab2 AS cor0
----
103
114
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + 78 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2471
SELECT + 78 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT + SUM( ALL + col1 ) * 98 FROM tab0 cor0
----
10094

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + SUM ( ALL + col1 ) * 98 FROM tab0 cor0
----
10094

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT - MAX( ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT - MAX ( ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 86 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2474
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 86 IS NOT NULL
----
3

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT MAX( DISTINCT 7 ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2476
SELECT MAX ( DISTINCT 7 ) AS col0 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT - - COUNT( * ) FROM tab0 WHERE NOT NULL <= col0 OR NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL <= col0 OR NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - ( + 0 ) + - col1 AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT ALL col1 DIV + 92 * - col0 + + - col0 + - col0 AS col1 FROM tab1
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL col1 / + 92 * - col0 + + - col0 + - col0 AS col1 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT + MAX( DISTINCT - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2480
SELECT + MAX ( DISTINCT - col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT - 94 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT - 94 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + - col1 * col1 + - + 37, col1 * + ( 1 ), - + 15 )
----

query I rowsort
SELECT ALL + 90 * - col2 * col1 FROM tab1 cor0
----
-120960
-26550
-287640

query I rowsort
SELECT DISTINCT - col0 - - - col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + - MIN( DISTINCT - + col2 ) + - 67 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2485
SELECT + - MIN ( DISTINCT - + col2 ) + - 67 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT CAST( ( + 78 ) AS SIGNED ) AS col0 FROM tab2
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2486
SELECT CAST ( ( + 78 ) AS INTEGER ) AS col0 FROM tab2
----
78
78
78

query I rowsort
SELECT + 70 * - - 83 * - col1 * + ( 63 ) FROM tab0
----
-29648430
-366030
-7686630

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT - - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2488
SELECT - - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL + COUNT( * ) * SUM( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL + COUNT ( * ) * SUM ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL 55 DIV - 68 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 55 / - 68 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT MIN( ALL + 76 ) col1 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2493
SELECT MIN ( ALL + 76 ) col1 FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL + col2 * - + col2 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT + + 37 * col1 * - 82 FROM tab2 cor0
----
-154734
-203278
-233618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2496
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + ( col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT DISTINCT col1 DIV + + col2 * - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT col1 / + + col2 * - col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * 57 * - - 78 + ( ( 40 ) ) IS NOT NULL
----

query I rowsort
SELECT + - ( + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 11 * + + 69 AS col2, col0 + - 88 col2 FROM tab0 AS cor0
----
759
-1
759
-73
759
9

query I rowsort
SELECT ALL ( + 34 ) AS col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT - 4 * - col1 FROM tab0
----
324
4
84

query I rowsort
SELECT ALL 32 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + 42 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 42 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT + 47 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT + 47 / col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 51 * - col2 AS col2 FROM tab0 AS cor0
----
2397
5049
510

query I rowsort
SELECT ALL - - col1 + col1 + + + 22 FROM tab0 AS cor0
----
184
24
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL - MIN( ALL - col0 ) + + + 34 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - MIN ( ALL - col0 ) + + + 34 FROM tab2 AS cor0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL MIN( - - 41 ) AS col0 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL MIN ( - - 41 ) AS col0 FROM tab1 AS cor0
----
41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 69 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2513
SELECT + 32 + CAST( - 2 AS SIGNED ) * - - 38 FROM tab0 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-2513
SELECT + 32 + CAST ( - 2 AS INTEGER ) * - - 38 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + 39 + - col2 FROM tab1
----
-20
-29
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT 23 + - COUNT( ALL + col1 ) FROM tab1 WHERE NULL < - col1
----
23

skipif mysql # not compatible
query I rowsort label-2516
SELECT 23 + - COUNT ( ALL + col1 ) FROM tab1 WHERE NULL < - col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - COUNT( * ) + COUNT( * ) + + 56 + - - COUNT( * ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - COUNT ( * ) + COUNT ( * ) + + 56 + - - COUNT ( * ) FROM tab1
----
59

query I rowsort
SELECT ALL col1 * + ( - col2 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - + 56 + - - col0 FROM tab0 AS cor0
----
-41
31
41

query I rowsort
SELECT col2 - 36 * col0 AS col0 FROM tab2 cor0
----
-1633
-2264
-2642

query I rowsort
SELECT DISTINCT + + 62 AS col1 FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT COUNT( ALL 58 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2522
SELECT COUNT ( ALL 58 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * - col2 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 48 * col1 AS col1 FROM tab1 AS cor0
----
-2256
-240
-672

query I rowsort
SELECT - col0 * - col1 AS col2 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col1, - ( col1 ) col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col1 * 52 FROM tab1 AS cor0
----
-165
-1833
14

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col1 / - - 17 * - col1 + - 54 * - 23 + + - col2 * + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-2530
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 / - - 17 * - col1 + - 54 * - 23 + + - col2 * + col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL - ( 28 ) * - COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - ( 28 ) * - COUNT ( * ) AS col1 FROM tab1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT - ( + + col0 ) * + 69 + col1 DIV - col2 FROM tab0
----
-1036
-6005
-6693

skipif mysql # not compatible
query I rowsort label-2533
SELECT - ( + + col0 ) * + 69 + col1 / - col2 FROM tab0
----
-1036
-6005
-6693

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2534
SELECT * FROM tab1 WHERE NOT ( - CAST( - col2 AS SIGNED ) * + 43 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2534
SELECT * FROM tab1 WHERE NOT ( - CAST ( - col2 AS INTEGER ) * + 43 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + - 4 FROM tab1
----
-236
-272
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1, 70 col0 FROM tab0
----
1215
70
1827
70
97
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE + + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2538
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2538
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT DISTINCT col2 DIV ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT col2 / ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT - AVG ( - 77 ) FROM tab2 WHERE - ( - - CAST( NULL AS SIGNED ) ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT - AVG ( - 77 ) FROM tab2 WHERE - ( - - CAST ( NULL AS INTEGER ) ) = NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2542
SELECT ALL - CAST( NULL AS DECIMAL ) * + 43 / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - CAST ( NULL AS REAL ) * + 43 / - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT 23 + + - 28 AS col2, 31 * + col0 * col0 AS col2, + + col2 AS col2 FROM tab2
----
9 values hashing to 2d11f29796760a8cb2621699c46cb9f2

query I rowsort
SELECT ( + + 30 ) + col1 * - col1 FROM tab0
----
-411
-6531
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + 11 + + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-2545
SELECT + 11 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT ALL - + COUNT( * ) * - COUNT( * ) DIV COUNT( * ) col2 FROM tab1 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-2546
SELECT ALL - + COUNT ( * ) * - COUNT ( * ) / COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE - col0 / - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2547
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 / - col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL MAX( DISTINCT + 6 ) + + MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL MAX ( DISTINCT + 6 ) + + MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT CAST( NULL AS SIGNED ) * + - 32 + + + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT CAST ( NULL AS INTEGER ) * + - 32 + + + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2550
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) AS col0, 76 AS col2 FROM tab0 AS cor0
----
0
76

skipif mysql # not compatible
query II rowsort label-2550
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col0, 76 AS col2 FROM tab0 AS cor0
----
0
76

onlyif mysql # DIV for integer division: 
query II rowsort label-2551
SELECT 44 DIV + col0 + - 43 + 42 - + - col2 AS col1, - 57 col0 FROM tab1 AS cor0
----
58
-57
67
-57
95
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2551
SELECT 44 / + col0 + - 43 + 42 - + - col2 AS col1, - 57 col0 FROM tab1 AS cor0
----
58
-57
67
-57
95
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL + - COUNT( ALL col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + - COUNT ( ALL col2 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - 30 * ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1530
-2010
-2310

query II rowsort
SELECT ALL col0 - - - 46 + + + col1 AS col1, + ( + + col2 ) FROM tab0 AS cor0
----
50
47
52
99
62
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2555
SELECT DISTINCT + 3 AS col0, - AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - 10 IS NOT NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2555
SELECT DISTINCT + 3 AS col0, - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - 10 IS NOT NULL
----
3
NULL

query II rowsort
SELECT ALL - - ( col2 ) AS col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT + col0 * - + 69 AS col0 FROM tab1 AS cor0
----
-3519
-5865
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT MAX( DISTINCT + + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2558
SELECT MAX ( DISTINCT + + col0 ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL + MIN( ALL 66 ) * 93 + + 46 AS col1 FROM tab2
----
6184

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + MIN ( ALL 66 ) * 93 + + 46 AS col1 FROM tab2
----
6184

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2560
SELECT - col1 * ( - + col0 ) * 57 - + col2 - + - col0 + - col2 + + CAST( NULL AS DECIMAL ) / + col1 * - - ( ( - - col0 ) ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2560
SELECT - col1 * ( - + col0 ) * 57 - + col2 - + - col0 + - col2 + + CAST ( NULL AS REAL ) / + col1 * - - ( ( - - col0 ) ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2561
SELECT DISTINCT - 3 / - + col0 + col1 * - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - 3 / - + col0 + col1 * - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL + 85 + COUNT( * ) + 17 FROM tab1 WHERE NULL <= col1 AND NOT - col0 IS NULL
----
102

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + 85 + COUNT ( * ) + 17 FROM tab1 WHERE NULL <= col1 AND NOT - col0 IS NULL
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT - 39 + + - 4 * MIN( - col1 ) AS col1 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-2563
SELECT - 39 + + - 4 * MIN ( - col1 ) AS col1 FROM tab0
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT col2 DIV + - col0 FROM tab0 WHERE 29 IS NOT NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT col2 / + - col0 FROM tab0 WHERE 29 IS NOT NULL
----
-1
-3
0

query I rowsort
SELECT + + 30 + - 14 AS col1 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT DISTINCT - 79 * - 35 + + 25 + CAST( NULL AS SIGNED ) + - MIN( ALL 91 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - 79 * - 35 + + 25 + CAST ( NULL AS INTEGER ) + - MIN ( ALL 91 ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col1 FROM tab1 AS cor0 WHERE + ( - col2 ) * - - 63 + col2 >= NULL
----

query I rowsort
SELECT ALL + col1 - 4 AS col2 FROM tab2 AS cor0
----
47
63
73

query I rowsort
SELECT col2 * + 49 + + - 38 FROM tab2 cor0
----
1089
1922
2804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL CAST( 24 AS SIGNED ) FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL CAST ( 24 AS INTEGER ) FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2572
SELECT + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL - + 97 AS col0 FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT - CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2574
SELECT - CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + col2 col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN 82 AND + col2 + + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT COUNT( + + 86 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2577
SELECT COUNT ( + + 86 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT MIN( ALL - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT MIN ( ALL - col1 ) FROM tab1
----
-47

query I rowsort
SELECT + 14 * - col0 FROM tab0 WHERE NOT NULL >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2580
SELECT ALL + col2 * + CAST( - + col0 AS SIGNED ) AS col1, col1 AS col0 FROM tab0
----
-705
81
-870
21
-9603
1

skipif mysql # not compatible
query II rowsort label-2580
SELECT ALL + col2 * + CAST ( - + col0 AS INTEGER ) AS col1, col1 AS col0 FROM tab0
----
-705
81
-870
21
-9603
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2581
SELECT ALL + CAST( - col1 AS SIGNED ) * - + col0 + - 79 AS col1 FROM tab2
----
2267
4849
4946

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + CAST ( - col1 AS INTEGER ) * - + col0 + - 79 AS col1 FROM tab2
----
2267
4849
4946

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT 95 DIV 41 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2583
SELECT 95 / 41 FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 > - + 50 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT 92 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2585
SELECT 92 / col2 FROM tab1
----
0
1
1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 79 + + 35 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + 88 + + ( COUNT( * ) ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2587
SELECT + 88 + + ( COUNT ( * ) ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL col1 * 43 * - 8 AS col1 FROM tab0 AS cor0
----
-27864
-344
-7224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT col0 / 87 + 87 + + ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT col0 / 87 + 87 + + ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <> 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 16 - + col2 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col1 + + + 63 + col2 FROM tab2 AS cor0
----
137
180
188

query I rowsort
SELECT DISTINCT + col0 * - - 49 FROM tab2 AS cor0
----
2254
3136
3675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT + col0 - col1 * - - CAST( NULL AS SIGNED ) + + 19 FROM tab0 AS cor0 WHERE + 90 > - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT + col0 - col1 * - - CAST ( NULL AS INTEGER ) + + 19 FROM tab0 AS cor0 WHERE + 90 > - col0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT ALL + CAST( - col1 AS SIGNED ) + 45 col0 FROM tab0
----
-36
24
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2595
SELECT ALL + CAST ( - col1 AS INTEGER ) + 45 col0 FROM tab0
----
-36
24
44

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT - col0 * + 38 * - col1 * + 96 FROM tab1 WHERE - CAST( + col1 AS SIGNED ) * - + col1 + + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2597
SELECT - col0 * + 38 * - col1 * + 96 FROM tab1 WHERE - CAST ( + col1 AS INTEGER ) * - + col1 + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - col0 - col0 + + - col1 * + col0 * - col1 AS col2 FROM tab1 AS cor0
----
1615
196651
9231

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= + 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 91 + ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2601
SELECT DISTINCT + 71, + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
71
9

skipif mysql # not compatible
query II rowsort label-2601
SELECT DISTINCT + 71, + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
71
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - MIN( - col0 ) * - 99 FROM tab1 AS cor0
----
-9009

skipif mysql # not compatible
query I rowsort label-2602
SELECT - MIN ( - col0 ) * - 99 FROM tab1 AS cor0
----
-9009

query II rowsort
SELECT ALL + - col1, - col2 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT ALL + + col2 * - - 86 * - - 39 FROM tab1 AS cor0
----
197886
228072
321984

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2605
SELECT ALL col0 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2605
SELECT ALL col0 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 27 IS NULL
----

query I rowsort
SELECT ALL col1 + - col2 * + col1 AS col2 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query II rowsort label-2608
SELECT ( 91 ), + ( + COUNT( * ) ) col2 FROM tab2
----
91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2608
SELECT ( 91 ), + ( + COUNT ( * ) ) col2 FROM tab2
----
91
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT DISTINCT col0 DIV 1 + - 93 AS col1 FROM tab1
----
-2
-42
-8

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT col0 / 1 + - 93 AS col1 FROM tab1
----
-2
-42
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2610
SELECT COUNT( * ) * + 52 AS col1, + COUNT( * ) FROM tab2
----
156
3

skipif mysql # not compatible
query II rowsort label-2610
SELECT COUNT ( * ) * + 52 AS col1, + COUNT ( * ) FROM tab2
----
156
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT + - col2 FROM tab2 AS cor0 WHERE col0 * col1 - + ( + CAST( + col2 AS SIGNED ) ) * col1 < + - col2
----

skipif mysql # not compatible
query I rowsort label-2611
SELECT + - col2 FROM tab2 AS cor0 WHERE col0 * col1 - + ( + CAST ( + col2 AS INTEGER ) ) * col1 < + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL <= + col1 )
----

query I rowsort
SELECT ALL - col0 / col0 FROM tab1 AS cor0 WHERE NOT ( ( - col2 IS NOT NULL ) )
----

query I rowsort
SELECT ALL col1 * - + col0 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - ( - + col1 ) * + 41 + + - col2 AS col0 FROM tab0 AS cor0
----
-58
3274
851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL + col2 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL + col2 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT - 32 + 35 FROM tab0
----
3

query I rowsort
SELECT - col2 * - col2 + + - 43 - + - ( col1 ) + + col2 FROM tab0
----
2294
88
9858

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 16 + - col1 / - col2 IS NULL
----

query I rowsort
SELECT 44 * + + col2 + - - col0 FROM tab2
----
1058
1824
2627

onlyif mysql # aggregate syntax: 
query II rowsort label-2622
SELECT ALL + COUNT( * ) col1, COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2622
SELECT ALL + COUNT ( * ) col1, COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

query I rowsort
SELECT DISTINCT 89 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 19 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 99 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT - COUNT( * ) - 32 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2627
SELECT - COUNT ( * ) - 32 FROM tab2 AS cor0
----
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col1 * - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT + 66 - ( - + COUNT( * ) ) col1 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2629
SELECT + 66 - ( - + COUNT ( * ) ) col1 FROM tab2
----
69

query I rowsort
SELECT col1 * + - col1 * - col0 - - col2 FROM tab0
----
196
38377
98462

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2631
SELECT ALL + 33 DIV CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + 33 / CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - col2 * + col0
----

query I rowsort
SELECT col1 + - - 21 FROM tab2
----
72
88
98

query III rowsort
SELECT * FROM tab2 WHERE - 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - ( - 66 ) AS col1, + col0 + + - col0 AS col1 FROM tab2
----
66
0
66
0
66
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - 4 + - col1 * - - col0 BETWEEN - col1 * ( col0 ) / col0 + - col2 * - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL COUNT( * ) * - + 51 AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL COUNT ( * ) * - + 51 AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * + 36 + - 90 AS col1 FROM tab0 cor0
----
-54
2826
666

query I rowsort
SELECT DISTINCT - ( 74 ) AS col2 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT ALL 91 FROM tab2 AS cor0 WHERE + 95 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT + MAX( ALL - col2 ) col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2641
SELECT + MAX ( ALL - col2 ) col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL - - 75 AS col1 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 2 + + col2 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - - SUM( ALL - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2644
SELECT - - SUM ( ALL - - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2645
SELECT - COUNT( * ) DIV - 64 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2645
SELECT - COUNT ( * ) / - 64 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 24 + - col2 FROM tab0
----
-23
-75
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2647
SELECT col0 DIV - col0 + CAST( - - 38 AS SIGNED ) AS col0 FROM tab1
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2647
SELECT col0 / - col0 + CAST ( - - 38 AS INTEGER ) AS col0 FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2648
SELECT ALL + COUNT( * ) AS col1, - 56 * + 94 AS col0 FROM tab1
----
3
-5264

skipif mysql # not compatible
query II rowsort label-2648
SELECT ALL + COUNT ( * ) AS col1, - 56 * + 94 AS col0 FROM tab1
----
3
-5264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT - col0 + CAST( col1 AS SIGNED ) + 55 * col1 FROM tab1
----
195
2541
733

skipif mysql # not compatible
query I rowsort label-2649
SELECT - col0 + CAST ( col1 AS INTEGER ) + 55 * col1 FROM tab1
----
195
2541
733

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + + 39 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT DISTINCT 98 * - 32 + + 7 + + ( col1 ) * - CAST( NULL AS SIGNED ) - + 66 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT 98 * - 32 + + 7 + + ( col1 ) * - CAST ( NULL AS INTEGER ) - + 66 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT ALL + CAST( col0 AS SIGNED ) + col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + CAST ( col0 AS INTEGER ) + col1 FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 73, ( - col1 ) col2 FROM tab0
----
73
-1
73
-21
73
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 34 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT DISTINCT 32 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL >= col1
----

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT 32 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL >= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 13 NOT BETWEEN - 4 * + ( - 71 ) * - col2 AND col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT ALL + col0 * - col1 * col0 * + ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL + col0 * - col1 * col0 * + ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + + 20 AS col2 FROM tab1
----
-31
-65
-71

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 4 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE 66 + - ( 26 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE 66 + - ( 26 ) IS NULL
----

query I rowsort
SELECT 47 + + + col0 AS col1 FROM tab1 AS cor0
----
132
138
98

query I rowsort
SELECT - + col2 + - + col1 + - col0 FROM tab2 AS cor0
----
-120
-181
-200

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ( - - col1 ) + + col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL - 89 - - - 8 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT + col1 * 7 + col0 FROM tab0 AS cor0
----
104
234
582

query I rowsort
SELECT ALL - + 9 AS col2 FROM tab1 cor0
----
-9
-9
-9

query I rowsort
SELECT ALL ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= 37
----

query II rowsort
SELECT ALL col2 AS col2, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT + 24 * + col0 FROM tab2
----
1104
1536
1800

query I rowsort
SELECT ALL - col1 * - 77 FROM tab2
----
3927
5159
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT ALL col0 * + + col2 * + CAST( NULL AS SIGNED ) * - ( CAST( col1 AS SIGNED ) ) / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL col0 * + + col2 * + CAST ( NULL AS INTEGER ) * - ( CAST ( col1 AS INTEGER ) ) / - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT 16 * + ( + COUNT( ALL + 75 ) ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT 16 * + ( + COUNT ( ALL + 75 ) ) AS col1 FROM tab2
----
48

query I rowsort
SELECT ALL + 7 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2676
SELECT * FROM tab1 WHERE NOT CAST( col0 AS SIGNED ) * + CAST( - + ( - col0 ) AS SIGNED ) + col0 <> + - 64
----

skipif mysql # not compatible
query III rowsort label-2676
SELECT * FROM tab1 WHERE NOT CAST ( col0 AS INTEGER ) * + CAST ( - + ( - col0 ) AS INTEGER ) + col0 <> + - 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2677
SELECT 88 AS col1, + CAST( NULL AS SIGNED ) + + col0 + + ( + col1 ) FROM tab0
----
88
NULL
88
NULL
88
NULL

skipif mysql # not compatible
query II rowsort label-2677
SELECT 88 AS col1, + CAST ( NULL AS INTEGER ) + + col0 + + ( + col1 ) FROM tab0
----
88
NULL
88
NULL
88
NULL

query I rowsort
SELECT ALL - + col0 + col1 FROM tab2 AS cor0 WHERE NOT col2 + col0 IS NULL
----
-8
13
5

query I rowsort
SELECT + + ( + - 8 ) + 34 * col1 AS col0 FROM tab2 cor0
----
1726
2270
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 4 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 4 IS NOT NULL
----
0

query I rowsort
SELECT + 63 FROM tab0 AS cor0 WHERE NOT + 48 * + col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT + SUM( + + col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + SUM ( + + col0 ) FROM tab0 cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 43 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 43 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE - 66 - + 67 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT col2 DIV col1 * + col2 AS col1 FROM tab1
----
576
649
68

skipif mysql # not compatible
query I rowsort label-2685
SELECT col2 / col1 * + col2 AS col1 FROM tab1
----
576
649
68

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 25 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab2 WHERE - 4 + - - col2 * 80 NOT BETWEEN + - col1 AND + ( + col0 ) * 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( + col2 ) ) * - 41 * + col1 * + col1 col0 FROM tab1
----
60475
6158692
771456

query II rowsort
SELECT ALL + 66 + 48 AS col1, 98 AS col2 FROM tab0
----
114
98
114
98
114
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= col1 + 1
----

query I rowsort
SELECT DISTINCT + col2 + + col1 + - 96 AS col1 FROM tab2
----
-22
21
29

query I rowsort
SELECT - col1 + - + ( col0 ) AS col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT 74 FROM tab2 AS cor0 WHERE NULL IS NULL
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT + COUNT( * ) * + - 84 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 < col1
----
-252

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + COUNT ( * ) * + - 84 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 < col1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE - 63 + + + col1 - - + col0 * 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2695
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE - 63 + + + col1 - - + col0 * 27 IS NULL
----
0

query I rowsort
SELECT DISTINCT - - ( + - 47 ) FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT + 76 + - + 67 + - MAX( + + col0 ) * - ( - 25 ) AS col0 FROM tab2 WHERE - 89 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT + 76 + - + 67 + - MAX ( + + col0 ) * - ( - 25 ) AS col0 FROM tab2 WHERE - 89 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE col0 * - 51 - - 32 * + 23 IS NULL
----

query II rowsort
SELECT - col1, col0 + 21 AS col1 FROM tab0 cor0
----
-1
118
-21
108
-81
36

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT 21 - - - ( + COUNT( * ) ) FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT 21 - - - ( + COUNT ( * ) ) FROM tab1 cor0
----
18

query I rowsort
SELECT DISTINCT ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + + MIN( - - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2703
SELECT + + MIN ( - - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2704
SELECT ALL col1 * - - CAST( - col1 AS SIGNED ) * - col2, col2 FROM tab1
----
1475
59
150212
68
18816
96

skipif mysql # not compatible
query II rowsort label-2704
SELECT ALL col1 * - - CAST ( - col1 AS INTEGER ) * - col2, col2 FROM tab1
----
1475
59
150212
68
18816
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT COUNT( DISTINCT - 95 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT COUNT ( DISTINCT - 95 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab2 WHERE NOT col2 IS NULL
----
-104
-133
-69

query I rowsort
SELECT ALL + 81 AS col0 FROM tab0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ALL COUNT( + - col2 ) * 89 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL COUNT ( + - col2 ) * 89 FROM tab2
----
267

query I rowsort
SELECT ALL col1 * - 20 AS col1 FROM tab1
----
-100
-280
-940

query I rowsort
SELECT DISTINCT + 69 * - col0 AS col0 FROM tab0 AS cor0
----
-1035
-6003
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT 14 + COUNT( * ) AS col0 FROM tab2 WHERE + col0 + + + ( - 91 ) IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT 14 + COUNT ( * ) AS col0 FROM tab2 WHERE + col0 + + + ( - 91 ) IS NULL
----
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL + + SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL + + SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2714
SELECT - SUM( + - col1 ) * + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2714
SELECT - SUM ( + - col1 ) * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 94 AS col0 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT col1 + - 98 FROM tab2 AS cor0
----
-21
-31
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT + 46 * + col0 / - 3 = NULL AND col2 <= col2
----

query I rowsort
SELECT DISTINCT + 5 * + 99 AS col0 FROM tab0
----
495

query I rowsort
SELECT ALL + - 20 FROM tab1 WHERE ( - 44 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT - 29 + col2 + + 34 AS col0 FROM tab0
----
104
15
52

query II rowsort
SELECT - - 47, - col1 * 7 AS col2 FROM tab1 cor0
----
47
-329
47
-35
47
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( col0 ) IS NULL )
----

query I rowsort
SELECT - col2 * 52 * col1 AS col0 FROM tab0 AS cor0
----
-10920
-197964
-5148

query I rowsort
SELECT DISTINCT - + col1 * - - col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT ALL - CAST( + 9 AS SIGNED ) FROM tab1
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL - CAST ( + 9 AS INTEGER ) FROM tab1
----
-9
-9
-9

query I rowsort
SELECT 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - SUM( 46 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-414

skipif mysql # not compatible
query I rowsort label-2729
SELECT - SUM ( 46 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-414

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 75 * + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL MIN( DISTINCT - 21 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL MIN ( DISTINCT - 21 ) FROM tab2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2732
SELECT - 36 DIV + COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2732
SELECT - 36 / + COUNT ( * ) FROM tab2
----
-12

query I rowsort
SELECT ALL 28 AS col0 FROM tab0 WHERE NOT - 87 IS NULL
----
28
28
28

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 14 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT ( - 8 ) AS col0 FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2737
SELECT DISTINCT COUNT( * ) col2, 69 FROM tab1
----
3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2737
SELECT DISTINCT COUNT ( * ) col2, 69 FROM tab1
----
3
69

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL >= - col0 * 67
----

query I rowsort
SELECT col2 + - col1 FROM tab1 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - col0 * + ( - 22 ) FROM tab0
----
1914
2134
330

query III rowsort
SELECT * FROM tab1 WHERE NOT 79 + ( col0 ) * col1 >= + 89
----

query I rowsort
SELECT 27 FROM tab0 WHERE 8 NOT IN ( col1 )
----
27
27
27

query III rowsort
SELECT * FROM tab0 WHERE NULL >= 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - COUNT( * ) - + 13 col2 FROM tab2
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2744
SELECT - COUNT ( * ) - + 13 col2 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT - CAST( - 67 AS SIGNED ) * col1 FROM tab1
----
3149
335
938

skipif mysql # not compatible
query I rowsort label-2745
SELECT - CAST ( - 67 AS INTEGER ) * col1 FROM tab1
----
3149
335
938

query I rowsort
SELECT ( ( + col0 ) ) * 18 FROM tab1
----
1530
1638
918

query I rowsort
SELECT + col1 * + 68 AS col1 FROM tab0
----
1428
5508
68

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT COUNT( * ) * 89 AS col2 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-2749
SELECT COUNT ( * ) * 89 AS col2 FROM tab2
----
267

query I rowsort
SELECT - 88 * 80 FROM tab2
----
-7040
-7040
-7040

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 78 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * ( col0 ) NOT BETWEEN 47 AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( - 48 ) NOT BETWEEN ( + ( + col0 ) ) * + col1 AND - col1 - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT DISTINCT COUNT( * ) + - 69 AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT COUNT ( * ) + - 69 AS col1 FROM tab2
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 48 IN ( col0 )
----

query I rowsort
SELECT DISTINCT col0 - col2 * col2 AS col0 FROM tab2
----
-1536
-3289
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT + 71 DIV + 92 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2757
SELECT + 71 / + 92 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * 78 FROM tab0
----
-1170
-6786
-7566

query I rowsort
SELECT - 60 * 53 FROM tab1
----
-3180
-3180
-3180

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT MIN( col0 ) FROM tab1 WHERE 50 = - 71 * + 42 + - col2 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT MIN ( col0 ) FROM tab1 WHERE 50 = - 71 * + 42 + - col2 * col2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 44 + - col0 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 - 75 * - col0 FROM tab0
----
1110
6438
7178

query I rowsort
SELECT DISTINCT - col1 - - 27 AS col0 FROM tab0 AS cor0
----
-54
26
6

query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - 16
----
-210
-3807
-99

query I rowsort
SELECT + 48 * col1 AS col1 FROM tab1 AS cor0
----
2256
240
672

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( + 96 - 85 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT DISTINCT col0 DIV + 86 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT col0 / + 86 AS col0 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT 52 FROM tab1 AS cor0 CROSS JOIN tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL + ( MIN( col1 ) ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL + ( MIN ( col1 ) ) AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 17 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 50
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 78 ) AND + 96 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN + col0 * col1 AND ( + ( ( - 30 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT DISTINCT 70 DIV - col1 AS col1 FROM tab1 cor0
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT 70 / - col1 AS col1 FROM tab1 cor0
----
-1
-14
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT ALL ( - col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT 34 + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL ( - col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT 34 + col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * 54 + + 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT + COUNT( + - ( + 54 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2778
SELECT + COUNT ( + - ( + 54 ) ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT 15 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2779
SELECT 15 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 73 + 76 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT 97 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2781
SELECT 97 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-291

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( 57 ) * col2 + - ( col2 ) NOT BETWEEN + col2 AND col2
----

query I rowsort
SELECT 66 * + + 90 FROM tab0 AS cor0
----
5940
5940
5940

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2784
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2784
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT DISTINCT - ( + ( + ( 73 ) ) ) + - 34 FROM tab1 WHERE col1 > 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col2 FROM tab2 WHERE ( + col2 ) <> + 47
----
61

query I rowsort
SELECT - 45 + + - 64 AS col1 FROM tab1 AS cor0
----
-109
-109
-109

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT + 82 + - CAST( - 84 AS SIGNED ) FROM tab0 cor0
----
166
166
166

skipif mysql # not compatible
query I rowsort label-2789
SELECT + 82 + - CAST ( - 84 AS INTEGER ) FROM tab0 cor0
----
166
166
166

query I rowsort
SELECT DISTINCT + 17 * 11 + 14 AS col2 FROM tab0 cor0
----
201

query I rowsort
SELECT DISTINCT - + 34 * - + col0 + col1 FROM tab2 AS cor0
----
1615
2253
2617

query I rowsort
SELECT 72 + - 72 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT col1 / - col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-2793
SELECT col1 / - col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL 58 + - COUNT( * ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL 58 + - COUNT ( * ) FROM tab0 AS cor0
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2795
SELECT + 80 AS col2 FROM tab2 AS cor0 WHERE CAST( + + col2 AS DECIMAL ) BETWEEN col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 80 AS col2 FROM tab2 AS cor0 WHERE CAST ( + + col2 AS REAL ) BETWEEN col2 AND ( NULL )
----

query II rowsort
SELECT DISTINCT + - col1 AS col1, col0 * - col1 * + ( + col0 * + 56 ) FROM tab2 AS cor0
----
-51
-6043296
-67
-21105000
-77
-17661952

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * - col0 AND + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - COUNT( * ) + - 48 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2798
SELECT - COUNT ( * ) + - 48 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT DISTINCT + 33 AS col1, - 51 AS col1 FROM tab0 AS cor0
----
33
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT NULL <> ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL <> ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT ALL 38 + - CAST( 69 AS SIGNED ) FROM tab2
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL 38 + - CAST ( 69 AS INTEGER ) FROM tab2
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * 59 + - col1 col1 FROM tab0
----
1925
1985
2005

query I rowsort
SELECT DISTINCT - ( + + 46 ) AS col0 FROM tab1
----
-46

query I rowsort
SELECT ALL - 64 * - 82 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + - 26 + - col2 + + col0 ) < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT ALL col0 + - - CAST( NULL AS SIGNED ) / - 67 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL col0 + - - CAST ( NULL AS INTEGER ) / - 67 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT DISTINCT - - ( - 30 ) - MIN( ALL + - 72 ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT - - ( - 30 ) - MIN ( ALL + - 72 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + + COUNT( * ) - - COUNT( - 74 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2809
SELECT + + COUNT ( * ) - - COUNT ( - 74 ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL - - col1 * col2 + - 21 + col1 * col0 - - col0 FROM tab0 AS cor0
----
2103
272
5016

query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT CAST( NULL AS SIGNED ) / col1 / col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT CAST ( NULL AS INTEGER ) / col1 / col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 96 AS col1, col0 FROM tab2 AS cor0
----
96
46
96
64
96
75

query I rowsort
SELECT - ( - 16 ) + ( col0 ) - col1 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT COUNT( * ) * + 79 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT COUNT ( * ) * + 79 FROM tab1 AS cor0
----
237

query I rowsort
SELECT - 58 AS col0 FROM tab2 cor0 WHERE NOT NULL IN ( - 94 + + col2 + + 87 + + + 17 * col0 * - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 * - + col0 NOT BETWEEN - col2 * - 16 * 74 AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2819
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - CAST( col0 AS SIGNED ) ) + + 4 * - ( col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2819
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - CAST ( col0 AS INTEGER ) ) + + 4 * - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - SUM( - - col2 ) col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2820
SELECT - SUM ( - - col2 ) col2 FROM tab2 cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 / + 45 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2822
SELECT DISTINCT + 69 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + 69 * - CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 68 col1 FROM tab1 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL + col0 AS col0, - col1 * - 8 FROM tab1
----
51
112
85
40
91
376

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 33 IN ( + + col0 * - col2 )
----

query I rowsort
SELECT ALL col0 * + + col1 * col1 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 = ( + - 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + MIN( DISTINCT + 18 ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + MIN ( DISTINCT + 18 ) AS col0 FROM tab0
----
18

query I rowsort
SELECT DISTINCT + - 95 AS col0 FROM tab1 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT 97 AS col1, COUNT( * ) FROM tab2 cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-2831
SELECT 97 AS col1, COUNT ( * ) FROM tab2 cor0
----
97
3

query II rowsort
SELECT ALL + col2, + 88 - col0 FROM tab1 AS cor0
----
59
3
68
-3
96
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( 9 * + + ( + col2 ) ) AND col0 OR NOT + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( 9 * + + ( + col2 ) ) AND col0 OR NOT + col2 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + col0, + col1 col1 FROM tab1
----
144
5
147
14
159
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL 30 + + - COUNT( * ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL 30 + + - COUNT ( * ) AS col2 FROM tab1
----
27

query I rowsort
SELECT + col2 + + 68 - - + 20 AS col0 FROM tab1
----
147
156
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL + MAX( DISTINCT col2 ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + MAX ( DISTINCT col2 ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ( 67 ) AS col2 FROM tab0 AS cor0 WHERE col0 * - 68 IS NOT NULL
----
67
67
67

query I rowsort
SELECT ALL - 32 * + 23 FROM tab0 AS cor0
----
-736
-736
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 60 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 60 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - ( 11 ) ) NOT IN ( + col0 + 31 * + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT COUNT( - col0 ) + + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2844
SELECT COUNT ( - col0 ) + + + COUNT ( * ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col1 col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT - COUNT( ALL + col2 ) + + - MIN( col0 ) col0 FROM tab1
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2846
SELECT DISTINCT - COUNT ( ALL + col2 ) + + - MIN ( col0 ) col0 FROM tab1
----
-54

query I rowsort
SELECT 31 + + col2 FROM tab0
----
130
41
78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 + - ( - 17 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2849
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 + - ( - 17 ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT + + col0 * + + ( + col1 ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2851
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( + + 7 AS DECIMAL ) / - col0 + + - col2 * - - col2 * 82 - + 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2851
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( + + 7 AS REAL ) / - col0 + + - col2 * - - col2 * 82 - + 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( ( + col0 * + 48 + ( - col0 ) ) NOT BETWEEN + ( - + col1 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2853
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2854
SELECT DISTINCT 54 * + 22 AS col0, + col1 * + CAST( - col0 AS SIGNED ) + col0 FROM tab2
----
1188
-2300
1188
-4864
1188
-4950

skipif mysql # not compatible
query II rowsort label-2854
SELECT DISTINCT 54 * + 22 AS col0, + col1 * + CAST ( - col0 AS INTEGER ) + col0 FROM tab2
----
1188
-2300
1188
-4864
1188
-4950

query I rowsort
SELECT ALL + col1 - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
108
96
98

query II rowsort
SELECT DISTINCT + 28 * - - 30, col0 FROM tab0 cor0
----
840
15
840
87
840
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 94 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * + col0 + + 75 AS col2 FROM tab2 AS cor0
----
2421
5003
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ( COUNT( ALL - - 69 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2859
SELECT ( COUNT ( ALL - - 69 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE 47 IN ( col2, - 46 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT DISTINCT 15 + CAST( - 94 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT 15 + CAST ( - 94 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 14 * 72 - + col2 * - col2 * + 1 AS col2 FROM tab2
----
46
1537
64
2608
75
4372

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2863
SELECT - MAX( + - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT - MAX ( + - CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2864
SELECT ALL + col0 AS col2, - CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query II rowsort label-2864
SELECT ALL + col0 AS col2, - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT MIN( ALL + ( col0 ) ) + - 12 AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT MIN ( ALL + ( col0 ) ) + - 12 AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT - 90 * + + COUNT( * ) + - 69 + + CAST( - ( + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + ( 94 ) IS NULL
----
-69

skipif mysql # not compatible
query I rowsort label-2866
SELECT - 90 * + + COUNT ( * ) + - 69 + + CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + ( 94 ) IS NULL
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 74 col1, col2 * - + col1 * + col0 FROM tab1 cor0
----
74
-25075
74
-290836
74
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT SUM( ALL col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2868
SELECT SUM ( ALL col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL + + 78 AS col0 FROM tab0 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 * + - col2 * ( + + col1 ) + 65 col2 FROM tab0 AS cor0
----
-182635
-2683870
-950632

query I rowsort
SELECT - col2 * + + col1 + col0 - + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + 19 + + col2 + 30 FROM tab1 cor0
----
108
117
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL + 68 * - MIN( - ( col2 ) ) - 8 AS col1 FROM tab2 AS cor0
----
3936

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL + 68 * - MIN ( - ( col2 ) ) - 8 AS col1 FROM tab2 AS cor0
----
3936

query I rowsort
SELECT AVG ( - 44 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - - col0 + + 23, 19 AS col1 FROM tab0 AS cor0
----
110
19
120
19
38
19

query I rowsort
SELECT ALL + ( - ( - col2 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 0 + + + col2 * + 70 NOT IN ( 31 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2877
SELECT + 45 DIV - CAST( col0 AS SIGNED ) + - col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2877
SELECT + 45 / - CAST ( col0 AS INTEGER ) + - col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT + col2 / + - 7 FROM tab2 WHERE ( NOT NULL NOT IN ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT - COUNT( * ) + + 97 AS col2 FROM tab2, tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT - COUNT ( * ) + + 97 AS col2 FROM tab2, tab0 AS cor0
----
88

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT 51 * + + 55 * - - COUNT( * ) AS col1 FROM tab2
----
8415

skipif mysql # not compatible
query I rowsort label-2882
SELECT 51 * + + 55 * - - COUNT ( * ) AS col1 FROM tab2
----
8415

query I rowsort
SELECT ALL - 43 * - col2 FROM tab0 WHERE NOT - 64 - col1 IS NULL
----
2021
4257
430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 98 AS col0, - col2 col0 FROM tab1
----
1372
-96
4606
-68
490
-59

query I rowsort
SELECT ALL - col2 * col0 * + - 99 * - col2 FROM tab1 AS cor0
----
-29292615
-41657616
-46531584

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2886
SELECT + CAST( col2 AS SIGNED ), - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2886
SELECT + CAST ( col2 AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT col1 * - 41 * - - 82 FROM tab2 AS cor0
----
-171462
-225254
-258874

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ALL + 28 * + MIN( + ( + col2 ) ) FROM tab0
----
280

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + 28 * + MIN ( + ( + col2 ) ) FROM tab0
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2891
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2, 62 * + + col1 * + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
170128
NULL
6437026
NULL
7750

skipif mysql # not compatible
query II rowsort label-2891
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2, 62 * + + col1 * + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
170128
NULL
6437026
NULL
7750

query II rowsort
SELECT ALL col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT - SUM( ALL + col0 ) AS col2 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - SUM ( ALL + col0 ) AS col2 FROM tab0 cor0
----
-199

query II rowsort
SELECT + 61 * col2, col2 FROM tab1 cor0 WHERE NOT ( NOT col2 < NULL )
----

query I rowsort
SELECT - 27 FROM tab2 AS cor0 WHERE NOT NULL <> - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
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-2896
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col2 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT MAX( DISTINCT + 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-2897
SELECT MAX ( DISTINCT + 48 ) FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - COUNT( * ) * + MAX( DISTINCT + col1 ) col0 FROM tab2
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2898
SELECT - COUNT ( * ) * + MAX ( DISTINCT + col1 ) col0 FROM tab2
----
-231

query II rowsort
SELECT ALL - + ( - - 76 ), 8 * - 79 AS col1 FROM tab0 AS cor0
----
-76
-632
-76
-632
-76
-632

query I rowsort
SELECT - col0 + - 14 * + 91 AS col1 FROM tab2
----
-1320
-1338
-1349

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 33 + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT ALL COUNT( * ) * 23 + - 82 + + 89 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL COUNT ( * ) * 23 + - 82 + + 89 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + col2 + - 41 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2904
SELECT - col2 * CAST( NULL AS SIGNED ) - + - 64 FROM tab1 WHERE ( + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2904
SELECT - col2 * CAST ( NULL AS INTEGER ) - + - 64 FROM tab1 WHERE ( + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT col0 DIV + - 67 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT col0 / + - 67 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + col2 + - 71 FROM tab2 AS cor0
----
-13
-31
-48

query I rowsort
SELECT ALL col0 - col2 AS col0 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 36 - - col2 AS col1 FROM tab0 AS cor0
----
135
46
83

query II rowsort
SELECT col0 AS col1, 52 AS col0 FROM tab0
----
15
52
87
52
97
52

query I rowsort
SELECT + col2 * col1 * 50 * - - col2 AS col0 FROM tab2
----
11269400
1348950
6160000

query II rowsort
SELECT ALL col1, - col2 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT col1 * - + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * + - col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT 72 DIV - ( col2 ) AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT 72 / - ( col2 ) AS col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT col2 * - + 25 FROM tab2
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT MAX( - ( + col0 ) ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT MAX ( - ( + col0 ) ) AS col1 FROM tab0
----
-15

query II rowsort
SELECT + col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT + 94 * + ( - 17 ) + 61 + 99 * + ( + col2 ) * - - col1 AS col2 FROM tab0 AS cor0
----
19253
375356
8264

query II rowsort
SELECT + col0 AS col1, 2 FROM tab2 AS cor0
----
46
2
64
2
75
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL + + COUNT( * ) * + 41 * - + 68 * ( 47 ) + + COUNT( * ) FROM tab1 AS cor0
----
-393105

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + + COUNT ( * ) * + 41 * - + 68 * ( 47 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-393105

query I rowsort
SELECT + ( ( + + 14 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + ( - + ( - + MIN( DISTINCT - + col0 ) ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2924
SELECT + ( - + ( - + MIN ( DISTINCT - + col0 ) ) ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + MAX( ALL + 16 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-2925
SELECT + MAX ( ALL + 16 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
16

query I rowsort
SELECT DISTINCT 75 FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - 24
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col2 <= - 70
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT + col1 * + CAST( NULL AS SIGNED ) * - - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT + col1 * + CAST ( NULL AS INTEGER ) * - - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT 44 * + COUNT( * ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-2931
SELECT 44 * + COUNT ( * ) FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT - - MAX( + 96 ) DIV - 4 AS col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2932
SELECT - - MAX ( + 96 ) / - 4 AS col0 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT + MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT 95 + - - col0 FROM tab0 AS cor0
----
110
182
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT + COUNT( DISTINCT - col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2937
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL BETWEEN + - col2 / - 83 + + col2 - + + col0 AND col2 * col2 + - col2
----

skipif mysql # not compatible
query I rowsort label-2937
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL BETWEEN + - col2 / - 83 + + col2 - + + col0 AND col2 * col2 + - col2
----

query I rowsort
SELECT 70 FROM tab0 WHERE 94 NOT BETWEEN - 72 AND - col0
----
70
70
70

query I rowsort
SELECT DISTINCT ( 90 ) * + 58 * - + 39 + col0 * 72 AS col1 FROM tab0
----
-196596
-197316
-202500

query I rowsort
SELECT ALL 0 + + - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col1 + - - 16 + ( 36 ) + + - col1 FROM tab2
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT - + COUNT( * ) + 88 FROM tab0 WHERE - col2 IS NOT NULL
----
85

skipif mysql # not compatible
query I rowsort label-2942
SELECT - + COUNT ( * ) + 88 FROM tab0 WHERE - col2 IS NOT NULL
----
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - ( + + col1 )
----

query I rowsort
SELECT col1 * + 44 + 74 AS col2 FROM tab0 AS cor0
----
118
3638
998

query I rowsort
SELECT DISTINCT + col1 * + 69 AS col2 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT ALL col0 * + + col1 * ( + col0 ) DIV + col1 + - ( - - col2 ) + - col0 col1 FROM tab2
----
2047
3992
5492

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2946
SELECT ALL col0 * + + col1 * ( + col0 ) / + col1 + - ( - - col2 ) + - col0 col1 FROM tab2
----
2047
3992
5492

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT ALL 75 DIV + + col2 + - col0 * + - 18 FROM tab1
----
1531
1639
918

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL 75 / + + col2 + - col0 * + - 18 FROM tab1
----
1531
1639
918

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + SUM( + + ( col1 ) ) FROM tab1 AS cor0 WHERE + col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT + SUM ( + + ( col1 ) ) FROM tab1 AS cor0 WHERE + col2 = NULL
----
NULL

query I rowsort
SELECT DISTINCT 82 + col0 AS col0 FROM tab2 AS cor0
----
128
146
157

query I rowsort
SELECT ALL - - 80 - + + 21 * col1 FROM tab1 AS cor0
----
-214
-25
-907

query I rowsort
SELECT + - col1 + + col2 * + col0 FROM tab1 AS cor0
----
4882
5010
6141

query I rowsort
SELECT DISTINCT + ( col2 ) + 59 AS col2 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT 54 - - 23 + SUM( ALL col2 ) + 98 FROM tab1 AS cor0
----
398

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT 54 - - 23 + SUM ( ALL col2 ) + 98 FROM tab1 AS cor0
----
398

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT - MAX( - col1 ) * + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - MAX ( - col1 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 30 * 61 * + col2 FROM tab2 AS cor0
----
-106140
-42090
-73200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT ALL - + col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL - + col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 66 * col0 + + 27 + col1 AS col0 FROM tab0 AS cor0
----
1098
5790
6430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT - col1 * + col0 * - col0 + 42 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( 4 AS SIGNED ) IN ( - ( + + col1 ) )
----
36167
36456
389249

skipif mysql # not compatible
query I rowsort label-2958
SELECT - col1 * + col0 * - col0 + 42 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( 4 AS INTEGER ) IN ( - ( + + col1 ) )
----
36167
36456
389249

query II rowsort
SELECT ALL - - col1 AS col2, col1 AS col2 FROM tab2 WHERE - col0 <= - + col2
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL OR NOT 85 + - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 38 * - col0 FROM tab2
----
1748
2432
2850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT MIN( - col2 ) DIV COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2962
SELECT MIN ( - col2 ) / COUNT ( * ) FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL + MAX( 76 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL + MAX ( 76 ) FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL COUNT( - - 34 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL COUNT ( - - 34 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - col1 * - + col2 + - col0 + - 87 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT - 91 DIV + + 79 + - COUNT( * ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-2966
SELECT - 91 / + + 79 + - COUNT ( * ) FROM tab0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT - - 37 * - COUNT( * ) / - 43 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT - - 37 * - COUNT ( * ) / - 43 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT COUNT( * ) * - 78 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-2968
SELECT COUNT ( * ) * - 78 FROM tab1 AS cor0
----
-234

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + 41 * - 39 FROM tab0 cor0
----
-1599
-1599
-1599

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - col1 BETWEEN + ( - + 81 ) + + ( + - col2 ) - - col1 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= 28
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2973
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2973
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT - 63 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - 63 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT SUM( col0 ) * + + COUNT( * ) - - ( MIN( ALL col1 ) ) AS col2 FROM tab0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT SUM ( col0 ) * + + COUNT ( * ) - - ( MIN ( ALL col1 ) ) AS col2 FROM tab0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT - 57 - + col1 * + + col0 AS col1 FROM tab2
----
-2403
-4985
-5082

query I rowsort
SELECT DISTINCT 44 + - - 19 AS col1 FROM tab0
----
63

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND NULL AND + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2979
SELECT - + COUNT( DISTINCT + 64 ) + COUNT( * ) DIV - CAST( + 11 AS SIGNED ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2979
SELECT - + COUNT ( DISTINCT + 64 ) + COUNT ( * ) / - CAST ( + 11 AS INTEGER ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col0 AND - col1 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 - + - col2 col0 FROM tab0 cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT DISTINCT 29 - - SUM( ALL + + 70 ) AS col2 FROM tab2
----
239

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT 29 - - SUM ( ALL + + 70 ) AS col2 FROM tab2
----
239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, + col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT - 21 * + 80 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 47 IS NOT NULL
----
-1680

query I rowsort
SELECT - ( col1 ) - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( + + ( - col2 ) ) AND NOT col1 IN ( + col1, - col1 * - + col2 )
----

query I rowsort
SELECT DISTINCT 1 FROM tab2 AS cor0 WHERE - 42 IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT - + col1 * + 70 FROM tab2 AS cor0
----
-3570
-4690
-5390

query I rowsort
SELECT ALL col1 * + col2 + + - 90 FROM tab1 AS cor0
----
1254
205
3106

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT - COUNT( * ), + MIN( DISTINCT + 65 ) * + SUM( + - col2 ) AS col1 FROM tab1 AS cor0
----
-3
-14495

skipif mysql # not compatible
query II rowsort label-2989
SELECT - COUNT ( * ), + MIN ( DISTINCT + 65 ) * + SUM ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-3
-14495

query II rowsort
SELECT DISTINCT + 93 AS col0, - col0 AS col2 FROM tab0 AS cor0
----
93
-15
93
-87
93
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT - SUM( ALL - 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT - SUM ( ALL - 0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - MAX( + - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2992
SELECT - MAX ( + - col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT - SUM( ALL + - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2993
SELECT - SUM ( ALL + - col0 ) FROM tab0
----
199

query I rowsort
SELECT - col0 * - + col0 * + + col0 FROM tab1
----
132651
614125
753571

query II rowsort
SELECT ALL - 89 * col2 AS col1, - 7 AS col1 FROM tab0
----
-4183
-7
-8811
-7
-890
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * 32 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * 32 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + 96 * SUM( 48 ) AS col0 FROM tab1
----
13824

skipif mysql # not compatible
query I rowsort label-2997
SELECT + 96 * SUM ( 48 ) AS col0 FROM tab1
----
13824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT col0 / - - col2 + - col1 col2 FROM tab2 WHERE NOT col0 * - col0 * - + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2998
SELECT col0 / - - col2 + - col1 col2 FROM tab2 WHERE NOT col0 * - col0 * - + CAST ( NULL AS INTEGER ) < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - ( - col2 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 97 + 72 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL 13 + + + MIN( ALL col2 ) FROM tab0 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL 13 + + + MIN ( ALL col2 ) FROM tab0 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + COUNT( + col2 ) + COUNT( ALL + col2 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3004
SELECT + COUNT ( + col2 ) + COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + col1 * 64 + 41 + + - col0 + - ( col0 ) / + col0 AS col0 FROM tab0 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - 95 + col2 AS col2 FROM tab0 AS cor0
----
-48
-85
4

query I rowsort
SELECT - 8 + - ( - - 51 ) FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT COUNT( * ) - 9 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * col2 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT COUNT ( * ) - 9 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * col2 IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT DISTINCT - - COUNT( * ) + - 89 AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT - - COUNT ( * ) + - 89 AS col0 FROM tab1 AS cor0
----
-86

query II rowsort
SELECT DISTINCT 38 AS col1, ( - 87 ) * col1 FROM tab2 AS cor0
----
38
-4437
38
-5829
38
-6699

onlyif mysql # aggregate syntax: 
query II rowsort label-3011
SELECT DISTINCT + 96 col0, - MIN( DISTINCT + col0 ) AS col0 FROM tab1
----
96
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3011
SELECT DISTINCT + 96 col0, - MIN ( DISTINCT + col0 ) AS col0 FROM tab1
----
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL >= ( + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL >= ( + 40 )
----
0

query II rowsort
SELECT DISTINCT + 29, col1 FROM tab1
----
29
14
29
47
29
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3014
SELECT DISTINCT COUNT( * ) + CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT COUNT ( * ) + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT COUNT( - CAST( + ( + ( - col1 ) ) AS SIGNED ) ) + - 84 col2 FROM tab2 WHERE - col1 < + + 56
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3015
SELECT DISTINCT COUNT ( - CAST ( + ( + ( - col1 ) ) AS INTEGER ) ) + - 84 col2 FROM tab2 WHERE - col1 < + + 56
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT DISTINCT - col0 / + col0 + - - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT - col0 / + col0 + - - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT + 77, + col0 * col2 AS col1 FROM tab2 AS cor0
----
77
1058
77
2560
77
4350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3018
SELECT + CAST( 72 AS SIGNED ) - - col0 DIV + 68 - 17 + - 4 AS col1 FROM tab1 AS cor0
----
51
52
52

skipif mysql # not compatible
query I rowsort label-3018
SELECT + CAST ( 72 AS INTEGER ) - - col0 / + 68 - 17 + - 4 AS col1 FROM tab1 AS cor0
----
51
52
52

query II rowsort
SELECT DISTINCT - ( + col1 ) * col0 + - 72 * + + col1, 5 AS col0 FROM tab0
----
-169
5
-3339
5
-7047
5

query I rowsort
SELECT DISTINCT + 91 * 36 AS col2 FROM tab0
----
3276

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT + 37, + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
37
9

skipif mysql # not compatible
query II rowsort label-3021
SELECT + 37, + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
37
9

query I rowsort
SELECT DISTINCT - 71 * + col1 * - col1 * + col1 * - 16 AS col2 FROM tab1 AS cor0
----
-117942928
-142000
-3117184

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL + + MAX( ALL + - col2 ) * - - 16 FROM tab1 AS cor0
----
-944

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL + + MAX ( ALL + - col2 ) * - - 16 FROM tab1 AS cor0
----
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL COUNT( DISTINCT - ( - 25 ) ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL COUNT ( DISTINCT - ( - 25 ) ) AS col2 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col0 col1 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT * FROM tab1 WHERE 17 * ( - 74 ) - col1 / - - 26 IS NULL AND NULL BETWEEN NULL AND + 29 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 44 col0, col0 * + col2 AS col0 FROM tab0
----
-44
705
-44
870
-44
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT ALL - 13 DIV + col1 AS col0 FROM tab0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - 13 / + col1 AS col0 FROM tab0
----
-13
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3031
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3031
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3032
SELECT + CAST( NULL AS SIGNED ) col1, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3032
SELECT + CAST ( NULL AS INTEGER ) col1, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT DISTINCT 38 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
38

query I rowsort
SELECT + 97 + 4 AS col0 FROM tab1
----
101
101
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ( - 13 ) + COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3035
SELECT ( - 13 ) + COUNT ( * ) FROM tab2
----
-10

query I rowsort
SELECT col1 + - + 98 FROM tab0
----
-17
-77
-97

query I rowsort
SELECT + - 64 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT + - col2 / 11 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT + - col2 / 11 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3039
SELECT + - CAST( + col2 AS SIGNED ) AS col1, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

skipif mysql # not compatible
query II rowsort label-3039
SELECT + - CAST ( + col2 AS INTEGER ) AS col1, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT ALL - ( - col2 ) + - col2 + + 57 - + + col1 * 84 DIV - - col0 AS col2 FROM tab0 AS cor0
----
-396
37
57

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL - ( - col2 ) + - col2 + + 57 - + + col1 * 84 / - - col0 AS col2 FROM tab0 AS cor0
----
-396
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN col0 AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN col0 AND + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT DISTINCT + MIN( ALL - - 59 ) AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + MIN ( ALL - - 59 ) AS col2 FROM tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT + col0 + + - col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 58 AS col0, - col1 - - ( - 91 ) col2 FROM tab0
----
58
-112
58
-172
58
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 - - + col1 + + col0 * - col0 col2 FROM tab2
----
-1989
-3943
-5482

query I rowsort
SELECT DISTINCT col0 + - - 75 FROM tab1
----
126
160
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT COUNT( * ) - - 49 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( * ) - - 49 FROM tab1
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 43 col2 FROM tab0
----
124
44
64

query II rowsort
SELECT ALL + + 31 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
31
-51
31
-85
31
-91

query II rowsort
SELECT + 16, 83 AS col0 FROM tab2 AS cor0
----
16
83
16
83
16
83

query II rowsort
SELECT col0 AS col2, 75 FROM tab2
----
46
75
64
75
75
75

query I rowsort
SELECT ALL + col2 * + col1 FROM tab0 WHERE NOT - col1 / + col1 IS NULL
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT DISTINCT - CAST( + - 38 AS SIGNED ) AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - CAST ( + - 38 AS INTEGER ) AS col0 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + 2 * COUNT( 99 ) col1 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3054
SELECT + 2 * COUNT ( 99 ) col1 FROM tab1
----
6

query I rowsort
SELECT ALL - 31 * + - col1 AS col1 FROM tab2
----
1581
2077
2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3057
SELECT * FROM tab0 WHERE NOT - CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3057
SELECT * FROM tab0 WHERE NOT - CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + 75 / - 46 * - - col2 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3059
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3059
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col1, 59 FROM tab1 AS cor0
----
-59
59
-68
59
-96
59

query II rowsort
SELECT + 40 AS col2, 61 + + col0 AS col1 FROM tab2 AS cor0
----
40
107
40
125
40
136

query II rowsort
SELECT + col1, - 53 AS col2 FROM tab0 AS cor0
----
1
-53
21
-53
81
-53

query II rowsort
SELECT - 19 AS col0, 5 FROM tab1 AS cor0
----
-19
5
-19
5
-19
5

query II rowsort
SELECT ( + + col2 ) AS col0, col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT 21 * + col1 AS col2 FROM tab0
----
1701
21
441

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / col2 * + + col0 - + + 5 + + - 9 BETWEEN - - 58 * + 20 AND - + 5 + 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / - col1 * - col0 * - + 72 NOT IN ( - 33, + col0, + 49 + + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * + 36 col1 FROM tab1
----
-1740
-3001
-3208

query I rowsort
SELECT - ( + + col0 ) + + + col2 + + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-21
24
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - col1 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 39 * - 40 + - - 5 + col1 >= NULL
----

query I rowsort
SELECT 62 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3073
SELECT ALL col0 * + - ( - + ( - CAST( NULL AS DECIMAL ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL col0 * + - ( - + ( - CAST ( NULL AS REAL ) ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) FROM tab2 WHERE ( NOT col0 IS NULL )
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col2 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( 53 )
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NULL ) < 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT + col0 + - col1 DIV + + col1 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3078
SELECT + col0 + - col1 / + + col1 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT DISTINCT 69 * + col1 AS col2 FROM tab2 AS cor0
----
3519
4623
5313

query I rowsort
SELECT + + col2 + - col1 AS col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL 77 * - col2 AS col2 FROM tab1 AS cor0
----
-4543
-5236
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT MAX( DISTINCT + col2 ) FROM tab1 cor0 WHERE NOT + 96 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT MAX ( DISTINCT + col2 ) FROM tab1 cor0 WHERE NOT + 96 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT DISTINCT + + COUNT( * ) DIV + 79 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + + COUNT ( * ) / + 79 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * ( - col0 ) AS col0 FROM tab1 cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 WHERE 8 - ( + 65 ) + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 11 - + col2 - col0 + col2 AS col0, 68 FROM tab2
----
-35
68
-53
68
-64
68

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT - + MAX( - 44 ) AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT - + MAX ( - 44 ) AS col0 FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT COUNT( * ) - - 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-3089
SELECT COUNT ( * ) - - 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
40

query I rowsort
SELECT + col2 * - col0 * + - col1 * col0 AS col0 FROM tab2
----
12615680
21858750
2482068

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3091
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT - - col1 AS col0, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3093
SELECT DISTINCT - col0, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3093
SELECT DISTINCT - col0, + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3094
SELECT 15 AS col0, SUM( + 38 ) FROM tab0
----
15
114

skipif mysql # not compatible
query II rowsort label-3094
SELECT 15 AS col0, SUM ( + 38 ) FROM tab0
----
15
114

query I rowsort
SELECT ALL - 86 + + col1 FROM tab1
----
-39
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + - MAX( DISTINCT - 88 ) FROM tab0 WHERE NOT + - col2 IS NULL
----
88

skipif mysql # not compatible
query I rowsort label-3096
SELECT + - MAX ( DISTINCT - 88 ) FROM tab0 WHERE NOT + - col2 IS NULL
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3097
SELECT + MAX( ALL + 77 ) AS col1, 2 FROM tab1
----
77
2

skipif mysql # not compatible
query II rowsort label-3097
SELECT + MAX ( ALL + 77 ) AS col1, 2 FROM tab1
----
77
2

query I rowsort
SELECT - ( - 45 ) * col2 AS col2 FROM tab0 cor0
----
2115
4455
450

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * 4 NOT IN ( - - col2, + col1, + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col0 + col2 IS NULL
----

query I rowsort
SELECT ALL - col2 * + + col1 * ( - - col2 ) AS col1 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT ALL col1 + - col0 DIV + + 23 AS col0 FROM tab2
----
49
64
75

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL col1 + - col0 / + + 23 AS col0 FROM tab2
----
49
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT DISTINCT - col2 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - col2 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT col2 + - - 78 DIV - + 87 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT col2 + - - 78 / - + 87 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL + 99 - - + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + 99 - - + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
102

query I rowsort
SELECT ALL col2 - + 28 * + + col1 FROM tab0 AS cor0
----
-2221
-578
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3108
SELECT DISTINCT col0, + col0 + + - col1 * - col0 AS col0 FROM tab1 WHERE NOT - + ( + 48 ) + - CAST( 12 AS SIGNED ) <= - ( - col1 )
----

skipif mysql # not compatible
query II rowsort label-3108
SELECT DISTINCT col0, + col0 + + - col1 * - col0 AS col0 FROM tab1 WHERE NOT - + ( + 48 ) + - CAST ( 12 AS INTEGER ) <= - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 91 col2, - col0 + + - col2 * + 36 FROM tab0
----
91
-1707
91
-3661
91
-447

query I rowsort
SELECT - 10 * - col1 AS col1 FROM tab0
----
10
210
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT DISTINCT - COUNT( * ) + - - CAST( + 13 AS SIGNED ) + - - 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
103

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - COUNT ( * ) + - - CAST ( + 13 AS INTEGER ) + - - 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT - CAST( + col2 AS SIGNED ) col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3112
SELECT - CAST ( + col2 AS INTEGER ) col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT + MAX( + 43 ) AS col1 FROM tab2 WHERE NOT + - col1 * - col2 + + 74 IS NULL
----
43

skipif mysql # not compatible
query I rowsort label-3113
SELECT + MAX ( + 43 ) AS col1 FROM tab2 WHERE NOT + - col1 * - col2 + + 74 IS NULL
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT DISTINCT ( - CAST( + + col1 AS SIGNED ) ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT ( - CAST ( + + col1 AS INTEGER ) ) AS col2 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 72 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - - col2 AS col1 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col0 ) * - col1 + + 29 IS NOT NULL
----

query I rowsort
SELECT - ( + + 79 ) AS col2 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT - 43 + - 59 AS col0 FROM tab0
----
-102
-102
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT DISTINCT - COUNT( * ) AS col1, 95 FROM tab0
----
-3
95

skipif mysql # not compatible
query II rowsort label-3121
SELECT DISTINCT - COUNT ( * ) AS col1, 95 FROM tab0
----
-3
95

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT ALL - col1 + + - col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - col1 + + - col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + + col2 ) + + 85 AS col0 FROM tab1
----
144
153
181

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL > - col1 + + col2 * ( + col2 ) * - col1
----
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > - col1 + + col2 * ( + col2 ) * - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - 67
----

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL 78 * COUNT( * ) AS col1 FROM tab1 cor0
----
234

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL 78 * COUNT ( * ) AS col1 FROM tab1 cor0
----
234

query I rowsort
SELECT col0 + + col1 AS col1 FROM tab0 AS cor0 WHERE ( NOT ( - col0 ) IS NOT NULL )
----

query I rowsort
SELECT + 55 * col0 AS col0 FROM tab1 cor0
----
2805
4675
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT - col1 / - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT - col1 / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - + col2
----

query I rowsort
SELECT + ( + + 61 ) + - 74 + 88 + - col2 AS col2 FROM tab2 cor0
----
17
35
52

query I rowsort
SELECT DISTINCT + - 64 + + 53 FROM tab1 cor0
----
-11

query I rowsort
SELECT col0 + - - col0 + col0 AS col1 FROM tab0 AS cor0
----
261
291
45

query I rowsort
SELECT col2 + + - 92 FROM tab2 AS cor0
----
-34
-52
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL - COUNT( * ) - - 53 AS col1 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - COUNT ( * ) - - 53 AS col1 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT COUNT( * ) + + 90 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3138
SELECT COUNT ( * ) + + 90 FROM tab0 AS cor0
----
93

query I rowsort
SELECT + + col1 + + - col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3140
SELECT CAST( NULL AS DECIMAL ) + + 77 - + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT CAST ( NULL AS REAL ) + + 77 - + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL - - COUNT( DISTINCT col2 ) + 74 AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - - COUNT ( DISTINCT col2 ) + 74 AS col2 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 82 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 82 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT DISTINCT - 59 AS col0, COUNT( * ) FROM tab1 AS cor0
----
-59
3

skipif mysql # not compatible
query II rowsort label-3143
SELECT DISTINCT - 59 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-59
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 53 col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT - col1 * + - 36 * col1 DIV col1 * - col0 AS col2 FROM tab2 cor0
----
-177408
-180900
-84456

skipif mysql # not compatible
query I rowsort label-3145
SELECT - col1 * + - 36 * col1 / col1 * - col0 AS col2 FROM tab2 cor0
----
-177408
-180900
-84456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT DISTINCT 10 - + SUM( DISTINCT + col1 ) / + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT 10 - + SUM ( DISTINCT + col1 ) / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 35 + + ( - 56 ) AS col2 FROM tab2 WHERE NOT + - 67 * - 3 IS NULL
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col2 FROM tab2, tab1 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 80 * - + col0 * - col0 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 83 * + - col1 < + 38 * - col1
----

query I rowsort
SELECT ALL + 97 * - col2 FROM tab0
----
-4559
-9603
-970

onlyif mysql # DIV for integer division: 
query II rowsort label-3152
SELECT ALL + + col2 DIV + + col2 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-3152
SELECT ALL + + col2 / + + col2 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT + col2 DIV + ( col2 ) AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3153
SELECT + col2 / + ( col2 ) AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL MIN( - 71 ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL MIN ( - 71 ) AS col1 FROM tab0 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT + MIN( + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + MIN ( + col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3156
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + - 74 * + + 76 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3156
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + - 74 * + + 76 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + 77 AS col1 FROM tab0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT MIN( DISTINCT - + 8 ) FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3158
SELECT MIN ( DISTINCT - + 8 ) FROM tab1 cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT + CAST( NULL AS SIGNED ) * + + col1 + + 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT + CAST ( NULL AS INTEGER ) * + + col1 + + 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 41 - - AVG ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 * + + 65 * + col2 * + 47 * - - col2 + + 33, - col0, + - 80, - col1, 55, + + col1 + - - 90, + + col2 + + 75 * + ( - - col2 ) * col0, + col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 70 - + 87 + col2 + + ( + - col1 ) BETWEEN - + col1 AND + 80 - + + 14 + + - col1 + col0 )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL - 41 + - MIN( - 74 ) * + - COUNT( * ) AS col2 FROM tab2
----
-263

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - 41 + - MIN ( - 74 ) * + - COUNT ( * ) AS col2 FROM tab2
----
-263

query I rowsort
SELECT ALL col1 + - ( + ( + 24 ) ) * + + col0 FROM tab2
----
-1053
-1459
-1733

query I rowsort
SELECT - 25 + - ( col0 ) FROM tab2
----
-100
-71
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT - ( SUM( ALL - - CAST( - col2 AS SIGNED ) ) ) + 42 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-3166
SELECT - ( SUM ( ALL - - CAST ( - col2 AS INTEGER ) ) ) + 42 FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL - COUNT( * ) + + - 93 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - COUNT ( * ) + + - 93 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 WHERE 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT DISTINCT - 98 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT - 98 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT ALL - 58 AS col2 FROM tab1 cor0
----
-58
-58
-58

query I rowsort
SELECT - 98 * col1 FROM tab1
----
-1372
-4606
-490

query I rowsort
SELECT + 25 * - 14 AS col1 FROM tab1
----
-350
-350
-350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - ( - 66 ) ) - + col2 col0 FROM tab0
----
-33
19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT DISTINCT - ( 36 ) - - 78, col2 AS col1 FROM tab1 AS cor0
----
42
59
42
68
42
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT ALL + col2 + + + col0 DIV - - 47 AS col2 FROM tab2 AS cor0
----
23
41
59

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + col2 + + + col0 / - - 47 AS col2 FROM tab2 AS cor0
----
23
41
59

query I rowsort
SELECT ALL col2 * - col1 - - + col2 - - 14 AS col1 FROM tab1 cor0
----
-1234
-222
-3114

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 17 * ( + col2 ) - + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL + MAX( - 44 ) FROM tab0 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + MAX ( - 44 ) FROM tab0 cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL + + SUM( - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + + SUM ( - + col1 ) FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col1 FROM tab2 AS cor0 WHERE NOT col2 + 85 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT + SUM( DISTINCT + col1 ) * + - 22 FROM tab0
----
-2266

skipif mysql # not compatible
query I rowsort label-3183
SELECT + SUM ( DISTINCT + col1 ) * + - 22 FROM tab0
----
-2266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT ( 3 ) DIV - COUNT( * ) col1 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3184
SELECT ( 3 ) / - COUNT ( * ) col1 FROM tab2
----
-1

query II rowsort
SELECT + col0 AS col2, 92 * + + col2 FROM tab2
----
46
2116
64
3680
75
5336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * + + col0 col0 FROM tab0
----
5742
6402
990

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 85 + - ( col1 ) IS NOT NULL
----

query II rowsort
SELECT - col2, col2 AS col0 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT + col0 + - ( - + 8 ) FROM tab1 AS cor0 WHERE NOT + col0 > NULL
----

query II rowsort
SELECT DISTINCT 18 + 96, col1 AS col2 FROM tab0
----
114
1
114
21
114
81

query I rowsort
SELECT DISTINCT + 91 + ( col2 ) + + 82 AS col0 FROM tab0
----
183
220
272

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT - MAX( + col0 ) * MAX( + - 49 ) AS col0 FROM tab1 AS cor0
----
4459

skipif mysql # not compatible
query I rowsort label-3193
SELECT - MAX ( + col0 ) * MAX ( + - 49 ) AS col0 FROM tab1 AS cor0
----
4459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT + col1 * + col0 + CAST( NULL AS SIGNED ) + - - ( - + ( + - 86 ) ) * ( + 50 ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT + col1 * + col0 + CAST ( NULL AS INTEGER ) + - - ( - + ( + - 86 ) ) * ( + 50 ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 + + + col0 * 45 AS col0 FROM tab2 cor0
----
2143
2953
3448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT CAST( col0 AS SIGNED ) + + + col1 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3196
SELECT CAST ( col0 AS INTEGER ) + + + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT 35 + 68 FROM tab2
----
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3198
SELECT + col0 + 47 + - col1 DIV + CAST( + - col0 AS SIGNED ) + + col0 * - + 12 FROM tab2
----
-458
-656
-778

skipif mysql # not compatible
query I rowsort label-3198
SELECT + col0 + 47 + - col1 / + CAST ( + - col0 AS INTEGER ) + + col0 * - + 12 FROM tab2
----
-458
-656
-778

query I rowsort
SELECT 38 + - 23 FROM tab0
----
15
15
15

query I rowsort
SELECT ALL + 4 * - + col0 + + col1 * - - col1 AS col2 FROM tab1
----
-315
-8
1845

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 22 + - col1 / + - col2 >= ( - - col1 ) * col2 * + col1 + - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT 46 * + - ( - COUNT( * ) ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3202
SELECT 46 * + - ( - COUNT ( * ) ) FROM tab0
----
138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 71 * - col1 - - 41 * + col2 - + col1 * col1 AS col1 FROM tab0 AS cor0
----
1117
1460
4129

query I rowsort
SELECT DISTINCT + col0 * col2 + col1 * - col0 FROM tab1
----
1911
4182
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT + MIN( DISTINCT 75 ) AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT + MIN ( DISTINCT 75 ) AS col0 FROM tab0
----
75

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE - col0 * + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3208
SELECT COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 45 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( col2 ) ) IS NULL
----

query I rowsort
SELECT ALL + 2 FROM tab1 WHERE - col1 IS NOT NULL
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( ( - ( - col2 ) ) + - col1 ) AND ( ( - 37 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3213
SELECT DISTINCT COUNT( + 70 ) DIV + 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT COUNT ( + 70 ) / + 69 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 / col1 - 2 ) >= ( NULL )
----

query I rowsort
SELECT - col1 * col1 FROM tab1 WHERE NOT ( - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL - MAX( DISTINCT 82 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL - MAX ( DISTINCT 82 ) FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT MAX( + 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3217
SELECT MAX ( + 20 ) FROM tab0
----
20

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( ( col2 ) + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 / + 44 IS NULL
----

query I rowsort
SELECT ALL ( col0 ) + - col0 * col0 AS col2 FROM tab2
----
-2070
-4032
-5550

onlyif mysql # DIV for integer division: 
query I rowsort label-3221
SELECT DISTINCT + col2 DIV + col0 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT + col2 / + col0 + - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - col0 * 37 - col2 FROM tab0
----
-3229
-3688
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) = ( + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) = ( + 5 )
----
0

query I rowsort
SELECT ALL 2 * col1 + - col0 FROM tab0
----
-45
-95
147

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 95 IS NULL
----

query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab2 WHERE NOT 36 IS NULL
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + col2 + 21 AS col2 FROM tab1
----
117
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT + COUNT( DISTINCT - col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3228
SELECT + COUNT ( DISTINCT - col2 ) col0 FROM tab0
----
3

query I rowsort
SELECT - 15 * + col2 AS col0 FROM tab0 AS cor0
----
-1485
-150
-705

query I rowsort
SELECT + col0 * - ( 25 * + col2 ) FROM tab1 AS cor0
----
-122400
-125375
-154700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 61 ) col1 FROM tab1 AS cor0 WHERE NOT col2 IN ( col1 )
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col1 FROM tab2 WHERE NOT ( NULL ) > ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT MIN( - 14 ) / + 31 + 39 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT MIN ( - 14 ) / + 31 + 39 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + ( ( + 21 ) ) FROM tab0 WHERE NOT col0 IN ( - col0 )
----
21
21
21

query I rowsort
SELECT + col2 + + 59 AS col2 FROM tab0
----
106
158
69

query I rowsort
SELECT DISTINCT - col2 + + col1 * + col1 FROM tab0
----
-98
431
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT NULL <> - 77
----
0

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL <> - 77
----
0

query I rowsort
SELECT DISTINCT + col0 * + 98 AS col2 FROM tab1 AS cor0
----
4998
8330
8918

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE 56 * col0 < col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = ( - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT + MAX( DISTINCT col2 ) + 36 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + MAX ( DISTINCT col2 ) + 36 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
204

query I rowsort
SELECT ALL - ( - col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - + ( 1 ) FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + - ( ( - col2 ) ) * 59 col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + + col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 * + + 0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 - - 11 - col2 FROM tab1
----
-10
-43
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT COUNT( * ) - - + 98 - COUNT( DISTINCT 98 ) * COUNT( * ) AS col2 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-3248
SELECT COUNT ( * ) - - + 98 - COUNT ( DISTINCT 98 ) * COUNT ( * ) AS col2 FROM tab0
----
98

query I rowsort
SELECT ALL col1 + - col2 * 90 FROM tab0
----
-4149
-879
-8909

query I rowsort
SELECT - 20 - - col0 * 18 AS col2 FROM tab2
----
1132
1330
808

query III rowsort
SELECT * FROM tab0 WHERE + col2 + 46 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col1 FROM tab2 WHERE + ( col0 ) IS NOT NULL
----
78

query I rowsort
SELECT col0 FROM tab0 WHERE ( col1 ) NOT IN ( col0 )
----
15
87
97

query I rowsort
SELECT - 44 * - 46 - + 81 AS col2 FROM tab1
----
1943
1943
1943

query I rowsort
SELECT 97 + - + 56 FROM tab1
----
41
41
41

query I rowsort
SELECT + col2 * 59 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3481
4012
5664

query I rowsort
SELECT ALL col1 - 94 - col0 AS col2 FROM tab2 cor0
----
-102
-81
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT - - COUNT( * ) - + ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT - - COUNT ( * ) - + ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
6

query I rowsort
SELECT 84 * - - col1 AS col2 FROM tab2 cor0
----
4284
5628
6468

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 95 AND 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL + 85 + - COUNT( DISTINCT + 57 ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL + 85 + - COUNT ( DISTINCT + 57 ) AS col2 FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - col2 * 66 col2 FROM tab0
----
-37224
-78408
-7920

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

query I rowsort
SELECT DISTINCT - 90 / + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3265
SELECT 34 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) > 98
----

skipif mysql # not compatible
query I rowsort label-3265
SELECT 34 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > 98
----

query II rowsort
SELECT DISTINCT 89, + col0 FROM tab1 cor0
----
89
51
89
85
89
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 89 >= NULL
----

query I rowsort
SELECT 66 + col1 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT DISTINCT COUNT( * ) col0, 65 FROM tab0 AS cor0
----
3
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3270
SELECT DISTINCT COUNT ( * ) col0, 65 FROM tab0 AS cor0
----
3
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * - col2 AND ( NULL )
----

query I rowsort
SELECT + 23 + + col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT DISTINCT + col1 * + col0 * CAST( 99 AS SIGNED ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + col1 * + col0 * CAST ( 99 AS INTEGER ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 * 10 AS col2 FROM tab1
----
590
680
960

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE + + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT - MIN( + ( col0 ) ) FROM tab2 WHERE NOT - ( 17 ) >= ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT - MIN ( + ( col0 ) ) FROM tab2 WHERE NOT - ( 17 ) >= ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL COUNT( - 24 ) FROM tab2 WHERE NOT - + col0 > - - col1
----
3

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL COUNT ( - 24 ) FROM tab2 WHERE NOT - + col0 > - - col1
----
3

query I rowsort
SELECT DISTINCT - col0 * + 59 AS col1 FROM tab2 WHERE NOT - - 2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 86 NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + ( - - col0 ) AS col1 FROM tab0 cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT - + COUNT( DISTINCT 57 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT - + COUNT ( DISTINCT 57 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1

query I rowsort
SELECT DISTINCT - 64 * - 8 * - col0 FROM tab0
----
-44544
-49664
-7680

query I rowsort
SELECT ALL col1 + + + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + + 15 + - + MIN( ALL - 72 ) * + - 66 * - + COUNT( * ) FROM tab0 cor0
----
14271

skipif mysql # not compatible
query I rowsort label-3285
SELECT + + 15 + - + MIN ( ALL - 72 ) * + - 66 * - + COUNT ( * ) FROM tab0 cor0
----
14271

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT - ( - col2 ) + col0 DIV + col1 AS col0 FROM tab0 cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-3286
SELECT - ( - col2 ) + col0 / + col1 AS col0 FROM tab0 cor0
----
14
196
47

query I rowsort
SELECT + col1 + - 49 * + + 53 + + - col1 FROM tab1 AS cor0
----
-2597
-2597
-2597

query I rowsort
SELECT + - col2 + - 24 AS col1 FROM tab1 AS cor0
----
-120
-83
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT MIN( DISTINCT 11 ) AS col2 FROM tab0 AS cor0 WHERE + 50 * + + 77 NOT IN ( + - col0 + 68 )
----
11

skipif mysql # not compatible
query I rowsort label-3289
SELECT MIN ( DISTINCT 11 ) AS col2 FROM tab0 AS cor0 WHERE + 50 * + + 77 NOT IN ( + - col0 + 68 )
----
11

query I rowsort
SELECT + 14 + col0 FROM tab1 AS cor0
----
105
65
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT ALL - col2 DIV + + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - col2 / + + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + col1 + + - 50 AS col1 FROM tab1
----
-2259
-246
-75

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) > ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT ( col2 ) DIV - 71 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT ( col2 ) / - 71 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT DISTINCT + col2 DIV - 78 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT + col2 / - 78 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 + - + col0 FROM tab1
----
0

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE + 72 IS NULL
----

query II rowsort
SELECT - 0 AS col2, 42 AS col0 FROM tab2
----
0
42
0
42
0
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 91 col2 FROM tab1
----
-150
-159
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT - MIN( ALL - + 49 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - MIN ( ALL - + 49 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - col1 + + 31 FROM tab0
----
32
472
6592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3303
SELECT ALL + SUM( CAST( 89 AS SIGNED ) ) - MAX( + col1 ) AS col2 FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + SUM ( CAST ( 89 AS INTEGER ) ) - MAX ( + col1 ) AS col2 FROM tab1
----
220

query I rowsort
SELECT DISTINCT 95 + col1 + col0 FROM tab2 AS cor0
----
192
236
237

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT SUM( - - 55 ) - + 88 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3305
SELECT SUM ( - - 55 ) - + 88 FROM tab2 AS cor0
----
77

query II rowsort
SELECT ( + col0 ) - + + col0 + + + col2, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT ( - 34 ) AS col1 FROM tab0
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-3308
SELECT DISTINCT col1 DIV + col2 AS col1, - col2 + - + col1 * + + col0 * - col1 col0 FROM tab1
----
0
200951
0
2066
0
9900

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3308
SELECT DISTINCT col1 / + col2 AS col1, - col2 + - + col1 * + + col0 * - col1 col0 FROM tab1
----
0
200951
0
2066
0
9900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT + CAST( + MIN( DISTINCT col1 ) AS SIGNED ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3309
SELECT + CAST ( + MIN ( DISTINCT col1 ) AS INTEGER ) AS col0 FROM tab2
----
51

query I rowsort
SELECT + 44 * - col1 AS col2 FROM tab2 AS cor0
----
-2244
-2948
-3388

query II rowsort
SELECT + ( - col1 ) AS col2, + col0 + + - 8 AS col0 FROM tab1 AS cor0
----
-14
43
-47
83
-5
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 * + col2 col1 FROM tab2 AS cor0
----
-184
-320
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE col1 * - - col2 * col0 / - CAST( + 69 AS SIGNED ) * - - col0 * col1 >= 45
----

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE col1 * - - col2 * col0 / - CAST ( + 69 AS INTEGER ) * - - col0 * col1 >= 45
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT ( + col0 - 2 + + col2 + - col0 * - col2 IS NOT NULL )
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
51
85
91

query II rowsort
SELECT DISTINCT + col1, + col0 + - - 3 FROM tab2
----
51
49
67
78
77
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL - 52 + - COUNT( * ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - 52 + - COUNT ( * ) FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT - 18 AS col2, COUNT( * ) AS col1 FROM tab1
----
-18
3

skipif mysql # not compatible
query II rowsort label-3319
SELECT - 18 AS col2, COUNT ( * ) AS col1 FROM tab1
----
-18
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - MAX( - 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3320
SELECT - MAX ( - 66 ) FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT ( 58 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3323
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL + COUNT( * ) col1 FROM tab0 WHERE NULL NOT IN ( - col2, CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT ALL + COUNT ( * ) col1 FROM tab0 WHERE NULL NOT IN ( - col2, CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col1 - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - - col2 > + col1 / + + col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + ( + ( col1 ) ) + + ( + 84 ) AS col1 FROM tab1 AS cor0
----
131
89
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT + MIN( DISTINCT - + 97 ) AS col1 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + MIN ( DISTINCT - + 97 ) AS col1 FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT - ( col1 ) * + ( - - 23 ) AS col2 FROM tab2 AS cor0
----
-1173
-1541
-1771

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT ALL ( - 96 ) DIV 41 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL ( - 96 ) / 41 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 - + + col0 col2 FROM tab1
----
-27
-33
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL - MIN( ALL - 0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL - MIN ( ALL - 0 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 16 + - + 35 = NULL AND ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - COUNT( DISTINCT - - col2 ) + COUNT( ALL - - col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT - COUNT ( DISTINCT - - col2 ) + COUNT ( ALL - - col2 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col0 + col1 + - 62 AS col1 FROM tab0
----
34
36
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 13 BETWEEN + - 6 - - - col2 AND + col0
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT - - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL - COUNT( - - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - COUNT ( - - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT - + CAST( 43 AS SIGNED ) FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-3340
SELECT - + CAST ( 43 AS INTEGER ) FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - 7 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - - ( 79 ) + + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
88

skipif mysql # not compatible
query I rowsort label-3342
SELECT - - ( 79 ) + + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - COUNT( * ) * - + ( - - SUM( ALL col2 ) ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - COUNT ( * ) * - + ( - - SUM ( ALL col2 ) ) FROM tab0
----
468

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 90 ) BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - 95 / - col1, col1 * + + col2 / + col1 )
----

query I rowsort
SELECT ALL + + 35 * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
2150
2471
3411

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT DISTINCT - col0 DIV - 28 FROM tab0 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT - col0 / - 28 FROM tab0 cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3348
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT COUNT( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT DISTINCT COUNT ( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 30 AS col0 FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3351
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3352
SELECT - 80 DIV - col1 AS col0 FROM tab0 cor0
----
0
3
80

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 80 / - col1 AS col0 FROM tab0 cor0
----
0
3
80

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - - 11
----

query I rowsort
SELECT ALL 77 * + col2 AS col2 FROM tab1
----
4543
5236
7392

query II rowsort
SELECT col0 + - + col2 + 44, col0 AS col0 FROM tab0
----
12
15
121
87
42
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL + + MIN( DISTINCT + - col0 ) FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + + MIN ( DISTINCT + - col0 ) FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 51 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT MIN( ALL + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT MIN ( ALL + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3360
SELECT * FROM tab0 WHERE - col1 * col2 + - 97 IS NOT NULL AND NOT CAST( NULL AS SIGNED ) * + col0 NOT BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3360
SELECT * FROM tab0 WHERE - col1 * col2 + - 97 IS NOT NULL AND NOT CAST ( NULL AS INTEGER ) * + col0 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT 46 * - 81 + + col1 AS col1 FROM tab2 AS cor0
----
-3649
-3659
-3675

query I rowsort
SELECT DISTINCT - - col2 * - - col1 + + col0 * + 88 * - col1 + - col2 * col0 FROM tab2 AS cor0
----
-206333
-433144
-442664

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + 89 + + 2 + - COUNT( * ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3363
SELECT + 89 + + 2 + - COUNT ( * ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT ALL - col0 + 35 AS col2 FROM tab2 AS cor0
----
-11
-29
-40

query I rowsort
SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT - - COUNT( * ) - + 87 AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - - COUNT ( * ) - + 87 AS col2 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT col1 + - 33 AS col0 FROM tab2 AS cor0
----
18
34
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3368
SELECT + + col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3368
SELECT + + col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3369
SELECT - - col2, - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
10
0
47
0
99
-99

skipif mysql # not compatible
query II rowsort label-3369
SELECT - - col2, - col2 / col1 AS col0 FROM tab0 AS cor0
----
10
0
47
0
99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3370
SELECT * FROM tab2 WHERE ( + 45 ) >= CAST( + 76 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3370
SELECT * FROM tab2 WHERE ( + 45 ) >= CAST ( + 76 AS REAL )
----

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT - + 31 = - col2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT SUM( DISTINCT + - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT SUM ( DISTINCT + - col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3373
SELECT - CAST( NULL AS DECIMAL ) / - col2 + 69 col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 + col2 + + ( - col2 ) AND + + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3373
SELECT - CAST ( NULL AS REAL ) / - col2 + 69 col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 + col2 + + ( - col2 ) AND + + col2
----

query I rowsort
SELECT DISTINCT + ( + + col2 ) * - + col2 AS col0 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT col1 / - + col1 * - col0 AS col1 FROM tab2 WHERE NOT + col1 + col0 IS NOT NULL
----

query I rowsort
SELECT - col0 * 85 FROM tab2
----
-3910
-5440
-6375

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN NULL AND 80 OR NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3378
SELECT DISTINCT + + ( + COUNT( * ) ) * - 68 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col1 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT + + ( + COUNT ( * ) ) * - 68 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col1 * col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( + - 26 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-26
-26
-26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= - col2
----

query I rowsort
SELECT ALL - - 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT DISTINCT 41 * - 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-3382
SELECT DISTINCT 41 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query II rowsort
SELECT ALL 57 AS col2, + col1 AS col0 FROM tab0
----
57
1
57
21
57
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3385
SELECT ALL 14 AS col0, CAST( NULL AS SIGNED ) + + - 31 FROM tab2 AS cor0
----
14
NULL
14
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-3385
SELECT ALL 14 AS col0, CAST ( NULL AS INTEGER ) + + - 31 FROM tab2 AS cor0
----
14
NULL
14
NULL
14
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + - + col0 > NULL
----

query I rowsort
SELECT - 29 * + col2 AS col0 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT COUNT( DISTINCT 46 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3388
SELECT COUNT ( DISTINCT 46 ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT 56 * COUNT( * ) col1 FROM tab0
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3389
SELECT DISTINCT 56 * COUNT ( * ) col1 FROM tab0
----
168

query I rowsort
SELECT ( - ( + + col1 ) ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - col0 + col0 * - 68 FROM tab2
----
-3174
-4416
-5175

query II rowsort
SELECT - 13 * - col0 AS col1, col2 FROM tab0
----
1131
10
1261
99
195
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3393
SELECT * FROM tab2 WHERE NULL BETWEEN col0 AND - - CAST( NULL AS SIGNED ) * - + col1 * - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3393
SELECT * FROM tab2 WHERE NULL BETWEEN col0 AND - - CAST ( NULL AS INTEGER ) * - + col1 * - CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT 81 FROM tab2 WHERE NULL IS NULL
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ( - COUNT( ALL - 90 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3395
SELECT ( - COUNT ( ALL - 90 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT - COUNT( - + ( + - col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3396
SELECT - COUNT ( - + ( + - col1 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - - 24 + col1 AS col1 FROM tab0 AS cor0
----
105
25
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3398
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) NOT BETWEEN NULL AND - - col1 + col0 + - col1 * - - 72
----

skipif mysql # not compatible
query III rowsort label-3398
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) NOT BETWEEN NULL AND - - col1 + col0 + - col1 * - - 72
----

query I rowsort
SELECT - 28 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT DISTINCT - ( - col0 ) + - - 81 AS col2 FROM tab2
----
127
145
156

query I rowsort
SELECT ALL + col0 * col1 * - ( col1 ) - - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-37926
-91854
-96

query II rowsort
SELECT ALL col2 * + - col0 AS col1, 99 AS col0 FROM tab1 AS cor0
----
-4896
99
-5015
99
-6188
99

query I rowsort
SELECT ALL col2 * 57 - - col1 * - - col1 * 58 AS col0 FROM tab2 AS cor0
----
152169
263668
346162

query I rowsort
SELECT col2 * + + 59 FROM tab0
----
2773
5841
590

query I rowsort
SELECT + col2 * + + 75 FROM tab2
----
1725
3000
4350

query I rowsort
SELECT ALL + 82 * + col2 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT col1 * - - 53 AS col2 FROM tab1
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + 72 * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-216

skipif mysql # not compatible
query I rowsort label-3408
SELECT + 72 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 + - col1
----

query II rowsort
SELECT DISTINCT + col0, 37 AS col1 FROM tab1 AS cor0
----
51
37
85
37
91
37

query II rowsort
SELECT + col2 AS col1, ( col1 ) AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * + col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3413
SELECT * FROM tab1 WHERE NOT CAST( + - col2 AS DECIMAL ) + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3413
SELECT * FROM tab1 WHERE NOT CAST ( + - col2 AS REAL ) + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 11 FROM tab0 AS cor0 WHERE NOT ( NOT ( + 6 + col0 ) NOT BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT - 34 + - COUNT( * ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3415
SELECT - 34 + - COUNT ( * ) FROM tab2 AS cor0
----
-37

query I rowsort
SELECT col1 + col2 * - + 91 AS col1 FROM tab0 AS cor0
----
-4196
-889
-9008

query I rowsort
SELECT ALL + 73 * - - 26 FROM tab2 AS cor0
----
1898
1898
1898

query I rowsort
SELECT 70 + + col1 - col2 AS col0 FROM tab1
----
-12
16
49

query I rowsort
SELECT + col1 * - 19 - + col2 AS col1 FROM tab1 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT + 49 + + - 57 FROM tab0
----
-8

query I rowsort
SELECT 11 + + 51 AS col2 FROM tab1
----
62
62
62

query I rowsort
SELECT col2 * - + col2 + ( col1 ) * - col0 - col2 FROM tab1 WHERE - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col0 + - + col1 AS col1 FROM tab0
----
-786
-891
-9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 93 + + ( + col0 ) col0 FROM tab1 AS cor0
----
1353
4462
550

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 33 - - + COUNT( * ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3425
SELECT 33 - - + COUNT ( * ) AS col1 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query I rowsort
SELECT ALL - 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - ( 37 ) ) * - col2 AS col0 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query II rowsort label-3430
SELECT - 16 AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-16
3

skipif mysql # not compatible
query II rowsort label-3430
SELECT - 16 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-16
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3431
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 36 ) col0 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT DISTINCT + + 78 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - ( col1 ) * - + col0 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 9 * + 53 AS col2 FROM tab1
----
477
477
477

query II rowsort
SELECT col2 * + col0 AS col0, - col0 * col2 FROM tab1
----
4896
-4896
5015
-5015
6188
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT 50 * - COUNT( + 72 ) AS col0 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-3437
SELECT 50 * - COUNT ( + 72 ) AS col0 FROM tab1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + MAX( 44 ) AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3438
SELECT + MAX ( 44 ) AS col2 FROM tab0 AS cor0
----
44

query I rowsort
SELECT + - col2 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 89 * + col1 * - col1 IS NULL
----
-705
-870
-9603

query I rowsort
SELECT + ( - col0 ) + + + ( col0 ) AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + + ( - col0 ) ) - - col2 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT MIN( DISTINCT + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3442
SELECT MIN ( DISTINCT + col2 ) AS col0 FROM tab0
----
10

query II rowsort
SELECT - col2 * col0 * + - 50 AS col1, + col0 FROM tab0 cor0
----
35250
15
43500
87
480150
97

query I rowsort
SELECT 75 AS col0 FROM tab0 AS cor0 WHERE NULL <> - 8
----

query I rowsort
SELECT DISTINCT + + ( 90 ) AS col0 FROM tab0 AS cor0
----
90

query I rowsort
SELECT ALL + 74 * + + col0 FROM tab2 AS cor0
----
3404
4736
5550

query I rowsort
SELECT - col2 * + - 17 AS col2 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT ( + 50 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
50
50
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3449
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) * + 23, COUNT( * ) AS col1 FROM tab1 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3449
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) * + 23, COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT DISTINCT 17 * - 62 + - + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT 17 * - 62 + - + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * + - 60 AS col0 FROM tab0
----
-2820
-5940
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL COUNT( * ) + + + 20 AS col1 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL COUNT ( * ) + + + 20 AS col1 FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT - col0 DIV col0 + - col0 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-3453
SELECT - col0 / col0 + - col0 FROM tab0
----
-16
-88
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + + - col1 + - - 88 * - + col1 col0 FROM tab0
----
-1867
-7207
-87

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT - col1 + 52 + - col2 * - + col1 + + - 57 * - col2 + + 7 AS col1 FROM tab0 AS cor0
----
5800
6464
818

query I rowsort
SELECT ALL - + 66 + - ( - col2 ) AS col0 FROM tab2 cor0
----
-26
-43
-8

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT ALL - + col2 DIV + col1 + + 6 AS col1 FROM tab0 AS cor0
----
-93
6
6

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL - + col2 / + col1 + + 6 AS col1 FROM tab0 AS cor0
----
-93
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT - CAST( NULL AS SIGNED ) * - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT - CAST ( NULL AS INTEGER ) * - + col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 89 * col0 > + col0
----

query I rowsort
SELECT DISTINCT - + col0 * - col2 - 30 AS col2 FROM tab0 AS cor0
----
675
840
9573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT - - COUNT( * ) DIV - - 52 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - - COUNT ( * ) / - - 52 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 - col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3466
SELECT ALL - 61 DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - 61 / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - col1 * - + 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT - MAX( + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - MAX ( + col0 ) AS col2 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT + + col2, col0 * ( - 70 ) AS col0 FROM tab0 AS cor0
----
10
-6090
47
-1050
99
-6790

query I rowsort
SELECT DISTINCT ( 59 ) FROM tab2 AS cor0
----
59

query I rowsort
SELECT + col0 * - - col0 AS col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3472
SELECT + CAST( NULL AS SIGNED ) AS col2, col0 + + col0 col1 FROM tab2
----
NULL
128
NULL
150
NULL
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3472
SELECT + CAST ( NULL AS INTEGER ) AS col2, col0 + + col0 col1 FROM tab2
----
NULL
128
NULL
150
NULL
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 63 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3473
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 63 col2 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * + col2 * - + col0 * + col2 FROM tab0
----
1557345
87000
94119003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col0 col2 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 <= - - col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT COUNT( * ) * + MAX( + col1 ) col1 FROM tab0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3477
SELECT COUNT ( * ) * + MAX ( + col1 ) col1 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - + MAX( + - col1 ) FROM tab2 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - + MAX ( + - col1 ) FROM tab2 WHERE NOT + - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT DISTINCT + COUNT( * ) AS col0, + 4 * - ( - + COUNT( * ) ) FROM tab2
----
3
12

skipif mysql # not compatible
query II rowsort label-3479
SELECT DISTINCT + COUNT ( * ) AS col0, + 4 * - ( - + COUNT ( * ) ) FROM tab2
----
3
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3480
SELECT ALL ( - 30 ) DIV + col0 - - col2 + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
100
11
46

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL ( - 30 ) / + col0 - - col2 + col1 / col1 AS col1 FROM tab0 AS cor0
----
100
11
46

query II rowsort
SELECT DISTINCT - + col1 AS col1, 55 AS col1 FROM tab2 AS cor0
----
-51
55
-67
55
-77
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + MIN( - 4 ) AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3482
SELECT + MIN ( - 4 ) AS col2 FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3483
SELECT + + col1 AS col1, CAST( - 13 AS SIGNED ) + - col0 col0 FROM tab1 AS cor0
----
14
-64
47
-104
5
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3483
SELECT + + col1 AS col1, CAST ( - 13 AS INTEGER ) + - col0 col0 FROM tab1 AS cor0
----
14
-64
47
-104
5
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 + + col2 col0 FROM tab2
----
-1150
-3040
-3828

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + col2 ) * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT - COUNT( DISTINCT + 49 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - COUNT ( DISTINCT + 49 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col1 + + + col1 AS col2 FROM tab2 AS cor0
----
102
134
154

query II rowsort
SELECT 3, col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 + + col2 col1 FROM tab0 AS cor0
----
123
175
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 80 FROM tab1 WHERE NOT + col0 IS NULL
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL - CAST( - AVG ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + 63 + 85 + COUNT( * ) * - 53 + - 81 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - CAST ( - AVG ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 63 + 85 + COUNT ( * ) * - 53 + - 81 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT ALL 78 * col2 + + 46 DIV - col2 FROM tab0
----
3666
7722
776

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 78 * col2 + + 46 / - col2 FROM tab0
----
3666
7722
776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col2 * + col0 / + col2 + - col0 + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col2 * + col0 / + col2 + - col0 + col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - 82 + col1 * - col0 / - ( - ( + col0 ) ) * + 8 + + col1 <= NULL
----

query I rowsort
SELECT DISTINCT + 77 + + 33 + - - 55 * + col2 AS col1 FROM tab0
----
2695
5555
660

query I rowsort
SELECT col1 - + - 32 FROM tab0 AS cor0
----
113
33
53

query I rowsort
SELECT DISTINCT + - col1 - 16 FROM tab1 AS cor0
----
-21
-30
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT + 13 / col1 * + ( 93 ) * + 85 + CAST( NULL AS SIGNED ) - col0 + - 61 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-3499
SELECT + 13 / col1 * + ( 93 ) * + 85 + CAST ( NULL AS INTEGER ) - col0 + - 61 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL + - 77 * - MAX( - 17 ) - - 76 AS col0 FROM tab0 AS cor0
----
-1233

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + - 77 * - MAX ( - 17 ) - - 76 AS col0 FROM tab0 AS cor0
----
-1233

query I rowsort
SELECT + col1 * - 93 FROM tab1
----
-1302
-4371
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT - CAST( NULL AS SIGNED ) * 48 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT - CAST ( NULL AS INTEGER ) * 48 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL ( + 91 ) * col2 - + 12 FROM tab0 cor0 WHERE NOT NULL > + 49
----

query I rowsort
SELECT + - 95 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-95
-95
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2 + + - col1
----

query II rowsort
SELECT ALL + 27, - ( col2 ) AS col1 FROM tab0
----
27
-10
27
-47
27
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN col0 AND 60 + + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT - COUNT( ALL + 1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - COUNT ( ALL + 1 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT 93 FROM tab0 WHERE NOT NULL <= 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ( - ( + + COUNT( * ) ) ) * + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3511
SELECT ( - ( + + COUNT ( * ) ) ) * + COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT + 68 * + - col2 FROM tab2
----
-1564
-2720
-3944

query I rowsort
SELECT - 36 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
1887
2479
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT + + 40 * - - COUNT( * ) * - + ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT - col1 - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT + + 40 * - - COUNT ( * ) * - + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT - col1 - col0 IS NOT NULL
----
0

query I rowsort
SELECT - ( 95 ) * - col2 FROM tab1 WHERE NULL BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT - - 23 * + - 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-920

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - COUNT( + 27 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3519
SELECT - COUNT ( + 27 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - col0 * - + ( + ( + col2 ) ) + col2 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT 68 * 24 FROM tab0 AS cor0
----
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-3522
SELECT ALL + COUNT( * ), - 66 AS col0 FROM tab1 cor0
----
3
-66

skipif mysql # not compatible
query II rowsort label-3522
SELECT ALL + COUNT ( * ), - 66 AS col0 FROM tab1 cor0
----
3
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT + + 39 * COUNT( * ) + - + 63 FROM tab2 WHERE + - 33 >= col0
----
-63

skipif mysql # not compatible
query I rowsort label-3524
SELECT + + 39 * COUNT ( * ) + - + 63 FROM tab2 WHERE + - 33 >= col0
----
-63

query I rowsort
SELECT 39 - - col2 FROM tab0
----
138
49
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3526
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - MAX( DISTINCT col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) + - MAX ( DISTINCT col2 ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + col2 col0 FROM tab1
----
131
140
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT + 15 + - - MIN( + + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + 15 + - - MIN ( + + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT DISTINCT col0 * - col2 * - col0 + - col0 * - - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 50 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-50
51
-50
85
-50
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT + COUNT( - CAST( - + ( - + col1 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3533
SELECT + COUNT ( - CAST ( - + ( - + col1 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - col1 AS col1, col1 AS col0 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT DISTINCT - col0, col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3536
SELECT * FROM tab2 WHERE NOT NULL < - ( - 99 ) + - + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3536
SELECT * FROM tab2 WHERE NOT NULL < - ( - 99 ) + - + ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT + 10 * + COUNT( DISTINCT + 28 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT + 10 * + COUNT ( DISTINCT + 28 ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3538
SELECT - col1 + + ( CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col2, col2 / + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3538
SELECT - col1 + + ( CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col2, col2 / + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - - 82 FROM tab0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + 94 + COUNT( * ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 94 + COUNT ( * ) AS col0 FROM tab0
----
97

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col2 + - col2 AND - 81 + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * 74 * col2 - col0 IS NOT NULL
----

query I rowsort
SELECT + 10 * - - 13 AS col0 FROM tab0 AS cor0
----
130
130
130

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - + col2 NOT BETWEEN - 96 / col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 * - 19 + + col2 ) IS NULL
----

query I rowsort
SELECT - col1 + - - 86 FROM tab0 AS cor0
----
5
65
85

query I rowsort
SELECT - + 83 + col2 AS col2 FROM tab1 AS cor0
----
-15
-24
13

query I rowsort
SELECT 10 + - col0 FROM tab0 AS cor0
----
-5
-77
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT ALL + col1 - 9 DIV + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + col1 - 9 / + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT - COUNT( * ) - + SUM( - col1 ) col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3550
SELECT DISTINCT - COUNT ( * ) - + SUM ( - col1 ) col1 FROM tab2 AS cor0
----
192

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT DISTINCT 80 * + CAST( NULL AS SIGNED ) + - col2 col2 FROM tab0 AS cor0 WHERE NOT NULL <= 23 + 48
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3552
SELECT DISTINCT 80 * + CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab0 AS cor0 WHERE NOT NULL <= 23 + 48
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT COUNT( - col2 ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3553
SELECT COUNT ( - col2 ), COUNT ( * ) FROM tab2
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 4 + + 57 <= - 68 + - ( - - 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT - 63 * + CAST( + col1 AS SIGNED ) - col0 FROM tab0 WHERE ( NOT col2 >= + - col0 - - + col1 )
----
-5118

skipif mysql # not compatible
query I rowsort label-3555
SELECT - 63 * + CAST ( + col1 AS INTEGER ) - col0 FROM tab0 WHERE ( NOT col2 >= + - col0 - - + col1 )
----
-5118

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3556
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) + + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) + + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT - ( - + SUM( ALL + - 40 ) ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - ( - + SUM ( ALL + - 40 ) ) FROM tab2 AS cor0
----
-120

query I rowsort
SELECT - col1 * - + col0 + + + 90 + - 13 AS col2 FROM tab1 cor0
----
4354
502
791

query I rowsort
SELECT DISTINCT + ( ( 29 ) ) AS col2 FROM tab0 AS cor0
----
29

query II rowsort
SELECT + col2, - col0 AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT - ( 33 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 20 <= + ( col2 )
----

query I rowsort
SELECT DISTINCT + + 67 AS col0 FROM tab1 AS cor0
----
67

query I rowsort
SELECT col1 * + 46 AS col1 FROM tab0
----
3726
46
966

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - 47 * + COUNT( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 47 * + COUNT ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT - SUM( + 67 ) AS col0 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3565
SELECT - SUM ( + 67 ) AS col0 FROM tab1 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - + MIN( col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3566
SELECT - + MIN ( col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT SUM( ALL + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
66

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT SUM ( ALL + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3568
SELECT DISTINCT CAST( - + ( - - MIN( ALL + col0 ) ) AS SIGNED ) * 76 FROM tab2 AS cor0
----
-3496

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT CAST ( - + ( - - MIN ( ALL + col0 ) ) AS INTEGER ) * 76 FROM tab2 AS cor0
----
-3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 46 * + col2 + + 0 AS col2, + 89 col0 FROM tab1
----
2714
89
3128
89
4416
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT SUM( ALL - + col2 ) * + 31 * - + COUNT( * ) FROM tab1
----
20739

skipif mysql # not compatible
query I rowsort label-3570
SELECT SUM ( ALL - + col2 ) * + 31 * - + COUNT ( * ) FROM tab1
----
20739

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT - 75 + COUNT( * ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - 75 + COUNT ( * ) AS col2 FROM tab0
----
-72

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + - - ( + col2 ) * - + col2 * + col0 FROM tab0
----
-33054
-8679
-950696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col2 ) col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + MIN( 5 ) col0 FROM tab2
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3575
SELECT + MIN ( 5 ) col0 FROM tab2
----
5

query I rowsort
SELECT DISTINCT - ( + col0 ) + - 76 + - col0 / col0 * + 57 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + - ( - + 97 ) ), col0 col1 FROM tab1
----
97
51
97
85
97
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT ALL - CAST( - 21 AS SIGNED ) FROM tab2 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - CAST ( - 21 AS INTEGER ) FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL >= - 84
----

query I rowsort
SELECT DISTINCT col0 * - + col2 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL + 84 * + col0 + + 80 AS col0 FROM tab2
----
3944
5456
6380

query I rowsort
SELECT + + 76 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3584
SELECT DISTINCT + CAST( col0 AS SIGNED ) DIV - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT + CAST ( col0 AS INTEGER ) / - col2 FROM tab2
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL COUNT( * ) + 21 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL COUNT ( * ) + 21 FROM tab1
----
24

query I rowsort
SELECT ALL col2 + - 36 AS col0 FROM tab0 cor0
----
-26
11
63

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NULL >= - 24
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - - col0 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT - 2 * + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3590
SELECT - 2 * + - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL col0 - col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL + COUNT( - + 6 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL + COUNT ( - + 6 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT ( + - 35 ) DIV + SUM( DISTINCT col1 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT ( + - 35 ) / + SUM ( DISTINCT col1 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT COUNT( DISTINCT 45 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3594
SELECT COUNT ( DISTINCT 45 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 92 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col1
----

query I rowsort
SELECT + col2 * col1 + + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1224
3157
3953

query II rowsort
SELECT - 40, col1 FROM tab0 AS cor0
----
-40
1
-40
21
-40
81

query I rowsort
SELECT + col0 * col1 * + col1 AS col0 FROM tab1
----
201019
2125
9996

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT COUNT( * ) col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3601
SELECT COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 10 AND - col0
----

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab0 cor0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3604
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) col1 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3604
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3605
SELECT DISTINCT 58 col2, - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3605
SELECT DISTINCT 58 col2, - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3606
SELECT DISTINCT + COUNT( ALL - 86 ) * + CAST( + 56 AS SIGNED ) AS col0, 31 * + + 55 col1 FROM tab2 AS cor0
----
168
1705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3606
SELECT DISTINCT + COUNT ( ALL - 86 ) * + CAST ( + 56 AS INTEGER ) AS col0, 31 * + + 55 col1 FROM tab2 AS cor0
----
168
1705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + + col0 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + + COUNT( DISTINCT + 26 ) + + - 66 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3608
SELECT + + COUNT ( DISTINCT + 26 ) + + - 66 FROM tab0 AS cor0
----
-65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 83 + + + col1 / col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - 87 * 81 col2 FROM tab0
----
-6948
-7000
-7037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT ( + ( + - 65 ) ) + + ( - CAST( NULL AS SIGNED ) ) / col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT ( + ( + - 65 ) ) + + ( - CAST ( NULL AS INTEGER ) ) / col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 15 + + - ( 86 ) AS col0 FROM tab2
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88 + + 3 col1, + 38 * col1 AS col0 FROM tab1
----
91
1786
91
190
91
532

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT DISTINCT 92 + + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT 92 + + COUNT ( * ) FROM tab0
----
95

query I rowsort
SELECT DISTINCT + ( col2 ) + + + 59 AS col0 FROM tab2 AS cor0
----
117
82
99

query I rowsort
SELECT ALL + - 44 AS col2 FROM tab0 cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT col2 - - 19 - - col0 FROM tab1 AS cor0
----
163
166
178

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL + MIN( ALL 29 ) AS col2 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + MIN ( ALL 29 ) AS col2 FROM tab0
----
29

query I rowsort
SELECT DISTINCT 72 + - + 44 AS col0 FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT - - 98 + - col1 * + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT - - 98 + - col1 * + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 * - col0 AS col1 FROM tab2 cor0 WHERE + col0 * - 6 + 67 + 16 < NULL
----

query I rowsort
SELECT DISTINCT + 44 + - col0 FROM tab0 AS cor0
----
-43
-53
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3623
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( + col1 AS SIGNED ) / + 46 BETWEEN 14 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3623
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( + col1 AS INTEGER ) / + 46 BETWEEN 14 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 * 33 FROM tab0 cor0
----
-1551
-3267
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + 5 * - + COUNT( * ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3625
SELECT + 5 * - + COUNT ( * ) FROM tab2 cor0
----
-15

query I rowsort
SELECT + col1 * - + 13 FROM tab1 AS cor0
----
-182
-611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL MIN( DISTINCT - 76 ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL MIN ( DISTINCT - 76 ) FROM tab1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT 0 DIV + 84 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3628
SELECT 0 / + 84 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT ALL ( - COUNT( * ) ) col2, COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3629
SELECT ALL ( - COUNT ( * ) ) col2, COUNT ( * ) FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT - SUM( ALL - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3630
SELECT - SUM ( ALL - col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT + + 90 * - col2 + + 34 AS col0 FROM tab2 AS cor0
----
-2036
-3566
-5186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3632
SELECT ALL + COUNT( * ) DIV + + 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL + COUNT ( * ) / + + 91 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL - 44 * + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-396

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - 44 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-396

query I rowsort
SELECT + 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT 69 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL COUNT( * ) + - + 17 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL COUNT ( * ) + - + 17 FROM tab1
----
-14

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 + + 26 ) BETWEEN NULL AND col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT CAST( 83 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-3638
SELECT CAST ( 83 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
83
83
83

query II rowsort
SELECT ALL + - col0, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN + + col1 * col0 / - col2 AND NULL
----

query I rowsort
SELECT ALL - + ( + + 4 ) AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT 36 + 43 + - col0 FROM tab1
----
-12
-6
28

query II rowsort
SELECT DISTINCT col1 AS col0, - 25 FROM tab1
----
14
-25
47
-25
5
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT 24 DIV col1 * col2 AS col1 FROM tab1
----
0
236
96

skipif mysql # not compatible
query I rowsort label-3644
SELECT 24 / col1 * col2 AS col1 FROM tab1
----
0
236
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + - col2 col0, + 60 col1 FROM tab0
----
0
60
0
60
0
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 + - - 78 + + - col0 col1 FROM tab1
----
1
41
7

query II rowsort
SELECT col0 + + 91 AS col1, col0 AS col0 FROM tab0
----
106
15
178
87
188
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL col0 DIV col1 * - - col2 + + col2 + + 14 * - 85 col1 FROM tab2
----
-1074
-1150
-1167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3648
SELECT ALL col0 / col1 * - - col2 + + col2 + + 14 * - 85 col1 FROM tab2
----
-1074
-1150
-1167

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL - COUNT( - col2 ) + + 83 AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL - COUNT ( - col2 ) + + 83 AS col1 FROM tab1
----
80

query I rowsort
SELECT DISTINCT - col1 * col0 * - + 91 AS col0 FROM tab0
----
110565
166257
8827

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT + SUM( 2 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + SUM ( 2 ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - - 58 * + col2 * + col2 AS col0 FROM tab2 AS cor0
----
195112
30682
92800

query II rowsort
SELECT DISTINCT - 56 + col0, col2 FROM tab1 WHERE + 22 * + col1 >= - 93 + - col0
----
-5
96
29
59
35
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3655
SELECT + CAST( NULL AS SIGNED ), col2 DIV col1 + + col2 AS col0 FROM tab2 WHERE - - col1 DIV + col1 + + col1 * + + col2 NOT BETWEEN + 26 AND + - ( col1 )
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3655
SELECT + CAST ( NULL AS INTEGER ), col2 / col1 + + col2 AS col0 FROM tab2 WHERE - - col1 / + col1 + + col1 * + + col2 NOT BETWEEN + 26 AND + - ( col1 )
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT + col0 * + 82 * + 13 - - 71 FROM tab2
----
49107
68295
80021

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT + COUNT( * ) - 72 + - 22 col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3657
SELECT + COUNT ( * ) - 72 + - 22 col2 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) + col0 + - + 70 col1 FROM tab1 AS cor0
----
100
112
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + SUM( + 76 ) * + + 81 AS col1 FROM tab1 AS cor0
----
18468

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + SUM ( + 76 ) * + + 81 AS col1 FROM tab1 AS cor0
----
18468

query II rowsort
SELECT DISTINCT + col0 * - + col1, + 25 AS col0 FROM tab1 AS cor0
----
-425
25
-4277
25
-714
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3661
SELECT ALL + col2 DIV + 75 AS col0, - 30 AS col0 FROM tab1 cor0
----
0
-30
0
-30
1
-30

skipif mysql # not compatible
query II rowsort label-3661
SELECT ALL + col2 / + 75 AS col0, - 30 AS col0 FROM tab1 cor0
----
0
-30
0
-30
1
-30

query I rowsort
SELECT DISTINCT ( + + 32 ) FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + SUM( DISTINCT - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3663
SELECT + SUM ( DISTINCT - col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT COUNT( ALL + ( - - col0 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3664
SELECT COUNT ( ALL + ( - - col0 ) ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT ALL col1 DIV + + 13 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL col1 / + + 13 FROM tab1
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT COUNT( * ) FROM tab1 WHERE NOT col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3666
SELECT COUNT ( * ) FROM tab1 WHERE NOT col0 = NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 64 ) + - col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + COUNT( + col0 ) + + 39 AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-3669
SELECT + COUNT ( + col0 ) + + 39 AS col1 FROM tab1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE NULL NOT IN ( - 53 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( - col2 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col2 FROM tab1 WHERE NOT - col1 IS NULL
----
80
80
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 16 NOT BETWEEN + col0 - - ( - col0 ) AND + col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col2 * - 46 FROM tab2
----
-1058
-1840
-2668

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 62 ) NOT IN ( col1 - - ( col0 ) )
----

query I rowsort
SELECT 52 - - col1 FROM tab1
----
57
66
99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 61 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 52 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT 74 * + 0 FROM tab1 WHERE ( - col1 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT DISTINCT COUNT( ALL ( col0 ) ) + CAST( SUM( + CAST( - col0 AS SIGNED ) ) AS SIGNED ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT COUNT ( ALL ( col0 ) ) + CAST ( SUM ( + CAST ( - col0 AS INTEGER ) ) AS INTEGER ) FROM tab1
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT + COUNT( * ) + 49 AS col1 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-3681
SELECT + COUNT ( * ) + 49 AS col1 FROM tab2
----
52

query I rowsort
SELECT DISTINCT - 79 / col1 FROM tab0 WHERE col1 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + 49 FROM tab0
----
136
146
64

query I rowsort
SELECT DISTINCT - 53 * col2 AS col2 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3685
SELECT - COUNT( * ) + - 8 * + COUNT( DISTINCT 13 * col0 ) FROM tab1 WHERE + ( - col2 ) + - col2 < CAST( col2 AS DECIMAL )
----
-27

skipif mysql # not compatible
query I rowsort label-3685
SELECT - COUNT ( * ) + - 8 * + COUNT ( DISTINCT 13 * col0 ) FROM tab1 WHERE + ( - col2 ) + - col2 < CAST ( col2 AS REAL )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT MAX( ALL col2 ) * - COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-3686
SELECT MAX ( ALL col2 ) * - COUNT ( * ) FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT DISTINCT ( 56 ) * - COUNT( * ) AS col2 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT ( 56 ) * - COUNT ( * ) AS col2 FROM tab1
----
-168

query I rowsort
SELECT ALL 65 + - col1 FROM tab1
----
18
51
60

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT - 6 BETWEEN col0 AND ( col1 * - 65 - col0 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT 21 + + COUNT( * ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT 21 + + COUNT ( * ) AS col0 FROM tab1
----
24

query III rowsort
SELECT * FROM tab2 WHERE NOT - 51 = ( col0 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + col1 ) * + col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3693
SELECT SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT ALL + 70 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( - 15 ) ) col2 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - col0 + 78 FROM tab1 AS cor0
----
-13
-7
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT - 13 - col1 DIV 56 AS col1 FROM tab1 cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3697
SELECT - 13 - col1 / 56 AS col1 FROM tab1 cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 23 / COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 23 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 13 + col0 AS col1 FROM tab2
----
59
77
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < 94
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 * 47 FROM tab0 cor0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE 96 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE 96 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT 91 * COUNT( * ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3704
SELECT 91 * COUNT ( * ) FROM tab1 AS cor0
----
273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3705
SELECT - + COUNT( DISTINCT - CAST( - col1 AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3705
SELECT - + COUNT ( DISTINCT - CAST ( - col1 AS REAL ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT - - COUNT( ALL - 67 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3706
SELECT - - COUNT ( ALL - 67 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT + SUM( - 62 ) col1 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3707
SELECT + SUM ( - 62 ) col1 FROM tab2 AS cor0
----
-186

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 97 / 62 + - 62 * + 32 )
----

query I rowsort
SELECT - 88 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 BETWEEN ( + 93 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 15 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= 64 + col0
----

query I rowsort
SELECT ALL col1 * + + col1 * + col0 AS col0 FROM tab2
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * + 87 * - 8 col2 FROM tab0
----
-50112
-50112
-50112

query I rowsort
SELECT DISTINCT 51 * + col0 FROM tab1
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT ALL + ( - MIN( + col2 ) ) * 0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + ( - MIN ( + col2 ) ) * 0 FROM tab0
----
0

query I rowsort
SELECT - ( - col0 ) + + col0 / - 96 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND + 21
----

query I rowsort
SELECT 23 FROM tab2 WHERE NOT - 85 * 24 IS NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT MIN( - 90 ) AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3719
SELECT MIN ( - 90 ) AS col1 FROM tab1
----
-90

query I rowsort
SELECT col1 * 41 * col1 FROM tab1
----
1025
8036
90569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT ALL + 27 + - CAST( - col1 AS SIGNED ) FROM tab1 WHERE NOT col2 IN ( + 15 )
----
32
41
74

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL + 27 + - CAST ( - col1 AS INTEGER ) FROM tab1 WHERE NOT col2 IN ( + 15 )
----
32
41
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT SUM( DISTINCT + 68 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-3722
SELECT SUM ( DISTINCT + 68 ) FROM tab2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL AVG ( + 14 ) * CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL AVG ( + 14 ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL 24 * - col2 AS col2 FROM tab1
----
-1416
-1632
-2304

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + - col2 <= NULL
----

query I rowsort
SELECT - - 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 76 + + ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3728
SELECT ALL + CAST( + + MAX( ( + col1 ) ) AS SIGNED ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + CAST ( + + MAX ( ( + col1 ) ) AS INTEGER ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + - ( + + col1 ) FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab1 AS cor0 WHERE NOT - 80 * + 31 + col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3734
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + - 95 + - col0 / col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-3734
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + - 95 + - col0 / col2 > NULL
----

query II rowsort
SELECT ALL 26 AS col0, - 36 AS col0 FROM tab1 cor0
----
26
-36
26
-36
26
-36

query I rowsort
SELECT + col2 - + 65 * - - col0 * - + col1 - col0 FROM tab1
----
27599
277982
46455

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT + 90 - + 52 DIV - 79 FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-3737
SELECT + 90 - + 52 / - 79 FROM tab0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + 76 * - + COUNT( ALL + 17 ) AS col0 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + 76 * - + COUNT ( ALL + 17 ) AS col0 FROM tab2
----
-228

query I rowsort
SELECT ALL ( - 50 ) * - col0 + - col2 AS col0 FROM tab1
----
2454
4191
4482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
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-3740
SELECT ( col0 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3741
SELECT ALL CAST( + + MIN( - 15 ) AS DECIMAL ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL CAST ( + + MIN ( - 15 ) AS REAL ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT + CAST( - - MIN( DISTINCT 34 ) AS SIGNED ) + 49 FROM tab1 WHERE NULL IS NULL
----
83

skipif mysql # not compatible
query I rowsort label-3742
SELECT + CAST ( - - MIN ( DISTINCT 34 ) AS INTEGER ) + 49 FROM tab1 WHERE NULL IS NULL
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT 49 / + - col0 + + - ( + ( - col2 ) ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT 49 / + - col0 + + - ( + ( - col2 ) ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + 1 AS col1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT ALL - col1 - + 21 AS col1 FROM tab1 cor0
----
-26
-35
-68

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / - 73 + - 94 < NULL
----

query II rowsort
SELECT col1, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + col2 ) IN ( - col2 + - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT col2 DIV - - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3749
SELECT col2 / - - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3750
SELECT ALL + - COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3750
SELECT ALL + - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 3 ) col2 FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT COUNT( DISTINCT + 25 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT COUNT ( DISTINCT + 25 ) FROM tab2 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3753
SELECT 76 AS col0, - 61 * - - ( + col2 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
76
NULL
76
NULL
76
NULL

skipif mysql # not compatible
query II rowsort label-3753
SELECT 76 AS col0, - 61 * - - ( + col2 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
76
NULL
76
NULL
76
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 6 + + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col2 * - col2 NOT BETWEEN NULL AND - + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 IN ( col0 )
----

query II rowsort
SELECT col0 AS col1, 70 AS col1 FROM tab2 AS cor0
----
46
70
64
70
75
70

query I rowsort
SELECT DISTINCT + 89 * - 98 + col0 AS col2 FROM tab0 AS cor0
----
-8625
-8635
-8707

query I rowsort
SELECT + col1 * + - ( + - 3 ) AS col0 FROM tab2
----
153
201
231

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NULL <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 WHERE NOT + + col1 < + col2
----
3

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + col1 < + col2
----
3

query I rowsort
SELECT DISTINCT ( - + 89 ) FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + 80 * + COUNT( * ) + + 61 AS col2 FROM tab0 WHERE NOT - col2 * - col0 * - - 35 + - 85 IS NOT NULL
----
61

skipif mysql # not compatible
query I rowsort label-3763
SELECT + 80 * + COUNT ( * ) + + 61 AS col2 FROM tab0 WHERE NOT - col2 * - col0 * - - 35 + - 85 IS NOT NULL
----
61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 1 ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + + 76 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3766
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN + - col2 * - 40 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3766
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN + - col2 * - 40 AND NULL
----

query I rowsort
SELECT - ( - 97 ) AS col1 FROM tab0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3768
SELECT DISTINCT * FROM tab0 WHERE NOT + + 6 * + col0 * col2 * - + 50 NOT BETWEEN col1 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3768
SELECT DISTINCT * FROM tab0 WHERE NOT + + 6 * + col0 * col2 * - + 50 NOT BETWEEN col1 AND ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col0 + col1 - + col2 FROM tab0
----
-1
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT + COUNT( ALL + - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT + COUNT ( ALL + - col1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3771
SELECT - MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - ( - ( col1 ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT 21 AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 * + CAST( NULL AS SIGNED ) ) <= - 53
----

skipif mysql # not compatible
query I rowsort label-3773
SELECT 21 AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 * + CAST ( NULL AS INTEGER ) ) <= - 53
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3774
SELECT COUNT( * ) DIV + - 84 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3774
SELECT COUNT ( * ) / + - 84 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col2 + col1 + col0 AS col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT - CAST( NULL AS SIGNED ) + - - 18 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT - CAST ( NULL AS INTEGER ) + - - 18 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 17 + col0 + - + col0, 60 * col0 * - + col2 * col0 AS col0 FROM tab2 AS cor0
----
-17
-19575000
-17
-2920080
-17
-9830400

query I rowsort
SELECT DISTINCT - 94 * col1 + + col1 FROM tab2 AS cor0
----
-4743
-6231
-7161

query I rowsort
SELECT ALL - - 33 AS col0 FROM tab0 AS cor0 WHERE col2 + - col1 IS NOT NULL
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL + 44 + - - SUM( - col0 ) AS col0 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL + 44 + - - SUM ( - col0 ) AS col0 FROM tab2 AS cor0
----
-141

query I rowsort
SELECT ALL + + ( - - col1 ) * + + col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - col1 * col0 * + col2 FROM tab1 AS cor0 WHERE - col1 > - col0 / - col2
----

query I rowsort
SELECT - - 35 + - + 90 * - col2 AS col0 FROM tab2 AS cor0
----
2105
3635
5255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3784
SELECT DISTINCT - - COUNT( * ) DIV - 3 + COUNT( * ) * + 68 AS col2 FROM tab0 AS cor0
----
203

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT - - COUNT ( * ) / - 3 + COUNT ( * ) * + 68 AS col2 FROM tab0 AS cor0
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT COUNT( - 45 ) FROM tab2 AS cor0 WHERE NOT ( ( ( col2 + - col0 ) BETWEEN NULL AND NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT COUNT ( - 45 ) FROM tab2 AS cor0 WHERE NOT ( ( ( col2 + - col0 ) BETWEEN NULL AND NULL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * + - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * + - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - - col1 + + 84 + 97 * 24 + + 56 - 91 * + col2 + + col1 * - col0 AS col1 FROM tab1
----
-3316
-6954
-7903

query I rowsort
SELECT - + col1 FROM tab2 WHERE - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT COUNT( * ) + ( + + 11 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT COUNT ( * ) + ( + + 11 ) FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT - SUM( col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT - SUM ( col2 ) FROM tab0
----
-156

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab2 WHERE col1 / - - col2 NOT BETWEEN col1 AND 22
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT COUNT( * ) - 95 AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-3792
SELECT COUNT ( * ) - 95 AS col1 FROM tab2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3793
SELECT * FROM tab1 WHERE ( - CAST( - col2 AS SIGNED ) * + 77 + - 44 + CAST( NULL AS SIGNED ) * - 78 + - col0 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3793
SELECT * FROM tab1 WHERE ( - CAST ( - col2 AS INTEGER ) * + 77 + - 44 + CAST ( NULL AS INTEGER ) * - 78 + - col0 ) <= NULL
----

query I rowsort
SELECT ALL col0 * + - col0 * - 72 + - 16 AS col2 FROM tab1 AS cor0
----
187256
520184
596216

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 >= + - col2 * - col0
----

query I rowsort
SELECT DISTINCT + 9 * + col2 * - - 53 * - col2 - col0 FROM tab0 AS cor0
----
-1053708
-4675174
-47787

query I rowsort
SELECT DISTINCT - col2 * - + 81 FROM tab2 AS cor0
----
1863
3240
4698

query I rowsort
SELECT ALL 13 + - 0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT - 26 DIV + - col0 * - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT - 26 / + - col0 * - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + 43 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ALL - 91 * + - col1 + col2 + - 55 - col2 - col1 + + ( - 63 ) AS col2 FROM tab2 WHERE NOT 76 IS NOT NULL
----

query I rowsort
SELECT + 11 * - 77 FROM tab2 AS cor0
----
-847
-847
-847

query I rowsort
SELECT - - 85 * col0 FROM tab1 AS cor0
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT - MIN( + + 52 ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - MIN ( + + 52 ) AS col0 FROM tab0 AS cor0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 59 IN ( + 47 + + col0 * 15 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL COUNT( * ) * - + 51 AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL COUNT ( * ) * - + 51 AS col0 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT ALL col0 + - col0 * + col1 FROM tab1 cor0
----
-340
-4186
-663

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3811
SELECT + 41 AS col1, 37 DIV - col0 + - - 14 FROM tab2
----
41
14
41
14
41
14

skipif mysql # not compatible
query II rowsort label-3811
SELECT + 41 AS col1, 37 / - col0 + - - 14 FROM tab2
----
41
14
41
14
41
14

onlyif mysql # DIV for integer division: 
query II rowsort label-3812
SELECT - col0, + col1 DIV 28 AS col1 FROM tab2
----
-46
1
-64
2
-75
2

skipif mysql # not compatible
query II rowsort label-3812
SELECT - col0, + col1 / 28 AS col1 FROM tab2
----
-46
1
-64
2
-75
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - ( - - MAX( ALL - 68 ) ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3813
SELECT - ( - - MAX ( ALL - 68 ) ) FROM tab1
----
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( - col0 ) - - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( - col0 ) - - + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3816
SELECT - ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT + + COUNT( * ) - 50 + 10 * - 21 FROM tab0 AS cor0
----
-257

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + + COUNT ( * ) - 50 + 10 * - 21 FROM tab0 AS cor0
----
-257

query I rowsort
SELECT ALL - - ( + ( col1 ) ) - - col0 * - - 71 FROM tab0 cor0
----
1146
6198
6888

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT DISTINCT + + COUNT( ALL + col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3819
SELECT DISTINCT + + COUNT ( ALL + col0 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 - + col2 + + col2 * col1 + - ( - 72 ) FROM tab2 AS cor0
----
1171
3035
3833

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT ALL 85 AS col0, + ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
85
-3

skipif mysql # not compatible
query II rowsort label-3821
SELECT ALL 85 AS col0, + ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
85
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 * col1 col2 FROM tab1
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT + SUM( ALL 24 ) AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT + SUM ( ALL 24 ) AS col1 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + 53 * MAX( DISTINCT + col0 ) + - COUNT( DISTINCT - 74 ) FROM tab2
----
3974

skipif mysql # not compatible
query I rowsort label-3824
SELECT + 53 * MAX ( DISTINCT + col0 ) + - COUNT ( DISTINCT - 74 ) FROM tab2
----
3974

query II rowsort
SELECT col2 + + 95 AS col1, col2 AS col2 FROM tab2
----
118
23
135
40
153
58

query I rowsort
SELECT col2 + - + col0 + + + col2 * + - col0 FROM tab0
----
-673
-947
-9601

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + COUNT( ALL + col0 ) + 54 * - - 27 col2 FROM tab1
----
1461

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3827
SELECT + COUNT ( ALL + col0 ) + 54 * - - 27 col2 FROM tab1
----
1461

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT DISTINCT 16 DIV - 67 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT 16 / - 67 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL 64 * - MAX( - col0 ) AS col1 FROM tab0
----
960

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL 64 * - MAX ( - col0 ) AS col1 FROM tab0
----
960

query I rowsort
SELECT + ( - 13 ) * 25 * - - col1 AS col1 FROM tab0 AS cor0
----
-26325
-325
-6825

query I rowsort
SELECT DISTINCT + 42 * - + col2 FROM tab2 AS cor0
----
-1680
-2436
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT - + 13 DIV - + 61 + + col1 - + col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - + 13 / - + 61 + + col1 - + col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL MIN( 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL MIN ( 64 ) FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT DISTINCT COUNT( * ) AS col0, 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
17

skipif mysql # not compatible
query II rowsort label-3834
SELECT DISTINCT COUNT ( * ) AS col0, 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + ( + SUM( ALL - + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3835
SELECT + ( + SUM ( ALL - + col0 ) ) FROM tab0
----
-199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 - 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL + MIN( + 74 ) AS col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL + MIN ( + 74 ) AS col2 FROM tab2 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ( MIN( ( - 0 ) ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT ( MIN ( ( - 0 ) ) ) AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col0 * + col1 + 42 AS col2 FROM tab0 AS cor0
----
10
1869
47
1257
99
139

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT ALL + col0 DIV + - col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + col0 / + - col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 31 * col1 + + + col1 FROM tab0
----
2592
32
672

query I rowsort
SELECT 36 + - + col1 AS col0 FROM tab0
----
-45
15
35

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE col2 + col2 <> - 27
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3846
SELECT DISTINCT - col2 + col0 + + CAST( 3 AS SIGNED ) DIV - - col2 + col2 * - col0 * col1 * - col0 * col0 AS col1 FROM tab0
----
12848593
138285707
90354625

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - col2 + col0 + + CAST ( 3 AS INTEGER ) / - - col2 + col2 * - col0 * col1 * - col0 * col0 AS col1 FROM tab0
----
12848593
138285707
90354625

query I rowsort
SELECT ALL ( - 65 ) + - 6 FROM tab2
----
-71
-71
-71

query III rowsort
SELECT * FROM tab0 WHERE + 44 > + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + + - col2 - - 96 * ( - 33 ) AS col1 FROM tab1 AS cor0
----
-3142
-3145
-3213

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - 41 * - col0, 85 AS col0 FROM tab0 AS cor0
----
-3567
85
-3977
85
-615
85

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 <> NULL
----

query I rowsort
SELECT ALL col0 + - col0 * col2 - - + col1 AS col0 FROM tab1
----
-4831
-4925
-6050

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT DISTINCT - col0 DIV - - col1 + 42 * - + col0 * - - col0 * - - ( - - col1 ) FROM tab2 AS cor0
----
-13246464
-15828751
-4532472

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT - col0 / - - col1 + 42 * - + col0 * - - col0 * - - ( - - col1 ) FROM tab2 AS cor0
----
-13246464
-15828751
-4532472

query I rowsort
SELECT DISTINCT + 90 - + col0 * + 62 + - 62 FROM tab1 AS cor0
----
-3134
-5242
-5614

query I rowsort
SELECT col1 + - 72 FROM tab1 AS cor0
----
-25
-58
-67

query II rowsort
SELECT - + 34, col1 AS col1 FROM tab0 AS cor0
----
-34
1
-34
21
-34
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 + - col0 < + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT 5 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT 5 / col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE NOT - col1 > col1
----
59
68
96

query II rowsort
SELECT col0 AS col0, 82 - + col0 FROM tab2
----
46
36
64
18
75
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 32 + + col0 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 34 AS col2, col0 * - col0 FROM tab2
----
-34
-2116
-34
-4096
-34
-5625

query I rowsort
SELECT DISTINCT col1 * - col0 * + col1 AS col0 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT col1 * 57 AS col0 FROM tab1
----
2679
285
798

query II rowsort
SELECT col2 AS col1, - 23 FROM tab0
----
10
-23
47
-23
99
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT 97 * - - COUNT( ( 27 ) ) FROM tab0 cor0
----
291

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT 97 * - - COUNT ( ( 27 ) ) FROM tab0 cor0
----
291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----

query I rowsort
SELECT 20 * - col2 * - 29 AS col1 FROM tab1 AS cor0
----
34220
39440
55680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3872
SELECT - + 92 AS col2, - CAST( NULL AS SIGNED ) - - col2 + - ( + col2 ) - - col0 col2 FROM tab0 AS cor0
----
-92
NULL
-92
NULL
-92
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3872
SELECT - + 92 AS col2, - CAST ( NULL AS INTEGER ) - - col2 + - ( + col2 ) - - col0 col2 FROM tab0 AS cor0
----
-92
NULL
-92
NULL
-92
NULL

query I rowsort
SELECT DISTINCT + + 46 * - - col2 AS col0 FROM tab0 AS cor0
----
2162
4554
460

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NOT 46 + + col0 * + ( - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NOT 46 + + col0 * + ( - col2 ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + - col1 + - 83 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4799
4927
6058

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT - ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3878
SELECT 50, COUNT( * ) AS col0 FROM tab2
----
50
3

skipif mysql # not compatible
query II rowsort label-3878
SELECT 50, COUNT ( * ) AS col0 FROM tab2
----
50
3

query II rowsort
SELECT DISTINCT + col0 AS col1, 9 AS col2 FROM tab0
----
15
9
87
9
97
9

query II rowsort
SELECT + col2 AS col2, col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - 31 + COUNT( * ) FROM tab0 WHERE - 68 * col1 BETWEEN NULL AND - - col1
----
-31

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 31 + COUNT ( * ) FROM tab0 WHERE - 68 * col1 BETWEEN NULL AND - - col1
----
-31

query I rowsort
SELECT col0 * 5 AS col2 FROM tab0
----
435
485
75

query I rowsort
SELECT + 90 FROM tab0 WHERE + + col0 NOT BETWEEN + ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col2 + - col1 * + col2 + col0 AS col1 FROM tab1
----
-1338
-184
-3082

query I rowsort
SELECT - 65 + - col0 FROM tab0
----
-152
-162
-80

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) BETWEEN NULL AND + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT DISTINCT - SUM( - + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT - SUM ( - + col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL col1 + + + col1 AS col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL + + COUNT( * ) + COUNT( + + col0 ) + + COUNT( * ) + + SUM( - + col1 ) FROM tab0 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + + COUNT ( * ) + COUNT ( + + col0 ) + + COUNT ( * ) + + SUM ( - + col1 ) FROM tab0 cor0
----
-94

query I rowsort
SELECT + 50 + col1 + + col2 AS col0 FROM tab1 AS cor0 WHERE - col2 + + col2 + - 36 IS NULL
----

query I rowsort
SELECT DISTINCT col2 - 48 FROM tab2 AS cor0
----
-25
-8
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( - col2 ) AS col0, + ( col1 ) AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT col0 * + 15 AS col1 FROM tab0 AS cor0
----
1305
1455
225

query I rowsort
SELECT ALL + 40 * - col2 * + col1 AS col2 FROM tab2
----
-123200
-155440
-46920

query I rowsort
SELECT DISTINCT + ( - 41 ) FROM tab1
----
-41

query I rowsort
SELECT + 71 * + - col0 AS col2 FROM tab2
----
-3266
-4544
-5325

query II rowsort
SELECT - col1 * + col0 * col0 * + ( - col2 ) AS col2, + 85 AS col2 FROM tab2
----
12615680
85
21858750
85
2482068
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) / - MAX( ALL + + col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - MAX ( ALL + + col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 <= NULL
----
0

query I rowsort
SELECT col2 * + 95 * - col1 AS col2 FROM tab2
----
-111435
-292600
-369170

query I rowsort
SELECT DISTINCT 57 * col2 * col2 * 84 AS col1 FROM tab2
----
16106832
2532852
7660800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col1 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + + MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3905
SELECT + + MIN ( - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT SUM( col2 ) AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3906
SELECT SUM ( col2 ) AS col0 FROM tab0 cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 9 + + col0 < + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT - + MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT - + MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT - + MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT - + MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - 54 * 85 * - - 60 FROM tab0 cor0
----
-275400

query I rowsort
SELECT + 31 + 39 AS col0 FROM tab2 cor0
----
70
70
70

query I rowsort
SELECT - col0 * - + 65 * - + ( col0 ) + - - col2 AS col0 FROM tab2 AS cor0
----
-137517
-266200
-365567

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT col0 * + 47 - col2 + - 92 DIV 86 * + col0 FROM tab1 AS cor0
----
2250
3851
4118

skipif mysql # not compatible
query I rowsort label-3913
SELECT col0 * + 47 - col2 + - 92 / 86 * + col0 FROM tab1 AS cor0
----
2250
3851
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT MIN( - + 42 ) + + COUNT( ALL - - col1 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3914
SELECT MIN ( - + 42 ) + + COUNT ( ALL - - col1 ) FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + SUM( col0 ) + + 0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3915
SELECT + SUM ( col0 ) + + 0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL - 96 * - 69 * + - ( + 44 ) FROM tab2 AS cor0
----
-291456
-291456
-291456

query I rowsort
SELECT DISTINCT + 7 + col0 FROM tab1
----
58
92
98

query I rowsort
SELECT 95 + 98 AS col1 FROM tab1
----
193
193
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT COUNT( ALL - 62 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3919
SELECT COUNT ( ALL - 62 ) col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + 5 - + - col0 * col1 col2 FROM tab2
----
2328
4893
4972

query I rowsort
SELECT DISTINCT - - col2 * 16 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
1487
73
737

query II rowsort
SELECT + col1 - + - col2 AS col1, - col0 AS col2 FROM tab1 cor0
----
110
-51
115
-91
64
-85

query II rowsort
SELECT col0 * 7 * + col2, + col2 FROM tab1 cor0
----
34272
96
35105
59
43316
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - + COUNT( DISTINCT - col0 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3924
SELECT - + COUNT ( DISTINCT - col0 ) col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - - col0, - col0 * + col0 AS col1 FROM tab0 AS cor0
----
15
-225
87
-7569
97
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - col0 - + ( col0 ) AS col1 FROM tab0 AS cor0
----
1
-194
21
-174
81
-30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col1 + + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - MAX( ALL - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3928
SELECT - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT - - MAX( ALL - 27 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3929
SELECT - - MAX ( ALL - 27 ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT col2 * + 45 AS col2 FROM tab2 AS cor0
----
1035
1800
2610

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 28 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT 84 * COUNT( - col2 ) FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
252

skipif mysql # not compatible
query I rowsort label-3933
SELECT 84 * COUNT ( - col2 ) FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
252

query I rowsort
SELECT ALL - 46 * - - col2 + + 91 / + + 7 AS col1 FROM tab2 WHERE NOT + col2 - + + 21 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3936
SELECT * FROM tab0 WHERE NOT - 25 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3936
SELECT * FROM tab0 WHERE NOT - 25 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND + 50
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3938
SELECT CAST( col0 AS SIGNED ) AS col1, + col2 DIV col0 FROM tab0
----
15
3
87
0
97
1

skipif mysql # not compatible
query II rowsort label-3938
SELECT CAST ( col0 AS INTEGER ) AS col1, + col2 / col0 FROM tab0
----
15
3
87
0
97
1

query I rowsort
SELECT + 29 AS col0 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT ALL 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL + col2 + + 17 + + 29 FROM tab0
----
145
56
93

query I rowsort
SELECT ALL + col2 + + 7 AS col0 FROM tab1 AS cor0
----
103
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL + COUNT( + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL + COUNT ( + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT + ( - + 69 ) DIV - - 11 AS col0 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-3944
SELECT + ( - + 69 ) / - - 11 AS col0 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + col1 + 84 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 96 + + col1 * + + 76 * + ( col2 ) AND NULL
----

query II rowsort
SELECT - 96, col1 AS col1 FROM tab1 AS cor0
----
-96
14
-96
47
-96
5

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + 80 <= 88
----
59
68
96

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * + 89 AS col2 FROM tab1 AS cor0
----
5251
6052
8544

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 22 <> + - 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col0, col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT col1 / + + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL + 78 * MAX( ALL col2 ) col0 FROM tab2
----
4524

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3953
SELECT ALL + 78 * MAX ( ALL col2 ) col0 FROM tab2
----
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * col0 + - 39 * + col0 + + col0 col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * - col2 * - - 36 col2 FROM tab0
----
-3513
-352739
-79509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT DISTINCT col1 - - CAST( NULL AS SIGNED ) + - col0 + + + 37 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT col1 - - CAST ( NULL AS INTEGER ) + - col0 + + + 37 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - 69 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3958
SELECT col0 AS col0, 5 * - 36 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + ( - + 67 ), col0 * col2, - ( 98 ) * + 33 + col1 * + CAST( + col2 AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query II rowsort label-3958
SELECT col0 AS col0, 5 * - 36 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + ( - + 67 ), col0 * col2, - ( 98 ) * + 33 + col1 * + CAST ( + col2 AS INTEGER ) * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT - - 94 + COUNT( * ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - - 94 + COUNT ( * ) FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT COUNT( ALL 33 ) * 29 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3960
SELECT COUNT ( ALL 33 ) * 29 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col0 FROM tab1
----
68
68
68

query I rowsort
SELECT ( + + 92 ) * 22 * - + 49 + - + 4 FROM tab1
----
-99180
-99180
-99180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT DISTINCT + 48 DIV - + COUNT( * ) + MIN( ALL + ( 69 ) ) + + 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT + 48 / - + COUNT ( * ) + MIN ( ALL + ( 69 ) ) + + 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3964
SELECT DISTINCT - CAST( 47 AS SIGNED ) DIV - - MAX( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT - CAST ( 47 AS INTEGER ) / - - MAX ( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3965
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + - CAST( + + col0 AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-3965
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + - CAST ( + + col0 AS INTEGER ) AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - - 71 ) > 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT - CAST( AVG ( - col1 ) AS SIGNED ) col2 FROM tab1
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3967
SELECT - CAST ( AVG ( - col1 ) AS INTEGER ) col2 FROM tab1
----
22

query I rowsort
SELECT col2 * + 85 AS col0 FROM tab2
----
1955
3400
4930

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL < NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 1 + - 38 * 71 AS col0 FROM tab2 AS cor0
----
-2697
-2697
-2697

query I rowsort
SELECT DISTINCT 49 + - col2 FROM tab0
----
-50
2
39

query I rowsort
SELECT DISTINCT - col1 * - 76 FROM tab1 AS cor0
----
1064
3572
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - MAX( + + col1 ) * + COUNT( * ) * - 0 + 45 + - 34 + 62 AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3975
SELECT - MAX ( + + col1 ) * + COUNT ( * ) * - 0 + 45 + - 34 + 62 AS col1 FROM tab2 AS cor0
----
73

query I rowsort
SELECT - 80 + col1 AS col1 FROM tab1 AS cor0
----
-33
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL COUNT( * ) * - COUNT( + col1 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL COUNT ( * ) * - COUNT ( + col1 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + + col2 * + 41 + + col2 AS col1 FROM tab0 AS cor0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL - MIN( + - 5 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - MIN ( + - 5 ) AS col1 FROM tab1 AS cor0
----
5

query II rowsort
SELECT + col1, 44 AS col0 FROM tab0 WHERE ( col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL + 16 + + ( - - COUNT( * ) ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + 16 + + ( - - COUNT ( * ) ) FROM tab0
----
19

query I rowsort
SELECT - 36 - + col1 + + col0 FROM tab1 AS cor0
----
1
44
8

query I rowsort
SELECT - col0 * + + col2 - + 25 + ( - col2 ) FROM tab2 AS cor0
----
-1106
-2625
-4433

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - 46 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3984
SELECT - 46 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT 29 - - - col2 FROM tab2 cor0
----
-11
-29
6

query I rowsort
SELECT + + col1 * + 76 * + + col2 + - col1 FROM tab1 AS cor0
----
102130
22415
242849

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT 95 DIV col0 AS col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT 95 / col0 AS col0 FROM tab0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT + col0 DIV col2 * col1 + - ( + 26 ) FROM tab0 AS cor0 WHERE NOT col1 = - + col2 * 30
----
-26
-26
142

skipif mysql # not compatible
query I rowsort label-3988
SELECT + col0 / col2 * col1 + - ( + 26 ) FROM tab0 AS cor0 WHERE NOT col1 = - + col2 * 30
----
-26
-26
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT + ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT + + 17 DIV + 92 * - + col1 * col2 + + - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + + 17 / + 92 * - + col1 * col2 + + - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT + 77, col0 AS col2 FROM tab0 AS cor0
----
77
15
77
87
77
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col2 col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL MAX( ALL 49 ) col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT ALL MAX ( ALL 49 ) col0 FROM tab1 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 70 col1 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3996
SELECT ALL + COUNT( * ), CAST( NULL AS SIGNED ) * + + 34 + ( - COUNT( + ( + 26 ) ) ) AS col0 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL + COUNT ( * ), CAST ( NULL AS INTEGER ) * + + 34 + ( - COUNT ( + ( + 26 ) ) ) AS col0 FROM tab1 AS cor0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + - - 26 NOT BETWEEN + col2 AND - col1 * col0 + - - ( - 71 ) * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL col2, col1 + - + col0 AS col1, + 20 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 026c9a0d53c98cb5e7b214c65cb5a29a

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3999
SELECT + ( col0 ), - col0 * - col1 / + 22 * - - 77 - - + col2 + + col2 * + - CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3999
SELECT + ( col0 ), - col0 * - col1 / + 22 * - - 77 - - + col2 + + col2 * + - CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4000
SELECT + 80 DIV + - CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 80 / + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4001
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4002
SELECT - 85 DIV - - 39 + + - CAST( 37 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-4002
SELECT - 85 / - - 39 + + - CAST ( 37 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + + col1 col2 FROM tab0
----
128
48
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT DISTINCT + 73 + + CAST( NULL AS SIGNED ) + + col0 * - + 12 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + 73 + + CAST ( NULL AS INTEGER ) + + col0 * - + 12 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 78 * - col0 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT ALL 50 + - CAST( + 13 AS SIGNED ) * + + ( + col2 ) FROM tab0 AS cor0
----
-1237
-561
-80

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL 50 + - CAST ( + 13 AS INTEGER ) * + + ( + col2 ) FROM tab0 AS cor0
----
-1237
-561
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - COUNT( * ) - COUNT( DISTINCT - + col2 ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - COUNT ( * ) - COUNT ( DISTINCT - + col2 ) FROM tab2 cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4008
SELECT ALL + MAX( + col0 ), - 74 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col0 * - - 14
----
NULL
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4008
SELECT ALL + MAX ( + col0 ), - 74 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col0 * - - 14
----
NULL
-74

query II rowsort
SELECT DISTINCT - col0, - 97 * col1 * - - 74 AS col2 FROM tab2 AS cor0
----
-46
-366078
-64
-552706
-75
-480926

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT 48 + + 36 * COUNT( * ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4010
SELECT 48 + + 36 * COUNT ( * ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL ( + + MIN( - col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL ( + + MIN ( - col0 ) ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT - 79 + + - col2 FROM tab2
----
-102
-119
-137

query III rowsort
SELECT * FROM tab2 WHERE + + 28 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col1 IS NULL
----

query I rowsort
SELECT + 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT 5 * col0 FROM tab1
----
255
425
455

query I rowsort
SELECT DISTINCT + 45 * + col0 FROM tab1
----
2295
3825
4095

onlyif mysql # DIV for integer division: 
query I rowsort label-4018
SELECT ( - 13 ) DIV - col2 FROM tab2 AS cor0 WHERE NOT ( + col0 * ( - + col0 ) ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4018
SELECT ( - 13 ) / - col2 FROM tab2 AS cor0 WHERE NOT ( + col0 * ( - + col0 ) ) IS NULL
----
0
0
0

query I rowsort
SELECT ALL - col0 * + 54 AS col2 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4020
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED ) - - col2
----

skipif mysql # not compatible
query III rowsort label-4020
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER ) - - col2
----

query I rowsort
SELECT DISTINCT col1 - 95 FROM tab2 AS cor0 WHERE 52 IS NOT NULL
----
-18
-28
-44

query I rowsort
SELECT - ( - 8 ) FROM tab2 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL COUNT( DISTINCT - 67 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL COUNT ( DISTINCT - 67 ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab0 cor0
----
16

query I rowsort
SELECT DISTINCT + - col0 * + 26 AS col2 FROM tab1 cor0
----
-1326
-2210
-2366

query I rowsort
SELECT col1 + col2 * - - col1 FROM tab0
----
100
231
3888

query I rowsort
SELECT ALL 37 * - 32 FROM tab0
----
-1184
-1184
-1184

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT ALL ( + - col2 ) DIV - + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL ( + - col2 ) / - + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + - + 7 AS col1 FROM tab1
----
44
78
84

query II rowsort
SELECT col2, 17 - 46 AS col2 FROM tab1
----
59
-29
68
-29
96
-29

query I rowsort
SELECT ALL ( - + ( - col0 ) ) + col0 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT 95 * CAST( + 44 AS SIGNED ) FROM tab2
----
4180
4180
4180

skipif mysql # not compatible
query I rowsort label-4032
SELECT 95 * CAST ( + 44 AS INTEGER ) FROM tab2
----
4180
4180
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - 77 * + - 36 - - + COUNT( * ) FROM tab2 AS cor0
----
2775

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 77 * + - 36 - - + COUNT ( * ) FROM tab2 AS cor0
----
2775

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT - SUM( col1 ) AS col2, 42 FROM tab0 AS cor0
----
-103
42

skipif mysql # not compatible
query II rowsort label-4034
SELECT - SUM ( col1 ) AS col2, 42 FROM tab0 AS cor0
----
-103
42

query II rowsort
SELECT col0 * col1 AS col1, - col0 * - col2 FROM tab0
----
1215
705
1827
870
97
9603

query I rowsort
SELECT ALL - + 81 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT ALL - COUNT( * ) DIV 49 + + 40 AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - COUNT ( * ) / 49 + + 40 AS col2 FROM tab0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT - 18 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT - 18 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 58 * col1 + - + col1 AS col0 FROM tab0 AS cor0
----
1197
4617
57

query I rowsort
SELECT DISTINCT + 38 / + col1 + 84 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + col0 + - col2 * - + ( + + col2 ) + - - 31 FROM tab0 AS cor0
----
2225
44
9735

query I rowsort
SELECT DISTINCT - 41 - 51 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT col1 * + - 87 FROM tab2 AS cor0
----
-4437
-5829
-6699

query I rowsort
SELECT 90 * 60 AS col0 FROM tab0 cor0
----
5400
5400
5400

query I rowsort
SELECT + + ( + + col2 ) * 85 FROM tab1 AS cor0
----
5015
5780
8160

query I rowsort
SELECT + 57 + + - col1 * + - ( - 89 ) FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4047
SELECT ALL + CAST( + COUNT( - - col0 ) AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL + CAST ( + COUNT ( - - col0 ) AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 * + 46 * - 87 AS col0 FROM tab2
----
46
-92046
64
-160080
75
-232116

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + - MAX( - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4050
SELECT + - MAX ( - + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT - + 77 AS col1 FROM tab1 cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL - ( + MAX( DISTINCT + + 70 ) ) col2 FROM tab2 cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4052
SELECT ALL - ( + MAX ( DISTINCT + + 70 ) ) col2 FROM tab2 cor0
----
-70

query I rowsort
SELECT ALL + col1 * ( + - col1 ) FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT CAST( + 34 AS SIGNED ) * + col1 FROM tab0
----
2754
34
714

skipif mysql # not compatible
query I rowsort label-4054
SELECT CAST ( + 34 AS INTEGER ) * + col1 FROM tab0
----
2754
34
714

query I rowsort
SELECT ALL - 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL - MAX( + - 38 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4056
SELECT ALL - MAX ( + - 38 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4057
SELECT ALL * FROM tab1 WHERE NOT CAST( CAST( - + col0 AS DECIMAL ) AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4057
SELECT ALL * FROM tab1 WHERE NOT CAST ( CAST ( - + col0 AS REAL ) AS REAL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL > col1 * + 25 / col1 )
----

query I rowsort
SELECT + + col0 * + col2 + - ( - col0 ) FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT + - 47 * - COUNT( * ), + ( + - MIN( col0 ) ) AS col2 FROM tab1 AS cor0
----
141
-51

skipif mysql # not compatible
query II rowsort label-4060
SELECT + - 47 * - COUNT ( * ), + ( + - MIN ( col0 ) ) AS col2 FROM tab1 AS cor0
----
141
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT + - 58 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 < + + 80
----
0

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + - 58 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 < + + 80
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4062
SELECT SUM( DISTINCT - + 27 ), 82 AS col1 FROM tab1 AS cor0
----
-27
82

skipif mysql # not compatible
query II rowsort label-4062
SELECT SUM ( DISTINCT - + 27 ), 82 AS col1 FROM tab1 AS cor0
----
-27
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 16 - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col2 col1 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT ALL - 89 * - COUNT( * ) AS col1, 71 AS col2 FROM tab2 AS cor0
----
267
71

skipif mysql # not compatible
query II rowsort label-4065
SELECT ALL - 89 * - COUNT ( * ) AS col1, 71 AS col2 FROM tab2 AS cor0
----
267
71

query III rowsort
SELECT * FROM tab2 WHERE NOT + 76 * col1 + - col2 / 25 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 0 + 65 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT + - MAX( ALL + + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT + - MAX ( ALL + + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 * + col2 + + col1 + ( col2 ) FROM tab0
----
131
2337
9901

query I rowsort
SELECT - 77 FROM tab0 WHERE + 15 * + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col2 FROM tab1
----
74
74
74

query I rowsort
SELECT + col2 * - 26 FROM tab0
----
-1222
-2574
-260

onlyif mysql # DIV for integer division: 
query II rowsort label-4074
SELECT col0 * col2 + + ( col0 ) + - col0 DIV - col0 AS col1, + 27 AS col1 FROM tab0 WHERE NULL IS NULL
----
721
27
958
27
9701
27

skipif mysql # not compatible
query II rowsort label-4074
SELECT col0 * col2 + + ( col0 ) + - col0 / - col0 AS col1, + 27 AS col1 FROM tab0 WHERE NULL IS NULL
----
721
27
958
27
9701
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 93 NOT BETWEEN + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL 20 + + - 57 * MIN( ALL 13 ) - SUM( col1 ) FROM tab2
----
-916

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL 20 + + - 57 * MIN ( ALL 13 ) - SUM ( col1 ) FROM tab2
----
-916

query I rowsort
SELECT ALL + col1 * - 59 FROM tab0 AS cor0
----
-1239
-4779
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - 48 + - COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 48 + - COUNT ( * ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL COUNT( * ) + - 93 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL COUNT ( * ) + - 93 FROM tab0 AS cor0
----
-90

query III rowsort
SELECT * FROM tab1 WHERE + 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 2 * - - col2 * col1 AS col0 FROM tab2
----
2346
6160
7772

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT DISTINCT COUNT( * ) * - 18 + + + COUNT( * ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT COUNT ( * ) * - 18 + + + COUNT ( * ) FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL + - 68 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-59

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + - 68 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-59

query II rowsort
SELECT + 3 AS col1, col0 * - col1 FROM tab0
----
3
-1215
3
-1827
3
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4086
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4086
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT - - col1 DIV + - 75 - - col2 + - col2 - + 6 - col1 * + col0 * - col1 * col1 + - 14 FROM tab0 AS cor0
----
77
7971594
805687

skipif mysql # not compatible
query I rowsort label-4087
SELECT - - col1 / + - 75 - - col2 + - col2 - + 6 - col1 * + col0 * - col1 * col1 + - 14 FROM tab0 AS cor0
----
77
7971594
805687

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT col2 - + CAST( NULL AS SIGNED ) * - - 6 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT col2 - + CAST ( NULL AS INTEGER ) * - - 6 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT DISTINCT + ( col2 ) DIV col1 - + - 41 col1 FROM tab1 AS cor0
----
42
47
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4089
SELECT DISTINCT + ( col2 ) / col1 - + - 41 col1 FROM tab1 AS cor0
----
42
47
52

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab1 WHERE NOT ( - col1 * col0 IS NOT NULL )
----

query II rowsort
SELECT col0 * col0 AS col1, - 88 AS col2 FROM tab0
----
225
-88
7569
-88
9409
-88

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 BETWEEN - col2 / col2 AND - 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 83 FROM tab0 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
-83

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 = - 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - 59 / + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT 24 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT 24 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT COUNT( * ) col1 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-4098
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT ALL + - col0, ( + + col2 ) FROM tab1 WHERE NOT + col2 - col0 - + - 72 IS NOT NULL
----

query I rowsort
SELECT 79 FROM tab0 AS cor0 WHERE NOT - 61 / col2 >= - - col0
----
79
79
79

query I rowsort
SELECT DISTINCT - - col1 * + col2 - + - 2 FROM tab2 AS cor0
----
1175
3082
3888

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT ( ( NOT - col1 IS NULL ) ) ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - 24, ( - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col2 * 64 AS col1 FROM tab2 AS cor0
----
-163840
-278400
-67712

query I rowsort
SELECT 28 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 9 AS col0 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - col1 + + + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + col1 + + 78 + - 30 AS col0 FROM tab1 AS cor0
----
53
62
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT + COUNT( - - ( col2 ) ) * + MIN( + 59 ) * + 41 - 90 FROM tab0
----
7167

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT + COUNT ( - - ( col2 ) ) * + MIN ( + 59 ) * + 41 - 90 FROM tab0
----
7167

query I rowsort
SELECT - col1 + + - col0 + - - 59 AS col2 FROM tab1
----
-31
-6
-79

query I rowsort
SELECT - col0 + - col0 + + col1 FROM tab2
----
-41
-51
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT DISTINCT ( col0 ) + col2 * col0 DIV + + col0 + col1 FROM tab1
----
149
161
206

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT ( col0 ) + col2 * col0 / + + col0 + col1 FROM tab1
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4113
SELECT ALL col2 DIV + CAST( - + 48 AS SIGNED ) + + CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
58
67
94

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL col2 / + CAST ( - + 48 AS INTEGER ) + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
58
67
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL - MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT ALL + 78 + col2 FROM tab0
----
125
177
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4116
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - 73 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4116
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - 73 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 69 * - col0
----

query II rowsort
SELECT + - col2 AS col2, col1 FROM tab1 AS cor0 WHERE + col2 + - col0 IS NULL
----

query I rowsort
SELECT + col1 - - col1 * + 8 AS col1 FROM tab0 AS cor0
----
189
729
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT ALL CAST( - col0 AS SIGNED ) col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4120
SELECT ALL CAST ( - col0 AS INTEGER ) col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT - 53 * + - ( - + MIN( DISTINCT - - ( col0 ) ) ) + MAX( + 57 ) AS col1 FROM tab1
----
-2646

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - 53 * + - ( - + MIN ( DISTINCT - - ( col0 ) ) ) + MAX ( + 57 ) AS col1 FROM tab1
----
-2646

query I rowsort
SELECT ALL col0 - + 90 FROM tab0
----
-3
-75
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL + CAST( - 97 AS SIGNED ) - - 16 FROM tab2 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL + CAST ( - 97 AS INTEGER ) - - 16 FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT + MIN( - 58 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - 89 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT + MIN ( - 58 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - 89 AND NULL
----
NULL

query I rowsort
SELECT - + 6 * - 36 + - col1 FROM tab1 AS cor0
----
169
202
211

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT SUM( - 12 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4128
SELECT SUM ( - 12 ) FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 77 * - 44 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4129
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 77 * - 44 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - col1 IS NULL
----

query I rowsort
SELECT ALL + - 68 * ( + 99 ) + col1 AS col1 FROM tab1 AS cor0
----
-6685
-6718
-6727

query I rowsort
SELECT - ( - col0 ) * + col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, - col0 col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT ALL col0 DIV 40 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL col0 / 40 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT ( - COUNT( 86 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT ( - COUNT ( 86 ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + 88 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT 88, COUNT( * ) AS col2 FROM tab1 cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-4137
SELECT 88, COUNT ( * ) AS col2 FROM tab1 cor0
----
88
3

query II rowsort
SELECT - col2, - col1 * + 56 AS col0 FROM tab0 AS cor0
----
-10
-1176
-47
-4536
-99
-56

query II rowsort
SELECT - 62, col1 FROM tab1 AS cor0
----
-62
14
-62
47
-62
5

query I rowsort
SELECT + - 89 AS col1 FROM tab2 AS cor0 WHERE NOT 64 IS NOT NULL
----

query II rowsort
SELECT - col2 AS col0, - 36 FROM tab1 AS cor0
----
-59
-36
-68
-36
-96
-36

query I rowsort
SELECT ALL - + 15 FROM tab0 AS cor0 WHERE NOT 4 IS NOT NULL
----

query II rowsort
SELECT ALL col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query II rowsort
SELECT ALL - col2 AS col0, col2 FROM tab1 cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT DISTINCT + 44 / + + 52 * + - col0 AS col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) < + col0
----

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + 44 / + + 52 * + - col0 AS col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4146
SELECT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT + - col2 DIV 26 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4147
SELECT + - col2 / 26 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT col0 * - col1 * - col2 * col1 AS col2 FROM tab2 AS cor0
----
15178240
19527150
2751858

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4150
SELECT + - col2 DIV + 68, col2 AS col0 FROM tab0 AS cor0
----
-1
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-4150
SELECT + - col2 / + 68, col2 AS col0 FROM tab0 AS cor0
----
-1
99
0
10
0
47

query I rowsort
SELECT DISTINCT - col2 * 20 + - col1 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN col1 AND - 78
----
-1021
-1981
-221

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 45 ) / col2 IS NULL
----

query I rowsort
SELECT + ( + 63 ) FROM tab0
----
63
63
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT col0 DIV - col0 + - 15 + - col2 * 37 FROM tab0
----
-1755
-3679
-386

skipif mysql # not compatible
query I rowsort label-4155
SELECT col0 / - col0 + - 15 + - col2 * 37 FROM tab0
----
-1755
-3679
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL + 56 + COUNT( * ) col0 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4156
SELECT ALL + 56 + COUNT ( * ) col0 FROM tab1
----
59

query II rowsort
SELECT DISTINCT - col1 * col2 + - 54 AS col1, - col0 * col0 + + 17 + - col0 * 22 AS col2 FROM tab1
----
-1398
-3706
-3250
-10266
-349
-9078

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT COUNT( * ) + - - 26 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4158
SELECT COUNT ( * ) + - - 26 FROM tab2
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + + + 45 + col2 col0 FROM tab0 AS cor0
----
115
152
204

query III rowsort
SELECT * FROM tab2 cor0 WHERE 81 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT + col1 DIV + 6 + - 43 FROM tab1
----
-36
-41
-43

skipif mysql # not compatible
query I rowsort label-4161
SELECT + col1 / + 6 + - 43 FROM tab1
----
-36
-41
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT + 93 * CAST( 59 AS SIGNED ) + - col0 FROM tab1
----
5396
5402
5436

skipif mysql # not compatible
query I rowsort label-4162
SELECT + 93 * CAST ( 59 AS INTEGER ) + - col0 FROM tab1
----
5396
5402
5436

query I rowsort
SELECT DISTINCT + col1 - + 32 AS col0 FROM tab0
----
-11
-31
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT DISTINCT + 2 + - CAST( - 63 + - 46 AS SIGNED ) AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT + 2 + - CAST ( - 63 + - 46 AS INTEGER ) AS col1 FROM tab2
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT COUNT( * ) DIV 30 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT COUNT ( * ) / 30 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab2 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 25 AS col0 FROM tab2 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 25 AS col0 FROM tab2 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND CAST ( col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT 38 DIV 85 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT 38 / 85 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT ALL ( 99 ) DIV col2 + ( - 99 ) AS col0 FROM tab1
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL ( 99 ) / col2 + ( - 99 ) AS col0 FROM tab1
----
-98
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 75 NOT BETWEEN col2 AND ( col0 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT MAX( 17 ) + + SUM( DISTINCT col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT MAX ( 17 ) + + SUM ( DISTINCT col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2 / - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT MAX( DISTINCT + 83 ) AS col1 FROM tab0 WHERE NOT 58 = - 37
----
83

skipif mysql # not compatible
query I rowsort label-4174
SELECT MAX ( DISTINCT + 83 ) AS col1 FROM tab0 WHERE NOT 58 = - 37
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT ( ( 52 ) ) AS col2 FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) - col2 > - col1
----

skipif mysql # not compatible
query I rowsort label-4175
SELECT ( ( 52 ) ) AS col2 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) - col2 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - 83 + MAX( + col1 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4176
SELECT - 83 + MAX ( + col1 ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL + 48 + - COUNT( * ) * + 17 AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + 48 + - COUNT ( * ) * + 17 AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL - ( ( col2 ) ) FROM tab1 WHERE NOT 22 + + 94 BETWEEN ( 69 / + col0 ) AND col0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 38 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT MIN( ALL 48 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT MIN ( ALL 48 ) FROM tab1
----
48

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 97 + 57 <> - 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 - col0 * + col0 FROM tab2
----
-2167
-4173
-5692

query I rowsort
SELECT DISTINCT ( 78 ) - col0 FROM tab1 AS cor0 WHERE NOT - ( col1 ) IS NULL
----
-13
-7
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4186
SELECT ALL COUNT( * ) DIV + 14 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4186
SELECT ALL COUNT ( * ) / + 14 col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 13 + + col2 * col1 ) <> - col0 * ( - 82 )
----

query I rowsort
SELECT ALL - col2 * col2 + - 22 AS col0 FROM tab0 WHERE NULL IS NULL
----
-122
-2231
-9823

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( + 28 * col1 ) AND col2 / col2 + col0
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( + ( + 52 ) ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT COUNT( * ) * ( - 39 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-351

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT COUNT ( * ) * ( - 39 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-351

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( 5 ) ) NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col0 + - col2 >= col1
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col2 + col0 col1 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE ( + 76 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - 50 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 50 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT - col1 DIV 4 + col1 FROM tab2
----
39
51
58

skipif mysql # not compatible
query I rowsort label-4199
SELECT - col1 / 4 + col1 FROM tab2
----
39
51
58

query I rowsort
SELECT DISTINCT - 24 * - col1 * col0 + 90 AS col1 FROM tab1
----
102738
10290
17226

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 79 ) <> + ( - col0 ) * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN ( + col1 * + col1 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + col1 AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 47 ) <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL - MAX( DISTINCT + + 40 ) - + 24 AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - MAX ( DISTINCT + + 40 ) - + 24 AS col2 FROM tab1
----
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 IN ( 21 + 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + 23 IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - col1 col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > ( - col1 + 21 ) AND NOT NULL BETWEEN - col2 AND + col2 / + 51
----

query I rowsort
SELECT + col0 - - col1 + + col1 FROM tab1 cor0
----
185
79
95

query I rowsort
SELECT + + 38 + + 90 + 59 AS col0 FROM tab0 AS cor0
----
187
187
187

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT 52 DIV - 88 + + col2 + col0 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-4213
SELECT 52 / - 88 + + col2 + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT - ( - col2 ) * - col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT - col0 * 3 FROM tab2
----
-138
-192
-225

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE 53 + + 94 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4217
SELECT - ( + CAST( 35 AS SIGNED ) ) DIV COUNT( * ) col0 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4217
SELECT - ( + CAST ( 35 AS INTEGER ) ) / COUNT ( * ) col0 FROM tab2 AS cor0
----
-11

query II rowsort
SELECT - 67 AS col0, col0 FROM tab0 AS cor0
----
-67
15
-67
87
-67
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col2 col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT MAX( col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT - 39 * 56 AS col2 FROM tab1 AS cor0
----
-2184

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 71 NOT BETWEEN + - ( col2 ) AND + col0
----
46
51
23
64
77
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 76 ) IS NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT - ( + col1 ) < col0 + + col1
----

query I rowsort
SELECT + col2 / col2 FROM tab1 WHERE NOT ( - 17 ) * 39 NOT BETWEEN col2 AND 13 / - col2 + 6
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN + col1 AND ( 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 12 FROM tab2 WHERE NOT NULL IS NOT NULL
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT col1 DIV col1 DIV - col2 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4230
SELECT col1 / col1 / - col2 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( + 20 ) FROM tab0 AS cor0
----
20

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col1 ) NOT IN ( - col1 )
----

query I rowsort
SELECT ALL col1 * + col1 * + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 13 )
----

query I rowsort
SELECT + col1 * + 59 FROM tab2 AS cor0 WHERE NOT col2 + - col0 BETWEEN NULL AND + col1 * + 82
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL IS NULL ) OR - col0 NOT BETWEEN ( 90 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + 79
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4237
SELECT + col2 + 49 FROM tab0 WHERE ( col1 * 20 + - col0 ) NOT BETWEEN col2 + - col0 * - 78 AND - CAST( + col1 AS DECIMAL )
----
148
59
96

skipif mysql # not compatible
query I rowsort label-4237
SELECT + col2 + 49 FROM tab0 WHERE ( col1 * 20 + - col0 ) NOT BETWEEN col2 + - col0 * - 78 AND - CAST ( + col1 AS REAL )
----
148
59
96

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab2 WHERE ( col2 + col1 ) IS NULL
----

query I rowsort
SELECT + + col2 * + 93 AS col1 FROM tab2 cor0
----
2139
3720
5394

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 > - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 52 AS col1 FROM tab2 cor0
----
52
52
52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + ( + + 32 ) col1 FROM tab2 AS cor0
----
19
35
45

query I rowsort
SELECT DISTINCT - col1 * 30 FROM tab0
----
-2430
-30
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT DISTINCT - 29 + + + col1 + CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
-1
-20
8

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT - 29 + + + col1 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
-1
-20
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4246
SELECT + CAST( ( col2 ) AS DECIMAL ) col0 FROM tab0 WHERE - - ( + col1 ) NOT BETWEEN ( - col1 ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4246
SELECT + CAST ( ( col2 ) AS REAL ) col0 FROM tab0 WHERE - - ( + col1 ) NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT 39 + + + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4247
SELECT 39 + + + COUNT ( * ) FROM tab2
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) NOT IN ( - 43 * col2 * - col1 - 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - col0 + + + 62 AS col2 FROM tab0
----
-163
-7507
-9347

query II rowsort
SELECT DISTINCT - col1 + col2 - + + col0 * col2 AS col2, - 33 * + + col1 AS col0 FROM tab0
----
-739
-2673
-881
-693
-9505
-33

query I rowsort
SELECT DISTINCT col2 * ( + 25 ) - - - col1 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-1975
-2972
-4852

query I rowsort
SELECT DISTINCT - col0 * + 73 FROM tab0 cor0
----
-1095
-6351
-7081

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 52 * - + ( - ( ( + col0 ) ) ) <> ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 35 * col0 + - col0 - col1 FROM tab0 cor0
----
2937
3297
429

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4255
SELECT ALL + col0, + col1 * - - col2 / - CAST( NULL AS SIGNED ) + - ( + col1 ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4255
SELECT ALL + col0, + col1 * - - col2 / - CAST ( NULL AS INTEGER ) + - ( + col1 ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 * + col2 * - - col2 * col2 / - 38 + 51 * + 46 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4257
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) <= ( - col1 - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4257
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) <= ( - col1 - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL + CAST( - 21 AS SIGNED ) FROM tab2 cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + CAST ( - 21 AS INTEGER ) FROM tab2 cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) >= col1 + - col1 * + 39
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 * + 0 / - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT - MIN( + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - MIN ( + col1 ) FROM tab1
----
-5

query I rowsort
SELECT ( ( - 93 ) ) AS col1 FROM tab2
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4263
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4263
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT MAX( + - 85 ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-4264
SELECT MAX ( + - 85 ) FROM tab0
----
-85

query II rowsort
SELECT + 36 AS col0, - col2 AS col0 FROM tab1
----
36
-59
36
-68
36
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT - COUNT( * ) * - - 22 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT - COUNT ( * ) * - - 22 FROM tab1
----
-66

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT - col1 + + col1 IS NULL
----
1
21
81

query I rowsort
SELECT ALL - col2 + col2 FROM tab2 WHERE NOT NULL NOT IN ( 71 )
----

query I rowsort
SELECT AVG ( + col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4270
SELECT DISTINCT - 66 AS col0, col0 DIV - ( col2 ) FROM tab1 AS cor0
----
-66
-1
-66
0

skipif mysql # not compatible
query II rowsort label-4270
SELECT DISTINCT - 66 AS col0, col0 / - ( col2 ) FROM tab1 AS cor0
----
-66
-1
-66
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + col1 BETWEEN ( col1 ) AND ( + + col0 ) - - ( col0 ) * 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - 90 FROM tab1 cor0
----
-5310
-6120
-8640

query II rowsort
SELECT DISTINCT col2 AS col0, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col2 + col1 col0 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT CAST( - ( - MAX( ALL col1 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4275
SELECT CAST ( - ( - MAX ( ALL col1 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 86 BETWEEN + col1 AND ( col1 )
----

query II rowsort
SELECT - 82 / col0 * + col0 * - 56, + 27 AS col1 FROM tab0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 92 NOT BETWEEN 77 AND - col2 / + + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT + MIN( ALL - 11 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + MIN ( ALL - 11 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4280
SELECT ALL - col2 * - - 42 / CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - col2 * - - 42 / CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - + col0 + 20 FROM tab0 AS cor0
----
-46
-76
86

query I rowsort
SELECT - ( 78 ) + - col2 AS col2 FROM tab0 AS cor0
----
-125
-177
-88

query II rowsort
SELECT DISTINCT + col1 * + + col0 AS col1, col1 AS col0 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query I rowsort
SELECT + 81 * + + 20 AS col0 FROM tab2 AS cor0
----
1620
1620
1620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4285
SELECT CAST( NULL AS SIGNED ) * + 95 AS col2, 12 + + - 97 FROM tab2 AS cor0
----
NULL
-85
NULL
-85
NULL
-85

skipif mysql # not compatible
query II rowsort label-4285
SELECT CAST ( NULL AS INTEGER ) * + 95 AS col2, 12 + + - 97 FROM tab2 AS cor0
----
NULL
-85
NULL
-85
NULL
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT - SUM( ALL + ( - ( + col1 ) ) ) * 86 FROM tab2 AS cor0
----
16770

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT - SUM ( ALL + ( - ( + col1 ) ) ) * 86 FROM tab2 AS cor0
----
16770

query II rowsort
SELECT - - 76, col0 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND + col0 * 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT ALL - 68 DIV - 13 AS col2 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - 68 / - 13 AS col2 FROM tab1
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT ( - + COUNT( * ) ) + 95 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT ( - + COUNT ( * ) ) + 95 FROM tab0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT 52 DIV - + COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-4290
SELECT 52 / - + COUNT ( * ) FROM tab2
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4291
SELECT + + ( + - CAST( NULL AS DECIMAL ) ) + + col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT + + ( + - CAST ( NULL AS REAL ) ) + + col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL 67 + ( + COUNT( * ) ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL 67 + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
70

query I rowsort
SELECT DISTINCT col2 * + - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT + 36 * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-324

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + 36 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT + CAST( NULL AS SIGNED ) / - col1 / + - 9 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT + CAST ( NULL AS INTEGER ) / - col1 / + - 9 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL col1 * CAST( + 95 AS SIGNED ) FROM tab2 AS cor0
----
4845
6365
7315

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL col1 * CAST ( + 95 AS INTEGER ) FROM tab2 AS cor0
----
4845
6365
7315

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4298
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( - CAST( 37 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4298
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( - CAST ( 37 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT - CAST( 80 AS SIGNED ) FROM tab2 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-4299
SELECT - CAST ( 80 AS INTEGER ) FROM tab2 AS cor0
----
-80
-80
-80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + SUM( DISTINCT + - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4301
SELECT + SUM ( DISTINCT + - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT ALL + 76 FROM tab1 WHERE NOT col2 * - 91 * - - col0 + ( - 23 ) + - + col1 IS NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4303
SELECT + SUM( DISTINCT - 63 ), - 92 AS col0 FROM tab0
----
-63
-92

skipif mysql # not compatible
query II rowsort label-4303
SELECT + SUM ( DISTINCT - 63 ), - 92 AS col0 FROM tab0
----
-63
-92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - 98 * + ( - col0 ) + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT + col1 + CAST( + col1 AS SIGNED ) * - col1 * + col1 + col0 FROM tab0 AS cor0
----
-531345
-9153
97

skipif mysql # not compatible
query I rowsort label-4305
SELECT + col1 + CAST ( + col1 AS INTEGER ) * - col1 * + col1 + col0 FROM tab0 AS cor0
----
-531345
-9153
97

query I rowsort
SELECT DISTINCT + + col0 + col2 * + col1 + col2 FROM tab1 AS cor0
----
1491
3355
439

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT + MAX( DISTINCT + 32 ) AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT + MAX ( DISTINCT + 32 ) AS col2 FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab1 WHERE + 30 / + col1 < ( + col1 * - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 8 * col2 * 62, col2 * + + col1 AS col0 FROM tab2 AS cor0
----
11408
1173
19840
3080
28768
3886

query I rowsort
SELECT + 42 * + + col2 * + col1 FROM tab2 cor0 WHERE - col0 / 36 - - col2 <= col0
----
129360
163212
49266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL + SUM( ALL 31 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + SUM ( ALL 31 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( 35 ) FROM tab1 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 - + + col2 col1 FROM tab1 AS cor0
----
-34
-43
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4314
SELECT + + COUNT( * ) col0 FROM tab0 cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4314
SELECT + + COUNT ( * ) col0 FROM tab0 cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 71 + + - col2 * col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT - COUNT( DISTINCT - 55 ) AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - COUNT ( DISTINCT - 55 ) AS col1 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4317
SELECT + col1 + - 96 + - + col2 + + 61 * - col0 / ( + CAST( NULL AS DECIMAL ) ) * - - 14 * - 65 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT + col1 + - 96 + - + col2 + + 61 * - col0 / ( + CAST ( NULL AS REAL ) ) * - - 14 * - 65 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT ( - - 26 ) / + CAST( NULL AS SIGNED ) + - ( + 65 ) + + 43 - COUNT( * ) * + 21 * - AVG ( - - col2 ) * + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT ( - - 26 ) / + CAST ( NULL AS INTEGER ) + - ( + 65 ) + + 43 - COUNT ( * ) * + 21 * - AVG ( - - col2 ) * + + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + col1 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + SUM( + col2 ) + + 5 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-4321
SELECT + SUM ( + col2 ) + + 5 FROM tab1
----
228

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT NULL <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL > + CAST( 18 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL > + CAST ( 18 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4324
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT - col1 * + - 25 * col0 AS col2 FROM tab1
----
10625
106925
17850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 WHERE NOT NULL NOT IN ( + + 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4327
SELECT ALL * FROM tab2 WHERE NULL <> col1 + CAST( + - col1 AS SIGNED ) + - 45
----

skipif mysql # not compatible
query III rowsort label-4327
SELECT ALL * FROM tab2 WHERE NULL <> col1 + CAST ( + - col1 AS INTEGER ) + - 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT DISTINCT col0 DIV + 6 AS col2 FROM tab1 AS cor0
----
14
15
8

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT col0 / + 6 AS col2 FROM tab1 AS cor0
----
14
15
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4329
SELECT ALL 65 DIV - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL 65 / - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4330
SELECT DISTINCT + - 40 DIV + ( 79 ) - ( + + COUNT( * ) ), 23 * - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
-66

skipif mysql # not compatible
query II rowsort label-4330
SELECT DISTINCT + - 40 / + ( 79 ) - ( + + COUNT ( * ) ), 23 * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT - COUNT( * ) + - + 14 * - 88 FROM tab0 AS cor0
----
1229

skipif mysql # not compatible
query I rowsort label-4331
SELECT - COUNT ( * ) + - + 14 * - 88 FROM tab0 AS cor0
----
1229

query I rowsort
SELECT 48 * - + col2 + - - ( col1 ) AS col1 FROM tab1 AS cor0
----
-2827
-3217
-4594

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 34 + - col2 AS col2 FROM tab0
----
-13
-65
24

query II rowsort
SELECT DISTINCT + ( + - col0 ) * - + ( + 64 ), 6 * col0 AS col2 FROM tab2 WHERE - col1 >= - col2 - + - col2
----

query II rowsort
SELECT ALL + col0 AS col0, col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col0
----

query I rowsort
SELECT DISTINCT col1 * - 53 FROM tab2 AS cor0
----
-2703
-3551
-4081

query II rowsort
SELECT 77 * + 88, - 75 AS col1 FROM tab2 AS cor0
----
6776
-75
6776
-75
6776
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - MIN( ALL - 23 ) AS col1 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4340
SELECT - MIN ( ALL - 23 ) AS col1 FROM tab1 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT col0 DIV - ( + + col0 ) - col2 - 21 + + + col1 FROM tab0 AS cor0
----
-11
-120
12

skipif mysql # not compatible
query I rowsort label-4341
SELECT col0 / - ( + + col0 ) - col2 - 21 + + + col1 FROM tab0 AS cor0
----
-11
-120
12

query I rowsort
SELECT DISTINCT 74 * - 72 + + - 14 - + 68 * - col0 * col1 * + - ( - + ( - + 26 ) ) + + 26 * + 11 * col0 * 41 + - ( 81 ) FROM tab1
----
-6500093
-669749
239887

query III rowsort
SELECT * FROM tab2 WHERE - col0 = ( - ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 44 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT + col0 + - - col1 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT + + 13 * - SUM( col2 ) * - - 79 - + 33 + - 20 + + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT + + 13 * - SUM ( col2 ) * - - 79 - + 33 + - 20 + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 98 col1 FROM tab0 cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( + col0, - col1 / + 21 / - - 46 - - col0 * col1 )
----

query II rowsort
SELECT ALL + 30 AS col0, 14 + 11 + col1 * - 1 + - col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
30
-39
30
-85
30
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4350
SELECT ALL CAST( + 65 AS SIGNED ) col0, col1 FROM tab0 AS cor0
----
65
1
65
21
65
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4350
SELECT ALL CAST ( + 65 AS INTEGER ) col0, col1 FROM tab0 AS cor0
----
65
1
65
21
65
81

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col1 / - - 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT DISTINCT - 67 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - 67 / + col1 AS col1 FROM tab2 AS cor0
----
-1
0

query II rowsort
SELECT - col2, - col1 AS col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + MAX( DISTINCT + + col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4354
SELECT + MAX ( DISTINCT + + col2 ) FROM tab2 cor0
----
58

query I rowsort
SELECT - col1 * 2 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT 19 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-4356
SELECT 19 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT DISTINCT COUNT( ALL + - CAST( - 50 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT COUNT ( ALL + - CAST ( - 50 AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL + 8 * - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + 8 * - COUNT ( * ) FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT - COUNT( * ) * - 94 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COUNT ( * ) * - 94 FROM tab2 AS cor0
----
282

query I rowsort
SELECT DISTINCT - 3 * + - ( 32 ) * 78 + - - 9 FROM tab1 AS cor0
----
7497

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - - 53 * + - COUNT( * ) FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-4361
SELECT - - 53 * + - COUNT ( * ) FROM tab2 AS cor0
----
-159

query I rowsort
SELECT + 57 * + col0 + + 18 - col1 * - 87 + col0 * col2 AS col2 FROM tab0 cor0
----
15237
7674
8625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL + + MIN( DISTINCT + col2 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4364
SELECT ALL + + MIN ( DISTINCT + col2 ) col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT ALL - col2 + + - col0 AS col1 FROM tab2
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT DISTINCT - col0 + + col0 DIV + col2 + + col1 FROM tab1
----
-37
-43
-79

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT - col0 + + col0 / + col2 + + col1 FROM tab1
----
-37
-43
-79

query I rowsort
SELECT - col1 * + 53 + - col2 + + col0 AS col0 FROM tab2
----
-2680
-3534
-4057

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - COUNT( * ) + + - 21 AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4369
SELECT - COUNT ( * ) + + - 21 AS col0 FROM tab1
----
-24

query I rowsort
SELECT ALL 27 FROM tab0 AS cor0 WHERE ( + - col0 ) + col1 < - + 29 * + - 21
----
27
27
27

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT - 98 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 61 * - 16 - - - col2 FROM tab2
----
918
936
953

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL - COUNT( * ) + + 29 col0 FROM tab0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4375
SELECT ALL - COUNT ( * ) + + 29 col0 FROM tab0
----
26

query I rowsort
SELECT DISTINCT - 30 - col1 FROM tab2 AS cor0
----
-107
-81
-97

query I rowsort
SELECT + + col1 - - + col2 AS col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL - + 29 FROM tab1 AS cor0 WHERE NULL >= + 55
----

query II rowsort
SELECT - col0, + ( 8 ) AS col0 FROM tab1 cor0
----
-51
8
-85
8
-91
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 2 AS col0 FROM tab2 AS cor0
----
-51
2
-67
2
-77
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT ( + - COUNT( * ) ) AS col1, - COUNT( * ) AS col1 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4382
SELECT ( + - COUNT ( * ) ) AS col1, - COUNT ( * ) AS col1 FROM tab1
----
-3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4383
SELECT + MIN( col2 ) DIV - 2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4383
SELECT + MIN ( col2 ) / - 2 FROM tab2
----
-11

query II rowsort
SELECT DISTINCT - + 23 * + col1 AS col1, - col2 * - 63 AS col0 FROM tab0 WHERE NOT + + col2 * + col2 < + col1
----
-1863
2961
-23
6237
-483
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT DISTINCT - ( CAST( + col1 AS SIGNED ) ) * - col0 AS col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - ( CAST ( + col1 AS INTEGER ) ) * - col0 AS col0 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT col0 * - col2 AS col1, - col2 FROM tab1
----
-4896
-96
-5015
-59
-6188
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT ( + 75 ) AS col2 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
75
75
75

skipif mysql # not compatible
query I rowsort label-4387
SELECT ( + 75 ) AS col2 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
75
75
75

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( + - col2, - 74, - col0 - - 39 / - - ( 20 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4389
SELECT ALL COUNT( * ) + 92 - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL COUNT ( * ) + 92 - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4390
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) + 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4390
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) + 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ( + 91 ) + MAX( + - col0 ) AS col0 FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-4391
SELECT ( + 91 ) + MAX ( + - col0 ) AS col0 FROM tab1 cor0
----
40

query I rowsort
SELECT ALL + col2 * + + 82 FROM tab0 AS cor0
----
3854
8118
820

query I rowsort
SELECT - col1 + - - ( - col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
-185
-79
-95

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE + 79 * - - 22 > - col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT + - 16 * + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + - 16 * + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL - - col1 FROM tab0 WHERE ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - - col1 FROM tab0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL - CAST( - 37 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - CAST ( - 37 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 63 + ( - col0 ) FROM tab2
----
-109
-127
-138

query I rowsort
SELECT DISTINCT 33 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - 25 * - col0 * + 43 + - col2 FROM tab2
----
-1137373
-2752040
-4676308

query I rowsort
SELECT ALL + 37 + + + col1 FROM tab1
----
42
51
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT DISTINCT + 33 * - col1 + col1 * + CAST( - 84 AS SIGNED ) + col2 AS col0 FROM tab0 WHERE NULL <= + - 15 + - col1
----

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + 33 * - col1 + col1 * + CAST ( - 84 AS INTEGER ) + col2 AS col0 FROM tab0 WHERE NULL <= + - 15 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 - + col2 + + col2 col2 FROM tab0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + ( - - col1 ) col1 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 - col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 96 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 32 + - col0 FROM tab2 AS cor0
----
-14
-32
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4408
SELECT - CAST( + + 90 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-3
-75
7

skipif mysql # not compatible
query I rowsort label-4408
SELECT - CAST ( + + 90 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-3
-75
7

query I rowsort
SELECT DISTINCT 38 + + + 9 FROM tab2
----
47

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN col0 AND - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + - 55 ) FROM tab2 cor0
----
-55
-55
-55

query I rowsort
SELECT - - 18 * - + col0 AS col0 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT DISTINCT + - COUNT( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + - COUNT ( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT DISTINCT ( + 69 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT ( + 69 ) / col2 AS col1 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4416
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 <= - CAST( col2 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4416
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 <= - CAST ( col2 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 91, ( col1 ) AS col0 FROM tab1
----
91
14
91
47
91
5

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4419
SELECT DISTINCT + COUNT( 2 ) AS col1, - ( + 88 ) AS col0 FROM tab2
----
3
-88

skipif mysql # not compatible
query II rowsort label-4419
SELECT DISTINCT + COUNT ( 2 ) AS col1, - ( + 88 ) AS col0 FROM tab2
----
3
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-4420
SELECT ALL col0 AS col1, col0 DIV col2 FROM tab0
----
15
0
87
8
97
0

skipif mysql # not compatible
query II rowsort label-4420
SELECT ALL col0 AS col1, col0 / col2 FROM tab0
----
15
0
87
8
97
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4421
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 23 ) AND + CAST( - 39 AS DECIMAL ) + 5 - + - col2
----

skipif mysql # not compatible
query III rowsort label-4421
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 23 ) AND + CAST ( - 39 AS REAL ) + 5 - + - col2
----

query I rowsort
SELECT - + col1 + - 65 AS col0 FROM tab2 AS cor0
----
-116
-132
-142

query I rowsort
SELECT ALL - - 3 + col1 + - col0 FROM tab0 AS cor0
----
-63
-93
69

query I rowsort
SELECT ALL - - col0 * + - col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col1 * ( - col1 ) - - 67 AS col0 FROM tab2 AS cor0
----
2668
4556
5996

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT + 65 DIV 55 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4426
SELECT + 65 / 55 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - + MIN( ALL + - col0 ) * + + 38 AS col2 FROM tab2 AS cor0
----
2850

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - + MIN ( ALL + - col0 ) * + + 38 AS col2 FROM tab2 AS cor0
----
2850

query I rowsort
SELECT ALL 50 * 57 FROM tab2
----
2850
2850
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL COUNT( * ) + - + 49 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL COUNT ( * ) + - + 49 FROM tab1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT DISTINCT - col0 * 15 DIV col2 AS col0 FROM tab2
----
-19
-24
-30

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT - col0 * 15 / col2 AS col0 FROM tab2
----
-19
-24
-30

query I rowsort
SELECT ALL + col0 + + col1 * + - ( + col2 ) FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT DISTINCT col0 + - 1 FROM tab2
----
45
63
74

query I rowsort
SELECT + 89 * + + col2 * - + ( - col1 ) + + + col0 + - col2 FROM tab0
----
18767
338791
8809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 2 + + + col2 * - col2 + + 13 col2, 21 FROM tab2
----
-1585
21
-3349
21
-514
21

query I rowsort
SELECT + + 54 + - col0 FROM tab0 AS cor0
----
-33
-43
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT ALL + 76 DIV - 41 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL + 76 / - 41 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 / col1 IS NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( - 69 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - 87 AS col1 FROM tab1
----
-4437
-7395
-7917

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT DISTINCT + col1 DIV col2 * - col2 - col1 * + ( col2 ) FROM tab2 AS cor0
----
-1219
-3120
-3944

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT + col1 / col2 * - col2 - col1 * + ( col2 ) FROM tab2 AS cor0
----
-1219
-3120
-3944

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL - MIN( ALL 61 ) col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4442
SELECT ALL - MIN ( ALL 61 ) col0 FROM tab1 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 96 col0, - col2 FROM tab1
----
-96
-59
-96
-68
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - ( - col0 ) ) col1 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT - col2, - 84 AS col1 FROM tab1
----
-59
-84
-68
-84
-96
-84

query II rowsort
SELECT - col1 * - - ( col2 ) * col1 + - col2 AS col2, col1 + + col0 FROM tab1
----
-150280
138
-1534
90
-18912
65

query I rowsort
SELECT DISTINCT - col2 * 7 AS col0 FROM tab1 AS cor0
----
-413
-476
-672

query I rowsort
SELECT ALL - + 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT DISTINCT + 70 FROM tab0 WHERE NULL NOT BETWEEN - 8 + - col2 AND + col2
----

query I rowsort
SELECT ALL - col1 + col0 * - col2 AS col1 FROM tab2
----
-1109
-2637
-4417

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT 89 + - SUM( col1 ) * + 72 col0 FROM tab0 AS cor0
----
-7327

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4451
SELECT 89 + - SUM ( col1 ) * + 72 col0 FROM tab0 AS cor0
----
-7327

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + - 85 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + 8 + + 69 - - 73 * + COUNT( * ) FROM tab0 AS cor0
----
296

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + 8 + + 69 - - 73 * + COUNT ( * ) FROM tab0 AS cor0
----
296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col2 ) col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 4 + 75 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT - - col1 + - 57 FROM tab2 AS cor0
----
-6
10
20

query I rowsort
SELECT DISTINCT + col2 * + 74 FROM tab2 AS cor0
----
1702
2960
4292

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4458
SELECT * FROM tab2 AS cor0 WHERE - col1 + - CAST( NULL AS DECIMAL ) BETWEEN NULL AND - - col2 + + ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-4458
SELECT * FROM tab2 AS cor0 WHERE - col1 + - CAST ( NULL AS REAL ) BETWEEN NULL AND - - col2 + + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL 59 + + + MIN( ALL + - 56 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL 59 + + + MIN ( ALL + - 56 ) FROM tab2
----
3

query II rowsort
SELECT col0 * - col2, col2 AS col0 FROM tab1
----
-4896
96
-5015
59
-6188
68

query I rowsort
SELECT DISTINCT - 87 + col2 FROM tab2
----
-29
-47
-64

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL >= + col0 * - 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 99 - + 40 col0, 56 FROM tab0
----
-139
56
-139
56
-139
56

query I rowsort
SELECT - - col0 + + - col1 - 62 FROM tab2 AS cor0
----
-54
-67
-75

query I rowsort
SELECT ALL + + 2 AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + 88 / + 73 * col1 IS NOT NULL
----

query II rowsort
SELECT + 81, col2 + + 5 FROM tab0 WHERE NOT ( NULL NOT BETWEEN ( NULL ) AND + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL COUNT( * ) FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1, tab1 AS cor0 WHERE - + 65 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4470
SELECT * FROM tab0 WHERE NOT - ( - col1 ) <> - CAST( - + 41 AS SIGNED ) * - col2 / + 1
----

skipif mysql # not compatible
query III rowsort label-4470
SELECT * FROM tab0 WHERE NOT - ( - col1 ) <> - CAST ( - + 41 AS INTEGER ) * - col2 / + 1
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4472
SELECT ALL COUNT( * ) DIV + CAST( + + SUM( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL COUNT ( * ) / + CAST ( + + SUM ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + - COUNT( + 14 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4473
SELECT + - COUNT ( + 14 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT - 33 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4474
SELECT - 33 / - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - MIN( DISTINCT ( - 89 ) ) * + 65 FROM tab2 AS cor0
----
5785

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - MIN ( DISTINCT ( - 89 ) ) * + 65 FROM tab2 AS cor0
----
5785

query I rowsort
SELECT DISTINCT 66 * - col0 FROM tab0
----
-5742
-6402
-990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col0 col2, col2 FROM tab2
----
-2116
23
-4096
40
-5625
58

query II rowsort
SELECT ALL + ( col0 ) AS col0, col1 AS col0 FROM tab2 cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + - 98 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + + ( 4 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + MAX( - - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4481
SELECT + MAX ( - - col2 ) AS col1 FROM tab1 AS cor0
----
96

query II rowsort
SELECT DISTINCT col0 AS col2, col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 91 + - + col1 + - 82 + - col2 - - + 8 - + 56 - + + 59 col1 FROM tab0 AS cor0
----
-2131
-380
-7688

query I rowsort
SELECT ALL - + ( - - 48 ) AS col0 FROM tab2 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4485
SELECT DISTINCT col0 + - col1 - - - 16 * col1 - - + ( - + col0 ) col1, col2 * - CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
-1377
NULL
-17
NULL
-357
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4485
SELECT DISTINCT col0 + - col1 - - - 16 * col1 - - + ( - + col0 ) col1, col2 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
-1377
NULL
-17
NULL
-357
NULL

query I rowsort
SELECT ALL ( - 98 ) + + + col2 AS col0 FROM tab2
----
-40
-58
-75

query I rowsort
SELECT DISTINCT - col1 + - - 1 + + + 32 FROM tab0
----
-48
12
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + 57 + - + COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4488
SELECT + 57 + - + COUNT ( * ) FROM tab1
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 NOT IN ( + col1, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT MAX( + 77 ) + + SUM( - col2 ), 63 AS col0 FROM tab1
----
-146
63

skipif mysql # not compatible
query II rowsort label-4490
SELECT MAX ( + 77 ) + + SUM ( - col2 ), 63 AS col0 FROM tab1
----
-146
63

query I rowsort
SELECT DISTINCT 53 * col1 * 47 + - col1 FROM tab1
----
117030
12450
34860

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + COUNT( * ) - + - 2 - + - COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + COUNT ( * ) - + - 2 - + - COUNT ( * ) FROM tab0
----
8

query I rowsort
SELECT ALL - col1 * - col0 + - + ( + col2 ) FROM tab1
----
366
4209
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 37 AS col2, 83 col1 FROM tab1 AS cor0
----
37
83
37
83
37
83

query I rowsort
SELECT ALL 89 AS col2 FROM tab0 AS cor0 WHERE + 18 IS NOT NULL
----
89
89
89

query I rowsort
SELECT col1 * 13 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1001
663
871

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + - MAX( ALL ( col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4497
SELECT + - MAX ( ALL ( col0 ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT - CAST( NULL AS SIGNED ) - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT DISTINCT - - col1 * - + ( - col2 ) - - CAST( NULL AS SIGNED ) + - 56 + - col0 - col1 / + col2 + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - - col1 * - + ( - col2 ) - - CAST ( NULL AS INTEGER ) + - 56 + - col0 - col1 / + col2 + - col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 4 + - - col0 * 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 18 * - + 12 + + 70 * col0 FROM tab0 AS cor0
----
5874
6574
834

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL 94 * + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL 94 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT + - col1 + + col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col2 + - - col0 * - col0 AS col1 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT ALL - - 81 FROM tab0 WHERE - + 54 IS NOT NULL
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4506
SELECT - 95 DIV CAST( col2 AS SIGNED ) + - + ( + 72 ) FROM tab1
----
-72
-73
-73

skipif mysql # not compatible
query I rowsort label-4506
SELECT - 95 / CAST ( col2 AS INTEGER ) + - + ( + 72 ) FROM tab1
----
-72
-73
-73

query II rowsort
SELECT ALL - 25 + - - ( + - col0 ), + col0 - - col2 - - col1 AS col2 FROM tab2
----
-100
200
-71
120
-89
181

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4508
SELECT CAST( NULL AS SIGNED ) AS col2, ( - col1 ) FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-4508
SELECT CAST ( NULL AS INTEGER ) AS col2, ( - col1 ) FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT ALL 15 DIV + + col1 AS col2 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL 15 / + + col1 AS col2 FROM tab1
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + COUNT( * ) * + MIN( + col2 ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4510
SELECT + COUNT ( * ) * + MIN ( + col2 ) AS col0 FROM tab0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 + - 5 col1 FROM tab0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + - col2 * - - 68 col0 FROM tab2 cor0
----
-1518
-2656
-3869

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT DISTINCT COUNT( + col2 ) + + + ( + MIN( + + col1 ) ) AS col2, COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4513
SELECT DISTINCT COUNT ( + col2 ) + + + ( + MIN ( + + col1 ) ) AS col2, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT - - COUNT( * ) DIV SUM( ALL - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT - - COUNT ( * ) / SUM ( ALL - col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col0 * + + 99 FROM tab0 AS cor0
----
1485
8613
9603

query I rowsort
SELECT ALL - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 col2 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - + 95 * col0 FROM tab0 AS cor0
----
-1425
-8265
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 38 ) col0 FROM tab2
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL - 92 + + + COUNT( - ( - col1 ) ) AS col1 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - 92 + + + COUNT ( - ( - col1 ) ) AS col1 FROM tab1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT MIN( 9 ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT MIN ( 9 ) AS col0 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4522
SELECT DISTINCT 5 col0, col1 DIV - col0 FROM tab0
----
5
-5
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4522
SELECT DISTINCT 5 col0, col1 / - col0 FROM tab0
----
5
-5
5
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 - + col2 * col0 / + 95 NOT BETWEEN + + col1 - + 21 AND - + col0 * + col1
----

query I rowsort
SELECT ALL + 65 * - col1 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT ALL 39 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL 39 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 53 ) AS col1 FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT - + MIN( ALL col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4527
SELECT - + MIN ( ALL col1 ) FROM tab1 cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + 60 FROM tab1 AS cor0
----
14
60
47
60
5
60

query I rowsort
SELECT - 62 * - col2 AS col1 FROM tab1 cor0
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT - 81 * - COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT - 81 * - COUNT ( * ) FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT - ( + COUNT( DISTINCT - - 97 ) ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT - ( + COUNT ( DISTINCT - - 97 ) ) AS col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT - col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + MIN( DISTINCT + - 99 ) AS col0 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-4533
SELECT + MIN ( DISTINCT + - 99 ) AS col0 FROM tab2
----
-99

query I rowsort
SELECT ( col0 ) * - col2 - + - col2 + + col2 AS col1 FROM tab1 AS cor0
----
-4704
-4897
-6052

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - - MAX( + - col2 ) col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4535
SELECT - - MAX ( + - col2 ) col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT COUNT( DISTINCT - + col0 ) * + 50 AS col0 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) * + 50 AS col0 FROM tab1 AS cor0
----
150

query II rowsort
SELECT col1 AS col2, 47 FROM tab1 AS cor0
----
14
47
47
47
5
47

query II rowsort
SELECT DISTINCT - + 4, 75 AS col0 FROM tab0 AS cor0
----
-4
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4539
SELECT - + COUNT( * ) DIV 54 col0, + 84 FROM tab2 cor0
----
0
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4539
SELECT - + COUNT ( * ) / 54 col0, + 84 FROM tab2 cor0
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT + + COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE 14 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL - MAX( ALL - 86 ) + - + 0 AS col1 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - MAX ( ALL - 86 ) + - + 0 AS col1 FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - - SUM( + 74 ) FROM tab1 WHERE NULL IS NULL
----
222

skipif mysql # not compatible
query I rowsort label-4543
SELECT - - SUM ( + 74 ) FROM tab1 WHERE NULL IS NULL
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT 5 + + - col1 - col1 DIV ( - + col1 ) FROM tab2
----
-45
-61
-71

skipif mysql # not compatible
query I rowsort label-4544
SELECT 5 + + - col1 - col1 / ( - + col1 ) FROM tab2
----
-45
-61
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + MAX( + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + MAX ( + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 63 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4546
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 63 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 * - col1 * 36 * + 51 AS col1 FROM tab2 AS cor0
----
-10885644
-4775436
-8241804

query I rowsort
SELECT DISTINCT - col0 + + col1 + - 9 * col1 + - 68 AS col2 FROM tab2 WHERE + 62 BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - COUNT( + 59 ) - - 50 AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4549
SELECT - COUNT ( + 59 ) - - 50 AS col2 FROM tab1
----
47

query I rowsort
SELECT ALL + col1 - - - 16 + col2 * col2 FROM tab0 AS cor0
----
105
2274
9786

query I rowsort
SELECT - + col2 - 79 FROM tab1 AS cor0
----
-138
-147
-175

query I rowsort
SELECT DISTINCT - col0 + 62 FROM tab1 AS cor0
----
-23
-29
11

query I rowsort
SELECT ALL - - ( - + 30 ) - + + col2 + - 98 * col1 + + + col0 * col1 AS col0 FROM tab0 AS cor0
----
-130
-271
-6800

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4554
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = + CAST( + - col1 AS DECIMAL ) * col2
----

skipif mysql # not compatible
query III rowsort label-4554
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = + CAST ( + - col1 AS REAL ) * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT ALL - - COUNT( * ) DIV - 41 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4555
SELECT ALL - - COUNT ( * ) / - 41 col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + COUNT( * ) + + 25 AS col0 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4556
SELECT + COUNT ( * ) + + 25 AS col0 FROM tab1 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT ALL COUNT( col1 ) AS col0, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4557
SELECT ALL COUNT ( col1 ) AS col0, COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + 83 * COUNT( * ) * + + SUM( DISTINCT - col2 ) FROM tab2
----
-30129

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 83 * COUNT ( * ) * + + SUM ( DISTINCT - col2 ) FROM tab2
----
-30129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4559
SELECT ALL * FROM tab1 WHERE NOT - + CAST( - col2 AS SIGNED ) * + + 56 + - 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4559
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( - col2 AS INTEGER ) * + + 56 + - 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 48 AS col0 FROM tab1 WHERE NOT - col0 * col0 IS NULL
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL ( COUNT( ALL + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL ( COUNT ( ALL + col0 ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - 30 * + - col2 FROM tab2
----
1200
1740
690

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4563
SELECT + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - + 26 BETWEEN - col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT CAST( NULL AS SIGNED ) * 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4565
SELECT CAST ( NULL AS INTEGER ) * 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - col1, col0 + + col0 FROM tab1 WHERE - col2 * + - 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL + MAX( col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT - 97 + + 5 * + CAST( NULL AS SIGNED ) + + 80 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT - 97 + + 5 * + CAST ( NULL AS INTEGER ) + + 80 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 54 - + 60 AND - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 > + 60
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 72 col1 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT ( + - COUNT( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT ( + - COUNT ( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL - - 81 * - SUM( - - 38 ) FROM tab0 AS cor0
----
-9234

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL - - 81 * - SUM ( - - 38 ) FROM tab0 AS cor0
----
-9234

query I rowsort
SELECT ALL col2 * + 47 + - - col1 + - - 23 + 39 FROM tab2 AS cor0
----
1194
2019
2855

query I rowsort
SELECT ALL 22 * + - col1 FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT DISTINCT + col1 + + col1 - - - col0 AS col2 FROM tab1
----
-23
-75
3

query I rowsort
SELECT ALL + col2 * + + col2 * - + 5 + - - col0 AS col2 FROM tab0
----
-11030
-413
-48908

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - 91 BETWEEN col2 AND + col1 + + col1 - + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL SUM( + col2 ) + - + COUNT( - col2 ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL SUM ( + col2 ) + - + COUNT ( - col2 ) FROM tab2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT 18 * - COUNT( * ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4580
SELECT 18 * - COUNT ( * ) FROM tab0 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT + + 19 FROM tab1 AS cor0 WHERE + 2 NOT BETWEEN CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-4581
SELECT + + 19 FROM tab1 AS cor0 WHERE + 2 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col0 * - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL 4 * CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-236
-272
-384

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL 4 * CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-236
-272
-384

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL + 14 - - 41, + col1 FROM tab2 AS cor0
----
55
51
55
67
55
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + MAX( ALL col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4586
SELECT + MAX ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT + + 28 + + 99 + - - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT + + 28 + + 99 + - - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
130

query I rowsort
SELECT DISTINCT col2 - ( col0 ) AS col0 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 72 IS NOT NULL
----

query I rowsort
SELECT ALL - - 47 AS col1 FROM tab2 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 45, + col0 * + 96 col2 FROM tab2
----
45
4416
45
6144
45
7200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4593
SELECT CAST( NULL AS SIGNED ), col1 - - + 27 AS col1 FROM tab1
----
NULL
32
NULL
41
NULL
74

skipif mysql # not compatible
query II rowsort label-4593
SELECT CAST ( NULL AS INTEGER ), col1 - - + 27 AS col1 FROM tab1
----
NULL
32
NULL
41
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ( + COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4594
SELECT ( + COUNT ( * ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT + - 19 * - + 5 FROM tab2 AS cor0
----
95
95
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT - - 50 * - 31 * - + MIN( DISTINCT + 76 ) + - COUNT( * ) + - 81 FROM tab2 AS cor0
----
117716

skipif mysql # not compatible
query I rowsort label-4597
SELECT - - 50 * - 31 * - + MIN ( DISTINCT + 76 ) + - COUNT ( * ) + - 81 FROM tab2 AS cor0
----
117716

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT + 36 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT + 36 IS NOT NULL
----
0

query II rowsort
SELECT col2, col0 * + col0 FROM tab0 cor0
----
10
7569
47
225
99
9409

query I rowsort
SELECT DISTINCT 81 * + + 78 * - + col2 * col2 * + col1 FROM tab0 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT - 90 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + 87 * + col1 FROM tab0
----
1827
7047
87

query I rowsort
SELECT - 77 * col2 AS col2 FROM tab2
----
-1771
-3080
-4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col1 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 15 BETWEEN - col1 * - col0 AND - col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL - 44 * COUNT( * ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL - 44 * COUNT ( * ) FROM tab1
----
-132

query I rowsort
SELECT + col0 + - col2 * - col2 FROM tab2 WHERE NULL BETWEEN - col1 / - 32 AND NULL
----

query I rowsort
SELECT - col1 * + col0 - 42 AS col0 FROM tab2
----
-2388
-4970
-5067

query I rowsort
SELECT DISTINCT col0 * 60 AS col1 FROM tab2
----
2760
3840
4500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4610
SELECT DISTINCT * FROM tab1 WHERE NOT 41 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4610
SELECT DISTINCT * FROM tab1 WHERE NOT 41 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = 93
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + 47 + - 16 / + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN ( + ( col1 ) + - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - SUM( ALL - 64 ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - SUM ( ALL - 64 ) FROM tab2
----
192

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 IN ( + col0 )
----

query I rowsort
SELECT 69 AS col1 FROM tab2 WHERE NOT NULL = - col1 * 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - MIN( ALL + ( col2 ) ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4617
SELECT DISTINCT - MIN ( ALL + ( col2 ) ) col1 FROM tab1
----
-59

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( col0 * - ( + col1 ) ) NOT BETWEEN ( ( 80 ) ) * + 43 AND NULL
----
51
67
77

query I rowsort
SELECT ALL + ( 39 ) + + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 83 IS NULL
----

query I rowsort
SELECT + col1 * 33 AS col0 FROM tab1
----
1551
165
462

query I rowsort
SELECT DISTINCT 41 * 2 FROM tab1 WHERE 15 + - 1 * - 46 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 97 * + ( + col0 ) AS col2 FROM tab0
----
-1455
-8439
-9409

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - + 31 * col1 BETWEEN col1 + 43 AND ( + 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT + 98 + ( col0 ) DIV + 90 FROM tab2 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-4625
SELECT + 98 + ( col0 ) / + 90 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL + ( + COUNT( * ) ) - - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + ( + COUNT ( * ) ) - - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> ( 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
705
870
9603

query I rowsort
SELECT DISTINCT 52 - col0 FROM tab1 AS cor0
----
-33
-39
1

query I rowsort
SELECT DISTINCT col1 - 87 AS col1 FROM tab0 AS cor0
----
-6
-66
-86

query I rowsort
SELECT ALL 90 * col0 FROM tab0
----
1350
7830
8730

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - 94 BETWEEN ( 23 + - col2 ) AND NULL
----

query I rowsort
SELECT 10 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4634
SELECT ALL + CAST( NULL AS DECIMAL ) * - 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + CAST ( NULL AS REAL ) * - 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 93 - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 * - col0 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 / col0 AND col2 / col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + 46 * + COUNT( * ) col2 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4639
SELECT + 46 * + COUNT ( * ) col2 FROM tab1 AS cor0
----
138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 66 + 88 IS NOT NULL
----

query I rowsort
SELECT - - 81 AS col0 FROM tab2 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT 16 * - COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4642
SELECT 16 * - COUNT ( * ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 / 72 ) NOT IN ( col1 )
----

query I rowsort
SELECT 37 * col0 * col0 AS col0 FROM tab2
----
151552
208125
78292

query I rowsort
SELECT col2 * 73 AS col0 FROM tab2
----
1679
2920
4234

query I rowsort
SELECT ALL + 53 * + col0 AS col2 FROM tab1
----
2703
4505
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT COUNT( * ) * - 75 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-4648
SELECT COUNT ( * ) * - 75 FROM tab0
----
-225

query I rowsort
SELECT ALL 38 * + 64 * - col1 AS col0 FROM tab0
----
-196992
-2432
-51072

query I rowsort
SELECT 78 * col1 * 45 FROM tab2
----
179010
235170
270270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT DISTINCT col1 * + 74 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT col1 * + 74 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE NOT - col1 * + ( + col1 * + col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT 22 * - col0 AS col2 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4654
SELECT - CAST( col0 AS SIGNED ) DIV + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4654
SELECT - CAST ( col0 AS INTEGER ) / + col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT ALL COUNT( * ) DIV - + 60 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL COUNT ( * ) / - + 60 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * 52 )
----

query II rowsort
SELECT col0 AS col0, + 81 AS col0 FROM tab1
----
51
81
85
81
91
81

query I rowsort
SELECT ALL + col1 + + col2 + 20 AS col2 FROM tab2
----
137
145
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT col2 + - col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT col2 + - col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT DISTINCT 29 DIV - col2 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT 29 / - col2 FROM tab0
----
-2
0

query I rowsort
SELECT DISTINCT col1 + + 76 - - + 81 + - ( - 11 - + 91 ) FROM tab0 cor0
----
260
280
340

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) * + 10 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 39 AS col0 FROM tab2 AS cor0 WHERE col2 + 33 IS NOT NULL
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL - + CAST( col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4665
SELECT ALL - + CAST ( col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( col0 ) BETWEEN ( + col2 * col2 + + col2 ) AND ( NULL )
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 6 + + - 25 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT COUNT( ALL - ( - - 28 ) ) + + ( 65 + ( - 87 ) ) AS col1 FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4669
SELECT COUNT ( ALL - ( - - 28 ) ) + + ( 65 + ( - 87 ) ) AS col1 FROM tab1 cor0
----
-19

query I rowsort
SELECT + 37 + - - 11 AS col2 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4671
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL + - COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + - COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 25 * + 16 + - col1 * - 9 FROM tab1 AS cor0
----
445
526
823

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT + - col2 * - col2 + col2 DIV 70 + col1 FROM tab0 AS cor0
----
121
2290
9803

skipif mysql # not compatible
query I rowsort label-4674
SELECT + - col2 * - col2 + col2 / 70 + col1 FROM tab0 AS cor0
----
121
2290
9803

query I rowsort
SELECT - col1 * - col0 * + 70 + col2 FROM tab2 AS cor0
----
164243
345000
351808

query I rowsort
SELECT ALL + 44 AS col2 FROM tab0 WHERE - col2 / + col1 * + 11 > NULL
----

query I rowsort
SELECT + col2 * - 96 FROM tab1
----
-5664
-6528
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL - CAST( 61 AS SIGNED ) AS col1 FROM tab0 WHERE + col2 NOT IN ( - 71 * + col2 + - col1 )
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - CAST ( 61 AS INTEGER ) AS col1 FROM tab0 WHERE + col2 NOT IN ( - 71 * + col2 + - col1 )
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - 62 col2 FROM tab2
----
-15
-5
11

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= NULL
----

query I rowsort
SELECT DISTINCT + + 13 + col1 AS col2 FROM tab1 AS cor0
----
18
27
60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + 37 ) BETWEEN ( + col0 ) * col2 AND NULL )
----

query I rowsort
SELECT + col0 - ( + + col0 ) * + - col1 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT DISTINCT col2 DIV - col0 - + + col0 FROM tab1 AS cor0
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT col2 / - col0 - + + col0 FROM tab1 AS cor0
----
-52
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT + COUNT( * ) + - 98 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4685
SELECT + COUNT ( * ) + - 98 FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4686
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT 62 * - COUNT( * ) * 49 * - SUM( + 73 ) AS col1 FROM tab1
----
1995966

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT 62 * - COUNT ( * ) * 49 * - SUM ( + 73 ) AS col1 FROM tab1
----
1995966

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL - COUNT( - 11 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - COUNT ( - 11 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - col1 * + - ( 7 ) * 28 FROM tab2 WHERE ( NULL ) <= 73
----

query I rowsort
SELECT + 71 AS col2 FROM tab0 cor0 WHERE NOT ( - col1 * - - col0 * - - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT COUNT( + + col2 ) * - 20 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4691
SELECT COUNT ( + + col2 ) * - 20 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT + - ( 18 ) FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - + 81 * - 94 FROM tab1 AS cor0
----
7614

query II rowsort
SELECT DISTINCT + 50, 77 AS col0 FROM tab0 AS cor0
----
50
77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - + 94 ) - - col1 + + - col0 * 1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - MIN( - 29 ) col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4696
SELECT - MIN ( - 29 ) col0 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL SUM( DISTINCT + 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL SUM ( DISTINCT + 40 ) FROM tab1 AS cor0
----
40

query I rowsort
SELECT ALL col1 / + col2 + + + col1 AS col2 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 54 AS col2, + col0 AS col2 FROM tab0
----
54
15
54
87
54
97

query I rowsort
SELECT ALL col1 * - + ( + col0 ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col1 + + col2 FROM tab1 WHERE NOT NULL IN ( + - col1 * - 95, - col1 / + col2 )
----

query I rowsort
SELECT DISTINCT + col0 * - 20 * - ( - col0 ) FROM tab1
----
-144500
-165620
-52020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT 39 / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT 39 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4704
SELECT ALL - ( MAX( - col0 ) ) DIV 88 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL - ( MAX ( - col0 ) ) / 88 FROM tab0
----
0

query I rowsort
SELECT 57 * + col0 * 61 * col2 FROM tab1
----
17023392
17437155
21515676

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 * - 77 IN ( - col2, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 48 ) AS col0 FROM tab2 AS cor0
----
48

query II rowsort
SELECT ALL + col1 AS col1, 6 + 79 FROM tab1 AS cor0
----
14
85
47
85
5
85

query II rowsort
SELECT + ( - 41 ), - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-41
-77
-41
2
-41
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT - + col1 DIV - col0 + + col0 FROM tab0 AS cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-4710
SELECT - + col1 / - col0 + + col0 FROM tab0 AS cor0
----
20
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL - + SUM( - 86 ) AS col1 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - + SUM ( - 86 ) AS col1 FROM tab0 AS cor0
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT DISTINCT col2 DIV - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 75 NOT BETWEEN + 57 AND - - col0 - - 97
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT col2 / - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 75 NOT BETWEEN + 57 AND - - col0 - - 97
----
-1
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT DISTINCT col1 * - ( + - ( col0 ) ) + col0 DIV + col1 + - - col0 FROM tab0 AS cor0
----
1230
1918
291

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT col1 * - ( + - ( col0 ) ) + col0 / + col1 + - - col0 FROM tab0 AS cor0
----
1230
1918
291

query I rowsort
SELECT ALL - 96 - + col1 FROM tab0 AS cor0
----
-117
-177
-97

query I rowsort
SELECT ALL 46 AS col1 FROM tab2 cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4716
SELECT DISTINCT - 84 * - - 7 col1, col2 FROM tab1 AS cor0 WHERE NOT - col2 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4716
SELECT DISTINCT - 84 * - - 7 col1, col2 FROM tab1 AS cor0 WHERE NOT - col2 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT - + col1 + - col1 AS col1, + 70 FROM tab0 cor0
----
-162
70
-2
70
-42
70

query I rowsort
SELECT ALL 1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * - 67 AS col2 FROM tab0
----
-3149
-6633
-670

query II rowsort
SELECT ALL col1 AS col0, 42 * col2 FROM tab2
----
51
966
67
2436
77
1680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + ( - - col2 ) * - ( 60 ) * col2 col1 FROM tab1
----
-208919
-277508
-553056

query I rowsort
SELECT DISTINCT 71 + + 85 * - col2 FROM tab2
----
-1884
-3329
-4859

query I rowsort
SELECT - ( col1 ) + ( - 8 ) FROM tab0
----
-29
-89
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - COUNT( ALL - 58 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4725
SELECT - COUNT ( ALL - 58 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col2 * + col1 BETWEEN + col1 AND ( + - 91 )
----
59
68
96

query I rowsort
SELECT 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 50 <= NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + 73 FROM tab1
----
-4307
-4964
-7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col0 FROM tab0 AS cor0
----
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= - + 45
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / + col0 NOT IN ( - col0, 66 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 56 * col2 * + col2 ) <= 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT + COUNT( * ) * + + 38 * - + MIN( DISTINCT - - 27 ) AS col2 FROM tab0
----
-3078

skipif mysql # not compatible
query I rowsort label-4733
SELECT + COUNT ( * ) * + + 38 * - + MIN ( DISTINCT - - 27 ) AS col2 FROM tab0
----
-3078

query I rowsort
SELECT - 79 + col1 FROM tab0 WHERE NOT ( col0 + col1 ) BETWEEN NULL AND col2
----
-58
2

query I rowsort
SELECT DISTINCT col2 * 36 AS col0 FROM tab1
----
2124
2448
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT - COUNT( * ) * + 87 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-4736
SELECT - COUNT ( * ) * + 87 FROM tab2
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT MIN( DISTINCT + ( - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4737
SELECT MIN ( DISTINCT + ( - col2 ) ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT ALL + + col1 / col0 + + + col1 - col2 AS col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + + col1 / col0 + + + col1 - col2 AS col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + col0 IS NULL
----

query I rowsort
SELECT ALL + 46 FROM tab2 WHERE + - 15 BETWEEN - col2 AND - - col0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + col1 * + + 39 + 10 + - - col2 + + col0 - + 82 ) NOT IN ( + col1 )
----

query I rowsort
SELECT + col1 * 83 AS col1 FROM tab0 AS cor0
----
1743
6723
83

query I rowsort
SELECT DISTINCT col2 * + - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + col1 * + ( 64 ) * col0 * - + 98 + col2 + - col0 * - 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ALL + - 75 FROM tab1 AS cor0 WHERE NOT col2 + - col0 > + 14 + 91 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + - 75 FROM tab1 AS cor0 WHERE NOT col2 + - col0 > + 14 + 91 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * - col1 + 78 = 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + - col1 + + 86 FROM tab2 AS cor0
----
49
58
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 NOT IN ( - 92 * + + col1 + - - 38 + + col0 * + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT ALL CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 / - + col0 NOT BETWEEN + 79 / col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT col1 * + - CAST( 70 AS SIGNED ) col0 FROM tab0 AS cor0
----
-1470
-5670
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4750
SELECT col1 * + - CAST ( 70 AS INTEGER ) col0 FROM tab0 AS cor0
----
-1470
-5670
-70

query I rowsort
SELECT DISTINCT 54 * col2 AS col2 FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # aggregate syntax: 
query II rowsort label-4752
SELECT ALL COUNT( * ) + COUNT( * ) AS col2, - 30 AS col1 FROM tab0
----
6
-30

skipif mysql # not compatible
query II rowsort label-4752
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2, - 30 AS col1 FROM tab0
----
6
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL - COUNT( ( - - col1 ) ) / - COUNT( - 73 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL - COUNT ( ( - - col1 ) ) / - COUNT ( - 73 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 + + 79 * - col1 AS col1 FROM tab1
----
-1120
-3760
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) / 88 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) / 88 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + + 99 ) FROM tab1 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT - - ( col2 ) DIV + - col1 col2 FROM tab0 cor0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4759
SELECT - - ( col2 ) / + - col1 col2 FROM tab0 cor0
----
-99
0
0

query I rowsort
SELECT + 56 * - - col1 * col2 + - + col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - - col2 * - + 12 FROM tab1 AS cor0
----
-1152
-708
-816

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT DISTINCT - col1 DIV - + col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT - col1 / - + col0 FROM tab0 AS cor0
----
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 col2, + col0 - col1 FROM tab0 AS cor0
----
-5
-66
-5
66
-5
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70, col2 col0 FROM tab1 AS cor0
----
-70
59
-70
68
-70
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4765
SELECT ALL + + 69 col2, CAST( - + 97 AS SIGNED ) FROM tab2 AS cor0
----
69
-97
69
-97
69
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4765
SELECT ALL + + 69 col2, CAST ( - + 97 AS INTEGER ) FROM tab2 AS cor0
----
69
-97
69
-97
69
-97

query II rowsort
SELECT col1, 74 AS col0 FROM tab0 AS cor0
----
1
74
21
74
81
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4767
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / + - 49 * - + col1 BETWEEN + - ( + CAST( + - col2 AS SIGNED ) ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4767
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / + - 49 * - + col1 BETWEEN + - ( + CAST ( + - col2 AS INTEGER ) ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4768
SELECT ALL CAST( NULL AS SIGNED ) AS col1, col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT - - col1 + - + col0 + col0 * + col0 col2 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + + 27 AND + col2 * + col1 * - 73
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT - - col1 + - + col0 + col0 * + col0 col2 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + + 27 AND + col2 * + col1 * - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT 54 * COUNT( * ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT 54 * COUNT ( * ) FROM tab0
----
162

query I rowsort
SELECT ALL col1 * - col1 * + + col2 AS col0 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL - COUNT( * ) + + ( + COUNT( DISTINCT col2 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL - COUNT ( * ) + + ( + COUNT ( DISTINCT col2 ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT DISTINCT MAX( + - col1 ) AS col1, - MIN( + col0 ) AS col0 FROM tab2
----
-51
-46

skipif mysql # not compatible
query II rowsort label-4774
SELECT DISTINCT MAX ( + - col1 ) AS col1, - MIN ( + col0 ) AS col0 FROM tab2
----
-51
-46

query I rowsort
SELECT ( + - 14 ) + + + col2 FROM tab2
----
26
44
9

query I rowsort
SELECT ALL - 69 * 68 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
-4692
-4692
-4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4777
SELECT - CAST( NULL AS SIGNED ) + + ( - COUNT( * ) ) + - CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT - CAST ( NULL AS INTEGER ) + + ( - COUNT ( * ) ) + - CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * + col0 + - - col2 col1 FROM tab2
----
1108
667
936

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col1 - + ( 65 ) * + col0 * + - col2 FROM tab0
----
45906
56571
624196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + + col2, col0, + col1, col1 + - + col1 + + + col1 - + ( + ( col2 ) ) / - col2 )
----

query I rowsort
SELECT + col2 - - ( col2 ) FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( + - col1 )
----

query I rowsort
SELECT DISTINCT + 18 * + 78 FROM tab1 AS cor0
----
1404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col1 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * - - col2 AND - 53 - - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT + + COUNT( * ) - - 97 col1 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4789
SELECT DISTINCT + + COUNT ( * ) - - 97 col1 FROM tab1 AS cor0
----
100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 48 - + col0 FROM tab1 cor0
----
-133
-139
-99

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col0 + col0 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT - col2 AS col0, col0 * + 63 FROM tab1
----
-59
5355
-68
5733
-96
3213

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT MAX( DISTINCT + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4795
SELECT MAX ( DISTINCT + col2 ) AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT + COUNT( * ) * + SUM( DISTINCT 79 ) FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + COUNT ( * ) * + SUM ( DISTINCT 79 ) FROM tab2
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT ( - + col2 ) DIV - col2 + - col1 AS col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-4797
SELECT ( - + col2 ) / - col2 + - col1 AS col1 FROM tab1
----
-13
-4
-46

query II rowsort
SELECT ALL col0 * - col1, 91 AS col2 FROM tab1
----
-425
91
-4277
91
-714
91

query I rowsort
SELECT ALL + + col0 * - - col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ( 72 ) FROM tab2 AS cor0
----
72
72
72

query II rowsort
SELECT DISTINCT + + 67 AS col0, 86 AS col0 FROM tab0 AS cor0
----
67
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) * - 3 FROM tab1 AS cor0 WHERE - 10 - - CAST( + 90 AS SIGNED ) * + + 35 * ( + col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) * - 3 FROM tab1 AS cor0 WHERE - 10 - - CAST ( + 90 AS INTEGER ) * + + 35 * ( + col1 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT ALL + col1 * - CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + col1 * - CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - col0 + + 42 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - 15
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4805
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL + COUNT( 59 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4806
SELECT ALL + COUNT ( 59 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - 56 + - COUNT( * ) FROM tab1, tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-4807
SELECT - 56 + - COUNT ( * ) FROM tab1, tab1 AS cor0
----
-65

query I rowsort
SELECT 36 * - 7 + ( - + 38 ) FROM tab1
----
-290
-290
-290

query I rowsort
SELECT + - col2 / + 32 AS col2 FROM tab1 WHERE + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, col1 FROM tab1
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 64 col1 FROM tab1
----
111
69
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT IN ( - ( - col0 ) * col2 - CAST( - - col1 AS SIGNED ) + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4812
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT IN ( - ( - col0 ) * col2 - CAST ( - - col1 AS INTEGER ) + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( + 85 ) IS NOT NULL )
----

query I rowsort
SELECT ALL 2 + + col1 FROM tab0 AS cor0
----
23
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + 98 * COUNT( ALL - + col0 ) AS col0 FROM tab1 AS cor0 WHERE col0 IN ( col0, - col2, - - col1 )
----
294

skipif mysql # not compatible
query I rowsort label-4815
SELECT + 98 * COUNT ( ALL - + col0 ) AS col0 FROM tab1 AS cor0 WHERE col0 IN ( col0, - col2, - - col1 )
----
294

query I rowsort
SELECT - 34 * 93 AS col2 FROM tab2 AS cor0
----
-3162
-3162
-3162

query I rowsort
SELECT DISTINCT - col2 * + - col0 - - col2 * + col1 FROM tab2 AS cor0
----
2231
5640
8236

query I rowsort
SELECT + col2 * + + ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4819
SELECT 2 DIV + CAST( - col2 AS SIGNED ) AS col0, + col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-4819
SELECT 2 / + CAST ( - col2 AS INTEGER ) AS col0, + col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT COUNT( * ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4820
SELECT COUNT ( * ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0
----
-9

query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT col0 * + 42 FROM tab0
----
3654
4074
630

query I rowsort
SELECT col1 * - - 90 * - 60 FROM tab0
----
-113400
-437400
-5400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + 69 col0 FROM tab2 WHERE NOT ( - col2 ) * ( col0 ) NOT BETWEEN NULL AND 87
----

query I rowsort
SELECT DISTINCT - ( 31 ) * - 62 + + col0 FROM tab0
----
1937
2009
2019

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT - col2 DIV - + col0 + - 15 AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - col2 / - + col0 + - 15 AS col0 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT - - 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT COUNT( * ) * + 51 AS col2 FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-4830
SELECT COUNT ( * ) * + 51 AS col2 FROM tab0 cor0
----
153

onlyif mysql # DIV for integer division: 
query II rowsort label-4831
SELECT ALL + 2 AS col2, 76 DIV + col0 AS col1 FROM tab1 AS cor0
----
2
0
2
0
2
1

skipif mysql # not compatible
query II rowsort label-4831
SELECT ALL + 2 AS col2, 76 / + col0 AS col1 FROM tab1 AS cor0
----
2
0
2
0
2
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL MIN( 17 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL MIN ( 17 ) FROM tab2 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT ALL - col0 + 57 DIV col0 - col2 FROM tab2 AS cor0
----
-104
-133
-68

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - col0 + 57 / col0 - col2 FROM tab2 AS cor0
----
-104
-133
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4835
SELECT SUM( + col0 ) AS col1, - COUNT( * ) DIV - MIN( DISTINCT col2 ) AS col2 FROM tab2
----
185
0

skipif mysql # not compatible
query II rowsort label-4835
SELECT SUM ( + col0 ) AS col1, - COUNT ( * ) / - MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
185
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT - 88 + + MIN( - col2 ) FROM tab1
----
-184

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT - 88 + + MIN ( - col2 ) FROM tab1
----
-184

query I rowsort
SELECT - col1 + - 68 FROM tab0
----
-149
-69
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL + COUNT( * ) * - 93 + 82 FROM tab1
----
-197

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + COUNT ( * ) * - 93 + 82 FROM tab1
----
-197

query I rowsort
SELECT DISTINCT + 61 + - col1 FROM tab0
----
-20
40
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4840
SELECT - - 90 DIV + col2 + - col0 + + + col2 FROM tab2 WHERE col1 > + 24 + + col2
----
-20
-22

skipif mysql # not compatible
query I rowsort label-4840
SELECT - - 90 / + col2 + - col0 + + + col2 FROM tab2 WHERE col1 > + 24 + + col2
----
-20
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + 66 + + - COUNT( + col1 ) AS col0 FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 66 + + - COUNT ( + col1 ) AS col0 FROM tab1 cor0
----
63

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 + + + col0 + - + ( col2 ) * - + 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - - 69 FROM tab2
----
3174
4416
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL MIN( + - 71 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-71

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL MIN ( + - 71 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-71

query I rowsort
SELECT DISTINCT - col0 * + col2 - 76 - 94 AS col1 FROM tab1 AS cor0
----
-5066
-5185
-6358

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT + - COUNT( ALL ( + - col2 ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + - COUNT ( ALL ( + - col2 ) ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT + - SUM( DISTINCT + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT + - SUM ( DISTINCT + col0 ) FROM tab2 cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 = - col0 + + 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT DISTINCT ( + - CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT ALL + CAST( NULL AS SIGNED ) * - 92 * + col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4851
SELECT ALL + CAST ( NULL AS INTEGER ) * - 92 * + col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 71 * + + col1 AS col0 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT ALL col1 * - 96 + 50 AS col1 FROM tab1 WHERE NOT + ( + + 40 ) + ( - 3 ) >= + col1
----
-4462

query I rowsort
SELECT - col1 * col2 * - - 46 FROM tab0
----
-175122
-4554
-9660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 col0 FROM tab2 AS cor0 WHERE NOT col1 + + col2 * 74 IS NOT NULL
----

query I rowsort
SELECT ALL - - 43 FROM tab2 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT MIN( - + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT MIN ( - + col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + 38 * + col0 FROM tab1 AS cor0
----
1938
3230
3458

query I rowsort
SELECT ALL 58 + - + 73 AS col1 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT + 98 + col2 + - 31 AS col2 FROM tab0 AS cor0
----
114
166
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4861
SELECT - col0 * - + col1 + - 52 + - - col0 + + ( + + 87 ) + CAST( NULL AS SIGNED ) * + col0, ( + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4861
SELECT - col0 * - + col1 + - 52 + - - col0 + + ( + + 87 ) + CAST ( NULL AS INTEGER ) * + col0, ( + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4862
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( - ( + col1 ) ) * col2 * - col2 * + ( - CAST( NULL AS SIGNED ) ) * 97 + - col0 + - + col1 - + col0 + + col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-4862
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( - ( + col1 ) ) * col2 * - col2 * + ( - CAST ( NULL AS INTEGER ) ) * 97 + - col0 + - + col1 - + col0 + + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT COUNT( ALL + 76 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4863
SELECT COUNT ( ALL + 76 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4864
SELECT COUNT( * ), MAX( col1 ) AS col1 FROM tab2
----
3
77

skipif mysql # not compatible
query II rowsort label-4864
SELECT COUNT ( * ), MAX ( col1 ) AS col1 FROM tab2
----
3
77

query I rowsort
SELECT ALL col0 + + - 70 AS col2 FROM tab2
----
-24
-6
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT CAST( + ( col1 ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4866
SELECT CAST ( + ( col1 ) AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT DISTINCT CAST( NULL AS SIGNED ) + 11 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 11 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT COUNT( * ), - 7 col2 FROM tab0
----
3
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4868
SELECT COUNT ( * ), - 7 col2 FROM tab0
----
3
-7

query I rowsort
SELECT ALL 30 + - ( - + ( - + 58 ) ) * - col2 FROM tab0
----
2756
5772
610

query I rowsort
SELECT DISTINCT + col1 * + 11 FROM tab1 AS cor0
----
154
517
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 84 AND - - 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT - + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT - + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 11 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + - ( + - col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT ALL - CAST( NULL AS SIGNED ) * + 23 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - CAST ( NULL AS INTEGER ) * + 23 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT DISTINCT MAX( ALL col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT MAX ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 64 AND + 33
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * + col0 * - + ( + + ( - col2 ) ) AS col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * - + col0 col0 FROM tab1 cor0 WHERE NOT - col0 > NULL
----

query I rowsort
SELECT + + col1 * + + col0 * ( + - 39 ) AS col0 FROM tab1 cor0
----
-16575
-166803
-27846

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT MIN( 26 ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT MIN ( 26 ) FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT + 25 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT DISTINCT + + col2 * - CAST( - 84 AS SIGNED ) * - + col2 + - CAST( NULL AS SIGNED ) + + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT + + col2 * - CAST ( - 84 AS INTEGER ) * - + col2 + - CAST ( NULL AS INTEGER ) + + + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT ALL - + CAST( + SUM( - + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL - + CAST ( + SUM ( - + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + - col1 * + ( + + col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4891
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - 87 AND 46 + - CAST( NULL AS SIGNED ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-4891
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - 87 AND 46 + - CAST ( NULL AS INTEGER ) * + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 92 + + col2 + - col2 AS col0 FROM tab0
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT 54 * - + COUNT( * ) + CAST( + + 9 AS SIGNED ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT 54 * - + COUNT ( * ) + CAST ( + + 9 AS INTEGER ) FROM tab1
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - col0 + - 63 * - - 4 AS col0 FROM tab1
----
-303
-337
-343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col2 ) + col2 AS col1, - col2 col0 FROM tab1
----
118
-59
136
-68
192
-96

query I rowsort
SELECT DISTINCT - col1 + + - 59 AS col2 FROM tab2 AS cor0
----
-110
-126
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT 25 * - COUNT( * ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4899
SELECT 25 * - COUNT ( * ) FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + 13 * - - col1 + 82 AS col2 FROM tab1 cor0
----
147
264
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 * + + col2 col0 FROM tab0 AS cor0
----
2679
5643
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT DISTINCT - + SUM( DISTINCT + - 95 ) DIV - SUM( DISTINCT - col2 ) + - - 50 FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - + SUM ( DISTINCT + - 95 ) / - SUM ( DISTINCT - col2 ) + - - 50 FROM tab0 cor0
----
50

query I rowsort
SELECT DISTINCT + - AVG ( col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 94 AS col2, col1 col1 FROM tab2 AS cor0
----
-94
51
-94
67
-94
77

query I rowsort
SELECT + ( + 98 ) FROM tab2
----
98
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT + MAX( ALL ( - col0 ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT + MAX ( ALL ( - col0 ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 * 65 AS col2 FROM tab2
----
2990
4160
4875

query II rowsort
SELECT 60 * col1 * 91 AS col0, 27 + + ( - + 16 ) * - col0 AS col2 FROM tab0
----
114660
1419
442260
267
5460
1579

query I rowsort
SELECT col0 * - 64 AS col2 FROM tab0
----
-5568
-6208
-960

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4911
SELECT + col0, col2 - + CAST( col0 AS SIGNED ) FROM tab1
----
51
45
85
-26
91
-23

skipif mysql # not compatible
query II rowsort label-4911
SELECT + col0, col2 - + CAST ( col0 AS INTEGER ) FROM tab1
----
51
45
85
-26
91
-23

query II rowsort
SELECT col0 * + col1 + - + col0 AS col2, col0 FROM tab2 AS cor0
----
2300
46
4864
64
4950
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 28 * + ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL + MIN( + 40 ) * - ( + 12 ) FROM tab1 AS cor0
----
-480

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + MIN ( + 40 ) * - ( + 12 ) FROM tab1 AS cor0
----
-480

onlyif mysql # aggregate syntax: 
query II rowsort label-4915
SELECT COUNT( * ) AS col2, 8 + - 2 AS col0 FROM tab0 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-4915
SELECT COUNT ( * ) AS col2, 8 + - 2 AS col0 FROM tab0 AS cor0
----
3
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT + MAX( ALL - 51 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4916
SELECT + MAX ( ALL - 51 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + - 14 FROM tab2 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT - ( + COUNT( ALL + 42 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4918
SELECT - ( + COUNT ( ALL + 42 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT COUNT( * ) + - 29 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT COUNT ( * ) + - 29 FROM tab1
----
-26

query I rowsort
SELECT - col0 * 4 * col1 FROM tab1
----
-1700
-17108
-2856

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT col2 DIV 89 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4921
SELECT col2 / 89 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col1 + - - 9 col1 FROM tab0
----
106
1224
1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT DISTINCT 28 * + ( - col2 ) - - CAST( 4 AS SIGNED ) * + 95 FROM tab2
----
-1244
-264
-740

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT 28 * + ( - col2 ) - - CAST ( 4 AS INTEGER ) * + 95 FROM tab2
----
-1244
-264
-740

query I rowsort
SELECT ALL - col1 - col0 + 63 AS col2 FROM tab1 AS cor0
----
-2
-27
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT SUM( ALL - col1 ) - - 52 col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT SUM ( ALL - col1 ) - - 52 col1 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT col2 + + 87 AS col2, - 30 * + col2 AS col0 FROM tab2 AS cor0
----
110
-690
127
-1200
145
-1740

query I rowsort
SELECT DISTINCT - col1 * + 66 + 69 FROM tab0 AS cor0 WHERE 26 * + col1 IS NOT NULL
----
-1317
-5277
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4928
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - + - 84 * col1 + + col2 IN ( + col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4928
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - + - 84 * col1 + + col2 IN ( + col2 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + ( + COUNT( DISTINCT + 52 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4929
SELECT + ( + COUNT ( DISTINCT + 52 ) ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4930
SELECT + col0 * ( + col1 ) * - + CAST( NULL AS DECIMAL ) col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4930
SELECT + col0 * ( + col1 ) * - + CAST ( NULL AS REAL ) col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT SUM( + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT SUM ( + col0 ) AS col0 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL COUNT( DISTINCT + - col0 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4932
SELECT ALL COUNT ( DISTINCT + - col0 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT DISTINCT col0 * - + col0 * - CAST( 34 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
257346
319906
7650

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT col0 * - + col0 * - CAST ( 34 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
257346
319906
7650

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) * + - col0 * 83 <= + 74 * col1 + col1 + - 60 * - + col1 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col1 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT ALL - col1 DIV - 17 col2 FROM tab2 AS cor0
----
3
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4936
SELECT ALL - col1 / - 17 col2 FROM tab2 AS cor0
----
3
3
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4937
SELECT + SUM( - col1 ) DIV MIN( DISTINCT - 8 ) + CAST( MAX( ALL + + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-4937
SELECT + SUM ( - col1 ) / MIN ( DISTINCT - 8 ) + CAST ( MAX ( ALL + + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + - 72 * - - COUNT( * ) * + 42 AS col1 FROM tab1 AS cor0
----
-9072

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - 72 * - - COUNT ( * ) * + 42 AS col1 FROM tab1 AS cor0
----
-9072

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT - COUNT( DISTINCT 46 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4939
SELECT - COUNT ( DISTINCT 46 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col2 * - col0 * 0 * - 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 > - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT CAST( + col1 AS SIGNED ) * + col0 * + - col0 AS col2 FROM tab1
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-4943
SELECT CAST ( + col1 AS INTEGER ) * + col0 * + - col0 AS col2 FROM tab1
----
-36125
-36414
-389207

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 22 + col2 * - col0 FROM tab2
----
-1036
-2538
-4328

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT SUM( ALL col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4946
SELECT DISTINCT SUM ( ALL col2 ) col2 FROM tab1
----
223

query II rowsort
SELECT col0 AS col0, + ( - col1 ) AS col0 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
15

query II rowsort
SELECT ALL - 22 AS col1, 37 FROM tab1
----
-22
37
-22
37
-22
37

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON + 12 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query II rowsort
SELECT 26 * + col0 AS col1, col2 AS col2 FROM tab1
----
1326
96
2210
59
2366
68

query I rowsort
SELECT + col1 - - + 23 AS col1 FROM tab1 cor0
----
28
37
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT + COUNT( * ) - - 76 AS col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT + COUNT ( * ) - - 76 AS col1 FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT 89 - + MIN( + - 20 ) FROM tab1 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-4955
SELECT 89 - + MIN ( + - 20 ) FROM tab1 AS cor0
----
109

query II rowsort
SELECT - col2 AS col2, - 22 FROM tab0 WHERE NULL = - col0 * - + ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col2 FROM tab0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36 col1, - 79 * col2 * - ( + col0 ) * - 15 + + col1 * - + col2 FROM tab0
----
-36
-1031160
-36
-11379654
-36
-839232

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT NULL < + 7
----

query I rowsort
SELECT + 67 * 90 AS col1 FROM tab2
----
6030
6030
6030

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL MAX( - + col2 ) col0 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4961
SELECT ALL MAX ( - + col2 ) col0 FROM tab1
----
-59

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab0 AS cor0 WHERE col1 + + col0 - - col1 + - 79 * + - col2 IS NOT NULL
----
15
87
97

query II rowsort
SELECT 81, 56 + - col2 AS col1 FROM tab2
----
81
-2
81
16
81
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT + 85 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT + 85 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 2 * 29 * - col0 FROM tab1
----
-2958
-4930
-5278

query I rowsort
SELECT 65 FROM tab1 WHERE NOT NULL >= col0 * + 84 + 74 / + 51
----

query III rowsort
SELECT * FROM tab1 WHERE + + ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT MIN( DISTINCT 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-4968
SELECT MIN ( DISTINCT 92 ) FROM tab1
----
92

query I rowsort
SELECT DISTINCT 39 + + 70 AS col0 FROM tab0
----
109

query I rowsort
SELECT ALL + 87 + col1 FROM tab2
----
138
154
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL - + col2 / - 21 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - + col2 / - 21 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 85, col1 + + col1 AS col2 FROM tab0 AS cor0
----
85
162
85
2
85
42

query I rowsort
SELECT - col0 + 99 + + 2 * - - 74 * - 8 * - col0 FROM tab0 AS cor0
----
103020
114850
17844

query I rowsort
SELECT + col2 + - - col1 * - + col0 * - col1 FROM tab1 AS cor0
----
10092
201087
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT DISTINCT col0 * - ( ( + - CAST( NULL AS SIGNED ) ) ) * 70 + col2 * col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT col0 * - ( ( + - CAST ( NULL AS INTEGER ) ) ) * 70 + col2 * col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT DISTINCT - col2 + + col1 - - - CAST( NULL AS SIGNED ) * + col0 + + 91 + + + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - col2 + + col1 - - - CAST ( NULL AS INTEGER ) * + col0 + + 91 + + + col2 FROM tab2
----
NULL

query I rowsort
SELECT + col2 + col2 - - + col1 * - 26 * - + 54 AS col2 FROM tab1
----
19848
66124
7138

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT ALL - 77 + + 68 - + + col2 DIV - - col2 FROM tab1
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - 77 + + 68 - + + col2 / - - col2 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT - COUNT( col0 ) + + MIN( ALL + 76 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - COUNT ( col0 ) + + MIN ( ALL + 76 ) FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4981
SELECT + - COUNT( * ), 90 AS col2 FROM tab0 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-4981
SELECT + - COUNT ( * ), 90 AS col2 FROM tab0 AS cor0
----
-3
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT DISTINCT 93 + + col2 + - + 71 * + col1 + - + col0 DIV + 35 FROM tab2 cor0
----
-3506
-4608
-5335

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT 93 + + col2 + - + 71 * + col1 + - + col0 / + 35 FROM tab2 cor0
----
-3506
-4608
-5335

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT SUM( ALL 9 ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT SUM ( ALL 9 ) AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4984
SELECT ALL + - CAST( NULL AS DECIMAL ) - - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL + - CAST ( NULL AS REAL ) - - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - - col0 col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - ( - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT - COUNT( * ) * + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4987
SELECT - COUNT ( * ) * + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4988
SELECT col2 - 67 - col1 + - - ( - + col0 ) * + - col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT col2 - 67 - col1 + - - ( - + col0 ) * + - col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - + COUNT( * ) FROM tab2 WHERE + - col0 + col1 - + - ( - col2 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT - + COUNT ( * ) FROM tab2 WHERE + - col0 + col1 - + - ( - col2 ) BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + + ( - col1 ) <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL - COUNT( ALL - 77 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4991
SELECT ALL - COUNT ( ALL - 77 ) col1 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 * - col0 + + + col0 / + 51 AND NULL
----

query I rowsort
SELECT col0 * 72 FROM tab2 AS cor0
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT - - MIN( + - 14 ), SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-66

skipif mysql # not compatible
query II rowsort label-4994
SELECT - - MIN ( + - 14 ), SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-66

query III rowsort
SELECT ALL col1, + col1 + 33 * - 77 AS col2, + + col2 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4996
SELECT - 39 AS col2, + CAST( - - col1 AS SIGNED ) DIV col2 FROM tab1
----
-39
0
-39
0
-39
0

skipif mysql # not compatible
query II rowsort label-4996
SELECT - 39 AS col2, + CAST ( - - col1 AS INTEGER ) / col2 FROM tab1
----
-39
0
-39
0
-39
0

query I rowsort
SELECT col0 * - col1 * - col1 AS col2 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL - - SUM( ALL + + 20 ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - - SUM ( ALL + + 20 ) FROM tab2 AS cor0
----
60

query II rowsort
SELECT ALL - + col0, col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5000
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) col0 FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT ( + col0 ) * col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + col0 * + 72 FROM tab1 AS cor0
----
3672
6120
6552

query I rowsort
SELECT - 49 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT - + 53 DIV + + col2 AS col0 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-5004
SELECT - + 53 / + + col2 AS col0 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT ( ( - + 2 ) ) FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT col0 * col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - ( + ( + - 20 ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5006
SELECT col0 * col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - ( + ( + - 20 ) ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * 85 AS col0 FROM tab1 AS cor0
----
-5015
-5780
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL COUNT( * ) + - - 57 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL COUNT ( * ) + - - 57 FROM tab0
----
60

query II rowsort
SELECT ALL - 95 * col0, + col0 + - + col1 * col0 - + - col1 AS col1 FROM tab0
----
-1425
-1119
-8265
-1719
-9215
1

query I rowsort
SELECT ALL - - ( + col2 ) AS col1 FROM tab2 WHERE 41 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT - 4 * - - CAST( - + col0 AS SIGNED ) + 26 AS col1 FROM tab0
----
374
414
86

skipif mysql # not compatible
query I rowsort label-5012
SELECT - 4 * - - CAST ( - + col0 AS INTEGER ) + 26 AS col1 FROM tab0
----
374
414
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT + 28 * col2 + + + CAST( col2 AS SIGNED ) col2 FROM tab1
----
1711
1972
2784

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5013
SELECT DISTINCT + 28 * col2 + + + CAST ( col2 AS INTEGER ) col2 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT col1 + - col1 + + ( - col1 ) * - + col2 * - - col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + COUNT( * ) - + + 41 AS col0 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + COUNT ( * ) - + + 41 AS col0 FROM tab1
----
-38

query I rowsort
SELECT + + 48 - + 27 AS col2 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT col0 - - 55 * - col2 * - 91 FROM tab2 AS cor0
----
115161
200264
290365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 col0 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT 47 + - - 34 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - col2 - 18 AS col2 FROM tab2 AS cor0
----
-41
-58
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL + + 78 * + COUNT( * ) * 98 - COUNT( * ) FROM tab2 cor0
----
22929

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL + + 78 * + COUNT ( * ) * 98 - COUNT ( * ) FROM tab2 cor0
----
22929

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT 62 <= + 62 + - col2 / + col2
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT DISTINCT col1 DIV + 34 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT col1 / + 34 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5025
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) col0 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT - + 15 FROM tab0 cor0 WHERE NOT + col2 + 80 <> - - col1 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT + CAST( - - 10 AS SIGNED ) * + + col2 + + col0 col1 FROM tab0
----
1087
187
485

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5027
SELECT + CAST ( - - 10 AS INTEGER ) * + + col2 + + col0 col1 FROM tab0
----
1087
187
485

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT MAX( - + col0 ) col0 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5028
SELECT MAX ( - + col0 ) col0 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL + MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL - MAX( DISTINCT - + 6 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - MAX ( DISTINCT - + 6 ) AS col1 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT 46 DIV - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT 46 / - col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 72 BETWEEN - col0 AND 91 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT 50 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 * CAST( NULL AS SIGNED ) * - col0 + col0 / - + col2
----

skipif mysql # not compatible
query I rowsort label-5033
SELECT 50 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 * CAST ( NULL AS INTEGER ) * - col0 + col0 / - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25 col1, 99 + + col0 FROM tab0
----
25
114
25
186
25
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 50 col0 FROM tab2 AS cor0 WHERE + ( + - col1 ) + - col1 - + col0 >= col0
----

query I rowsort
SELECT DISTINCT - col1 * + + 33 * - col2 AS col0 FROM tab2 AS cor0
----
101640
128238
38709

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + + 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col0 FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT + MAX( + 94 ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT + MAX ( + 94 ) FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL + 41 * col1 * ( - - 85 ) FROM tab1 AS cor0
----
163795
17425
48790

query I rowsort
SELECT - + col1 + + 63 * col1 AS col1 FROM tab0 cor0
----
1302
5022
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - COUNT( * ) + ( - + MIN( DISTINCT 89 ) ) + + - COUNT( * ) AS col1 FROM tab2 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5044
SELECT - COUNT ( * ) + ( - + MIN ( DISTINCT 89 ) ) + + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-95

query I rowsort
SELECT ALL col2 * + 64 - 94 + + col2 * + - col1 * col0 FROM tab0 AS cor0
----
-17724
-3361
-54191

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT + - MIN( DISTINCT 0 ) + + - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + - MIN ( DISTINCT 0 ) + + - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + ( + - col0 ) * - 91, col0 AS col0 FROM tab0 AS cor0
----
1365
15
7917
87
8827
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 1 NOT BETWEEN NULL AND - + col2
----

query I rowsort
SELECT + col1 FROM tab2 WHERE + col0 + 64 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 58 + - col1 * + col1 col1, - 23 AS col1 FROM tab2
----
-2543
-23
-4431
-23
-5871
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT - ( + - 87 ) DIV - + COUNT( * ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-5051
SELECT - ( + - 87 ) / - + COUNT ( * ) FROM tab2
----
-29

query I rowsort
SELECT DISTINCT + col1 + - 43 + + col0 * - col2 * - 39 * col1 * + 61 AS col0 FROM tab1
----
163066147
59653387
691898848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT DISTINCT + + col1 FROM tab1 WHERE - 12 <= - - CAST( NULL AS SIGNED ) * + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + + col1 FROM tab1 WHERE - 12 <= - - CAST ( NULL AS INTEGER ) * + ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) + + COUNT( * ) - COUNT( * ) * - COUNT( * ) / + 45 AS col0 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + COUNT ( * ) - COUNT ( * ) * - COUNT ( * ) / + 45 AS col0 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT - 34 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT COUNT( * ) FROM tab1 WHERE - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT COUNT ( * ) FROM tab1 WHERE - col2 <= NULL
----
0

query I rowsort
SELECT - ( + 26 ) - - 18 AS col1 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL + 32 * 37 + col0 FROM tab2 AS cor0
----
1230
1248
1259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT - - CAST( NULL AS SIGNED ) + - + MAX( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT - - CAST ( NULL AS INTEGER ) + - + MAX ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 77 + col0 FROM tab0 AS cor0
----
-62
10
20

query I rowsort
SELECT + 3 + - col1 * + 22 + ( + col0 ) FROM tab0 AS cor0
----
-1764
-372
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 91 col2 FROM tab2 WHERE 13 + 32 IS NULL
----

query I rowsort
SELECT - 74 * + col1 FROM tab1
----
-1036
-3478
-370

query I rowsort
SELECT - ( + col2 ) + + 6 * col0 FROM tab1
----
210
451
478

query I rowsort
SELECT - 64 * col0 AS col2 FROM tab0
----
-5568
-6208
-960

query I rowsort
SELECT + 98 + col2 * col0 FROM tab2
----
1156
2658
4448

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5067
SELECT DISTINCT - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) * AVG ( - col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - SUM ( DISTINCT CAST ( NULL AS REAL ) ) * AVG ( - col0 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5068
SELECT ALL + 11 - - COUNT( * ) DIV + 19 col1 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5068
SELECT ALL + 11 - - COUNT ( * ) / + 19 col1 FROM tab0
----
11

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 + - col1 ) <> NULL
----

query I rowsort
SELECT 84 - 55 FROM tab2
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL 32 + + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
35

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL 32 + + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
35

query I rowsort
SELECT - 47 - + ( - col1 + - 82 ) * + col2 FROM tab0
----
7614
8170
983

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT + COUNT( ALL 63 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + COUNT ( ALL 63 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT ALL + 59 + 21 DIV col0 AS col2 FROM tab1
----
59
59
59

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL + 59 + 21 / col0 AS col2 FROM tab1
----
59
59
59

query III rowsort
SELECT * FROM tab0 WHERE 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL col1 + 30 DIV col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL col1 + 30 / col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT - CAST( - 40 AS SIGNED ) FROM tab0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-5077
SELECT - CAST ( - 40 AS INTEGER ) FROM tab0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL MIN( col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL MIN ( col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT ALL 22 / - col2 AS col2 FROM tab1 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT ( 53 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5081
SELECT ( 53 ) / - col0 AS col0 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT + 83 * + col1 FROM tab2 AS cor0
----
4233
5561
6391

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT 5 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5083
SELECT 5 / - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT ALL 36 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL 36 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col0 BETWEEN ( + ( - col1 ) ) AND ( - col0 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + col2 col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col1 )
----
0

query I rowsort
SELECT col0 * 11 AS col0 FROM tab0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - ( - 94 ) FROM tab0
----
94
94
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > + col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 79 * col1 AS col2 FROM tab0 cor0
----
1659
6399
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT DISTINCT - + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 30 * - ( - 9 * 37 ) AS col1 FROM tab0 AS cor0
----
9990
9990
9990

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT - - 59 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT - - 59 / col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + CAST ( NULL AS INTEGER ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - - MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5098
SELECT - - MIN ( col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT col0 * - ( 57 ) + + 3 * col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + ( SUM( ALL col1 ) ) * COUNT( * ) FROM tab2 WHERE NULL <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + ( SUM ( ALL col1 ) ) * COUNT ( * ) FROM tab2 WHERE NULL <= col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT COUNT( * ) FROM tab1 WHERE ( + col1 - + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5102
SELECT COUNT ( * ) FROM tab1 WHERE ( + col1 - + col2 ) IS NOT NULL
----
3

query I rowsort
SELECT + col2 + - + 86 FROM tab0
----
-39
-76
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT - 2 * CAST( NULL AS SIGNED ) + + col0 * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT - 2 * CAST ( NULL AS INTEGER ) + + col0 * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - + col2 + + col2 * col2 FROM tab1
----
0

query I rowsort
SELECT ALL col0 + 90 FROM tab1
----
141
175
181

query I rowsort
SELECT ALL col0 * - col1 * - 84 - col0 FROM tab2
----
197018
413888
422025

query I rowsort
SELECT + col1 * - col0 + col1 * - col1 FROM tab1
----
-450
-6486
-910

query I rowsort
SELECT - col0 + + 86 FROM tab1 AS cor0
----
-5
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 92 AND ( - ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 92 AND ( - ( col0 ) )
----
0

query I rowsort
SELECT DISTINCT + 99 - - col1 AS col1 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT - 96 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5113
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( ( - 44 ) AS SIGNED ) > ( col1 + + col2 * 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5113
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( ( - 44 ) AS INTEGER ) > ( col1 + + col2 * 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT + ( CAST( NULL AS SIGNED ) ) col0 FROM tab1 WHERE NOT ( NOT ( 69 * - col0 ) IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5114
SELECT + ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1 WHERE NOT ( NOT ( 69 * - col0 ) IS NOT NULL )
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col1, ( - ( + col1 ) ) + col2 AS col0 FROM tab2
----
23
-28
40
-37
58
-9

query I rowsort
SELECT + + 57 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT MAX( DISTINCT - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5117
SELECT MAX ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL 64 FROM tab1 AS cor0 WHERE col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT + + MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5119
SELECT + + MIN ( col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT - col1 * 48 * col1 FROM tab0 AS cor0
----
-21168
-314928
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT + ( - ( MAX( 47 ) ) ) AS col0 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + ( - ( MAX ( 47 ) ) ) AS col0 FROM tab2
----
-47

query I rowsort
SELECT - 33 * + 78 AS col2 FROM tab0
----
-2574
-2574
-2574

query II rowsort
SELECT ALL col1 * - col2, col2 FROM tab0
----
-210
10
-3807
47
-99
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col0 ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT - COUNT( * ) * + 66 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - COUNT ( * ) * + 66 FROM tab0
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5126
SELECT DISTINCT - COUNT( * ) DIV - COUNT( - col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT - COUNT ( * ) / - COUNT ( - col2 ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT 54 DIV col1 AS col1 FROM tab0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-5127
SELECT 54 / col1 AS col1 FROM tab0
----
0
2
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab0 WHERE NOT NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT MAX( DISTINCT + 75 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5129
SELECT DISTINCT MAX ( DISTINCT + 75 ) col2 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT + 71 DIV col2 * + 85 FROM tab2 AS cor0
----
255
85
85

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 71 / col2 * + 85 FROM tab2 AS cor0
----
255
85
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 14 * - - col1 NOT BETWEEN - col0 AND ( NULL )
----

query II rowsort
SELECT + col0, 3 + - col1 FROM tab1
----
51
-11
85
-2
91
-44

query I rowsort
SELECT - col0 * + - ( - - col0 ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT + 0 + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5135
SELECT + 0 + COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL MIN( DISTINCT - 30 ) * - + 93 AS col0 FROM tab1 AS cor0
----
2790

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL MIN ( DISTINCT - 30 ) * - + 93 AS col0 FROM tab1 AS cor0
----
2790

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT + 9 DIV - ( col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT + 9 / - ( col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 * + col0 / - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 86 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT + - MIN( - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5141
SELECT + - MIN ( - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT ALL - + 28 + + CAST( NULL AS SIGNED ) + col2 * col0 FROM tab2 cor0 WHERE NOT 53 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - + 28 + + CAST ( NULL AS INTEGER ) + col2 * col0 FROM tab2 cor0 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT DISTINCT col0 / - 69 * col2 + + col2 - + ( col2 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT col0 / - 69 * col2 + + col2 - + ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 17 * col1 AS col2 FROM tab0
----
1377
17
357

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * + col1 + - 58 * - col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * - 21 * - col2 * + 74 + col1 IS NULL
----

query I rowsort
SELECT col0 * + + ( - col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - 40 + + 22 FROM tab0 WHERE + col1 * - col0 = - - col2 + col2
----

query I rowsort
SELECT - col0 FROM tab2 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0 WHERE col0 * - + 52 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( 31 * + col0 * - col0 * - - col0 ) NOT IN ( - col1 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT DISTINCT - + COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5152
SELECT DISTINCT - + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT + 65 / col0 * - 69 + - col2 * - 41 AS col0 FROM tab2 AS cor0 WHERE NULL >= 47
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5154
SELECT - col2 + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT - col2 + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 73 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( col2 + + + col2 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5157
SELECT CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT ALL - 33 DIV + col2 AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL - 33 / + col2 AS col2 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT + - ( - MIN( + 87 ) ) AS col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + - ( - MIN ( + 87 ) ) AS col2 FROM tab0 AS cor0
----
87

query I rowsort
SELECT ( - col0 ) * col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 * + - col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT ALL CAST( + col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5163
SELECT ALL CAST ( + col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + 1 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE ( + 8 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT + - 89 AS col2 FROM tab1 AS cor0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT DISTINCT 96 DIV 80 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT 96 / 80 AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL - 90 + SUM( ALL + col1 ) AS col2 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - 90 + SUM ( ALL + col1 ) AS col2 FROM tab1
----
-24

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( - col0 * + - 24 * - col1 + col1 + - col2 + + col1 ) IN ( - col0 + - col0 * col2 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + SUM( + col1 ) FROM tab2 WHERE NOT + + 62 + - 2 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT + SUM ( + col1 ) FROM tab2 WHERE NOT + + 62 + - 2 >= ( NULL )
----
NULL

query II rowsort
SELECT 93 AS col2, col1 * - - col2 + - - 36 + col2 * + 98 FROM tab0
----
93
1226
93
8449
93
9837

onlyif mysql # DIV for integer division: 
query II rowsort label-5172
SELECT DISTINCT col1, 74 DIV 25 * + 80 * 19 FROM tab2 AS cor0
----
51
3040
67
3040
77
3040

skipif mysql # not compatible
query II rowsort label-5172
SELECT DISTINCT col1, 74 / 25 * + 80 * 19 FROM tab2 AS cor0
----
51
3040
67
3040
77
3040

query I rowsort
SELECT + 35 * col0 AS col2 FROM tab0 AS cor0
----
3045
3395
525

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <> - + col1 + + - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - 59 + - + COUNT( * ) + - 64 * MIN( ALL + - 81 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 11 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT - 59 + - + COUNT ( * ) + - 64 * MIN ( ALL + - 81 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 11 IS NOT NULL
----
NULL

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - 34 * - col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT - COUNT( ( - - col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5178
SELECT - COUNT ( ( - - col1 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL COUNT( * ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT + MIN( - col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + MIN ( - col2 ) FROM tab0 cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT ( + 77 ) + - CAST( col2 AS SIGNED ) + - col1 / 70 * + - CAST( NULL AS SIGNED ) * + col1 / + + col1 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ( + 77 ) + - CAST ( col2 AS INTEGER ) + - col1 / 70 * + - CAST ( NULL AS INTEGER ) * + col1 / + + col1 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - - 96 FROM tab0
----
111
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - COUNT( * ) + 10 * + 46 AS col2 FROM tab1
----
457

skipif mysql # not compatible
query I rowsort label-5184
SELECT - COUNT ( * ) + 10 * + 46 AS col2 FROM tab1
----
457

query I rowsort
SELECT DISTINCT - 57 + + 9 FROM tab1
----
-48

query I rowsort
SELECT - 15 + - 14 FROM tab2
----
-29
-29
-29

query I rowsort
SELECT + col2 + + + col1 * + col1 FROM tab2
----
2624
4547
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT - 16 - COUNT( + col2 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - 16 - COUNT ( + col2 ) FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5189
SELECT * FROM tab1 WHERE ( CAST( ( - - col0 ) AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5189
SELECT * FROM tab1 WHERE ( CAST ( ( - - col0 ) AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, col0 - - - 7 AS col2 FROM tab0
----
-10
80
-47
8
-99
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL + + col0 / + CAST( - col2 AS SIGNED ) - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + + col0 / + CAST ( - col2 AS INTEGER ) - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT - 45 - COUNT( 83 ) - 87 * + + 66 FROM tab0 AS cor0
----
-5790

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - 45 - COUNT ( 83 ) - 87 * + + 66 FROM tab0 AS cor0
----
-5790

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5193
SELECT DISTINCT + col0, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5193
SELECT DISTINCT + col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT + 68 DIV - - 72 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5195
SELECT + 68 / - - 72 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE NOT col0 * + col1 IN ( - + col0 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 < - - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + COUNT( * ) * + 3 AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5198
SELECT + COUNT ( * ) * + 3 AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT DISTINCT 8 AS col1 FROM tab2 AS cor0 WHERE CAST( col2 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT 8 AS col1 FROM tab2 AS cor0 WHERE CAST ( col2 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 53 AS col0 FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + 72 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + 72 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
75

query I rowsort
SELECT ALL - ( + col2 ) * - - col0 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT col0 + CAST( + - col2 AS SIGNED ) * + 29 * + + col1 col0 FROM tab2
----
-112619
-33971
-89256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5203
SELECT DISTINCT col0 + CAST ( + - col2 AS INTEGER ) * + 29 * + + col1 col0 FROM tab2
----
-112619
-33971
-89256

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE NOT ( - 69 ) IN ( col2, + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE NOT ( - 69 ) IN ( col2, + col0 )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col0 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT + MAX( + 52 ) DIV - COUNT( ALL - + col2 ) FROM tab0 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5206
SELECT + MAX ( + 52 ) / - COUNT ( ALL - + col2 ) FROM tab0 cor0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT DISTINCT + col1 + - + 48 DIV - col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + col1 + - + 48 / - col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT col2 + - 34 * - col2 FROM tab1
----
2065
2380
3360

query I rowsort
SELECT col2 * + 91 * - + 19 * + col2 + + col0 FROM tab0
----
-16945832
-172813
-3819346

query I rowsort
SELECT DISTINCT + 25 * + 35 * + + 21 + - col1 + + ( ( - 31 ) ) AS col1 FROM tab0
----
18263
18323
18343

query I rowsort
SELECT DISTINCT - 57 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + col2 col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query II rowsort
SELECT - + col1, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT - 51 AS col1 FROM tab0 cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5215
SELECT ALL - col0 - ( col0 ) AS col0, ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
-128
NULL
-150
NULL
-92
NULL

skipif mysql # not compatible
query II rowsort label-5215
SELECT ALL - col0 - ( col0 ) AS col0, ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
-128
NULL
-150
NULL
-92
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5216
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col2 * - CAST( NULL AS SIGNED ) - + - col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5216
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col2 * - CAST ( NULL AS INTEGER ) - + - col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, + 29 FROM tab1 AS cor0
----
14
29
47
29
5
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 44
----

query I rowsort
SELECT + col0 * - ( col2 ) * - col2 AS col2 FROM tab2
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT - col1 * + + col0 DIV col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5220
SELECT - col1 * + + col0 / col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col1 * + + col0 AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT - COUNT( + col1 ) * MIN( 62 ) FROM tab2 WHERE NOT + - 39 * - col2 * + + 6 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - COUNT ( + col1 ) * MIN ( 62 ) FROM tab2 WHERE NOT + - 39 * - col2 * + + 6 + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 * + 63 + + 3 AS col1 FROM tab1
----
3216
5358
5736

onlyif mysql # aggregate syntax: 
query II rowsort label-5224
SELECT - 83 + - 67 AS col1, COUNT( * ) + 13 FROM tab2 WHERE NULL IS NOT NULL
----
-150
13

skipif mysql # not compatible
query II rowsort label-5224
SELECT - 83 + - 67 AS col1, COUNT ( * ) + 13 FROM tab2 WHERE NULL IS NOT NULL
----
-150
13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5227
SELECT DISTINCT - + COUNT( * ) DIV 55 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - + COUNT ( * ) / 55 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - col1 * - 78 FROM tab0 AS cor0
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT MIN( - 88 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-88

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT MIN ( - 88 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-88

query I rowsort
SELECT 71 * + + 40 + col0 * - - col2 + col2 FROM tab2 AS cor0
----
3921
5440
7248

query I rowsort
SELECT 17 * - - col1 * + 32 + 7 AS col1 FROM tab0 AS cor0
----
11431
44071
551

query II rowsort
SELECT col2, ( - 79 ) FROM tab1 AS cor0
----
59
-79
68
-79
96
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT 87 DIV + 97 - col0 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-5233
SELECT 87 / + 97 - col0 col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5234
SELECT - 57 AS col1, - COUNT( ( - - col0 ) ) FROM tab1 AS cor0
----
-57
-3

skipif mysql # not compatible
query II rowsort label-5234
SELECT - 57 AS col1, - COUNT ( ( - - col0 ) ) FROM tab1 AS cor0
----
-57
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5235
SELECT MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT col2 * - ( - col0 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5237
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT DISTINCT + COUNT( * ) * - + 72 AS col1 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + COUNT ( * ) * - + 72 AS col1 FROM tab0 AS cor0
----
-216

query I rowsort
SELECT ALL 22 * + - col1 FROM tab0 cor0
----
-1782
-22
-462

query II rowsort
SELECT + 88 AS col1, - 30 FROM tab0
----
88
-30
88
-30
88
-30

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT col0 * col0 + + 99 FROM tab1
----
2700
7324
8380

query I rowsort
SELECT ALL 64 + col2 FROM tab0
----
111
163
74

query I rowsort
SELECT - 17 + + - 98 FROM tab1
----
-115
-115
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT - - col1 + 4 DIV + col2 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5245
SELECT - - col1 + 4 / + col2 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + col1 + + + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT 76 + - 51 * + col0 AS col2 FROM tab1 AS cor0
----
-2525
-4259
-4565

query I rowsort
SELECT DISTINCT + 77 + col1 FROM tab1 AS cor0 WHERE NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL + ( - - 98 ) + - MIN( + col1 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + ( - - 98 ) + - MIN ( + col1 ) FROM tab2
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * + 12 * - 79 * 87 + col1 IS NULL
----

query II rowsort
SELECT 61 * - + 19 - - + col1 + + col2 + - + col2, + col1 FROM tab2
----
-1082
77
-1092
67
-1108
51

query I rowsort
SELECT 99 - + col2 + 22 * - - col2 * 99 FROM tab0
----
102418
215622
21869

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT + 56 - MIN( 38 ) AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5253
SELECT + 56 - MIN ( 38 ) AS col0 FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5254
SELECT * FROM tab1 AS cor0 WHERE CAST( + 46 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5254
SELECT * FROM tab1 AS cor0 WHERE CAST ( + 46 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + col1 * + col0 + - col2, - col2 * col2 + col2 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5257
SELECT ALL + COUNT( * ) * + + 24 AS col1, - COUNT( * ) FROM tab2 AS cor0
----
72
-3

skipif mysql # not compatible
query II rowsort label-5257
SELECT ALL + COUNT ( * ) * + + 24 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
72
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5258
SELECT DISTINCT - ( CAST( - COUNT( * ) AS SIGNED ) ) * 49 AS col0 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) * 49 AS col0 FROM tab2
----
147

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 65 - + col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT - ( ( + - 57 ) ) DIV - col0 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5260
SELECT - ( ( + - 57 ) ) / - col0 AS col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT col2 / + 15 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT + + ( COUNT( * ) ) + - 88 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-5263
SELECT + + ( COUNT ( * ) ) + - 88 FROM tab2 AS cor0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 / - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5265
SELECT ALL + col0 DIV + CAST( - - ( - col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL + col0 / + CAST ( - - ( - col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT ALL + 73 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + 73 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - ( + + MAX( ALL - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5267
SELECT - ( + + MAX ( ALL - col1 ) ) FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT ALL + CAST( NULL AS SIGNED ) * - 54 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL + CAST ( NULL AS INTEGER ) * - 54 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT - + CAST( NULL AS SIGNED ) * - col2 * - col1 - - col0 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT - + CAST ( NULL AS INTEGER ) * - col2 * - col1 - - col0 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + col2 AS col1, + col2 AS col2 FROM tab1 cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + COUNT( * ) - + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 / - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + COUNT ( * ) - + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 / - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - MIN( 76 ) AS col1 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5272
SELECT - MIN ( 76 ) AS col1 FROM tab2 AS cor0
----
-76

query II rowsort
SELECT + + col2, + col1 + - - ( + 87 ) * - col0 * + col1 AS col0 FROM tab0 AS cor0
----
10
-158928
47
-105624
99
-8438

query II rowsort
SELECT - col2 AS col2, 60 AS col2 FROM tab0 AS cor0
----
-10
60
-47
60
-99
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) col0 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 37 + + col2 + + + col1 * + 55 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( + 69 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( + 69 AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT DISTINCT - 13 DIV - col1 * + col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - 13 / - col1 * + col1 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 38 IN ( - col2 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - 59 ) * + + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4012
-5664

query I rowsort
SELECT DISTINCT - + 21 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + - 43 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL MAX( + 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL MAX ( + 43 ) FROM tab2 AS cor0
----
43

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - 86 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT + MIN( - - 23 ) + - MIN( ALL - 59 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + MIN ( - - 23 ) + - MIN ( ALL - 59 ) FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5286
SELECT ALL + ( - 27 ) + + 58 AS col2, SUM( + 81 ) AS col1 FROM tab2
----
31
243

skipif mysql # not compatible
query II rowsort label-5286
SELECT ALL + ( - 27 ) + + 58 AS col2, SUM ( + 81 ) AS col1 FROM tab2
----
31
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 68 * + col1 * - - col1 col0 FROM tab2
----
-16126880
-17704616
-4067964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT DISTINCT - CAST( 61 AS SIGNED ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT - CAST ( 61 AS INTEGER ) FROM tab0 AS cor0
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-5289
SELECT col2 AS col2, - col0 - + 81 DIV + 56 + - + col2 AS col0 FROM tab0 AS cor0
----
10
-98
47
-63
99
-197

skipif mysql # not compatible
query II rowsort label-5289
SELECT col2 AS col2, - col0 - + 81 / + 56 + - + col2 AS col0 FROM tab0 AS cor0
----
10
-98
47
-63
99
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT + col2 DIV 11 * - - 90 + + 58 * - col2 FROM tab2 cor0
----
-1154
-2050
-2914

skipif mysql # not compatible
query I rowsort label-5290
SELECT + col2 / 11 * - - 90 + + 58 * - col2 FROM tab2 cor0
----
-1154
-2050
-2914

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5291
SELECT * FROM tab2 AS cor0 WHERE + 54 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5291
SELECT * FROM tab2 AS cor0 WHERE + 54 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5292
SELECT ALL 6 DIV + 64 * + col1, col2 + col1 AS col0 FROM tab1 AS cor0
----
0
110
0
115
0
64

skipif mysql # not compatible
query II rowsort label-5292
SELECT ALL 6 / + 64 * + col1, col2 + col1 AS col0 FROM tab1 AS cor0
----
0
110
0
115
0
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / - + 95 < NULL
----

query II rowsort
SELECT DISTINCT - 63 - - 51 AS col2, col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5295
SELECT DISTINCT - 34, + 49 col1 FROM tab2 AS cor0 WHERE col0 * CAST( NULL AS SIGNED ) NOT BETWEEN + 20 AND + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5295
SELECT DISTINCT - 34, + 49 col1 FROM tab2 AS cor0 WHERE col0 * CAST ( NULL AS INTEGER ) NOT BETWEEN + 20 AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + 15 NOT BETWEEN - - col2 + + 42 + - + 41 AND col0 * - - 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 41 - col1 + + - col0 * - 2 * + col1 * + + col0 * + col2 + 11 FROM tab0 WHERE - 37 * + col2 * - col1 IS NOT NULL
----
1713039
1862951
3178929

query I rowsort
SELECT DISTINCT 11 + - 28 FROM tab0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT DISTINCT col1 + + col0 AS col2 FROM tab0 WHERE ( NOT ( + CAST( + - 84 AS SIGNED ) ) IS NULL )
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT col1 + + col0 AS col2 FROM tab0 WHERE ( NOT ( + CAST ( + - 84 AS INTEGER ) ) IS NULL )
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT ALL - - COUNT( * ) + - 30 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - - COUNT ( * ) + - 30 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT - CAST( COUNT( ALL - col0 ) AS SIGNED ) FROM tab0 AS cor0 WHERE 48 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5301
SELECT - CAST ( COUNT ( ALL - col0 ) AS INTEGER ) FROM tab0 AS cor0 WHERE 48 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1
21
81

query I rowsort
SELECT col0 - + + 83 FROM tab0
----
-68
14
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5304
SELECT ALL * FROM tab0 WHERE + ( - col0 ) IS NOT NULL AND col1 + col1 + + CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5304
SELECT ALL * FROM tab0 WHERE + ( - col0 ) IS NOT NULL AND col1 + col1 + + CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 10, col2 FROM tab0 AS cor0
----
10
10
10
47
10
99

query I rowsort
SELECT ALL + 23 + - - col2 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - 98 AS col0 FROM tab0 AS cor0 WHERE ( col2 + + col2 + + col2 / + col0 + col1 ) NOT BETWEEN 29 AND col0
----
-98
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 > - 82
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT - COUNT( * ) DIV COUNT( * ) * - + 10 FROM tab1 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5309
SELECT - COUNT ( * ) / COUNT ( * ) * - + 10 FROM tab1 cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 22 col1, - 21 AS col0 FROM tab1
----
22
-21
22
-21
22
-21

query I rowsort
SELECT ALL - 79 * + col2 * - col0 * - + col2 FROM tab0
----
-2617665
-687300
-75105063

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5312
SELECT 69 AS col1, + col1 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
69
NULL
69
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-5312
SELECT 69 AS col1, + col1 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
69
NULL
69
NULL
69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT ALL col2 DIV col2 * - 26 FROM tab1
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL col2 / col2 * - 26 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT ALL + + 4 FROM tab2 WHERE NOT NULL BETWEEN - col2 - - col0 AND 56 - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5315
SELECT DISTINCT + col0, 13 DIV - 56 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-5315
SELECT DISTINCT + col0, 13 / - 56 FROM tab0
----
15
0
87
0
97
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 WHERE NULL IS NULL
----
35

query I rowsort
SELECT DISTINCT + + 88 AS col0 FROM tab0 AS cor0
----
88

query II rowsort
SELECT col0 * 8, 52 AS col2 FROM tab1 cor0
----
408
52
680
52
728
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT + col0 DIV + - 30 AS col2 FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT + col0 / + - 30 AS col2 FROM tab0 cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT 17 * col0 * - col1 * - col1 + + - col2 AS col0 FROM tab2
----
2033959
5723417
6450712

query I rowsort
SELECT ALL col1 + + 24 AS col0 FROM tab1
----
29
38
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL COUNT( ALL + 31 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5323
SELECT ALL COUNT ( ALL + 31 ) col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE col0 NOT BETWEEN col2 AND NULL
----
-47
-99

query I rowsort
SELECT DISTINCT - 51 + + - col2 AS col0 FROM tab2
----
-109
-74
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL MAX( ALL - col0 ) - + - COUNT( * ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL MAX ( ALL - col0 ) - + - COUNT ( * ) FROM tab2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5327
SELECT * FROM tab1 WHERE 1 / + CAST( NULL AS SIGNED ) + + ( - + 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5327
SELECT * FROM tab1 WHERE 1 / + CAST ( NULL AS INTEGER ) + + ( - + 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + 79 * + 6 + - MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
393

skipif mysql # not compatible
query I rowsort label-5329
SELECT + 79 * + 6 + - MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT + col1 + - + col2 * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5330
SELECT + col1 + - + col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - - COUNT( * ) + - 36 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5331
SELECT - - COUNT ( * ) + - 36 FROM tab0 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT - CAST( MAX( + col1 ) AS SIGNED ) * 56 + - + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-4309

skipif mysql # not compatible
query I rowsort label-5332
SELECT - CAST ( MAX ( + col1 ) AS INTEGER ) * 56 + - + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-4309

query I rowsort
SELECT ALL - 65 * - 85 FROM tab1 AS cor0
----
5525
5525
5525

query I rowsort
SELECT DISTINCT 56 FROM tab2 AS cor0 WHERE NULL >= 74
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 > NULL
----

query I rowsort
SELECT - - col0 * + + col2 FROM tab0 cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 59 col2 FROM tab1 AS cor0
----
-59
-59
-59

query II rowsort
SELECT ( col1 ), + 82 * + col0 * + 79 AS col0 FROM tab0 AS cor0
----
1
628366
21
563586
81
97170

query I rowsort
SELECT DISTINCT + - 46 AS col2 FROM tab0 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5340
SELECT * FROM tab0 WHERE NOT + CAST( - col2 AS SIGNED ) + - + col2 < NULL
----

skipif mysql # not compatible
query III rowsort label-5340
SELECT * FROM tab0 WHERE NOT + CAST ( - col2 AS INTEGER ) + - + col2 < NULL
----

query II rowsort
SELECT ALL - 68 AS col2, col1 FROM tab0
----
-68
1
-68
21
-68
81

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5343
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 * + - col1 AS col1, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5343
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 * + - col1 AS col1, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( col0 ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 * - col0 * 53, + col1 FROM tab0 AS cor0
----
5141
1
64395
81
96831
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + 11 + - COUNT( * ) + + SUM( DISTINCT + 71 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5346
SELECT + 11 + - COUNT ( * ) + + SUM ( DISTINCT + 71 ) FROM tab0 AS cor0
----
79

query I rowsort
SELECT + - col1 + + + ( + 67 ) AS col1 FROM tab0 AS cor0
----
-14
46
66

query III rowsort
SELECT * FROM tab0 WHERE + ( - - 65 ) IS NULL
----

query I rowsort
SELECT 81 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN col2 AND + 50
----
87
21
10

query II rowsort
SELECT + 37 - + + col2 AS col0, - 49 FROM tab2 AS cor0
----
-21
-49
-3
-49
14
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT DISTINCT + col1 * ( + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5352
SELECT DISTINCT + col1 * ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT - COUNT( * ) * + 1 + - 0 AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5353
SELECT - COUNT ( * ) * + 1 + - 0 AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0
----

query I rowsort
SELECT col1 + - - col2 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT ALL col1 * - - col1 AS col1, - ( + - 30 ) AS col0 FROM tab2 AS cor0
----
2601
30
4489
30
5929
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT - - COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT + 96 IS NOT NULL )
----
-9

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT - - COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT + 96 IS NOT NULL )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5358
SELECT * FROM tab0 WHERE ( + CAST( col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5358
SELECT * FROM tab0 WHERE ( + CAST ( col1 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT - col2 - - 63 * + ( col0 ) FROM tab0 WHERE NULL NOT BETWEEN + + col0 AND 6
----

query I rowsort
SELECT DISTINCT - col1 + + + col0 + + - col0 AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5361
SELECT ALL col1 DIV 25 - - + col2 AS col1 FROM tab1
----
59
69
96

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL col1 / 25 - - + col2 AS col1 FROM tab1
----
59
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT COUNT( * ) - + SUM( 22 ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT COUNT ( * ) - + SUM ( 22 ) AS col0 FROM tab0
----
-63

query I rowsort
SELECT 28 + - + 64 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT 20 * - col2 * + col0 AS col1 FROM tab2
----
-21160
-51200
-87000

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT + COUNT( DISTINCT - 25 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5365
SELECT + COUNT ( DISTINCT - 25 ) AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 20 - - ( - 36 ) * + col2 * + 60 + - 37 AS col0 FROM tab2 AS cor0
----
-125297
-49697
-86417

query I rowsort
SELECT 66 * col2 * - 62 FROM tab1
----
-241428
-278256
-392832

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL + MIN( - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + MIN ( - - col2 ) FROM tab0
----
10

query I rowsort
SELECT ALL 4 * - col2 FROM tab1
----
-236
-272
-384

query II rowsort
SELECT + col2 AS col1, + ( + 80 ) AS col1 FROM tab0 cor0
----
10
80
47
80
99
80

query I rowsort
SELECT - 1 FROM tab2 AS cor0 WHERE NOT col1 = col1
----

query II rowsort
SELECT col0 AS col2, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 59 + col1 * + col0 + 34 IS NOT NULL
----

query I rowsort
SELECT + - 43 * + col0 AS col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL SUM( DISTINCT - - col1 ) FROM tab2 WHERE ( 75 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL SUM ( DISTINCT - - col1 ) FROM tab2 WHERE ( 75 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * + col2 * + col2 * - - 80 col0 FROM tab0
----
1568160
16000
353440

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - MIN( ALL 12 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5377
SELECT - MIN ( ALL 12 ) FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT - 35 * + - MAX( ALL + col0 ) * - COUNT( * ) AS col1 FROM tab1
----
-9555

skipif mysql # not compatible
query I rowsort label-5378
SELECT - 35 * + - MAX ( ALL + col0 ) * - COUNT ( * ) AS col1 FROM tab1
----
-9555

query I rowsort
SELECT + col0 * + + col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT COUNT( ALL - col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5380
SELECT COUNT ( ALL - col1 ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 * - 63 * - 99 AS col1 FROM tab2 AS cor0
----
286902
399168
467775

query I rowsort
SELECT - 70 * - 70 FROM tab1 AS cor0
----
4900
4900
4900

query I rowsort
SELECT + col2 + + 41 FROM tab2 AS cor0
----
64
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL 33 * 92 * COUNT( * ) FROM tab1 AS cor0
----
9108

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 33 * 92 * COUNT ( * ) FROM tab1 AS cor0
----
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT + COUNT( * ) * - + 4 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5385
SELECT + COUNT ( * ) * - + 4 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT + col1 * 42 * 16 * + + col0 FROM tab1 AS cor0
----
285600
2874144
479808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5387
SELECT - 11 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5387
SELECT - 11 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5388
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5388
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT - + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT - + col0 / + col2 AS col0 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT MIN( ALL col0 ) * + - COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5390
SELECT MIN ( ALL col0 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-45

query II rowsort
SELECT ALL - col0 + col1 * + col2 AS col1, + col1 - - col2 FROM tab2 AS cor0
----
1127
74
3016
117
3811
125

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5392
SELECT DISTINCT - CAST( + - col2 AS DECIMAL ) * + + CAST( NULL AS DECIMAL ) - + 3 + - - col2 * + CAST( NULL AS DECIMAL ) + - col0 * - 61 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - CAST ( + - col2 AS REAL ) * + + CAST ( NULL AS REAL ) - + 3 + - - col2 * + CAST ( NULL AS REAL ) + - col0 * - 61 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 AS col2 FROM tab1
----
1293
210
3105

query I rowsort
SELECT 10 * - ( + - ( - col1 ) ) FROM tab1
----
-140
-470
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5395
SELECT + CAST( - + 89 AS SIGNED ) FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-5395
SELECT + CAST ( - + 89 AS INTEGER ) FROM tab1
----
-89
-89
-89

query I rowsort
SELECT + 8 - - + 91 FROM tab1
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT ALL CAST( AVG ( + 24 ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT + 58 <= - - col1 + col0 * - col2 + + 72
----
24

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL CAST ( AVG ( + 24 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT + 58 <= - - col1 + col0 * - col2 + + 72
----
24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( - col0 BETWEEN - 6 AND - col0 * ( - 70 ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT ALL 27 + COUNT( * ) - - 89 + + 17 + + - COUNT( * ) DIV + 67 AS col2 FROM tab2
----
136

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL 27 + COUNT ( * ) - - 89 + + 17 + + - COUNT ( * ) / + 67 AS col2 FROM tab2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - 15 - COUNT( * ) + - MIN( ALL - col0 ) * 40 + COUNT( * ) AS col1 FROM tab1
----
3625

skipif mysql # not compatible
query I rowsort label-5400
SELECT - 15 - COUNT ( * ) + - MIN ( ALL - col0 ) * 40 + COUNT ( * ) AS col1 FROM tab1
----
3625

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT ALL - col2 - col1 DIV 58 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL - col2 - col1 / 58 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-5402
SELECT - 71 + + 21 DIV ( col1 ), - col0 * - ( - col1 ) AS col2 FROM tab2 cor0
----
-71
-2346
-71
-4928
-71
-5025

skipif mysql # not compatible
query II rowsort label-5402
SELECT - 71 + + 21 / ( col1 ), - col0 * - ( - col1 ) AS col2 FROM tab2 cor0
----
-71
-2346
-71
-4928
-71
-5025

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= NULL AND NOT ( NULL ) BETWEEN NULL AND + 50
----

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - - 22 AS col2 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL - - 24 AS col1 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT + ( + - 24 ) AS col1 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - - col2 * + 14 FROM tab0 AS cor0
----
1386
140
658

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5409
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 - - CAST( NULL AS SIGNED ) * + - col1 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5409
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 - - CAST ( NULL AS INTEGER ) * + - col1 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( ( + - 63 ) ) FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT DISTINCT - col2 + col2 + + col1 DIV 22 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - col2 + col2 + + col1 / 22 FROM tab1 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT MIN( ALL + + 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT MIN ( ALL + + 62 ) FROM tab1
----
62

query I rowsort
SELECT + col2 * - 48 * + col2 + + + col2 AS col1 FROM tab0 WHERE NOT 89 * col1 - 88 > NULL
----

query I rowsort
SELECT - + 40 + - col1 AS col1 FROM tab2 AS cor0
----
-107
-117
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT MIN( + 68 ) + + ( 55 ) AS col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-5416
SELECT MIN ( + 68 ) + + ( 55 ) AS col0 FROM tab1 AS cor0
----
123

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) >= + col2
----

query I rowsort
SELECT ALL + 84 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT + 51 + CAST( NULL AS SIGNED ) * - 51 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5419
SELECT + 51 + CAST ( NULL AS INTEGER ) * - 51 col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col2 * 22 / - 14 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 51 + - + ( + 71 ) FROM tab1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT ALL + MIN( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 - + 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - + - 47 + - 35 * - col2 FROM tab0 AS cor0
----
1707
3609
484

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 23 + - col0 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5426
SELECT ALL * FROM tab0 WHERE NOT + 48 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5426
SELECT ALL * FROM tab0 WHERE NOT + 48 < - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col1 AS col0, - col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT - col0 + col0 DIV + 67 col0 FROM tab1
----
-51
-84
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5428
SELECT - col0 + col0 / + 67 col0 FROM tab1
----
-51
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT - col1 / col2 - + + 93 + - + col2 * col0 + + + col1 + + 44 * + col0 + - - 63 + + col1 * - - 55 * - col0 FROM tab1 WHERE NOT + col2 + + - CAST( NULL AS SIGNED ) + + ( 46 ) * col0 + + col0 < - col1
----

skipif mysql # not compatible
query I rowsort label-5429
SELECT - col1 / col2 - + + 93 + - + col2 * col0 + + + col1 + + 44 * + col0 + - - 63 + + col1 * - - 55 * - col0 FROM tab1 WHERE NOT + col2 + + - CAST ( NULL AS INTEGER ) + + ( 46 ) * col0 + + col0 < - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - ( - ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col0 FROM tab1 cor0
----
-89
-89
-89

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 53 * - 22 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT col0 * CAST( col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5433
SELECT col0 * CAST ( col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + col0 * + 14 + + 84 + col2 AS col0 FROM tab1 AS cor0
----
1333
1426
894

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT - 7 col2, COUNT( + 66 ) AS col1 FROM tab2 AS cor0
----
-7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5435
SELECT - 7 col2, COUNT ( + 66 ) AS col1 FROM tab2 AS cor0
----
-7
3

query II rowsort
SELECT + ( - + col2 ) AS col1, + ( - + 61 ) FROM tab1
----
-59
-61
-68
-61
-96
-61

query I rowsort
SELECT ALL 9 * - 78 * - col2 * + col0 + + - col2 FROM tab2
----
1797080
3053642
742693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + + col1 + + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + + col1 + + col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + - col0 + - + 69 * col1 AS col0 FROM tab1
----
-3243
-345
-966

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5440
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 4, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5440
SELECT DISTINCT CAST ( NULL AS REAL ) + + 4, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT COUNT( * ) * + + 92 * - 26 FROM tab1
----
-7176

skipif mysql # not compatible
query I rowsort label-5441
SELECT COUNT ( * ) * + + 92 * - 26 FROM tab1
----
-7176

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT + ( + ( + + COUNT( * ) ) ) AS col0 FROM tab2 WHERE + + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5442
SELECT + ( + ( + + COUNT ( * ) ) ) AS col0 FROM tab2 WHERE + + col1 <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT DISTINCT - MAX( DISTINCT - + CAST( - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT - MAX ( DISTINCT - + CAST ( - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + col0 + - + 55 AS col0 FROM tab2
----
-9
20
9

query I rowsort
SELECT ALL - 8 + col1 * + + col0 AS col1 FROM tab0 AS cor0
----
1207
1819
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92 AS col0, + col0 col1 FROM tab0 AS cor0
----
92
15
92
87
92
97

query II rowsort
SELECT - col1 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5449
SELECT ALL - MAX( DISTINCT - - CAST( - + ( - 33 ) AS SIGNED ) ) + 24 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - MAX ( DISTINCT - - CAST ( - + ( - 33 ) AS INTEGER ) ) + 24 FROM tab1 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - + 39 + - col0 col1 FROM tab2 AS cor0
----
-56
-62
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT DISTINCT COUNT( * ) AS col1, - 29 * + + MIN( col0 ) FROM tab2 AS cor0
----
3
-1334

skipif mysql # not compatible
query II rowsort label-5451
SELECT DISTINCT COUNT ( * ) AS col1, - 29 * + + MIN ( col0 ) FROM tab2 AS cor0
----
3
-1334

query I rowsort
SELECT + 68 - - 34 + 18 AS col1 FROM tab1
----
120
120
120

query I rowsort
SELECT DISTINCT + ( + - ( 88 ) ) FROM tab1
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5454
SELECT * FROM tab1 WHERE NOT + col2 / - + col0 + + col2 + - 78 - 55 * - CAST( + col2 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5454
SELECT * FROM tab1 WHERE NOT + col2 / - + col0 + + col2 + - 78 - 55 * - CAST ( + col2 AS REAL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT - COUNT( * ) FROM tab0 WHERE NOT - ( + - col0 ) + - - col0 + + - col1 + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5455
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - ( + - col0 ) + - - col0 + + - col1 + col1 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 3 AND + - ( - + col2 ) + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ( + ( - 32 ) ) DIV + col1 AS col1 FROM tab0
----
-1
-32
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT ( + ( - 32 ) ) / + col1 AS col1 FROM tab0
----
-1
-32
0

query I rowsort
SELECT DISTINCT col1 * - 97 FROM tab1
----
-1358
-4559
-485

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE NOT + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + - SUM( ALL + 23 ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5460
SELECT + - SUM ( ALL + 23 ) AS col2 FROM tab2 AS cor0
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5461
SELECT + + ( - col2 ) col2 FROM tab2 AS cor0 WHERE NOT - CAST( + + 90 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT + + ( - col2 ) col2 FROM tab2 AS cor0 WHERE NOT - CAST ( + + 90 AS REAL ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 3 AND 60
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + 44 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT 55 - + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64

skipif mysql # not compatible
query I rowsort label-5464
SELECT 55 - + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 71 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5466
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5467
SELECT DISTINCT 78 DIV + 20 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT 78 / + 20 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL SUM( + ( - + col1 ) ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL SUM ( + ( - + col1 ) ) AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5469
SELECT + - COUNT( * ) DIV + 15 - + - 21 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5469
SELECT + - COUNT ( * ) / + 15 - + - 21 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT + MAX( - - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + MAX ( - - col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT + - ( - + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + ( + col2 ) * + + 74 * 80 AS col1 FROM tab0 AS cor0
----
278240
586080
59200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col2 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL + MAX( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + MAX ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT COUNT( * ) * + - 52 AS col0 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT COUNT ( * ) * + - 52 AS col0 FROM tab2 AS cor0
----
-156

query II rowsort
SELECT + col0 AS col1, ( col0 ) FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT - 46 * 65 + col1 + - 8 + + col1 DIV + col2 FROM tab0 AS cor0
----
-2916
-2975
-2997

skipif mysql # not compatible
query I rowsort label-5477
SELECT - 46 * 65 + col1 + - 8 + + col1 / + col2 FROM tab0 AS cor0
----
-2916
-2975
-2997

query I rowsort
SELECT - 61 AS col2 FROM tab1 cor0
----
-61
-61
-61

query II rowsort
SELECT DISTINCT - + col0 * - 42 + + col0, ( col1 ) AS col0 FROM tab1 AS cor0
----
2193
14
3655
5
3913
47

query I rowsort
SELECT ALL + col1 + col0 - - ( + ( + 90 ) ) AS col1 FROM tab1
----
155
180
228

query II rowsort
SELECT ALL + col2 AS col2, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT ALL 3 * + col0 * - col2 + + col0 - + col2 + + CAST( - - 77 AS SIGNED ) FROM tab0
----
-2070
-2456
-28734

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL 3 * + col0 * - col2 + + col0 - + col2 + + CAST ( - - 77 AS INTEGER ) FROM tab0
----
-2070
-2456
-28734

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5483
SELECT - CAST( NULL AS DECIMAL ) + + + col0 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT - CAST ( NULL AS REAL ) + + + col0 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 57 * + - col0 + - col0 FROM tab2 cor0
----
-2668
-3712
-4350

query II rowsort
SELECT ALL 11 + + col0 AS col2, col1 * 19 + + 60 FROM tab0
----
108
79
26
1599
98
459

query I rowsort
SELECT + ( + + col0 ) - + col0 + col1 * - 51 FROM tab0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + SUM( DISTINCT + + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + SUM ( DISTINCT + + col1 ) AS col1 FROM tab0
----
103

query II rowsort
SELECT DISTINCT col0 * 4 - - + col1, col1 AS col1 FROM tab0
----
141
81
369
21
389
1

query II rowsort
SELECT - 57 + + col0 AS col2, - 36 AS col0 FROM tab2 cor0
----
-11
-36
18
-36
7
-36

query I rowsort
SELECT ALL - 17 - - - col2 AS col0 FROM tab2 AS cor0
----
-40
-57
-75

query I rowsort
SELECT ALL - ( 97 ) AS col0 FROM tab1 cor0
----
-97
-97
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 7 BETWEEN ( + 38 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-5494
SELECT 75 * - col2 AS col0, col2 * col0 DIV - col1 FROM tab2 AS cor0
----
-1725
-20
-3000
-33
-4350
-64

skipif mysql # not compatible
query II rowsort label-5494
SELECT 75 * - col2 AS col0, col2 * col0 / - col1 FROM tab2 AS cor0
----
-1725
-20
-3000
-33
-4350
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5496
SELECT ALL COUNT ( * ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT + col2 AS col0, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5499
SELECT COUNT( * ), 49 AS col0 FROM tab2
----
3
49

skipif mysql # not compatible
query II rowsort label-5499
SELECT COUNT ( * ), 49 AS col0 FROM tab2
----
3
49

query II rowsort
SELECT - 63, + col1 * + 76 AS col1 FROM tab2
----
-63
3876
-63
5092
-63
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL - MAX( ALL + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - MAX ( ALL + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL MIN( ALL 95 ) AS col0 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL MIN ( ALL 95 ) AS col0 FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL - SUM( ALL + col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - SUM ( ALL + col0 ) AS col1 FROM tab2 cor0
----
-185

query I rowsort
SELECT - col0 * + col0 - col1 * 46 AS col0 FROM tab1
----
-10443
-3245
-7455

query I rowsort
SELECT DISTINCT col0 * + 33 AS col2 FROM tab2
----
1518
2112
2475

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <> ( - col2 ) * col2
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT - col2 <= col0 / col0 + col0 * - col2
----
51
67
77

query I rowsort
SELECT ALL 90 + - col0 FROM tab2 WHERE NOT NULL <= - col0 - + col1
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT + col2 * + col2 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT COUNT( * ) + + 31 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-5510
SELECT COUNT ( * ) + + 31 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT - SUM( ALL col2 ) * - COUNT( * ) + 21 AS col2 FROM tab2
----
384

skipif mysql # not compatible
query I rowsort label-5511
SELECT - SUM ( ALL col2 ) * - COUNT ( * ) + 21 AS col2 FROM tab2
----
384

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 / - col2 + 58 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT DISTINCT - col2 + + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - col2 + + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( - 64 ) FROM tab0
----
-64

query I rowsort
SELECT DISTINCT ( - col2 ) * + 79 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT ALL 79 * + col1 FROM tab1
----
1106
3713
395

query III rowsort
SELECT * FROM tab0 WHERE ( - 16 ) <> 37 + - 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT MAX( 93 ) * COUNT( * ) AS col2 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT MAX ( 93 ) * COUNT ( * ) AS col2 FROM tab1
----
279

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5520
SELECT AVG ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT AVG ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 91 ) col1 FROM tab0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ( + COUNT( DISTINCT col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5522
SELECT ( + COUNT ( DISTINCT col0 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 31 * + col0 AS col2 FROM tab1
----
-1581
-2635
-2821

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5524
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-5524
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - COUNT( * ) - - 63 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5525
SELECT - COUNT ( * ) - - 63 FROM tab1 AS cor0
----
60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( - 81 + - ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT + ( CAST( NULL AS SIGNED ) ) + + 62 / col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5527
SELECT + ( CAST ( NULL AS INTEGER ) ) + + 62 / col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 80 FROM tab1 AS cor0 CROSS JOIN tab2
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - COUNT( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5530
SELECT ALL - COUNT ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT + ( col2 ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5531
SELECT + ( col2 ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 33 BETWEEN ( col2 ) AND + 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 70 BETWEEN ( NULL ) AND 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5534
SELECT - + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 32 * col2 col0 FROM tab2 AS cor0
----
1280
1856
736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5536
SELECT ALL + 86 DIV COUNT( * ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + 86 / COUNT ( * ) FROM tab1 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT - AVG ( - 62 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT - AVG ( - 62 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - 7 IS NULL OR NOT 7 > ( - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - SUM( DISTINCT + + col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5539
SELECT - SUM ( DISTINCT + + col2 ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT - 41 FROM tab1 WHERE - 14 NOT IN ( col1 ) OR NOT col0 = NULL
----
-41
-41
-41

query I rowsort
SELECT ALL 75 * - + col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

query I rowsort
SELECT 36 + - col0 FROM tab0 AS cor0
----
-51
-61
21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5543
SELECT * FROM tab2 AS cor0 WHERE NOT - 90 <> ( CAST( NULL AS DECIMAL ) + 80 ) AND NOT ( 77 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5543
SELECT * FROM tab2 AS cor0 WHERE NOT - 90 <> ( CAST ( NULL AS REAL ) + 80 ) AND NOT ( 77 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 56 AS col2 FROM tab1 AS cor0 WHERE NULL <= + 36 * col1
----

query I rowsort
SELECT 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT COUNT( * ) / MIN( + col0 ) FROM tab0 WHERE - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT COUNT ( * ) / MIN ( + col0 ) FROM tab0 WHERE - col0 = NULL
----
NULL

query I rowsort
SELECT + - col0 + col2 * 45 FROM tab0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - 56 + - col0
----

query I rowsort
SELECT DISTINCT 51 + - col1 FROM tab1 AS cor0
----
37
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT + SUM( DISTINCT 37 ) AS col2 FROM tab1 AS cor0 WHERE col0 >= - 20
----
37

skipif mysql # not compatible
query I rowsort label-5550
SELECT + SUM ( DISTINCT 37 ) AS col2 FROM tab1 AS cor0 WHERE col0 >= - 20
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + ( - + SUM( ALL + + col0 ) ) AS col2 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5551
SELECT + ( - + SUM ( ALL + + col0 ) ) AS col2 FROM tab2 cor0
----
-185

query I rowsort
SELECT - col2 * - + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 57 <> ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col0 * - col2 * col0 NOT IN ( + col0 / - col0 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - MIN( + - ( - col1 ) ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5555
SELECT - MIN ( + - ( - col1 ) ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 89 + col1 AS col2 FROM tab0 AS cor0 WHERE ( 71 + + col1 - col1 ) IS NULL
----

query I rowsort
SELECT col0 + - 0 - col1 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1168
3067
3894

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 - - + 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + COUNT( * ) + + 42 AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + COUNT ( * ) + + 42 AS col0 FROM tab2
----
45

query I rowsort
SELECT ALL + col2 * - col2 + col1 FROM tab1
----
-3476
-4577
-9202

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT DISTINCT col2 DIV col1 + col2 FROM tab1
----
102
69
70

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT col2 / col1 + col2 FROM tab1
----
102
69
70

query I rowsort
SELECT - ( 20 ) * col0 + - col1 AS col2 FROM tab2
----
-1357
-1567
-971

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5564
SELECT * FROM tab1 WHERE - - CAST( + + col1 AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5564
SELECT * FROM tab1 WHERE - - CAST ( + + col1 AS INTEGER ) + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 33 + - - col0 col0, - 78 AS col1 FROM tab0
----
120
-78
130
-78
48
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT 11 + COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-5566
SELECT 11 + COUNT ( * ) FROM tab2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT + CAST( - - 49 AS SIGNED ) + - col0 - - 64 AS col2 FROM tab2
----
38
49
67

skipif mysql # not compatible
query I rowsort label-5567
SELECT + CAST ( - - 49 AS INTEGER ) + - col0 - - 64 AS col2 FROM tab2
----
38
49
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT ALL CAST( NULL AS SIGNED ) / 53 + + + COUNT( * ) / + CAST( NULL AS SIGNED ) + + MAX( DISTINCT + 30 + + ( + ( 43 ) ) ) * - 49 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL CAST ( NULL AS INTEGER ) / 53 + + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT + 30 + + ( + ( 43 ) ) ) * - 49 FROM tab0
----
NULL

query I rowsort
SELECT - col1 + - - col1 * + col2 AS col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT + col2 * - ( - + col2 ) FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + + 29 / + col0 + - 62 + col2 AND col2
----
87
21
10

query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab0 WHERE NOT NULL <= ( - 11 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + 14 col1 FROM tab0 AS cor0
----
-1218
-1358
-210

query I rowsort
SELECT + ( 63 ) + 77 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 56 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT DISTINCT - + 91 DIV - + col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT - + 91 / - + col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + + 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( 2 + - col2 ) IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - col2 * col0 AS col0 FROM tab0 AS cor0 WHERE 8 * + - col2 + col2 + col1 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT - - col0 * + - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT + + MIN( + - 99 ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5583
SELECT + + MIN ( + - 99 ) FROM tab2 AS cor0
----
-99

query I rowsort
SELECT ALL col0 + - 63 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5585
SELECT DISTINCT col0 DIV - + 97 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT col0 / - + 97 FROM tab0 cor0
----
-1
0

query II rowsort
SELECT ALL col2, + col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT + 30 DIV - + col0 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT + 30 / - + col0 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 43 + - 27 AS col1 FROM tab1
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT - SUM( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND ( NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT - SUM ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND ( NULL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL - CAST( NULL AS SIGNED ) * - ( - col1 ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( - col1 ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col0 FROM tab0 cor0
----
45

query I rowsort
SELECT - col0 * - 80 + - col2 * col1 FROM tab0 AS cor0
----
-2607
6750
7661

query I rowsort
SELECT - col0 * 48 AS col0 FROM tab1
----
-2448
-4080
-4368

query II rowsort
SELECT DISTINCT col0 AS col1, + col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * col1 BETWEEN NULL AND ( + + col0 * + col1 - + 75 * - 24 )
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 * - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5598
SELECT ALL COUNT( * ) - CAST( + COUNT( * ) AS SIGNED ) + + CAST( 89 AS SIGNED ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL COUNT ( * ) - CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( 89 AS INTEGER ) FROM tab0
----
89

query I rowsort
SELECT DISTINCT 31 - - + col2 * - + col2 * + + 77 FROM tab0
----
-170062
-754646
-7669

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT - 41 + COUNT( * ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5600
SELECT - 41 + COUNT ( * ) FROM tab2 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + COUNT( - + col0 ) * + SUM( col1 ) AS col2 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-5601
SELECT + COUNT ( - + col0 ) * + SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col0 FROM tab2 AS cor0
----
21

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 28 ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5604
SELECT + - COUNT( * ) + - CAST( + - ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT + - COUNT ( * ) + - CAST ( + - ( + CAST ( NULL AS INTEGER ) ) AS REAL ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) * + col1 col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5605
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) * + col1 col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - + 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT + - 63 * col1 FROM tab0 AS cor0
----
-1323
-5103
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT + + COUNT( * ) * + 30 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5608
SELECT + + COUNT ( * ) * + 30 FROM tab2 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col2 FROM tab2 AS co