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 cor0
----
15
15
15

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT + CAST( 98 AS SIGNED ) * - 51 AS col1 FROM tab0 AS cor0
----
-4998
-4998
-4998

skipif mysql # not compatible
query I rowsort label-5613
SELECT + CAST ( 98 AS INTEGER ) * - 51 AS col1 FROM tab0 AS cor0
----
-4998
-4998
-4998

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

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

query I rowsort
SELECT DISTINCT col0 * - - 65 AS col2 FROM tab2
----
2990
4160
4875

query I rowsort
SELECT ALL col1 * + ( 10 ) AS col2 FROM tab2
----
510
670
770

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - 45 NOT IN ( + - col2 * + 44 * + - col0 * + 65 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5618
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + col1 / - CAST( NULL AS SIGNED ) + + + col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-5618
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + col1 / - CAST ( NULL AS INTEGER ) + + + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL - col2 FROM tab2 WHERE NOT - + CAST( col0 AS SIGNED ) BETWEEN - + ( + 54 ) AND col2
----
-40
-58

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - col2 FROM tab2 WHERE NOT - + CAST ( col0 AS INTEGER ) BETWEEN - + ( + 54 ) AND col2
----
-40
-58

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

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

query I rowsort
SELECT + + col0 + - - 69 AS col0 FROM tab2 AS cor0
----
115
133
144

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

query I rowsort
SELECT ALL - col1 * - - col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT 68 * + 40 AS col1 FROM tab0
----
2720
2720
2720

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + 88 + - 18
----

query I rowsort
SELECT ALL + + 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT DISTINCT CAST( col0 AS SIGNED ) + - + col2 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - + col2 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5628
SELECT - CAST( NULL AS DECIMAL ) AS col2, col0 col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5628
SELECT - CAST ( NULL AS REAL ) AS col2, col0 col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT + col0 - + + CAST( + - 11 AS SIGNED ) FROM tab0 AS cor0
----
108
26
98

skipif mysql # not compatible
query I rowsort label-5629
SELECT + col0 - + + CAST ( + - 11 AS INTEGER ) FROM tab0 AS cor0
----
108
26
98

query I rowsort
SELECT ALL + 17 - - 7 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT ALL col1 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

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

query I rowsort
SELECT ALL + col0 + + col2 - + + 1 AS col0 FROM tab1 cor0
----
143
146
158

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - - col2, - 31 )
----

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

skipif mysql # not compatible
query III rowsort label-5637
SELECT * FROM tab0 WHERE ( + - col1 + + + CAST ( - col0 AS INTEGER ) ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT + 4 * col1 - + - col1 AS col2 FROM tab2
----
255
335
385

query I rowsort
SELECT - col0 * - - ( - - col2 ) * + col0 + + col0 * - 7 FROM tab2
----
-164288
-326775
-48990

query II rowsort
SELECT DISTINCT - - col0 AS col2, + ( + col2 ) + col2 AS col1 FROM tab2 WHERE ( NOT - col0 >= NULL )
----

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

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

query II rowsort
SELECT ALL 16 * - ( col1 ) * + col0 AS col2, 43 FROM tab1 AS cor0 WHERE + col0 + 59 + - - col1 <> - col0
----
-11424
43
-6800
43
-68432
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 70, col0 col1 FROM tab1 AS cor0
----
70
51
70
85
70
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT + - MIN( + col0 ) - COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + - MIN ( + col0 ) - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col2, ( - ( + col1 ) ) + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-51
-102
-67
-134
-77
-154

query I rowsort
SELECT - 31 * col1 * col1 AS col2 FROM tab1
----
-6076
-68479
-775

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

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

query I rowsort
SELECT ALL 32 * + col2 FROM tab0
----
1504
3168
320

query II rowsort
SELECT - col1 * + col2 AS col0, + 80 * - - col1 AS col1 FROM tab2
----
-1173
4080
-3080
6160
-3886
5360

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL + MIN( ALL - 33 ) + - - ( - COUNT( * ) ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + MIN ( ALL - 33 ) + - - ( - COUNT ( * ) ) AS col2 FROM tab1
----
-36

query I rowsort
SELECT - col0 * - + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 70 * 77 - 27
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT 19 + - ( + MIN( col0 ) ) AS col2, - 52 FROM tab2 AS cor0
----
-27
-52

skipif mysql # not compatible
query II rowsort label-5653
SELECT 19 + - ( + MIN ( col0 ) ) AS col2, - 52 FROM tab2 AS cor0
----
-27
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - 75 + + ( COUNT( * ) ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5654
SELECT - 75 + + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-72

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

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

query II rowsort
SELECT ALL + + 80 AS col0, 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 34e0f081680cb6ec20b29b22cf807959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT DISTINCT + col0 - + CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
-210
-7482
-9312

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + col0 - + CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT + 60 - - col2 AS col0 FROM tab0 AS cor0
----
107
159
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT ALL col2 - CAST( - col2 AS SIGNED ) + + 24 FROM tab0 AS cor0
----
118
222
44

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL col2 - CAST ( - col2 AS INTEGER ) + + 24 FROM tab0 AS cor0
----
118
222
44

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

skipif mysql # not compatible
query III rowsort label-5660
SELECT * FROM tab1 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5663
SELECT - 95 AS col2, col1 * - CAST( - - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-95
-1173
-95
-3080
-95
-3886

skipif mysql # not compatible
query II rowsort label-5663
SELECT - 95 AS col2, col1 * - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-95
-1173
-95
-3080
-95
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5664
SELECT MAX( - - col1 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5664
SELECT MAX ( - - col1 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
25

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5665
SELECT DISTINCT - + ( + + col1 ) * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 23 - - - col2 * - + 26 AS col2 FROM tab0 AS cor0
----
1245
2597
283

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL COUNT( * ) * 9 col1 FROM tab0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5667
SELECT ALL COUNT ( * ) * 9 col1 FROM tab0
----
27

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

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

query I rowsort
SELECT ALL - col2 + + 80 FROM tab2
----
22
40
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT 67 - + - col1 DIV 85 AS col1 FROM tab0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-5670
SELECT 67 - + - col1 / 85 AS col1 FROM tab0
----
67
67
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ( - COUNT( * ) ) - + - COUNT( * ) * 64 col0 FROM tab2
----
189

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

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

skipif mysql # not compatible
query II rowsort label-5673
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT + - 81 / + col1 * - - col0 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5674
SELECT + - 81 / + col1 * - - col0 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5677
SELECT DISTINCT SUM( DISTINCT + col1 ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
103
3

skipif mysql # not compatible
query II rowsort label-5677
SELECT DISTINCT SUM ( DISTINCT + col1 ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
103
3

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

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

skipif mysql # not compatible
query I rowsort label-5679
SELECT - COUNT ( DISTINCT - CAST ( + + ( - 2 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-1

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

skipif mysql # not compatible
query I rowsort label-5680
SELECT MAX ( - 18 ) AS col0 FROM tab1 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL - MAX( - col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - MAX ( - col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-153

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

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

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 75 col2 FROM tab1
----
-16
-7
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT - 44 DIV - - 80 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5685
SELECT - 44 / - - 80 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT + 18 * - 80 + + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT + 18 * - 80 + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NOT ( NULL ) <> 41
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 + + col1 col2 FROM tab2
----
122
138
148

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

query II rowsort
SELECT 17 AS col0, col1 + - 42 + 73 + + col0 FROM tab0 WHERE - 91 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - 76 * COUNT( * ) + 21 AS col0 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-5693
SELECT - 76 * COUNT ( * ) + 21 AS col0 FROM tab1
----
-207

query I rowsort
SELECT + col1 + + - 39 * - col1 AS col2 FROM tab2 cor0
----
2040
2680
3080

query I rowsort
SELECT - col1 + + 5 AS col1 FROM tab1 AS cor0
----
-42
-9
0

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

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

query I rowsort
SELECT + 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL 74 + + col2 * + + col2 AS col1 FROM tab2
----
1674
3438
603

query I rowsort
SELECT ALL col2 + + + col2 + - + col2 AS col2 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5700
SELECT ALL 32 DIV col0 + - col2 - - + col0 AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL 32 / col0 + - col2 - - + col0 AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL - 32 * - 58 + col2 * - - col0 FROM tab1 AS cor0
----
6752
6871
8044

query I rowsort
SELECT + 18 - col2 * + 86 * - - 39 AS col0 FROM tab1 AS cor0
----
-197868
-228054
-321966

query I rowsort
SELECT ALL - 85 + col1 FROM tab1 cor0 WHERE col2 BETWEEN col0 - - 11 * - col2 + 90 AND col1
----

query II rowsort
SELECT - col2 + - + col2, - col2 AS col1 FROM tab0 AS cor0
----
-198
-99
-20
-10
-94
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT DISTINCT - MAX( col1 ) - - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT - MAX ( col1 ) - - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 41 + - col1 + - - 96 + 42 + - 23 * - - 51 <> - + 66
----
0

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 41 + - col1 + - - 96 + 42 + - 23 * - - 51 <> - + 66
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT col2 + + col1 DIV - col1 + - + col1 * - + col2 * + col0 FROM tab1 AS cor0
----
25133
290903
68639

skipif mysql # not compatible
query I rowsort label-5708
SELECT col2 + + col1 / - col1 + - + col1 * - + col2 * + col0 FROM tab1 AS cor0
----
25133
290903
68639

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 39 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 col1, 52 FROM tab1
----
73
52
73
52
73
52

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

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

query II rowsort
SELECT DISTINCT - 15 + - - 91, 51 FROM tab0 WHERE col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT DISTINCT MAX( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE + 68 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT MAX ( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE + 68 IS NULL
----
NULL

query II rowsort
SELECT + 81, - 35 AS col1 FROM tab1 AS cor0
----
81
-35
81
-35
81
-35

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5716
SELECT CAST ( NULL AS INTEGER ) / + col1, + col2 col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

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

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

query II rowsort
SELECT - 84 AS col0, 55 AS col0 FROM tab0 cor0
----
-84
55
-84
55
-84
55

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab1 AS cor0 WHERE NULL = - 97
----

query I rowsort
SELECT ALL col0 + - ( - col2 ) AS col0 FROM tab0 cor0
----
196
62
97

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

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

query I rowsort
SELECT DISTINCT - col1 + - + col2 + + col0 + + + col2 * col1 FROM tab0 AS cor0
----
266
3694
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT + MIN( DISTINCT + + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5723
SELECT + MIN ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL - 31 + - COUNT( * ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - 31 + - COUNT ( * ) FROM tab2
----
-34

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

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

query I rowsort
SELECT ALL col0 + + - col0 * + + col0 FROM tab2
----
-2070
-4032
-5550

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

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

query I rowsort
SELECT ALL + 4 + + col1 FROM tab1
----
18
51
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col1 col1, - col1 * 24 FROM tab0
----
-210
-504
-3807
-1944
-99
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT DISTINCT 74 + 80 * - - COUNT( * ) FROM tab2 AS cor0
----
314

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT 74 + 80 * - - COUNT ( * ) FROM tab2 AS cor0
----
314

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - - COUNT( * ) * + COUNT( * ) + + 11 * + - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5735
SELECT - - COUNT ( * ) * + COUNT ( * ) + + 11 * + - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-27

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * + + col1 + - col0 * - 79 + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL > col0 * + 72 * + - 79
----
0

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL > col0 * + 72 * + - 79
----
0

query I rowsort
SELECT ALL 29 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT - col0 + 90 AS col0 FROM tab2
----
15
26
44

query I rowsort
SELECT ALL - 37 + 35 AS col0 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL COUNT( ALL + - col2 ) + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL COUNT ( ALL + - col2 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-5743
SELECT ALL - 66 AS col2, col1 DIV col0 DIV col0 FROM tab1 AS cor0
----
-66
0
-66
0
-66
0

skipif mysql # not compatible
query II rowsort label-5743
SELECT ALL - 66 AS col2, col1 / col0 / col0 FROM tab1 AS cor0
----
-66
0
-66
0
-66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT + + MIN( DISTINCT 52 ) col0 FROM tab0 cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5744
SELECT + + MIN ( DISTINCT 52 ) col0 FROM tab0 cor0
----
52

query II rowsort
SELECT - 91, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 75 + + + 93 IS NULL
----
-91
-46
-91
-64
-91
-75

query I rowsort
SELECT - 24 * - + col0 FROM tab0
----
2088
2328
360

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

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

query I rowsort
SELECT ALL ( - 70 ) FROM tab1
----
-70
-70
-70

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5750
SELECT - 97 * 84 col2, - col0 DIV + col1 AS col2 FROM tab0
----
-8148
-4
-8148
-97
-8148
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5750
SELECT - 97 * 84 col2, - col0 / + col1 AS col2 FROM tab0
----
-8148
-4
-8148
-97
-8148
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5751
SELECT DISTINCT - + COUNT( * ) + COUNT( CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT - + COUNT ( * ) + COUNT ( CAST ( NULL AS REAL ) ) FROM tab1 WHERE + col1 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT - + col1 + - - col2 + - col2 + - 41 FROM tab2 AS cor0 WHERE - col2 + col2 IS NULL
----

query I rowsort
SELECT ALL - col2 * + col0 FROM tab1 AS cor0 WHERE + 78 * + + 18 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT DISTINCT + 59 DIV - - 8 FROM tab2 WHERE - 29 + - 52 IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT + 59 / - - 8 FROM tab2 WHERE - 29 + - 52 IS NOT NULL
----
7

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col1 AND - - col2 + + col1
----
97
1
99

query II rowsort
SELECT DISTINCT col1, col2 AS col0 FROM tab1 cor0 WHERE NOT ( NOT NULL IN ( + col0 ) )
----

query I rowsort
SELECT ALL + - 72 AS col1 FROM tab0 AS cor0
----
-72
-72
-72

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

query I rowsort
SELECT + col1 * + - 82 AS col1 FROM tab0 cor0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col1 FROM tab2 cor0 WHERE ( NULL ) > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col1 FROM tab2 cor0 WHERE ( NULL ) > + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT 32 DIV + col2 + - col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT 32 / + col2 + - col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - 57 + + COUNT( - + col0 ) - 68 AS col0 FROM tab0 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-5764
SELECT - 57 + + COUNT ( - + col0 ) - 68 AS col0 FROM tab0 AS cor0
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT + 44 + - CAST( - col0 AS SIGNED ) FROM tab0
----
131
141
59

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + 44 + - CAST ( - col0 AS INTEGER ) FROM tab0
----
131
141
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT - COUNT( * ) FROM tab0 WHERE + + CAST( col0 AS SIGNED ) + - 92 * - + 41 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT - COUNT ( * ) FROM tab0 WHERE + + CAST ( col0 AS INTEGER ) + - 92 * - + 41 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
0

query I rowsort
SELECT - 15 + - - col1 AS col0 FROM tab0
----
-14
6
66

query I rowsort
SELECT DISTINCT + ( - col0 ) + - 14 AS col0 FROM tab1
----
-105
-65
-99

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

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

query I rowsort
SELECT - 33 + + 41 AS col1 FROM tab2
----
8
8
8

query II rowsort
SELECT + ( + col2 ) AS col1, + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col0 FROM tab0 AS cor0 WHERE col2 + + ( col2 ) <> ( - 53 * + + col2 / + col2 + + - 74 )
----
1215
1827
97

query I rowsort
SELECT DISTINCT - col0 + col1 * 88 FROM tab0
----
-9
1761
7113

query I rowsort
SELECT ALL + col1 * + col2 * - col2 AS col1 FROM tab2
----
-123200
-225388
-26979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + 21 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col0 FROM tab2 AS cor0
----
20
20
20

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

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

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

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

query I rowsort
SELECT - col1 * - col0 * - col1 AS col0 FROM tab1
----
-201019
-2125
-9996

query II rowsort
SELECT + col2 * - col0 * col2, col2 FROM tab0
----
-33135
47
-8700
10
-950697
99

query I rowsort
SELECT DISTINCT 40 * - col0 * + - col1 AS col1 FROM tab1
----
17000
171080
28560

query III rowsort
SELECT * FROM tab2 WHERE NOT + 14 * 66 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT + CAST( - col2 AS SIGNED ) * + col1 AS col2 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5787
SELECT + CAST ( - col2 AS INTEGER ) * + col1 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - 6 * - col1 * + + 97 FROM tab2
----
29682
38994
44814

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5790
SELECT ALL col0 * + col1 DIV col1 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL col0 * + col1 / col1 AS col2 FROM tab0
----
15
87
97

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

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

query I rowsort
SELECT ALL col1 + 6 FROM tab2
----
57
73
83

query I rowsort
SELECT + 70 * col0 - + 23 AS col1 FROM tab0 AS cor0
----
1027
6067
6767

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5796
SELECT - + ( + + col1 ) * + col1 + CAST( NULL AS SIGNED ) AS col0, col2 * col0 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL
-10575
NULL
-75690
NULL
-931491

skipif mysql # not compatible
query II rowsort label-5796
SELECT - + ( + + col1 ) * + col1 + CAST ( NULL AS INTEGER ) AS col0, col2 * col0 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL
-10575
NULL
-75690
NULL
-931491

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT DISTINCT - SUM( - - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - SUM ( - - col1 ) FROM tab0
----
-103

query II rowsort
SELECT ALL - col1 * + - ( 5 ), 47 AS col0 FROM tab2
----
255
47
335
47
385
47

query I rowsort
SELECT ALL + ( - - col0 ) * - col1 * 23 AS col2 FROM tab2
----
-113344
-115575
-53958

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

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

query I rowsort
SELECT DISTINCT 13 + col2 * + - 26 * - 92 * + col2 * + - col1 FROM tab1
----
-308625395
-41632747
-519848563

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

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

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

query I rowsort
SELECT - 43 * col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT DISTINCT 91 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT 91 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
273

query I rowsort
SELECT + col2 + - - col1 FROM tab2 AS cor0
----
117
125
74

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

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

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

query I rowsort
SELECT 10 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - 11 * - col0 AS col2 FROM tab2
----
506
704
825

query I rowsort
SELECT col0 * - col2 * 78 * - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT SUM( ALL 13 ) AS col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT SUM ( ALL 13 ) AS col1 FROM tab2 AS cor0
----
39

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

query II rowsort
SELECT + col2 AS col0, col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT ALL col0 AS col0, + 75 * - col1 - col0 FROM tab0 AS cor0
----
15
-6090
87
-1662
97
-172

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND + 36 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT col2 * - 89 FROM tab1
----
-5251
-6052
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT - 3 + - + MIN( ALL + 6 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5822
SELECT - 3 + - + MIN ( ALL + 6 ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + + 81 AS col1 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT + + col0 + col1 * - col2 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + 25 + + 80
----

query I rowsort
SELECT DISTINCT col1 * 79 FROM tab0 AS cor0
----
1659
6399
79

query I rowsort
SELECT ALL + 57 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 8 ) * + 84 + col2 col1 FROM tab1 AS cor0
----
731
740
768

query I rowsort
SELECT DISTINCT - col0 * - - 76 AS col2 FROM tab0 AS cor0
----
-1140
-6612
-7372

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - + 60 col0 FROM tab0 cor0
----
107
159
70

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 > - col2
----
97
1
99

query II rowsort
SELECT ALL + col2 + - - 40 AS col1, + col0 FROM tab2
----
63
46
80
64
98
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 + + 35 * - 70 ) IS NOT NULL
----

query I rowsort
SELECT ALL 95 AS col0 FROM tab1 WHERE NULL IS NULL
----
95
95
95

query II rowsort
SELECT col0 * 97 + - + col2 * - 55 AS col2, col0 + 18 AS col0 FROM tab0
----
14854
115
4040
33
8989
105

query I rowsort
SELECT DISTINCT + 99 + + col1 + col0 AS col0 FROM tab1
----
164
189
237

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

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

query II rowsort
SELECT + ( + + col0 ), 36 AS col2 FROM tab0
----
15
36
87
36
97
36

query I rowsort
SELECT DISTINCT col1 - col0 - - 59 FROM tab2
----
51
64
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT SUM( DISTINCT + col2 ) * - 17 col2 FROM tab2
----
-2057

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5845
SELECT SUM ( DISTINCT + col2 ) * - 17 col2 FROM tab2
----
-2057

query I rowsort
SELECT - - 28 AS col0 FROM tab1 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL - SUM( ALL + 42 ) FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - SUM ( ALL + 42 ) FROM tab0 AS cor0
----
-126

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

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

query II rowsort
SELECT col1 AS col2, + 17 FROM tab1 AS cor0
----
14
17
47
17
5
17

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + col1 ) = - col0 * + - col2 / - ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5851
SELECT DISTINCT COUNT( * ), - 37 AS col0 FROM tab0
----
3
-37

skipif mysql # not compatible
query II rowsort label-5851
SELECT DISTINCT COUNT ( * ), - 37 AS col0 FROM tab0
----
3
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5852
SELECT DISTINCT CAST( + - 84 AS SIGNED ), SUM( 65 ) col0 FROM tab2
----
-84
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5852
SELECT DISTINCT CAST ( + - 84 AS INTEGER ), SUM ( 65 ) col0 FROM tab2
----
-84
195

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5855
SELECT DISTINCT + col1 * + + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT + col1 * + + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT 37 AS col0, 50 AS col1 FROM tab0 AS cor0
----
37
50
37
50
37
50

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

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

query I rowsort
SELECT ALL 65 * + col1 FROM tab1 AS cor0
----
3055
325
910

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 84 + - - 49 + - 66 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 4 * + - col0
----

query I rowsort
SELECT col2 + - col0 * + + col1 - + - 37 FROM tab1
----
-329
-4172
-581

query I rowsort
SELECT + col2 + - 76 * + col0 * - - col0 * - + ( + col1 ) AS col2 FROM tab0
----
12080134
1385147
715183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 6 col0 FROM tab1
----
102
65
74

query I rowsort
SELECT ALL - 55 * + - col0 AS col0 FROM tab1 cor0
----
2805
4675
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col0 col0, 15 FROM tab1 AS cor0
----
-425
15
-4277
15
-714
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL + - MAX( - - 25 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL + - MAX ( - - 25 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL + + CAST( + 80 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
1680
6480
80

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + + CAST ( + 80 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
1680
6480
80

query I rowsort
SELECT - + 42 * + - 44 * 75 FROM tab2 AS cor0
----
138600
138600
138600

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - COUNT( DISTINCT col2 ) * SUM( - + col2 ) AS col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-5869
SELECT - COUNT ( DISTINCT col2 ) * SUM ( - + col2 ) AS col1 FROM tab0 AS cor0
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5870
SELECT * FROM tab2 WHERE + 29 + + CAST( NULL AS SIGNED ) + col0 + + - 35 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5870
SELECT * FROM tab2 WHERE + 29 + + CAST ( NULL AS INTEGER ) + col0 + + - 35 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 67 * - 69 * - ( - - 18 ) - col2 AS col2 FROM tab0
----
-83224
-83261
-83313

query I rowsort
SELECT col1 * - 85 - + ( - 42 ) FROM tab2
----
-4293
-5653
-6503

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT col1 DIV + + col1 - + - col2 * - - col2 AS col2 FROM tab0
----
101
2210
9802

skipif mysql # not compatible
query I rowsort label-5873
SELECT col1 / + + col1 - + - col2 * - - col2 AS col2 FROM tab0
----
101
2210
9802

query I rowsort
SELECT DISTINCT col0 + - 60 AS col1 FROM tab0
----
-45
27
37

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

query I rowsort
SELECT ALL + col0 - col2 + 48 FROM tab0
----
125
16
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ( + COUNT( col0 ) ) + + 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-5877
SELECT ( + COUNT ( col0 ) ) + + 31 FROM tab2
----
34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT ALL - 52 DIV 59 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL - 52 / 59 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT DISTINCT 24 DIV - 10 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT 24 / - 10 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 <> - col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query III rowsort label-5883
SELECT ALL * FROM tab0 cor0 WHERE 43 DIV - + 39 IN ( - col2, col0, - col2, - col1 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-5883
SELECT ALL * FROM tab0 cor0 WHERE 43 / - + 39 IN ( - col2, col0, - col2, - col1 )
----
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT COUNT( ALL + 92 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5885
SELECT COUNT ( ALL + 92 ) AS col0 FROM tab0 AS cor0
----
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT ALL - - col0 DIV - + col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL - - col0 / - + col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5889
SELECT MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
-77

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

query I rowsort
SELECT ALL col0 + + 14 * col2 FROM tab2
----
368
624
887

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

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

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

query I rowsort
SELECT 5 + - + col1 FROM tab0
----
-16
-76
4

query I rowsort
SELECT - 38 + + col0 * - - col0 + + col1 * - + 22 AS col0 FROM tab1 AS cor0
----
2255
7077
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT - COUNT( * ) + + COUNT( DISTINCT - 26 ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5896
SELECT - COUNT ( * ) + + COUNT ( DISTINCT - 26 ) AS col0 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT - 52 + - 16 + - + col1 FROM tab2 AS cor0
----
-119
-135
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT DISTINCT + COUNT( * ) * - - 22 AS col2 FROM tab1 cor0 WHERE NOT ( + + CAST( NULL AS SIGNED ) IS NOT NULL )
----
66

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + COUNT ( * ) * - - 22 AS col2 FROM tab1 cor0 WHERE NOT ( + + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 57 * COUNT( * ) * - 19 FROM tab0 AS cor0
----
-29241

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 57 * COUNT ( * ) * - 19 FROM tab0 AS cor0
----
-29241

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

skipif mysql # not compatible
query I rowsort label-5900
SELECT - MIN ( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-51

query I rowsort
SELECT DISTINCT - 84 + + 74 FROM tab2 cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 88 + - 65 NOT IN ( - - col2 * - col0 * - 13, - ( - col0 ), 81, + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + + col2 ) * - + col2 + - col0 * - col0 AS col1 FROM tab1
----
-6615
3657
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5904
SELECT + CAST( 49 AS SIGNED ) DIV COUNT( * ) * - + 29 AS col2, - COUNT( * ) AS col2 FROM tab0
----
-464
-3

skipif mysql # not compatible
query II rowsort label-5904
SELECT + CAST ( 49 AS INTEGER ) / COUNT ( * ) * - + 29 AS col2, - COUNT ( * ) AS col2 FROM tab0
----
-464
-3

query I rowsort
SELECT ALL col1 - - col0 * + col0 AS col1 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT col0 - + + 74 FROM tab0
----
-59
13
23

query I rowsort
SELECT + 63 - col2 AS col0 FROM tab2
----
23
40
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT + 89 + - CAST( - col1 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
114
2298
285

skipif mysql # not compatible
query I rowsort label-5909
SELECT + 89 + - CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
114
2298
285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5910
SELECT ALL - + 70 * CAST( col2 AS SIGNED ) + + col0 AS col0, 61 AS col0 FROM tab0 cor0
----
-3275
61
-613
61
-6833
61

skipif mysql # not compatible
query II rowsort label-5910
SELECT ALL - + 70 * CAST ( col2 AS INTEGER ) + + col0 AS col0, 61 AS col0 FROM tab0 cor0
----
-3275
61
-613
61
-6833
61

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

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

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

skipif mysql # not compatible
query II rowsort label-5912
SELECT ALL + - 54, COUNT ( ALL + 22 ) AS col1 FROM tab1 AS cor0
----
-54
3

query II rowsort
SELECT DISTINCT 46 AS col2, + col1 AS col2 FROM tab0 cor0
----
46
1
46
21
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL SUM( ALL - + 63 ) AS col2 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL SUM ( ALL - + 63 ) AS col2 FROM tab2
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5915
SELECT CAST( + + COUNT( * ) AS SIGNED ) * - 41 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-5915
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * - 41 FROM tab2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT SUM( col0 ) col2 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT SUM ( col0 ) col2 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT DISTINCT + MIN( DISTINCT 13 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT + MIN ( DISTINCT 13 ) FROM tab0 AS cor0
----
13

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

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

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

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

query I rowsort
SELECT + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( + col2, + col2 / - col1 )
----

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col0 * - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, 70 + 56 FROM tab1
----
-14
126
-47
126
-5
126

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

query I rowsort
SELECT DISTINCT + + 37 + - col0 * 84 * + - col1 AS col1 FROM tab2 AS cor0
----
197101
413989
422137

query II rowsort
SELECT ALL - 17 AS col0, - col2 + - col2 FROM tab2 AS cor0 WHERE - 51 IS NOT NULL
----
-17
-116
-17
-46
-17
-80

query II rowsort
SELECT ALL + col1, 70 FROM tab0 AS cor0
----
1
70
21
70
81
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT MIN( - - ( - - 60 ) ) col1 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5927
SELECT DISTINCT MIN ( - - ( - - 60 ) ) col1 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT COUNT( * ) * 74 * - MAX( DISTINCT col2 ) FROM tab0
----
-21978

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT COUNT ( * ) * 74 * - MAX ( DISTINCT col2 ) FROM tab0
----
-21978

onlyif mysql # aggregate syntax: 
query II rowsort label-5929
SELECT DISTINCT - COUNT( * ) + - 11 col2, 7 AS col2 FROM tab0
----
-14
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5929
SELECT DISTINCT - COUNT ( * ) + - 11 col2, 7 AS col2 FROM tab0
----
-14
7

query I rowsort
SELECT + ( col2 ) * 27 FROM tab1
----
1593
1836
2592

query I rowsort
SELECT + col0 * col1 * - 49 FROM tab0
----
-4753
-59535
-89523

query I rowsort
SELECT DISTINCT col1 + - 98 + - + col0 + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-17
-77
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + col0 col0 FROM tab2 AS cor0
----
108
119
90

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

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT - COUNT( * ) * + + 76 + 54 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-5935
SELECT - COUNT ( * ) * + + 76 + 54 FROM tab0
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-5936
SELECT ALL 35 AS col1, + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL < - 16
----
35
0

skipif mysql # not compatible
query II rowsort label-5936
SELECT ALL 35 AS col1, + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL < - 16
----
35
0

query I rowsort
SELECT - 28 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5938
SELECT - - CAST( 24 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-5938
SELECT - - CAST ( 24 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + + 55 * + + col1 - - col1 FROM tab0 AS cor0
----
1176
4536
56

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - - col0 - + 43 AS col2 FROM tab0 AS cor0
----
-28
44
54

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 < + + 5
----
15
81
47
87
21
10

query II rowsort
SELECT 35 AS col1, + 29 FROM tab2
----
35
29
35
29
35
29

query I rowsort
SELECT ALL + 35 - + - ( - - col1 ) AS col1 FROM tab0 WHERE NOT - 62 IS NOT NULL
----

query I rowsort
SELECT ALL + 55 FROM tab2 WHERE NOT + 60 NOT BETWEEN NULL AND + col2 / ( - col1 )
----

query I rowsort
SELECT ALL col2 * + 96 FROM tab1
----
5664
6528
9216

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col0 ) AS col2, + 89 col1 FROM tab0 AS cor0
----
-15
89
-87
89
-97
89

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT DISTINCT col0 DIV - ( 60 ) FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT col0 / - ( 60 ) FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - - 9 AS col2 FROM tab1 AS cor0
----
9
9
9

query II rowsort
SELECT - + col1 * + 7 * ( + col0 ) * - 72 AS col0, + col2 + - + col0 FROM tab1 AS cor0
----
214200
-26
2155608
-23
359856
45

query I rowsort
SELECT DISTINCT + - col2 + + + 11 AS col2 FROM tab1 cor0 WHERE ( ( - - col1 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT ALL - + col1 DIV col1 - + 6 + + col2 AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
52
61
89

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - + col1 / col1 - + 6 + + col2 AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
52
61
89

query I rowsort
SELECT 8 FROM tab0 WHERE col1 NOT IN ( + 23 )
----
8
8
8

query II rowsort
SELECT - 60 * + 68 + - + 89 AS col1, 71 + - + col0 FROM tab2
----
-4169
-4
-4169
25
-4169
7

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

query I rowsort
SELECT + + 48 AS col1 FROM tab2 AS cor0
----
48
48
48

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + col1 BETWEEN - 26 AND - 4 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ALL 99 * + COUNT( * ) AS col2 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL 99 * + COUNT ( * ) AS col2 FROM tab2
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5966
SELECT 78 DIV COUNT( * ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5966
SELECT 78 / COUNT ( * ) AS col2 FROM tab1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT 15 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5967
SELECT 15 / + col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5968
SELECT + 89 DIV col0 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5968
SELECT + 89 / col0 AS col0 FROM tab0
----
0
1
5

query I rowsort
SELECT DISTINCT col0 * - 93 FROM tab1
----
-4743
-7905
-8463

query I rowsort
SELECT - col2 * 17 + col0 FROM tab1
----
-1065
-1581
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE col2 NOT BETWEEN ( col2 + - col2 ) AND - col2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT + CAST( + col1 AS SIGNED ) * - col1 AS col0 FROM tab2 WHERE NOT NULL = ( + 59 ) + - 94
----

skipif mysql # not compatible
query I rowsort label-5973
SELECT + CAST ( + col1 AS INTEGER ) * - col1 AS col0 FROM tab2 WHERE NOT NULL = ( + 59 ) + - 94
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) NOT BETWEEN - col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT DISTINCT CAST( + 8 AS SIGNED ) * + col1 AS col1 FROM tab1
----
112
376
40

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT CAST ( + 8 AS INTEGER ) * + col1 AS col1 FROM tab1
----
112
376
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 85 / col0 + - col2 = ( 49 * + 48 )
----

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

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

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( col0 ) BETWEEN ( col1 ) AND + col1
----
23
40
58

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

query I rowsort
SELECT + 96 - + 59 * + col0 AS col2 FROM tab2
----
-2618
-3680
-4329

query I rowsort
SELECT + col1 * 65 AS col2 FROM tab0
----
1365
5265
65

query I rowsort
SELECT 0 AS col2 FROM tab0 WHERE NOT - col0 / 17 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT + CAST( col2 AS SIGNED ) + 43 AS col1 FROM tab0
----
142
53
90

skipif mysql # not compatible
query I rowsort label-5983
SELECT + CAST ( col2 AS INTEGER ) + 43 AS col1 FROM tab0
----
142
53
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + col2 col0 FROM tab1
----
145
154
182

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) + 99 NOT IN ( 21 )
----

query I rowsort
SELECT 39 FROM tab1 WHERE + col1 / + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 27 ) >= col2 * - 39
----

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 AS col1 FROM tab0
----
306
7590
9410

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

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

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL 90 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 34 FROM tab1 WHERE NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT + COUNT( * ) * - 60 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-180

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + COUNT ( * ) * - 60 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-180

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE + col0 NOT IN ( col2 * col0 )
----
23
40
58

query I rowsort
SELECT 38 + - 83 * col0 FROM tab1 cor0 WHERE NOT ( - 73 ) = 69 + 15 * - col0
----
-4195
-7017
-7515

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT 42 * COUNT( * ) col2 FROM tab0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5996
SELECT DISTINCT 42 * COUNT ( * ) col2 FROM tab0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT + col0 + + ( col0 + - col0 DIV - col1 ) AS col0 FROM tab0
----
178
291
30

skipif mysql # not compatible
query I rowsort label-5997
SELECT + col0 + + ( col0 + - col0 / - col1 ) AS col0 FROM tab0
----
178
291
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT - COUNT( DISTINCT 24 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - COUNT ( DISTINCT 24 ) FROM tab1 AS cor0
----
-1

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 5 * - 74 NOT BETWEEN NULL AND ( col2 * col1 )
----

query I rowsort
SELECT 35 * - col0 AS col2 FROM tab0 AS cor0
----
-3045
-3395
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT MIN( DISTINCT 76 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-6002
SELECT MIN ( DISTINCT 76 ) FROM tab0 AS cor0
----
76

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

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

query I rowsort
SELECT ALL col1 + - col1 + - 15 * + col1 AS col0 FROM tab0
----
-1215
-15
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - 28 * + - COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-6005
SELECT - 28 * + - COUNT ( * ) AS col0 FROM tab2
----
84

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( + col0 ) > NULL
----

query I rowsort
SELECT DISTINCT col0 + + col2 + - col2 * col1 FROM tab1
----
-1197
-151
-3037

query I rowsort
SELECT ALL 61 + - + 19 FROM tab2
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL 42 + + COUNT( * ) FROM tab1 WHERE NOT NULL = col2 OR ( - col2 ) = ( - col0 * col1 )
----
42

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL 42 + + COUNT ( * ) FROM tab1 WHERE NOT NULL = col2 OR ( - col2 ) = ( - col0 * col1 )
----
42

query I rowsort
SELECT 36 * col0 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL + COUNT( DISTINCT + 67 ) + COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + COUNT ( DISTINCT + 67 ) + COUNT ( * ) AS col2 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL COUNT( * ) * ( COUNT( * ) ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL COUNT ( * ) * ( COUNT ( * ) ) FROM tab2 cor0
----
9

query I rowsort
SELECT ( + 52 ) AS col1 FROM tab2 AS cor0 WHERE col1 BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT ALL 85 * - col2 - col1 AS col0 FROM tab1 AS cor0
----
-5020
-5827
-8174

query I rowsort
SELECT DISTINCT - ( 55 ) * - col1 FROM tab1 AS cor0
----
2585
275
770

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT - - 44 * - COUNT( * ) FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT - - 44 * - COUNT ( * ) FROM tab1 AS cor0
----
-132

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

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 1 + col2 * - 75 = col0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 77 - col1 = NULL
----

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6022
SELECT - CAST( NULL AS DECIMAL ) / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT - CAST ( NULL AS REAL ) / - col1 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT ALL + CAST( 94 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL + CAST ( 94 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - MAX( ALL 17 ) AS col1 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-6026
SELECT - MAX ( ALL 17 ) AS col1 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - 18 * - - col1 + + col0 * col0 FROM tab2 AS cor0
----
1198
2710
4419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT DISTINCT + ( - MAX( DISTINCT ( CAST( + col1 AS SIGNED ) ) ) ) AS col2 FROM tab0 AS cor0 WHERE - col1 + + + ( - 52 ) NOT BETWEEN ( + col1 ) AND + 28
----
-81

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT + ( - MAX ( DISTINCT ( CAST ( + col1 AS INTEGER ) ) ) ) AS col2 FROM tab0 AS cor0 WHERE - col1 + + + ( - 52 ) NOT BETWEEN ( + col1 ) AND + 28
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6029
SELECT CAST( NULL AS DECIMAL ), + 16 AS col0 FROM tab0 AS cor0
----
NULL
16
NULL
16
NULL
16

skipif mysql # not compatible
query II rowsort label-6029
SELECT CAST ( NULL AS REAL ), + 16 AS col0 FROM tab0 AS cor0
----
NULL
16
NULL
16
NULL
16

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

query I rowsort
SELECT DISTINCT + - col2 * - ( - col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT - col1 * - + col1 + + col2 FROM tab1 cor0
----
2277
292
84

query I rowsort
SELECT ALL - 49 AS col1 FROM tab1 AS cor0 WHERE NULL = col1 * col1
----

query I rowsort
SELECT - 94 AS col1 FROM tab0 cor0
----
-94
-94
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 4 + - col1 IN ( 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT ( col0 ) > - 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - 32 * + MAX( ALL col2 ) FROM tab0
----
-3168

skipif mysql # not compatible
query I rowsort label-6037
SELECT - 32 * + MAX ( ALL col2 ) FROM tab0
----
-3168

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 68 + + col0 * + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6040
SELECT - COUNT ( * ) + - MIN ( - - 90 ) + - ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6041
SELECT - col2 + + - 15 DIV col2 * - col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6041
SELECT - col2 + + - 15 / col2 * - col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col0 ), + col0 col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

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

query I rowsort
SELECT ( col0 ) * + 67 AS col1 FROM tab1 cor0 WHERE NOT + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + + + col2 + - - col0 col1 FROM tab1
----
203
227
243

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

query I rowsort
SELECT ALL - - col2 * - - 18 FROM tab0 AS cor0
----
1782
180
846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT DISTINCT + 98 * - + CAST( + 25 AS SIGNED ) + - 68 - - - 44 AS col0 FROM tab2 AS cor0
----
-2562

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + 98 * - + CAST ( + 25 AS INTEGER ) + - 68 - - - 44 AS col0 FROM tab2 AS cor0
----
-2562

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + - 87 + - - col2 + col1 * + col2 * 26 BETWEEN ( - 1 * col1 ) AND ( + col0 / col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + - 87 + - - col2 + col1 * + col2 * 26 BETWEEN ( - 1 * col1 ) AND ( + col0 / col1 )
----
-3

query I rowsort
SELECT + col0 + + col2 * + 46 * - col0 * col2 AS col0 FROM tab1 AS cor0
----
-13610625
-19355973
-21620685

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL AND + 12 = 16
----

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

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

query I rowsort
SELECT - 12 + - + 1 AS col1 FROM tab0 AS cor0
----
-13
-13
-13

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

query III rowsort
SELECT * FROM tab2 WHERE ( ( + col1 + - 64 ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT + 67 + + COUNT( * ) AS col0 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT + 67 + + COUNT ( * ) AS col0 FROM tab0
----
70

query I rowsort
SELECT DISTINCT 56 + - 48 FROM tab0
----
8

query I rowsort
SELECT - 70 * + 44 + - - 75 + + 3 FROM tab1
----
-3002
-3002
-3002

query I rowsort
SELECT - 84 / + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 + col0 + - col1 col1 FROM tab1 AS cor0
----
124
81
88

query I rowsort
SELECT - col2 * + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT ALL 1 FROM tab2 cor0 WHERE NOT ( NULL ) <= + col2 + + col1 + col1
----

query I rowsort
SELECT ALL AVG ( ALL + col1 ) FROM tab2 AS cor0 WHERE ( + ( + col2 ) * col1 * - + col2 ) IS NULL
----
NULL

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

query I rowsort
SELECT ALL 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT 96 * COUNT( * ) * 95 FROM tab2
----
27360

skipif mysql # not compatible
query I rowsort label-6067
SELECT 96 * COUNT ( * ) * 95 FROM tab2
----
27360

query II rowsort
SELECT ( col0 ), - col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT ALL - ( - 47 ) FROM tab0
----
47
47
47

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT ALL - col2 * - CAST( 24 AS SIGNED ) FROM tab1 AS cor0
----
1416
1632
2304

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL - col2 * - CAST ( 24 AS INTEGER ) FROM tab1 AS cor0
----
1416
1632
2304

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 50 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT COUNT( * ) + MAX( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 20 - - - col2 + - col1 * + - col1 / + col0 * - 25 + col0 * 5 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT COUNT ( * ) + MAX ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 20 - - - col2 + - col1 * + - col1 / + col0 * - 25 + col0 * 5 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT ALL - ( - ( - 44 ) ) DIV - + col2 AS col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - ( - ( - 44 ) ) / - + col2 AS col2 FROM tab0 AS cor0
----
0
0
4

query II rowsort
SELECT 52 * + 37 * - col1 AS col1, 54 FROM tab1
----
-26936
54
-90428
54
-9620
54

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 < + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT DISTINCT + ( - COUNT( * ) ) col0 FROM tab0 WHERE NOT ( col2 * col2 ) <= + 46
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6081
SELECT DISTINCT + ( - COUNT ( * ) ) col0 FROM tab0 WHERE NOT ( col2 * col2 ) <= + 46
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6082
SELECT - COUNT( DISTINCT + - col0 ) * + 67 AS col2, COUNT( * ) + COUNT( * ) col2 FROM tab1
----
-201
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6082
SELECT - COUNT ( DISTINCT + - col0 ) * + 67 AS col2, COUNT ( * ) + COUNT ( * ) col2 FROM tab1
----
-201
6

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6084
SELECT + ( - col1 ) * + col0, - col2 * + - col2 + col0 DIV 87 + + 86 + col1 * col2 AS col0 FROM tab1
----
-425
3862
-4277
7907
-714
10646

skipif mysql # not compatible
query II rowsort label-6084
SELECT + ( - col1 ) * + col0, - col2 * + - col2 + col0 / 87 + + 86 + col1 * col2 AS col0 FROM tab1
----
-425
3862
-4277
7907
-714
10646

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT - col1 DIV col1 * col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6085
SELECT - col1 / col1 * col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT COUNT( * ) * - ( 40 ) * - COUNT( * ) FROM tab1
----
360

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT COUNT ( * ) * - ( 40 ) * - COUNT ( * ) FROM tab1
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT + SUM( col2 ) * - COUNT( * ) AS col1, 24 FROM tab2
----
-363
24

skipif mysql # not compatible
query II rowsort label-6087
SELECT + SUM ( col2 ) * - COUNT ( * ) AS col1, 24 FROM tab2
----
-363
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT DISTINCT - 67 DIV + 70 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - 67 / + 70 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT DISTINCT 71 * - MIN( 15 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1065

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT 71 * - MIN ( 15 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6091
SELECT COUNT( * ) + + CAST( 71 AS SIGNED ) + - COUNT( DISTINCT - 5 ) AS col1 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-6091
SELECT COUNT ( * ) + + CAST ( 71 AS INTEGER ) + - COUNT ( DISTINCT - 5 ) AS col1 FROM tab2
----
73

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 69 * + + ( + col0 ) * col0 <> 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT + + 86 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL COUNT( * ) * - 28 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-84

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL COUNT ( * ) * - 28 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6098
SELECT CAST( NULL AS SIGNED ) * - MIN( 40 ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6098
SELECT CAST ( NULL AS INTEGER ) * - MIN ( 40 ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 92 - col1 AS col2 FROM tab2
----
15
25
41

query I rowsort
SELECT 0 - - col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL col1 * - col2 * - - col1 + + 8 * + 61 * col2 * col0 FROM tab1
----
2370432
2445845
2869532

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ( - 64 ) - + MIN( + col1 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-6102
SELECT ( - 64 ) - + MIN ( + col1 ) FROM tab1
----
-69

query I rowsort
SELECT DISTINCT - col0 * - - col0 - - ( 31 ) FROM tab0
----
-194
-7538
-9378

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 / - CAST( col2 AS SIGNED ) <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 / - CAST ( col2 AS INTEGER ) <= NULL )
----
0

query I rowsort
SELECT ALL - col2 + ( - col0 ) - + - col2 * - 71 FROM tab2 AS cor0
----
-1702
-2944
-4251

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col2 - + 56 + + - 93 col0 FROM tab1 cor0
----
-170
-203
-231

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 28 * + col0 * col0 IN ( + 72 * - + col0 / + + col0 * col1 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6110
SELECT + CAST( MIN( + - col0 ) AS SIGNED ), + MIN( + + 6 ) AS col1 FROM tab0 AS cor0
----
-97
6

skipif mysql # not compatible
query II rowsort label-6110
SELECT + CAST ( MIN ( + - col0 ) AS INTEGER ), + MIN ( + + 6 ) AS col1 FROM tab0 AS cor0
----
-97
6

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT 7 / + + col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 * + col0 - + col1 * - - col1, + col1 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5571
81
5301
21
6401
1

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 95 NOT BETWEEN + 86 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL - - COUNT( * ) * - + 67 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - - COUNT ( * ) * - + 67 FROM tab0 AS cor0
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col2 - + col1 FROM tab2 AS cor0
----
46
-28
64
-37
75
-9

query I rowsort
SELECT DISTINCT - 95 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT DISTINCT + col1 DIV col0 + col1 AS col2 FROM tab2 AS cor0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + col1 / col0 + col1 AS col2 FROM tab2 AS cor0
----
52
67
78

query I rowsort
SELECT DISTINCT + + 68 AS col0 FROM tab1 AS cor0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6122
SELECT + 60, - CAST( COUNT( * ) AS SIGNED ) DIV - + COUNT( * ) col0 FROM tab2 AS cor0
----
60
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6122
SELECT + 60, - CAST ( COUNT ( * ) AS INTEGER ) / - + COUNT ( * ) col0 FROM tab2 AS cor0
----
60
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT 52 * COUNT( * ) col1 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6124
SELECT 52 * COUNT ( * ) col1 FROM tab1 AS cor0
----
156

query II rowsort
SELECT DISTINCT + + col1, 28 + - - 4 FROM tab1 AS cor0
----
14
32
47
32
5
32

query II rowsort
SELECT ALL + col1 * + - col2 AS col0, - 9 AS col2 FROM tab2 AS cor0
----
-1173
-9
-3080
-9
-3886
-9

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

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

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

query I rowsort
SELECT ALL + ( - + 17 ) * 18 AS col1 FROM tab1
----
-306
-306
-306

query I rowsort
SELECT - col0 + + + ( - - col1 ) + 80 FROM tab1
----
0
36
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 + + 58 <> col2
----

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

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

query I rowsort
SELECT ALL - col1 * + - 70 FROM tab2 cor0 WHERE NOT ( + col0 ) IS NULL
----
3570
4690
5390

query I rowsort
SELECT ALL - + col1 * + col0 * - col1 + 54 AS col2 FROM tab1 AS cor0
----
10050
201073
2179

query I rowsort
SELECT DISTINCT - 95 + 11 * col0 AS col2 FROM tab2
----
411
609
730

query I rowsort
SELECT DISTINCT col0 + 31 AS col1 FROM tab2
----
106
77
95

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

query III rowsort
SELECT * FROM tab2 WHERE + 36 <> - 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6141
SELECT 27 + + - 7 DIV - MAX( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6141
SELECT 27 + + - 7 / - MAX ( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
27

query I rowsort
SELECT - + ( - 69 ) * + 0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT col0 * col1 * 40 + - + col2 * + col0 FROM tab0 AS cor0
----
-5723
47895
72210

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6147
SELECT ALL col1, 62 * + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL col1, 62 * + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col1 ) BETWEEN NULL AND + col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6149
SELECT DISTINCT col2 + + col1 + - + CAST( NULL AS SIGNED ) AS col2, 89 FROM tab2 AS cor0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-6149
SELECT DISTINCT col2 + + col1 + - + CAST ( NULL AS INTEGER ) AS col2, 89 FROM tab2 AS cor0
----
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL MIN( ALL - ( col2 ) ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL MIN ( ALL - ( col2 ) ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 + 23 AS col0 FROM tab1
----
108
114
74

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 62 ) NOT BETWEEN ( 37 ) AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6154
SELECT ALL CAST( NULL AS SIGNED ) * + col1 - col2 + + - ( + + ( - 64 ) ) + + ( + col1 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 - col2 + + - ( + + ( - 64 ) ) + + ( + col1 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT MIN( + - 3 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6155
SELECT MIN ( + - 3 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT - col0 + + - col1 AS col1 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) + - 10 IS NULL
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-6156
SELECT - col0 + + - col1 AS col1 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) + - 10 IS NULL
----
-141
-142
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col2 FROM tab2
----
99
99
99

query II rowsort
SELECT ALL + col1, + 46 FROM tab1 WHERE NOT ( + col2 IS NOT NULL )
----

query I rowsort
SELECT + col2 * + col2 * + col0 * 29 AS col0 FROM tab0 AS cor0
----
252300
27570213
960915

query II rowsort
SELECT ALL - col1 AS col1, 54 FROM tab2 AS cor0
----
-51
54
-67
54
-77
54

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

query II rowsort
SELECT DISTINCT - col1 AS col2, 38 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT - SUM( 90 ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT - SUM ( 90 ) FROM tab0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL 90 + + COUNT( * ) AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL 90 + + COUNT ( * ) AS col0 FROM tab0
----
93

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 77 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + - col2 * - 2 FROM tab1
----
177
204
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT + CAST( NULL AS SIGNED ) * - - col2 AS col2 FROM tab0 WHERE ( NULL ) IN ( - col0, + col1 - - 93, col2, - + col2 )
----

skipif mysql # not compatible
query I rowsort label-6171
SELECT + CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab0 WHERE ( NULL ) IN ( - col0, + col1 - - 93, col2, - + col2 )
----

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

query I rowsort
SELECT col1 * + 21 + - 53 AS col2 FROM tab1 AS cor0
----
241
52
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 57 col0 FROM tab0
----
-30
-40
42

query III rowsort
SELECT * FROM tab0 WHERE + - 12 NOT IN ( + 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 - - + col2 + + col1 FROM tab0 AS cor0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ( + 61 ) * - + COUNT( * ) - - 7 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-6179
SELECT ( + 61 ) * - + COUNT ( * ) - - 7 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
7

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6182
SELECT - col0 - + CAST( + 35 AS SIGNED ) DIV - col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6182
SELECT - col0 - + CAST ( + 35 AS INTEGER ) / - col1 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT + ( + col2 ) * + 32, - 44 * + col0 AS col1 FROM tab1 AS cor0
----
1888
-3740
2176
-4004
3072
-2244

onlyif mysql # DIV for integer division: 
query II rowsort label-6184
SELECT + + col2 - - 33 + + col0 + + + col0 DIV + - 27 AS col1, 39 * - - 30 AS col1 FROM tab1 AS cor0
----
174
1170
179
1170
189
1170

skipif mysql # not compatible
query II rowsort label-6184
SELECT + + col2 - - 33 + + col0 + + + col0 / + - 27 AS col1, 39 * - - 30 AS col1 FROM tab1 AS cor0
----
174
1170
179
1170
189
1170

query I rowsort
SELECT - col1 - - - 39 AS col1 FROM tab0 AS cor0
----
-120
-40
-60

query I rowsort
SELECT - col1 - 65 FROM tab0
----
-146
-66
-86

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

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

query I rowsort
SELECT ALL - + 56 AS col2 FROM tab0 WHERE col0 * - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > ( + col0 ) + + col0 * - col0
----

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) IN ( - col0, col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT DISTINCT MIN( ALL - - 64 ) * 95 * + MIN( - - col0 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-839040

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT MIN ( ALL - - 64 ) * 95 * + MIN ( - - col0 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-839040

query I rowsort
SELECT ALL - 13 FROM tab0 WHERE NOT ( NULL ) IS NULL OR NOT ( + col2 ) BETWEEN col2 AND + col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6195
SELECT 43 DIV + + col2 + + - CAST( 86 AS SIGNED ) + col0, ( - + 22 ) AS col2 FROM tab0
----
-71
-22
11
-22
5
-22

skipif mysql # not compatible
query II rowsort label-6195
SELECT 43 / + + col2 + + - CAST ( 86 AS INTEGER ) + col0, ( - + 22 ) AS col2 FROM tab0
----
-71
-22
11
-22
5
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6196
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0, 69 + + 97 FROM tab2 WHERE NOT - 6 * - col1 + ( - 38 ) + - 36 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6196
SELECT ALL + + CAST ( NULL AS REAL ) AS col0, 69 + + 97 FROM tab2 WHERE NOT - 6 * - col1 + ( - 38 ) + - 36 IS NOT NULL
----

query I rowsort
SELECT 62 + col0 - - 70 + + col1 * col2 FROM tab2
----
1351
3276
4093

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - - MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6199
SELECT - - MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - 45 * col1 AS col1 FROM tab2 AS cor0
----
-2295
-3015
-3465

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT - + 47 * + COUNT( * ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - + 47 * + COUNT ( * ) FROM tab1 AS cor0
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT ALL - COUNT( * ) DIV + MAX( ALL + col1 ) + - COUNT( * ) - 74 - 6 * + 60 AS col1 FROM tab0 AS cor0
----
-437

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - COUNT ( * ) / + MAX ( ALL + col1 ) + - COUNT ( * ) - 74 - 6 * + 60 AS col1 FROM tab0 AS cor0
----
-437

query I rowsort
SELECT DISTINCT - 72 * + 72 AS col0 FROM tab0 AS cor0
----
-5184

query I rowsort
SELECT - - 93 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - col1 + - - col1 * - + ( + col1 ) / + 94 + - col0
----

query I rowsort
SELECT DISTINCT - + 29 * + - col0 - - - 99 + + 80 AS col2 FROM tab1 AS cor0
----
1460
2446
2620

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

skipif mysql # not compatible
query I rowsort label-6209
SELECT - 44 / 45 + - COUNT ( * ) + 80 AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) < 42 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE col0 NOT IN ( + col2 + - - col0 )
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT + 79 + - ( + ( 19 ) ) * - - CAST( - + MIN( DISTINCT 92 ) AS SIGNED ) + + 2 AS col0 FROM tab0 AS cor0
----
1829

skipif mysql # not compatible
query I rowsort label-6212
SELECT + 79 + - ( + ( 19 ) ) * - - CAST ( - + MIN ( DISTINCT 92 ) AS INTEGER ) + + 2 AS col0 FROM tab0 AS cor0
----
1829

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6213
SELECT ALL * FROM tab2 AS cor0 WHERE - 59 * - - CAST( 41 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6213
SELECT ALL * FROM tab2 AS cor0 WHERE - 59 * - - CAST ( 41 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT + ( - CAST( + col2 AS SIGNED ) ) * + col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-6214
SELECT + ( - CAST ( + col2 AS INTEGER ) ) * + col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT - col1 * col0 * 86 FROM tab0
----
-104490
-157122
-8342

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT - col0 DIV col0 DIV + - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT - col0 / col0 / + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( col0 * - col1 < NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE 73 IS NOT NULL OR NOT - - 43 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 90 + + + ( + + col1 ) AS col2, 5 FROM tab2 cor0
----
-13
5
-23
5
-39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL + - MIN( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + - MIN ( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + SUM( + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6221
SELECT + SUM ( + col2 ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT 21 + + 50, + 15 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

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

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

query II rowsort
SELECT ALL - + col0 AS col0, col2 + - - 20 FROM tab0 AS cor0
----
-15
67
-87
30
-97
119

query I rowsort
SELECT ALL + col1 + + + 43 + - col0 FROM tab1
----
-1
-37
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6226
SELECT - SUM( DISTINCT - 56 ), + 6 AS col1 FROM tab0
----
56
6

skipif mysql # not compatible
query II rowsort label-6226
SELECT - SUM ( DISTINCT - 56 ), + 6 AS col1 FROM tab0
----
56
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6227
SELECT DISTINCT + SUM( - ( 2 ) ) - - + 9 + + COUNT( * ) DIV ( - 88 ) * ( + 19 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + SUM ( - ( 2 ) ) - - + 9 + + COUNT ( * ) / ( - 88 ) * ( + 19 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( - 92 ) IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * + 23 col0 FROM tab0
----
122
1910
493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col0 col1 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT + col0 - - 98 AS col0 FROM tab0 cor0
----
113
185
195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 77 < + 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT + + col0 * + + col0 - col2 - + 74 DIV + 62 col2 FROM tab1 AS cor0
----
2504
7165
8212

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6233
SELECT + + col0 * + + col0 - col2 - + 74 / + 62 col2 FROM tab1 AS cor0
----
2504
7165
8212

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 NOT IN ( - - 15 + + col0, + 44, col2 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6236
SELECT ALL COUNT( * ) DIV COUNT( * ) * + - CAST( + AVG ( - 22 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL COUNT ( * ) / COUNT ( * ) * + - CAST ( + AVG ( - 22 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) > col1
----

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

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

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

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

query I rowsort
SELECT ALL - 28 * col0 * + + col1 AS col2 FROM tab1
----
-11900
-119756
-19992

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - + ( - col2 ) * - col1 * col1 * + 2 * + col1 * - col1 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6246
SELECT ALL + col2 DIV + col0 col2, + ( - col2 ) AS col2 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

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

query II rowsort
SELECT ALL + - col2, - col2 * col1 AS col2 FROM tab1 AS cor0 WHERE col1 * col2 IS NOT NULL
----
-59
-295
-68
-3196
-96
-1344

query II rowsort
SELECT DISTINCT + - col2, col0 + col0 AS col1 FROM tab0 AS cor0
----
-10
174
-47
30
-99
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6249
SELECT DISTINCT 4 DIV + MAX( - 1 ) AS col2 FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT 4 / + MAX ( - 1 ) AS col2 FROM tab1 cor0
----
-4

query II rowsort
SELECT ALL 43 AS col2, col1 AS col0 FROM tab0 AS cor0
----
43
1
43
21
43
81

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

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

query I rowsort
SELECT - 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT + col0 * - + 87 + + - col0 DIV col2 + - col1 + - 10 + - col0 * + col0 + + + 8 FROM tab0 cor0
----
-15169
-1613
-17851

skipif mysql # not compatible
query I rowsort label-6254
SELECT + col0 * - + 87 + + - col0 / col2 + - col1 + - 10 + - col0 * + col0 + + + 8 FROM tab0 cor0
----
-15169
-1613
-17851

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab2 cor0
----
89
89
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT col1 + + - 79 + CAST( - col0 AS SIGNED ) + - col0 - col1 * + CAST( NULL AS SIGNED ) - ( + + 14 ) * + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT col1 + + - 79 + CAST ( - col0 AS INTEGER ) + - col0 - col1 * + CAST ( NULL AS INTEGER ) - ( + + 14 ) * + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 33 + - - col2 AS col0 FROM tab2
----
56
73
91

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( + 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - ( - col0 ) ) + - 68 col0 FROM tab1
----
-17
17
23

query I rowsort
SELECT ALL - 7 + + ( + col0 ) AS col0 FROM tab0
----
8
80
90

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

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

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

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

query I rowsort
SELECT DISTINCT - ( col0 ) - col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT + col0 - - 42 * + col0 FROM tab0 AS cor0
----
3741
4171
645

query I rowsort
SELECT DISTINCT - ( + 59 ) FROM tab2
----
-59

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6270
SELECT + - CAST ( col1 AS INTEGER ) col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL - + 46 FROM tab1 cor0
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6272
SELECT DISTINCT 71, + CAST( col1 AS SIGNED ) + + 17 - ( - 85 ) AS col0 FROM tab2
----
71
153
71
169
71
179

skipif mysql # not compatible
query II rowsort label-6272
SELECT DISTINCT 71, + CAST ( col1 AS INTEGER ) + + 17 - ( - 85 ) AS col0 FROM tab2
----
71
153
71
169
71
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL + 0 * SUM( + col1 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + 0 * SUM ( + col1 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT col2 * + 73 AS col1 FROM tab0
----
3431
7227
730

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT DISTINCT - col0 DIV + - col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT - col0 / + - col0 FROM tab2
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT ALL + + COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) BETWEEN - 23 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + + COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) BETWEEN - 23 AND + col1
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT ALL + MIN( - 38 ) DIV - 21 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + MIN ( - 38 ) / - 21 FROM tab0
----
1

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

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

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

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

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

query I rowsort
SELECT ALL - 72 + - col0 FROM tab0 cor0
----
-159
-169
-87

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6289
SELECT - col1 DIV CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6289
SELECT - col1 / CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + MAX( ALL + 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-6290
SELECT + MAX ( ALL + 43 ) FROM tab1
----
43

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

skipif mysql # not compatible
query I rowsort label-6291
SELECT COUNT ( * ) * + - COUNT ( DISTINCT + - col0 ) FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 - - col1 col2 FROM tab2
----
66
82
92

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6293
SELECT - - COUNT ( * ) * 88 / + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6294
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6294
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
NULL
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT - MIN( + col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6297
SELECT - MIN ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT + + 37, col1 AS col1 FROM tab2 AS cor0
----
37
51
37
67
37
77

query I rowsort
SELECT DISTINCT - - 18 AS col1 FROM tab2 AS cor0
----
18

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6300
SELECT ALL + CAST ( + + col2 AS INTEGER ) col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT ALL - MIN( col2 ) * CAST( COUNT( ALL 56 ) AS SIGNED ) AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL - MIN ( col2 ) * CAST ( COUNT ( ALL 56 ) AS INTEGER ) AS col1 FROM tab2
----
-69

query II rowsort
SELECT ALL col2 * col2 AS col1, col2 + + col1 * - col1 * - col0 FROM tab1
----
3481
2184
4624
201087
9216
10092

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

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

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

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

query I rowsort
SELECT 25 + + - ( + + 5 ) FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT ALL - col1 * col0 + - + col0 AS col2 FROM tab0 AS cor0
----
-1230
-1914
-194

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT col2 DIV + + ( col1 ) AS col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-6309
SELECT col2 / + + ( col1 ) AS col0 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 14 + + col0 * + col0 * col2 FROM tab2
----
163854
326264
48682

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL + COUNT( * ) col1 FROM tab2 WHERE NOT - 32 <> - + 31
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6312
SELECT ALL + COUNT ( * ) col1 FROM tab2 WHERE NOT - 32 <> - + 31
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6313
SELECT DISTINCT 59 * COUNT( + col0 ) * ( - COUNT( * ) ), - COUNT( * ) AS col0 FROM tab1
----
-531
-3

skipif mysql # not compatible
query II rowsort label-6313
SELECT DISTINCT 59 * COUNT ( + col0 ) * ( - COUNT ( * ) ), - COUNT ( * ) AS col0 FROM tab1
----
-531
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6314
SELECT - MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
-15

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

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

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

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

query I rowsort
SELECT ALL - + ( + - 25 ) + - col0 FROM tab1 AS cor0
----
-26
-60
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT DISTINCT 88 / + col1 * + col0 * - CAST( NULL AS SIGNED ) * + - ( - - col0 ) AS col2 FROM tab2 AS cor0 WHERE + col2 > + 53 * - - col0 - + + ( col1 ) + col1 - 73 AND NULL < + col0 + + - 28
----

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT 88 / + col1 * + col0 * - CAST ( NULL AS INTEGER ) * + - ( - - col0 ) AS col2 FROM tab2 AS cor0 WHERE + col2 > + 53 * - - col0 - + + ( col1 ) + col1 - 73 AND NULL < + col0 + + - 28
----

query I rowsort
SELECT - 33 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT + - 81 + - col2 + + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-4426
-565
-891

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6323
SELECT - + COUNT( ALL - col1 ) FROM tab0 AS cor0 WHERE 98 >= col1 + + ( + CAST( NULL AS SIGNED ) ) * 89
----
0

skipif mysql # not compatible
query I rowsort label-6323
SELECT - + COUNT ( ALL - col1 ) FROM tab0 AS cor0 WHERE 98 >= col1 + + ( + CAST ( NULL AS INTEGER ) ) * 89
----
0

query I rowsort
SELECT - col1 + + + 46 FROM tab2 cor0
----
-21
-31
-5

query III rowsort
SELECT * FROM tab2 WHERE ( + 94 NOT IN ( - + col0 + + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT ( - + MAX( - col0 ) ) * - 59 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT ( - + MAX ( - col0 ) ) * - 59 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

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

query II rowsort
SELECT ALL + - 55, col2 AS col0 FROM tab0 cor0
----
-55
10
-55
47
-55
99

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

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

query I rowsort
SELECT ALL - 72 AS col2 FROM tab1 WHERE NULL IS NULL
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 <= col0
----
2

skipif mysql # not compatible
query I rowsort label-6336
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 <= col0
----
2

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT 58 NOT BETWEEN NULL AND - col0 * - 18 + 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT ALL ( col1 ) + + - CAST( + - col2 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL ( col1 ) + + - CAST ( + - col2 AS INTEGER ) FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT - col0 * + 72 AS col2 FROM tab2
----
-3312
-4608
-5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT col2 * + CAST( + + 30 AS SIGNED ) FROM tab1
----
1770
2040
2880

skipif mysql # not compatible
query I rowsort label-6340
SELECT col2 * + CAST ( + + 30 AS INTEGER ) FROM tab1
----
1770
2040
2880

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 WHERE NOT - - col2 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT DISTINCT + COUNT( * ) AS col0, SUM( DISTINCT - col2 ) + COUNT( * ) FROM tab2
----
3
-118

skipif mysql # not compatible
query II rowsort label-6343
SELECT DISTINCT + COUNT ( * ) AS col0, SUM ( DISTINCT - col2 ) + COUNT ( * ) FROM tab2
----
3
-118

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

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL 36 + + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT + + col2 * 25 AS col1 FROM tab2 cor0
----
1000
1450
575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 80 col1 FROM tab2 AS cor0 WHERE NOT - col2 * col0 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL - 58 * + + MAX( DISTINCT + 64 ) AS col1 FROM tab1 AS cor0
----
-3712

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL - 58 * + + MAX ( DISTINCT + 64 ) AS col1 FROM tab1 AS cor0
----
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT + - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6349
SELECT + - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 64 + + + col2 AS col2 FROM tab0 AS cor0
----
-17
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT SUM( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0 WHERE 27 + - ( - + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT SUM ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0 WHERE 27 + - ( - + col0 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT ALL col1 + col0 DIV + col0 + + + 12 * col2 * - col0 FROM tab1
----
-58737
-60174
-74208

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL col1 + col0 / + col0 + + + 12 * col2 * - col0 FROM tab1
----
-58737
-60174
-74208

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
72

query I rowsort
SELECT DISTINCT + + col0 - + col1 * + - col2 AS col1 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT ALL - col1 * - 67 AS col2 FROM tab0 AS cor0
----
1407
5427
67

query I rowsort
SELECT 67 - + - col0 * - col2 * - col0 AS col1 FROM tab1
----
249763
426342
563175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6358
SELECT - col1 - - col0 + + col2 AS col2, CAST( NULL AS SIGNED ) col2 FROM tab0
----
-19
NULL
195
NULL
76
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6358
SELECT - col1 - - col0 + + col2 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-19
NULL
195
NULL
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT + 8 - + - COUNT( ALL - col1 ) + + + COUNT( * ) AS col2 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-6359
SELECT + 8 - + - COUNT ( ALL - col1 ) + + + COUNT ( * ) AS col2 FROM tab1
----
14

query I rowsort
SELECT ALL - 89 - 88 AS col1 FROM tab1
----
-177
-177
-177

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

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

query I rowsort
SELECT col0 * 77 + col2 FROM tab2 AS cor0
----
3565
4968
5833

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6364
SELECT DISTINCT 68, 39 DIV - COUNT( DISTINCT 35 ) AS col0 FROM tab1
----
68
-39

skipif mysql # not compatible
query II rowsort label-6364
SELECT DISTINCT 68, 39 / - COUNT ( DISTINCT 35 ) AS col0 FROM tab1
----
68
-39

query I rowsort
SELECT col2 * - col0 * + col1 * + 15 FROM tab2
----
-2956800
-4371750
-809370

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT + 2 DIV + + 43 + - + 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

skipif mysql # not compatible
query I rowsort label-6366
SELECT + 2 / + + 43 + - + 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

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

query I rowsort
SELECT col1 * col0 * + - 7 AS col2 FROM tab0
----
-12789
-679
-8505

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

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT 59 FROM tab2 AS cor0 WHERE NOT - 93 / 53 - 61 BETWEEN col2 * - 48 AND + ( + 1 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT - + 69 DIV + - ( + 86 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6373
SELECT - + 69 / + - ( + 86 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL - SUM( 58 ) * + COUNT( 92 ) FROM tab1 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL - SUM ( 58 ) * + COUNT ( 92 ) FROM tab1 AS cor0
----
-522

onlyif mysql # DIV for integer division: 
query I rowsort label-6375
SELECT DISTINCT + col0 DIV + + 93 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + col0 / + + 93 FROM tab2 AS cor0
----
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7 col0, + 46 * + - 92 AS col1 FROM tab0 AS cor0
----
-7
-4232
-7
-4232
-7
-4232

query II rowsort
SELECT DISTINCT 43 AS col2, 72 FROM tab2 AS cor0
----
43
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE 24 * - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE 24 * - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - col2 + col1 + - - 0 AS col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT + 95 + - - col0 FROM tab2
----
141
159
170

query I rowsort
SELECT + 53 + - col1 AS col2 FROM tab1
----
39
48
6

onlyif mysql # DIV for integer division: 
query II rowsort label-6384
SELECT col2 + - col2 AS col2, - 41 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
0
0
2

skipif mysql # not compatible
query II rowsort label-6384
SELECT col2 + - col2 AS col2, - 41 / - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col0 col1, - col2 AS col0 FROM tab0 cor0
----
-1215
-47
-1827
-10
-97
-99

query I rowsort
SELECT 74 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( 23 )
----

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

query II rowsort
SELECT ALL - 39, - 97 AS col0 FROM tab1
----
-39
-97
-39
-97
-39
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT - 88 + - MIN( + 65 ) AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6389
SELECT - 88 + - MIN ( + 65 ) AS col2 FROM tab2 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT + col2 + + CAST( NULL AS SIGNED ) + - 95 * + + 32 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-6390
SELECT + col2 + + CAST ( NULL AS INTEGER ) + - 95 * + + 32 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 17 + - - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL - COUNT( * ) - - 64 AS col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - COUNT ( * ) - - 64 AS col1 FROM tab2 AS cor0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT DISTINCT col2 * col1 * col1 DIV - col1 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6394
SELECT DISTINCT col2 * col1 * col1 / - col1 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6395
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN + col0 * + - CAST( NULL AS DECIMAL ) + + 81 * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6395
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN + col0 * + - CAST ( NULL AS REAL ) + + 81 * col1 AND NULL
----

query I rowsort
SELECT ALL - + col1 - - 67 AS col2 FROM tab2 AS cor0
----
-10
0
16

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

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

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * col2 + - + 42 = col0
----
-15
-87
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 95, 90 * 37 col0 FROM tab2 AS cor0
----
-95
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT ALL 7 + - + COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL 7 + - + COUNT ( * ) AS col0 FROM tab1
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT 44 DIV + - 81 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6403
SELECT 44 / + - 81 AS col0 FROM tab0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT DISTINCT col2 * - col2 * - 81 * + CAST( - 61 AS SIGNED ) FROM tab1
----
-17199621
-22847184
-45536256

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT col2 * - col2 * - 81 * + CAST ( - 61 AS INTEGER ) FROM tab1
----
-17199621
-22847184
-45536256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 cor0 WHERE 29 + 98 + - 44 BETWEEN NULL AND + col2 * - col2 * - - 87 * - + col1 * - 84 + 17
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 36
----

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

skipif mysql # not compatible
query I rowsort label-6408
SELECT MIN ( DISTINCT col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT ALL + - 97 DIV - COUNT( DISTINCT col0 ) + COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + - 97 / - COUNT ( DISTINCT col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
35

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6411
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + col2 - - 99 * + ( + - col2 ) + - CAST( NULL AS SIGNED ) + col2 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6411
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + col2 - - 99 * + ( + - col2 ) + - CAST ( NULL AS INTEGER ) + col2 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( 21 ) * + ( + 35 ) AS col1, - col0 FROM tab0
----
735
-15
735
-87
735
-97

query II rowsort
SELECT + 39 AS col0, + 61 AS col2 FROM tab1
----
39
61
39
61
39
61

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

skipif mysql # not compatible
query I rowsort label-6414
SELECT COUNT ( ALL - col0 ) FROM tab1
----
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6417
SELECT col2, + ( + CAST( - - col1 AS SIGNED ) ), col0 + - col2 AS col2 FROM tab2
----
9 values hashing to c8810329d0aad796cd0daeea69692d6a

skipif mysql # not compatible
query III rowsort label-6417
SELECT col2, + ( + CAST ( - - col1 AS INTEGER ) ), col0 + - col2 AS col2 FROM tab2
----
9 values hashing to c8810329d0aad796cd0daeea69692d6a

query I rowsort
SELECT ( - + col1 ) * - col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT 83 * - COUNT( * ) AS col1 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-6419
SELECT 83 * - COUNT ( * ) AS col1 FROM tab1
----
-249

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 69 + 75 <> NULL )
----

query I rowsort
SELECT col0 + - + 81 AS col2 FROM tab2 AS cor0
----
-17
-35
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT COUNT( * ) + - 67 + + 88 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6422
SELECT COUNT ( * ) + - 67 + + 88 FROM tab0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6423
SELECT - 41 DIV - col0 + - - col2 * - 46 * - + 24 + col2 FROM tab0
----
109395
11050
51937

skipif mysql # not compatible
query I rowsort label-6423
SELECT - 41 / - col0 + - - col2 * - 46 * - + 24 + col2 FROM tab0
----
109395
11050
51937

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

query I rowsort
SELECT ALL col0 - + col1 * - col0 * col0 FROM tab1
----
36210
36465
389298

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT ALL + - 56 - + COUNT( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL + - 56 - + COUNT ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + col2 - + 72 AS col1 FROM tab1 AS cor0
----
-13
-4
24

query II rowsort
SELECT ALL + col1 - col1 * - 54 AS col0, 51 FROM tab2 AS cor0
----
2805
51
3685
51
4235
51

query I rowsort
SELECT col1 * + col1 - col0 + - col0 * col0 + - 76 + - + col2 * - 90 AS col1 FROM tab1 AS cor0
----
-119
-2051
6108

query I rowsort
SELECT DISTINCT + + 13 FROM tab1 cor0 WHERE NOT + ( 49 ) * - col1 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - 82
----

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

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + 18 * + COUNT ( * ) FROM tab1
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-6438
SELECT col2 DIV + ( + - 83 ) AS col0, + col1, 16 + + col0 AS col2 FROM tab1 AS cor0
----
9 values hashing to e46a7b7931a44910e2873fc58e3e0564

skipif mysql # not compatible
query III rowsort label-6438
SELECT col2 / + ( + - 83 ) AS col0, + col1, 16 + + col0 AS col2 FROM tab1 AS cor0
----
9 values hashing to e46a7b7931a44910e2873fc58e3e0564

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - MIN( - - col0 ) col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6439
SELECT - MIN ( - - col0 ) col2 FROM tab0 cor0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-6440
SELECT - - 32 AS col1, - ( - col0 ) DIV - + 73 AS col1 FROM tab2 AS cor0
----
32
-1
32
0
32
0

skipif mysql # not compatible
query II rowsort label-6440
SELECT - - 32 AS col1, - ( - col0 ) / - + 73 AS col1 FROM tab2 AS cor0
----
32
-1
32
0
32
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6441
SELECT DISTINCT CAST( + col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6441
SELECT DISTINCT CAST ( + col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - + 66 AS col0 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6443
SELECT - - CAST( NULL AS SIGNED ), + col0 * + + col1 AS col2 FROM tab2 AS cor0
----
NULL
2346
NULL
4928
NULL
5025

skipif mysql # not compatible
query II rowsort label-6443
SELECT - - CAST ( NULL AS INTEGER ), + col0 * + + col1 AS col2 FROM tab2 AS cor0
----
NULL
2346
NULL
4928
NULL
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT + 55 / 99 AS col1 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6444
SELECT + 55 / 99 AS col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT 80 + - 82 AS col0 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL + COUNT( * ) + - COUNT( * ) * MAX( col1 ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * MAX ( col1 ) FROM tab1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL + COUNT( * ) * + 64 + COUNT( * ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL + COUNT ( * ) * + 64 + COUNT ( * ) FROM tab2
----
195

query I rowsort
SELECT col0 + - col2 * - 45 AS col1 FROM tab0
----
2130
4552
537

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

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

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

skipif mysql # not compatible
query I rowsort label-6450
SELECT CAST ( + 27 AS INTEGER ) FROM tab2
----
27
27
27

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 71 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 - + col2 col2 FROM tab0
----
0
200
3760

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT 43 * - SUM( DISTINCT - col2 ) FROM tab0
----
6708

skipif mysql # not compatible
query I rowsort label-6456
SELECT 43 * - SUM ( DISTINCT - col2 ) FROM tab0
----
6708

query I rowsort
SELECT ALL col1 + + col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 62 AS col1 FROM tab1 WHERE ( col1 ) IN ( ( col2 ) )
----

query I rowsort
SELECT ALL + 4 * - 87 AS col1 FROM tab1
----
-348
-348
-348

query I rowsort
SELECT col1 - 93 AS col1 FROM tab0
----
-12
-72
-92

query I rowsort
SELECT ALL col2 * col2 - + col2 AS col1 FROM tab2
----
1560
3306
506

query I rowsort
SELECT col1 - - ( col0 + col2 ) * 36 FROM tab2
----
2535
3821
4855

query I rowsort
SELECT ALL ( - 5 ) * + 42 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 56 col2 FROM tab1
----
12
3
40

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6466
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( 91 / 35 ) AND ( + col1 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6466
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( 91 / 35 ) AND ( + col1 * CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT col2 + col0 * 89 AS col1 FROM tab1
----
4635
7624
8167

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + + col1 NOT BETWEEN NULL AND 54 + - 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + col2 * col2 BETWEEN ( + 62 + - ( + 27 + 41 / + ( - col2 ) ) ) AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND - col0 * CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6470
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND - col0 * CAST ( NULL AS INTEGER )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT 35 * + COUNT( * ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-6472
SELECT 35 * + COUNT ( * ) FROM tab1 AS cor0
----
105

query I rowsort
SELECT + col0 * col0 - col0 FROM tab2
----
2070
4032
5550

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

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

query I rowsort
SELECT DISTINCT 40 - - col2 FROM tab2
----
63
80
98

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + 10 ) <= ( 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6478
SELECT - MAX( CAST( + ( ( - 93 ) ) AS SIGNED ) ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6478
SELECT - MAX ( CAST ( + ( ( - 93 ) ) AS INTEGER ) ) FROM tab0 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 IN ( 72 / 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( NULL ) < - 60
----
0

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( NULL ) < - 60
----
0

query I rowsort
SELECT DISTINCT - - 11 AS col1 FROM tab0 AS cor0
----
11

query I rowsort
SELECT 9 FROM tab0 AS cor0 WHERE NOT ( col2 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL - + COUNT( ALL - ( 37 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - + COUNT ( ALL - ( 37 ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL > ( + ( ( + 22 ) ) * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT IN ( 79 * 39 )
----

query I rowsort
SELECT DISTINCT col1 * + 53 AS col1 FROM tab2 WHERE NOT - 9 + + col2 IS NULL
----
2703
3551
4081

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

query I rowsort
SELECT ( 62 ) * + 43 FROM tab0
----
2666
2666
2666

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

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

query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab0 WHERE ( 47 ) <= col2 * col1
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT + col0 DIV col1 * - col2 AS col2 FROM tab0 AS cor0
----
-40
-9603
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT + col0 / col1 * - col2 AS col2 FROM tab0 AS cor0
----
-40
-9603
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT ( + COUNT( * ) ) * + 5 AS col1 FROM tab1 AS cor0 WHERE NOT 23 + - 26 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT ( + COUNT ( * ) ) * + 5 AS col1 FROM tab1 AS cor0 WHERE NOT 23 + - 26 = NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * + - col1 * col1 - col0 FROM tab0 AS cor0
----
0
38280
98400

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

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

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

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT - 43 * ( - COUNT ( * ) ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT DISTINCT + col0 * - 11 FROM tab2 WHERE NOT NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + col0 * - 11 FROM tab2 WHERE NOT NULL <> - CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + SUM( ALL - + 52 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6499
SELECT + SUM ( ALL - + 52 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT 14 * + + col0 AS col1 FROM tab1 AS cor0
----
1190
1274
714

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT ALL + col2 + 12 DIV - - 67 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + col2 + 12 / - - 67 FROM tab0
----
10
47
99

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 85 + + + col1 * col2 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT + 17 * + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6506
SELECT + 17 * + COUNT ( * ) FROM tab2
----
51

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + - col1 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6509
SELECT - SUM ( - - col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT DISTINCT - col1 + + col0 DIV ( col0 ) AS col2 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT - col1 + + col0 / ( col0 ) AS col2 FROM tab2
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT COUNT( * ) * 25 - + MAX( DISTINCT col2 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-6511
SELECT COUNT ( * ) * 25 - + MAX ( DISTINCT col2 ) FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL 38 * + - COUNT( col0 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL 38 * + - COUNT ( col0 ) FROM tab2
----
-114

query I rowsort
SELECT DISTINCT 48 * - col2 FROM tab1 cor0
----
-2832
-3264
-4608

query I rowsort
SELECT 12 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 83
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 46 > - ( - + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL - - MAX( + 6 ) * - MAX( DISTINCT col1 ) * COUNT( * ) FROM tab0 AS cor0
----
-1458

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - - MAX ( + 6 ) * - MAX ( DISTINCT col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
-1458

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6518
SELECT COUNT( * ) DIV 76 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6518
SELECT COUNT ( * ) / 76 col2 FROM tab1
----
0

query I rowsort
SELECT ALL - - 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT ALL col1 + + col2 AS col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) * - col2 + col2 + + 45 + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL col1 + + col2 AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * - col2 + col2 + + 45 + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 92 / 85 BETWEEN ( + - 0 ) AND NULL
----

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

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

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

query I rowsort
SELECT ALL - - 88 AS col0 FROM tab0 AS cor0
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 13 + + col2 * + 55 * - - col0 = ( + col2 - col0 / 3 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6526
SELECT - + col1 DIV col2 FROM tab1 WHERE NOT + col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6526
SELECT - + col1 / col2 FROM tab1 WHERE NOT + col1 IS NULL
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6530
SELECT - - col1 AS col1 FROM tab2 WHERE NOT + CAST( + + 85 AS SIGNED ) * - 21 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6530
SELECT - - col1 AS col1 FROM tab2 WHERE NOT + CAST ( + + 85 AS INTEGER ) * - 21 IS NULL
----
51
67
77

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

query II rowsort
SELECT ALL col1, col0 + + - 91 * - col2 + - col2 AS col2 FROM tab2
----
51
2116
67
5295
77
3664

query I rowsort
SELECT DISTINCT ( + - 68 ) FROM tab2
----
-68

query I rowsort
SELECT - 24 * + col2 AS col0 FROM tab0 AS cor0
----
-1128
-2376
-240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT DISTINCT + 1 * + 55 * - - COUNT( * ) col1 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6536
SELECT DISTINCT + 1 * + 55 * - - COUNT ( * ) col1 FROM tab2 AS cor0
----
165

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * - col2 NOT BETWEEN + - 82 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-23
-40
-58

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

query I rowsort
SELECT DISTINCT 1 * 36 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
36

query I rowsort
SELECT ALL col0 + - 6 AS col1 FROM tab0 AS cor0
----
81
9
91

query I rowsort
SELECT ( + + 97 ) + 48 FROM tab2 AS cor0
----
145
145
145

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

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

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

query I rowsort
SELECT DISTINCT 78 * col1 FROM tab1 AS cor0
----
1092
3666
390

query I rowsort
SELECT DISTINCT col1 * - col1 * - col2 AS col2 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( - col2 NOT IN ( col0 * - col2 * + 58 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6547
SELECT - MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( - col2 NOT IN ( col0 * - col2 * + 58 ) )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT DISTINCT col0 * + col0 * - col1 * 40 + CAST( 39 AS SIGNED ) * + CAST( + 31 AS SIGNED ) + - col0 AS col0 FROM tab1
----
-1443876
-1455402
-15567162

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT col0 * + col0 * - col1 * 40 + CAST ( 39 AS INTEGER ) * + CAST ( + 31 AS INTEGER ) + - col0 AS col0 FROM tab1
----
-1443876
-1455402
-15567162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6549
SELECT col0 + + - CAST( NULL AS SIGNED ) + + 97 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT col0 + + - CAST ( NULL AS INTEGER ) + + 97 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT + col2 * + col2 DIV col2 + + 53 * - 87 * 45 col0 FROM tab2
----
-207437
-207455
-207472

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6550
SELECT + col2 * + col2 / col2 + + 53 * - 87 * 45 col0 FROM tab2
----
-207437
-207455
-207472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 / + col2 col0 FROM tab0 WHERE NULL = - 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 26 col2 FROM tab2 WHERE - 41 NOT BETWEEN NULL AND + 74
----

query I rowsort
SELECT DISTINCT - 71 * 9 + + col0 FROM tab2
----
-564
-575
-593

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6556
SELECT DISTINCT + col2 * + + col2 - col0 * + CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
19210
2434
7669

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + col2 * + + col2 - col0 * + CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
19210
2434
7669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * + + col0 col0 FROM tab1 cor0
----
1326
2210
2366

query II rowsort
SELECT DISTINCT - + ( + col2 ) * - - 83 AS col0, + 9 + + + col0 FROM tab1 AS cor0
----
-4897
94
-5644
100
-7968
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6559
SELECT DISTINCT + col2 / + - col0 FROM tab2 AS cor0 WHERE NOT NULL = 46 + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT + col2 / + - col0 FROM tab2 AS cor0 WHERE NOT NULL = 46 + CAST ( - col1 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 85 = NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NOT ( col2 ) BETWEEN col0 + - col0 AND - + col0 + col2 * + - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT - MAX( DISTINCT - 57 ) DIV + 5 AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6562
SELECT - MAX ( DISTINCT - 57 ) / + 5 AS col0 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT + 60 * col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT + 60 * col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT ALL + ( - + ( 97 ) ) DIV - 12 FROM tab0 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + ( - + ( 97 ) ) / - 12 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6565
SELECT 36 AS col0, + col2 FROM tab2 AS cor0 WHERE NOT ( + CAST( col1 AS SIGNED ) ) BETWEEN ( - - 69 ) AND - - col2
----
36
23
36
40
36
58

skipif mysql # not compatible
query II rowsort label-6565
SELECT 36 AS col0, + col2 FROM tab2 AS cor0 WHERE NOT ( + CAST ( col1 AS INTEGER ) ) BETWEEN ( - - 69 ) AND - - col2
----
36
23
36
40
36
58

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6568
SELECT ALL COUNT( * ) AS col1, + MAX( DISTINCT + + 48 ) FROM tab0
----
3
48

skipif mysql # not compatible
query II rowsort label-6568
SELECT ALL COUNT ( * ) AS col1, + MAX ( DISTINCT + + 48 ) FROM tab0
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT - SUM( - 52 ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-6569
SELECT - SUM ( - 52 ) FROM tab1
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6570
SELECT 69 DIV COUNT( * ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6570
SELECT 69 / COUNT ( * ) AS col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT + col2 * + col2 * - 59 + + col1 AS col1 FROM tab2
----
-198409
-31160
-94323

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 59 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6574
SELECT + CAST( NULL AS DECIMAL ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6574
SELECT + CAST ( NULL AS REAL ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL 11 * col2 * - col1 AS col2 FROM tab1 AS cor0 WHERE ( + col1 * + - ( + col1 ) ) IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6576
SELECT ALL + COUNT ( + ( col2 ) ) col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 17, col2 FROM tab1 AS cor0
----
17
59
17
68
17
96

query I rowsort
SELECT 13 * + + col0 * col2 + - col2 + + col1 FROM tab2
----
13782
33317
56559

query I rowsort
SELECT 53 + col2 + - - col2 FROM tab2
----
133
169
99

query I rowsort
SELECT + 4 + - col2 + 90 FROM tab1
----
-2
26
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6581
SELECT + 28 DIV - col1 + + - 22 FROM tab2
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-6581
SELECT + 28 / - col1 + + - 22 FROM tab2
----
-22
-22
-22

query II rowsort
SELECT ALL + col2 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6584
SELECT + - col0 DIV - 76 + + ( - CAST( - - col0 AS SIGNED ) ) + + col2 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
12121
195037
63936

skipif mysql # not compatible
query I rowsort label-6584
SELECT + - col0 / - 76 + + ( - CAST ( - - col0 AS INTEGER ) ) + + col2 * - col2 * - col2 AS col0 FROM tab2 AS cor0
----
12121
195037
63936

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

query II rowsort
SELECT + + 37, - col2 + - - ( - 9 ) * + ( - - col2 ) AS col2 FROM tab0 AS cor0
----
37
-100
37
-470
37
-990

query I rowsort
SELECT + col2 * - col0 * - col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - COUNT( * ) * + ( - 84 ) col1 FROM tab1 AS cor0
----
252

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

query I rowsort
SELECT + col0 - + 29 * 81 FROM tab1
----
-2258
-2264
-2298

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT COUNT( * ) + - MIN( DISTINCT col2 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-6591
SELECT COUNT ( * ) + - MIN ( DISTINCT col2 ) FROM tab0
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT COUNT( DISTINCT 68 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6593
SELECT COUNT ( DISTINCT 68 ) FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT 87 FROM tab2 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT DISTINCT + + 9 * MAX( ALL - 45 ) AS col2 FROM tab0 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT + + 9 * MAX ( ALL - 45 ) AS col2 FROM tab0 AS cor0
----
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-6596
SELECT ALL - - 2 * col0 + - - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
127
149
91

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - - 2 * col0 + - - col1 / - col1 AS col2 FROM tab2 AS cor0
----
127
149
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6597
SELECT ALL - 26 DIV MAX( - 40 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - 26 / MAX ( - 40 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + COUNT( - 39 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6598
SELECT + COUNT ( - 39 ) FROM tab0 cor0
----
3

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

query I rowsort
SELECT ALL - ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 33 AS col0, col2 col1 FROM tab0 AS cor0
----
33
10
33
47
33
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6602
SELECT - COUNT( * ) AS col2, - COUNT( DISTINCT + ( - + 60 ) ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
2

skipif mysql # not compatible
query II rowsort label-6602
SELECT - COUNT ( * ) AS col2, - COUNT ( DISTINCT + ( - + 60 ) ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
2

query II rowsort
SELECT - + col1 AS col1, - 80 * col2 FROM tab1 cor0
----
-14
-7680
-47
-5440
-5
-4720

query II rowsort
SELECT - + 31 AS col0, col0 * - - col1 AS col2 FROM tab2 AS cor0
----
-31
2346
-31
4928
-31
5025

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6607
SELECT - 53 AS col2, COUNT( * ) * + + 5 AS col0 FROM tab2 AS cor0
----
-53
15

skipif mysql # not compatible
query II rowsort label-6607
SELECT - 53 AS col2, COUNT ( * ) * + + 5 AS col0 FROM tab2 AS cor0
----
-53
15

query I rowsort
SELECT ALL + col1 + - 79 + + col1 FROM tab1
----
-51
-69
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6609
SELECT ALL - ( CAST( + col0 AS SIGNED ) ) DIV - 8 + - - col2 + + 68 FROM tab0
----
116
179
88

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - ( CAST ( + col0 AS INTEGER ) ) / - 8 + - - col2 + + 68 FROM tab0
----
116
179
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT DISTINCT 36 + + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 48 * - 54 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT 36 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 48 * - 54 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6612
SELECT ALL col0 + + - CAST( + col1 AS SIGNED ) FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL col0 + + - CAST ( + col1 AS INTEGER ) FROM tab0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT ALL 0 * + 56 DIV + col2 + - + 32 col1 FROM tab2
----
-32
-32
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6613
SELECT ALL 0 * + 56 / + col2 + - + 32 col1 FROM tab2
----
-32
-32
-32

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1, 79, - 27, 99 )
----

query II rowsort
SELECT 47 + - col1 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
-34
-47
26
-10
46
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * 29 col0 FROM tab2 AS cor0
----
551
551
551

query I rowsort
SELECT ( - 5 ) FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + 40 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT + ( + 26 ) DIV - COUNT( * ) FROM tab0, tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6621
SELECT + ( + 26 ) / - COUNT ( * ) FROM tab0, tab0 AS cor0
----
-2

query I rowsort
SELECT + + col2 + + col1 - - col2 * + col0 AS col1 FROM tab0 AS cor0
----
833
901
9703

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT DISTINCT + + 61 AS col0 FROM tab1 cor0 WHERE NOT ( + 32 ) IN ( + ( + CAST( NULL AS SIGNED ) ) - - 89 * - - 44 * - 51, col0 + 62 )
----

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT + + 61 AS col0 FROM tab1 cor0 WHERE NOT ( + 32 ) IN ( + ( + CAST ( NULL AS INTEGER ) ) - - 89 * - - 44 * - 51, col0 + 62 )
----

query I rowsort
SELECT col2 + + - 43 FROM tab1 AS cor0
----
16
25
53

query I rowsort
SELECT DISTINCT - + ( - 66 ) AS col1 FROM tab0 AS cor0
----
66

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

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

query I rowsort
SELECT 1 * + + col2 AS col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NULL <> + 71 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6630
SELECT col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6630
SELECT col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 * - + 97 + col2 NOT IN ( + - 27, col0 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL col1 * + - 98 AS col1 FROM tab1
----
-1372
-4606
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT 50 * + COUNT( * ) * + COUNT( * ) * + 64 AS col0 FROM tab0
----
28800

skipif mysql # not compatible
query I rowsort label-6634
SELECT 50 * + COUNT ( * ) * + COUNT ( * ) * + 64 AS col0 FROM tab0
----
28800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 63 col1, ( + - col1 ) * + 80 + + ( - col2 ) FROM tab2 AS cor0
----
-63
-4103
-63
-5418
-63
-6200

query II rowsort
SELECT - 94 AS col2, 65 + + 4 + + ( + 78 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + + 85 - + col0 * - col1 * - col2 * - col2, col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6637
SELECT DISTINCT 41 AS col1, + 10 DIV - 11 AS col2 FROM tab0 AS cor0
----
41
0

skipif mysql # not compatible
query II rowsort label-6637
SELECT DISTINCT 41 AS col1, + 10 / - 11 AS col2 FROM tab0 AS cor0
----
41
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * - 4 col1 FROM tab2 cor0
----
-160
-232
-92

query I rowsort
SELECT DISTINCT + - ( + - col1 ) * - + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6640
SELECT * FROM tab0 WHERE NOT NULL = ( - - ( + ( col1 ) ) + - CAST( NULL AS DECIMAL ) + - col1 + 90 + - col2 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-6640
SELECT * FROM tab0 WHERE NOT NULL = ( - - ( + ( col1 ) ) + - CAST ( NULL AS REAL ) + - col1 + 90 + - col2 * - col2 )
----

query I rowsort
SELECT ALL 22 * + 35 * - col0 * - col2 FROM tab1 AS cor0
----
3769920
3861550
4764760

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

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

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

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT + 18 <= - 55 / + + col2 * + - col2 + 7 * 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT - col0 * ( 48 ) DIV + - 30 + col0 + - col2 * - col1 FROM tab2
----
1292
3246
4081

skipif mysql # not compatible
query I rowsort label-6645
SELECT - col0 * ( 48 ) / + - 30 + col0 + - col2 * - col1 FROM tab2
----
1292
3246
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT COUNT( * ) + + 85 + + 34 FROM tab1
----
122

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT COUNT ( * ) + + 85 + + 34 FROM tab1
----
122

query II rowsort
SELECT col2, - col1 * + - 33 + + col1 * + + 55 AS col0 FROM tab1
----
59
440
68
4136
96
1232

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

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

query I rowsort
SELECT DISTINCT - col0 * + - col1 + 64 + col1 FROM tab0 AS cor0
----
1360
162
1912

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT 92 + - - COUNT( * ) * - 58 * + + SUM( + 39 ) FROM tab2 cor0
----
-20266

skipif mysql # not compatible
query I rowsort label-6651
SELECT 92 + - - COUNT ( * ) * - 58 * + + SUM ( + 39 ) FROM tab2 cor0
----
-20266

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

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

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

query II rowsort
SELECT ALL + col2 * - col1 AS col1, - col0 FROM tab0 cor0
----
-210
-87
-3807
-15
-99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT col2 - - - 18 DIV col0 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6655
SELECT col2 - - - 18 / col0 AS col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * ( - 45 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, 2 AS col2 FROM tab2
----
51
2
67
2
77
2

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + + col2 * - 6 * + col0 + - ( + + 66 ) * + col0, - 69 + + col2, - col0 )
----

query I rowsort
SELECT col1 * - - 48 AS col1 FROM tab1
----
2256
240
672

query I rowsort
SELECT col1 * - + 13 * col2 FROM tab2
----
-15249
-40040
-50518

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 49, ( - 25 ) AS col2 FROM tab0
----
49
-25

query I rowsort
SELECT - + 37 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT 34 * + col2 FROM tab1
----
2006
2312
3264

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT - - col0 DIV + + 88 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6668
SELECT - - col0 / + + 88 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6669
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( CAST( NULL AS DECIMAL ) * col0, col0 )
----

skipif mysql # not compatible
query III rowsort label-6669
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( CAST ( NULL AS REAL ) * col0, col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 * - + ( ( + col0 ) ) * + 59
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6671
SELECT 70 AS col1, SUM( + 99 ) AS col0 FROM tab0 AS cor0
----
70
297

skipif mysql # not compatible
query II rowsort label-6671
SELECT 70 AS col1, SUM ( + 99 ) AS col0 FROM tab0 AS cor0
----
70
297

onlyif mysql # DIV for integer division: 
query I rowsort label-6672
SELECT + col2 DIV 38 + col1 AS col0 FROM tab1 AS cor0
----
16
48
6

skipif mysql # not compatible
query I rowsort label-6672
SELECT + col2 / 38 + col1 AS col0 FROM tab1 AS cor0
----
16
48
6

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

skipif mysql # not compatible
query I rowsort label-6673
SELECT COUNT ( * ) * + MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
138

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

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

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

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - - COUNT ( * ) * + + 53 AS col0 FROM tab2 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL SUM( - 35 ) * - 57 AS col2 FROM tab1 AS cor0
----
5985

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL SUM ( - 35 ) * - 57 AS col2 FROM tab1 AS cor0
----
5985

query I rowsort
SELECT ALL + 61 * col1 + - 20 FROM tab0
----
1261
41
4921

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

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

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE - - ( col0 ) BETWEEN NULL AND col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 * + - 34 + + col2, col0 col2 FROM tab0 AS cor0
----
133
97
2801
15
724
87

query I rowsort
SELECT + + col2 * - 39 - 88 AS col0 FROM tab1 AS cor0
----
-2389
-2740
-3832

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT 39 * + 36 * COUNT( * ) FROM tab0 AS cor0
----
4212

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT 39 * + 36 * COUNT ( * ) FROM tab0 AS cor0
----
4212

query II rowsort
SELECT col0, + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <= + 29 * + 84 * + + 72 - + col1
----

query I rowsort
SELECT - 30 - + col2 AS col2 FROM tab0
----
-129
-40
-77

query I rowsort
SELECT ALL - 54 + - + 8 FROM tab2
----
-62
-62
-62

query I rowsort
SELECT DISTINCT + 62 + + col0 FROM tab1
----
113
147
153

query II rowsort
SELECT DISTINCT + col1 - + col2 * - col2, col0 * - 99 AS col2 FROM tab0 AS cor0
----
121
-8613
2290
-1485
9802
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT + COUNT( * ) + + 85 * - 28 AS col2 FROM tab2 cor0
----
-2377

skipif mysql # not compatible
query I rowsort label-6689
SELECT + COUNT ( * ) + + 85 * - 28 AS col2 FROM tab2 cor0
----
-2377

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6691
SELECT + COUNT( * ) + + COUNT( * ) - SUM( ALL + col0 ) AS col2, + 23 DIV - - 46 AS col2 FROM tab1 cor0
----
-221
0

skipif mysql # not compatible
query II rowsort label-6691
SELECT + COUNT ( * ) + + COUNT ( * ) - SUM ( ALL + col0 ) AS col2, + 23 / - - 46 AS col2 FROM tab1 cor0
----
-221
0

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

query I rowsort
SELECT ALL - col2 * - 72 FROM tab2 AS cor0
----
1656
2880
4176

query I rowsort
SELECT - ( 35 ) FROM tab1 cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT ALL CAST( NULL AS SIGNED ), + 58 AS col0 FROM tab0 cor0
----
NULL
58
NULL
58
NULL
58

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL CAST ( NULL AS INTEGER ), + 58 AS col0 FROM tab0 cor0
----
NULL
58
NULL
58
NULL
58

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL IN ( - + 26 / - col0 + 83 + + col1 * - col2 * 33 )
----

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab0, tab2 AS cor0
----
71

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6699
SELECT + SUM( + col0 ), + 35 AS col0 FROM tab2 AS cor0
----
185
35

skipif mysql # not compatible
query II rowsort label-6699
SELECT + SUM ( + col0 ), + 35 AS col0 FROM tab2 AS cor0
----
185
35

query I rowsort
SELECT DISTINCT 34 / - col2 FROM tab2 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT + - ( col1 ) * - 52 FROM tab0 AS cor0 WHERE NOT - ( - 35 ) IS NULL
----
1092
4212
52

query I rowsort
SELECT DISTINCT - col1 + + + col2 FROM tab0
----
-11
-34
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT COUNT( * ) + + + SUM( + col2 ) AS col1 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-6704
SELECT COUNT ( * ) + + + SUM ( + col2 ) AS col1 FROM tab2
----
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query I rowsort
SELECT - col2 - - col0 FROM tab1 AS cor0 WHERE NOT ( ( - col2 * - - ( + col1 ) + - col0 * col2 NOT BETWEEN + col0 AND + - 1 * - + col1 * - col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6707
SELECT - 11 * - - 79, CAST( - MIN( + col1 ) AS SIGNED ) + 22 * + + 53 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
-869
NULL

skipif mysql # not compatible
query II rowsort label-6707
SELECT - 11 * - - 79, CAST ( - MIN ( + col1 ) AS INTEGER ) + 22 * + + 53 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
-869
NULL

query II rowsort
SELECT + col1 AS col2, - 61 * - col1 * + col2 FROM tab2 AS cor0
----
51
71553
67
237046
77
187880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT + COUNT( * ) * - - 91 AS col0 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT + COUNT ( * ) * - - 91 AS col0 FROM tab2
----
273

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - MIN( ALL + + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6714
SELECT - MIN ( ALL + + col2 ) AS col2 FROM tab0
----
-10

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

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

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

query II rowsort
SELECT + 62, - 55 AS col1 FROM tab1
----
62
-55
62
-55
62
-55

query I rowsort
SELECT + col2 - + ( 90 ) * - + ( + 99 ) + + - 91 FROM tab2
----
8842
8859
8877

query I rowsort
SELECT DISTINCT col0 + + + col1 * col1 AS col0 FROM tab2
----
2647
4564
5993

query I rowsort
SELECT + col1 * col0 + + col0 FROM tab1
----
4368
510
765

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

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

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

query I rowsort
SELECT + - 77 + ( - 22 ) + col0 FROM tab0 AS cor0
----
-12
-2
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col2 FROM tab1 WHERE NULL >= + ( + + col1 )
----

query I rowsort
SELECT DISTINCT + 26 * - 25 - + col0 * + 25 FROM tab1 cor0
----
-1925
-2775
-2925

query I rowsort
SELECT - - col2 * + 40 * - - col1 FROM tab0 AS cor0
----
152280
3960
8400

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT DISTINCT - 17 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
17

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - 17 / - col1 AS col1 FROM tab0 AS cor0
----
0
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6729
SELECT ALL + - COUNT( DISTINCT CAST( - + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + - COUNT ( DISTINCT CAST ( - + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - col0 AS col2, col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT ALL - 32, - 33 * - col0 * + col0 AS col0 FROM tab0
----
-32
249777
-32
310497
-32
7425

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 2 <> + 22
----

query I rowsort
SELECT + col2 * 0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 38 * + col2 FROM tab2
----
1520
2204
874

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE NOT + 33 <> 9
----
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 33 <> 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT MIN( - col1 ) * + SUM( DISTINCT - col0 ) AS col2 FROM tab2
----
14245

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT MIN ( - col1 ) * + SUM ( DISTINCT - col0 ) AS col2 FROM tab2
----
14245

query II rowsort
SELECT DISTINCT + + col0, col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT - + col1 / - col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab1 cor0 WHERE NOT ( - 73 + + + 8 * - - col0 * + col0 ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + 68 * COUNT( * ) + COUNT( * ) * - 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-6740
SELECT + 68 * COUNT ( * ) + COUNT ( * ) * - 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54

query I rowsort
SELECT DISTINCT col1 + + + col1 * - 43 * + - col2 FROM tab0
----
163782
4258
9051

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT COUNT( ALL - - col0 ) * + + 56 AS col1 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-6742
SELECT COUNT ( ALL - - col0 ) * + + 56 AS col1 FROM tab0
----
168

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + 24 + - SUM( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
-203

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6745
SELECT + 24 + - SUM ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
-203

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( 75 * - + col0, - col2 )
----

query I rowsort
SELECT - col2 + - col1 - ( - 39 ) * - ( + + col2 ) * 28 + + col2 FROM tab0
----
-108109
-10941
-51405

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 3 < + 12 + - + col1 + - + col2
----

query I rowsort
SELECT - 17 + - 71 AS col1 FROM tab1
----
-88
-88
-88

query I rowsort
SELECT ALL col1 + 65 AS col2 FROM tab1
----
112
70
79

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

query I rowsort
SELECT 51 - - 80 * col0 FROM tab2 AS cor0
----
3731
5171
6051

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

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + 71 AS col2 FROM tab1 AS cor0
----
-3621
-6035
-6461

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

query I rowsort
SELECT DISTINCT - - ( + - col0 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

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

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6759
SELECT DISTINCT + - 17 AS col1, COUNT( * ) FROM tab0 AS cor0
----
-17
3

skipif mysql # not compatible
query II rowsort label-6759
SELECT DISTINCT + - 17 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-17
3

query I rowsort
SELECT ALL + ( + col1 ) * 93 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6762
SELECT DISTINCT COUNT( * ) * + - 41 AS col0, - 69 * 27 FROM tab1
----
-123
-1863

skipif mysql # not compatible
query II rowsort label-6762
SELECT DISTINCT COUNT ( * ) * + - 41 AS col0, - 69 * 27 FROM tab1
----
-123
-1863

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT ALL + 76 DIV ( + 7 ) AS col1 FROM tab0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + 76 / ( + 7 ) AS col1 FROM tab0
----
10
10
10

query I rowsort
SELECT + col1 * - col0 * col1 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT + col2 + + + 0 FROM tab2 WHERE NOT - 4 <= + 57 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT COUNT( * ) * + ( + MIN( ALL - + col1 ) ) * + - MIN( DISTINCT - col0 ) * 10 AS col2 FROM tab0
----
-235710

skipif mysql # not compatible
query I rowsort label-6766
SELECT COUNT ( * ) * + ( + MIN ( ALL - + col1 ) ) * + - MIN ( DISTINCT - col0 ) * 10 AS col2 FROM tab0
----
-235710

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT ALL col1 DIV - 94 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL col1 / - 94 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - 23 * col0 * col1 AS col2 FROM tab2
----
-113344
-115575
-53958

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

skipif mysql # not compatible
query I rowsort label-6769
SELECT - MIN ( col2 ) AS col2 FROM tab2
----
-23

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

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

query I rowsort
SELECT DISTINCT - 7 * + + 47 FROM tab1
----
-329

query I rowsort
SELECT ALL ( + + 59 ) FROM tab1 cor0 WHERE NOT + 5 IS NULL
----
59
59
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + + col2, + col1 * - 22 col1 FROM tab2 AS cor0
----
0
-1122
0
-1474
0
-1694

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6775
SELECT * FROM tab0 WHERE NULL <= CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6775
SELECT * FROM tab0 WHERE NULL <= CAST ( - col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT DISTINCT + col1 DIV - 41 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT + col1 / - 41 AS col0 FROM tab1
----
-1
0

query II rowsort
SELECT - 53 AS col1, 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to c98e7153c29411c83abe2d9310ef7bb3

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

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

query I rowsort
SELECT + + 90 AS col1 FROM tab1 AS cor0 WHERE NULL = col1 * + col1 * - col2 * col2 * - 42
----

query II rowsort
SELECT + + 38 AS col1, 5 + - col0 * + 1 AS col1 FROM tab2 AS cor0
----
38
-41
38
-59
38
-70

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

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

query I rowsort
SELECT col0 - + + col2 AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT - ( - 89 ) - + + 46 AS col1 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT COUNT( ALL 3 ) - 32 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-6785
SELECT COUNT ( ALL 3 ) - 32 FROM tab0
----
-29

query II rowsort
SELECT + 61 - + 95 AS col0, + 32 AS col1 FROM tab2
----
-34
32
-34
32
-34
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col0 + + col1 col2 FROM tab1
----
-23
-75
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 AS cor0 WHERE - 80 * - col2 < - col0
----

query I rowsort
SELECT DISTINCT + + col2 * - col0 * + col2 - + + 30 FROM tab1 AS cor0
----
-295915
-420814
-470046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 69 col1 FROM tab1 AS cor0
----
3243
345
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT 72 <= 75
----

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

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

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

query II rowsort
SELECT DISTINCT - 63 AS col2, 39 AS col1 FROM tab1 AS cor0
----
-63
39

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

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

query I rowsort
SELECT ALL - col0 + - col2 FROM tab0 WHERE NOT - col1 / - col0 * - + 56 IS NULL
----
-196
-62
-97

query I rowsort
SELECT ( - - 72 ) AS col1 FROM tab2
----
72
72
72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 * - col0 col2 FROM tab2
----
-2369
-4968
-5083

query I rowsort
SELECT ALL - ( 73 ) + - col0 + + 65 * - col2 * - - col1 FROM tab0 WHERE NOT col0 * - col0 + + 36 + - 12 / - col2 * + 26 + + + col0 + + col0 + - col2 IS NULL
----
-13810
-247543
-6605

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT + MAX( ( col1 ) ) + - + COUNT( * ) FROM tab1 WHERE NOT ( NOT ( NOT - 11 IS NULL ) )
----
44

skipif mysql # not compatible
query I rowsort label-6802
SELECT + MAX ( ( col1 ) ) + - + COUNT ( * ) FROM tab1 WHERE NOT ( NOT ( NOT - 11 IS NULL ) )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6803
SELECT ALL 48, + COUNT( * ) DIV - 57 * - COUNT( * ) * + ( - 52 ) AS col1 FROM tab2
----
48
0

skipif mysql # not compatible
query II rowsort label-6803
SELECT ALL 48, + COUNT ( * ) / - 57 * - COUNT ( * ) * + ( - 52 ) AS col1 FROM tab2
----
48
0

query I rowsort
SELECT 70 + + col2 AS col1 FROM tab1
----
129
138
166

query I rowsort
SELECT ALL 17 AS col1 FROM tab0 AS cor0 WHERE - col0 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-6806
SELECT - COUNT ( * ) / - 88 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL - - 9 * + SUM( - 78 ) AS col0 FROM tab2 AS cor0
----
-2106

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - - 9 * + SUM ( - 78 ) AS col0 FROM tab2 AS cor0
----
-2106

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 62 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT - - CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6810
SELECT - - CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT DISTINCT - CAST( + 77 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1078
3619
385

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - CAST ( + 77 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1078
3619
385

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT - + SUM( 39 ) + + + MIN( DISTINCT - + ( + 21 ) ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT - + SUM ( 39 ) + + + MIN ( DISTINCT - + ( + 21 ) ) FROM tab0 AS cor0
----
-138

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT DISTINCT + 87, + MIN( - 58 ) AS col0 FROM tab2
----
87
-58

skipif mysql # not compatible
query II rowsort label-6814
SELECT DISTINCT + 87, + MIN ( - 58 ) AS col0 FROM tab2
----
87
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 * - - 11 col1 FROM tab2
----
-1056
-1056
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL 19 * + 51 - + COUNT( * ) col0 FROM tab0
----
966

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6816
SELECT ALL 19 * + 51 - + COUNT ( * ) col0 FROM tab0
----
966

query I rowsort
SELECT ALL - 13 + + col1 + + - col0 FROM tab0
----
-109
-79
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT 61 DIV - 9 col1 FROM tab1
----
-6
-6
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6818
SELECT 61 / - 9 col1 FROM tab1
----
-6
-6
-6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 - - + col2 col2 FROM tab2
----
47
64
82

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

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

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6825
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6825
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT + - COUNT( + 21 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + - COUNT ( + 21 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + - 6 AS col2 FROM tab1 cor0
----
-6
-6
-6

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL - MAX( 47 ) * + 68 FROM tab2 cor0
----
-3196

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL - MAX ( 47 ) * + 68 FROM tab2 cor0
----
-3196

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

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

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

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

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

query I rowsort
SELECT col1 * + 71 AS col2 FROM tab2
----
3621
4757
5467

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 >= + col2
----
85
5
59
91
47
68

query I rowsort
SELECT + - 42 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

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

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

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

query II rowsort
SELECT col0 * 47 * + - col0 + + col1, col1 FROM tab2 AS cor0
----
-192435
77
-264308
67
-99401
51

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

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

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

query I rowsort
SELECT - - 98 - - + 14 + - 99 * - + 5 + - 7 AS col0 FROM tab0 AS cor0
----
600
600
600

query I rowsort
SELECT col2 - + col0 - - - 40 * - 34 AS col2 FROM tab2
----
1336
1337
1343

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT + COUNT( * ) - 14 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-6844
SELECT + COUNT ( * ) - 14 FROM tab2
----
-11

query I rowsort
SELECT 94 * col1 - - 68 FROM tab1
----
1384
4486
538

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT COUNT( DISTINCT - + col2 ) - + 32 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-6846
SELECT COUNT ( DISTINCT - + col2 ) - + 32 FROM tab2
----
-29

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( - col2 )
----

query III rowsort
SELECT ALL + 90 AS col2, 2 * ( + col1 ) AS col0, 47 + - col1 * - + col0 AS col1 FROM tab1 AS cor0
----
9 values hashing to ec458e694a6978cf39d34041d892af8b

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

query II rowsort
SELECT DISTINCT col2, - col2 AS col1 FROM tab0 cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL + SUM( ALL 61 ) FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL + SUM ( ALL 61 ) FROM tab0 AS cor0
----
183

query II rowsort
SELECT 73 AS col2, + col1 * + col2 FROM tab2 AS cor0
----
73
1173
73
3080
73
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6854
SELECT ( - SUM( ALL - 72 ) ) DIV + - COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6854
SELECT ( - SUM ( ALL - 72 ) ) / + - COUNT ( * ) FROM tab1 AS cor0
----
-72

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

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

query I rowsort
SELECT DISTINCT - col1 * - + col1 * + 92 FROM tab1 AS cor0
----
18032
203228
2300

query I rowsort
SELECT - ( - 69 ) FROM tab0 cor0
----
69
69
69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6859
SELECT 38, - COUNT( * ) + ( - COUNT( * ) ) AS col1 FROM tab0 WHERE + col2 - col1 IS NOT NULL
----
38
-6

skipif mysql # not compatible
query II rowsort label-6859
SELECT 38, - COUNT ( * ) + ( - COUNT ( * ) ) AS col1 FROM tab0 WHERE + col2 - col1 IS NOT NULL
----
38
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT + COUNT( * ) + MIN( + - col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT + COUNT ( * ) + MIN ( + - col1 ) FROM tab0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 BETWEEN NULL AND col1 * + 11 * + col1
----

query I rowsort
SELECT ALL col2 + - col1 * 75 FROM tab0
----
-1565
-6028
24

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

query I rowsort
SELECT ALL + + 86 AS col2 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT - 31 + - col2 AS col2 FROM tab1
----
-127
-90
-99

query I rowsort
SELECT + col2 + - col2 + + col1 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT - + col2 * + col2 * + 25 + - 87 FROM tab1 AS cor0
----
-115687
-230487
-87112

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL COUNT( * ) - + SUM( + col0 ) * - + 84 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
46623

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL COUNT ( * ) - + SUM ( + col0 ) * - + 84 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
46623

query I rowsort
SELECT DISTINCT + 19 * 75 AS col2 FROM tab2 AS cor0
----
1425

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

query I rowsort
SELECT + + col2 + + + 24 AS col0 FROM tab2 AS cor0
----
47
64
82

query I rowsort
SELECT + col0 + - - 63 AS col1 FROM tab1 cor0
----
114
148
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL + COUNT( DISTINCT - 80 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + COUNT ( DISTINCT - 80 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= ( + 35 * + 47 + + ( + col0 ) - + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= ( + 35 * + 47 + + ( + col0 ) - + + col1 )
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT + 98 DIV - - 88 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6879
SELECT + 98 / - - 88 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + ( - col0 ) * - 8 AS col1 FROM tab2
----
368
512
600

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT ALL + 41, - 51 + + - 59 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
41
126

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL + 41, - 51 + + - 59 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
41
126

query II rowsort
SELECT - 82, ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-82
-15
-82
-87
-82
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6885
SELECT DISTINCT + 46 DIV + - COUNT( * ) + + + COUNT( * ) col1 FROM tab2 cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6885
SELECT DISTINCT + 46 / + - COUNT ( * ) + + + COUNT ( * ) col1 FROM tab2 cor0
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT - MIN( - + col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-6888
SELECT - MIN ( - + col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
99

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

query I rowsort
SELECT DISTINCT + 51 + - + col1 AS col2 FROM tab2 cor0
----
-16
-26
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT + MAX( - col2 ) + + - 12 + 82 AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT + MAX ( - col2 ) + + - 12 + 82 AS col2 FROM tab1 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6893
SELECT ALL col1 + + CAST( - 66 AS SIGNED ) FROM tab0
----
-45
-65
15

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL col1 + + CAST ( - 66 AS INTEGER ) FROM tab0
----
-45
-65
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT + SUM( + - 44 ) AS col1 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-6894
SELECT + SUM ( + - 44 ) AS col1 FROM tab2
----
-132

query I rowsort
SELECT ALL 22 + + col2 AS col0 FROM tab0
----
121
32
69

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

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT + COUNT ( - - 95 ) FROM tab1
----
3

query I rowsort
SELECT + 69 * col0 FROM tab2
----
3174
4416
5175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6898
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6898
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 17 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + - 70 AS col0 FROM tab2 AS cor0 WHERE NOT - 41 IS NULL
----
3570
4690
5390

query I rowsort
SELECT 22 + - 32 - + col0 FROM tab0 AS cor0
----
-107
-25
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6902
SELECT DISTINCT MAX( ALL col0 ) AS col0 FROM tab2 WHERE NOT CAST( + col1 AS SIGNED ) + - col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT MAX ( ALL col0 ) AS col0 FROM tab2 WHERE NOT CAST ( + col1 AS INTEGER ) + - col2 <= NULL
----
NULL

query I rowsort
SELECT 87 * col0 + 59 FROM tab0
----
1364
7628
8498

query I rowsort
SELECT 34 FROM tab2 WHERE NOT col2 * col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 49 = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + SUM( ALL - col2 * col1 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + SUM ( ALL - col2 * col1 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 + - 88 FROM tab2
----
-30
-48
-65

query I rowsort
SELECT 31 + + 55 FROM tab0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT 46 * COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT 46 * COUNT ( * ) FROM tab2
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6910
SELECT DISTINCT - 18 DIV - COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6910
SELECT DISTINCT - 18 / - COUNT ( * ) col0 FROM tab1
----
6

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6912
SELECT - col1 FROM tab0 WHERE NULL IN ( - col2 * + CAST( + col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6912
SELECT - col1 FROM tab0 WHERE NULL IN ( - col2 * + CAST ( + col1 AS REAL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 70 - + 30 FROM tab0
----
-100
-100
-100

query I rowsort
SELECT DISTINCT col2 + 57 * - 47 FROM tab0
----
-2580
-2632
-2669

query I rowsort
SELECT ALL + 59 + 35 FROM tab0
----
94
94
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6917
SELECT - SUM( DISTINCT 92 ) DIV 27 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6917
SELECT - SUM ( DISTINCT 92 ) / 27 FROM tab2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT DISTINCT - MIN( ALL 26 ) AS col2 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - MIN ( ALL 26 ) AS col2 FROM tab1
----
-26

query I rowsort
SELECT DISTINCT col2 + + col1 * - col0 AS col0 FROM tab0
----
-1168
-1817
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT CAST( col2 AS SIGNED ) - 64 col0 FROM tab0
----
-17
-54
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6923
SELECT CAST ( col2 AS INTEGER ) - 64 col0 FROM tab0
----
-17
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT - ( - 59 ) - + COUNT( * ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-6924
SELECT - ( - 59 ) - + COUNT ( * ) FROM tab2
----
56

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

query I rowsort
SELECT DISTINCT 41 * col1 FROM tab1 cor0
----
1927
205
574

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL COUNT( * ) * + 41 AS col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL COUNT ( * ) * + 41 AS col1 FROM tab1 AS cor0
----
123

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT ALL - col1 DIV col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - col1 / col1 AS col1 FROM tab0
----
-1
-1
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6931
SELECT ( COUNT( * ) ) DIV - MIN( DISTINCT + CAST( col1 AS SIGNED ) + + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6931
SELECT ( COUNT ( * ) ) / - MIN ( DISTINCT + CAST ( col1 AS INTEGER ) + + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + col1 * 97 AS col1 FROM tab1 AS cor0
----
1358
4559
485

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6935
SELECT * FROM tab0 AS cor0 WHERE - CAST( - ( + col1 ) AS SIGNED ) <= ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-6935
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - ( + col1 ) AS INTEGER ) <= ( - col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 + - 10 col1 FROM tab2 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT - col0 DIV col1 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4351

skipif mysql # not compatible
query I rowsort label-6938
SELECT - col0 / col1 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4351

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL SUM( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL SUM ( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT + 28 * + + ( COUNT( ALL 75 ) ) + 92 FROM tab2
----
176

skipif mysql # not compatible
query I rowsort label-6940
SELECT + 28 * + + ( COUNT ( ALL 75 ) ) + 92 FROM tab2
----
176

query I rowsort
SELECT 96 FROM tab1 WHERE - 88 + + 68 < col2 * 82
----
96
96
96

query I rowsort
SELECT DISTINCT + col2 + + 56 AS col0 FROM tab1
----
115
124
152

query I rowsort
SELECT - 15 FROM tab0 WHERE ( col2 ) <= + col0
----
-15

query I rowsort
SELECT 95 * + col1 * col2 AS col0 FROM tab2
----
111435
292600
369170

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( - 49 )
----

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

query I rowsort
SELECT 57 FROM tab0 cor0 WHERE 99 IS NOT NULL
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6948
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT ( 1 / - 88 ) IN ( - 97 * col1 + - CAST( NULL AS SIGNED ) * + 73 )
----

skipif mysql # not compatible
query III rowsort label-6948
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT ( 1 / - 88 ) IN ( - 97 * col1 + - CAST ( NULL AS INTEGER ) * + 73 )
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6951
SELECT + CAST( NULL AS DECIMAL ) + 14 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6951
SELECT + CAST ( NULL AS REAL ) + 14 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query II rowsort
SELECT DISTINCT - 59 AS col1, col2 + + col0 AS col2 FROM tab0 AS cor0
----
-59
196
-59
62
-59
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( + 80 ) IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col1 * col0 col2 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT DISTINCT 23 * + MAX( ALL + + col2 ) col0 FROM tab2
----
1334

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6958
SELECT DISTINCT 23 * + MAX ( ALL + + col2 ) col0 FROM tab2
----
1334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT ( col1 * - col2 * - CAST( NULL AS SIGNED ) - - col1 * + col2 ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT ( col1 * - col2 * - CAST ( NULL AS INTEGER ) - - col1 * + col2 ) IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT + 42 + - col1 * 19 NOT BETWEEN NULL AND col2 - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6961
SELECT 94 DIV COUNT( * ) col0 FROM tab1
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT 94 / COUNT ( * ) col0 FROM tab1
----
31

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6963
SELECT + + col0 * col0, 46 DIV + 37 AS col0 FROM tab0 AS cor0
----
225
1
7569
1
9409
1

skipif mysql # not compatible
query II rowsort label-6963
SELECT + + col0 * col0, 46 / + 37 AS col0 FROM tab0 AS cor0
----
225
1
7569
1
9409
1

query I rowsort
SELECT ALL + col1 + + col2 * - - 3 * - 88 FROM tab2 AS cor0
----
-10483
-15245
-6021

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

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

skipif mysql # not compatible
query I rowsort label-6966
SELECT + 76 + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
67

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

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

query I rowsort
SELECT - col0 + - 7 AS col2 FROM tab2
----
-53
-71
-82

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

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

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

query I rowsort
SELECT ALL - + 61 + - col0 AS col2 FROM tab1 AS cor0
----
-112
-146
-152

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6973
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, + CAST( + col1 AS SIGNED ) * - CAST( NULL AS DECIMAL ) * col2 - - col1 )
----

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, + CAST ( + col1 AS INTEGER ) * - CAST ( NULL AS REAL ) * col2 - - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - ( + col2 ) * + col2 - - col2 / 77 >= ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 46 + - + 63 >= ( + - 34 + col0 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 / - - col2 = col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT + + 82 * COUNT( * ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT + + 82 * COUNT ( * ) FROM tab1 AS cor0
----
246

query III rowsort
SELECT * FROM tab2 WHERE - col1 >= - - ( 43 )
----

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

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

query I rowsort
SELECT DISTINCT col1 + - + 13 AS col0 FROM tab2
----
38
54
64

query I rowsort
SELECT 57 * 7 FROM tab0
----
399
399
399

query I rowsort
SELECT col0 - + col2 * + - 5 FROM tab2
----
161
264
365

query I rowsort
SELECT DISTINCT + 14 + + 46 + - ( - col0 ) FROM tab2
----
106
124
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + + + ( + 85 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + + ( + 85 ) AS col2 FROM tab1
----
91

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

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

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

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

query I rowsort
SELECT ALL + 8 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL - 33 * + MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-1914

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - 33 * + MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-1914

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + + 64 col1 FROM tab2 AS cor0
----
3264
4288
4928

query I rowsort
SELECT DISTINCT 9 * - col1 FROM tab2 AS cor0
----
-459
-603
-693

query I rowsort
SELECT DISTINCT + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6996
SELECT + MIN ( ALL + - 16 ) col0 FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6997
SELECT DISTINCT 36 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT 36 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6998
SELECT CAST( NULL AS DECIMAL ) * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT CAST ( NULL AS REAL ) * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7001
SELECT ALL COUNT( * ) DIV + + COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL COUNT ( * ) / + + COUNT ( * ) AS col2 FROM tab2
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
3

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

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

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

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

query I rowsort
SELECT + col0 + + 77 FROM tab2 AS cor0
----
123
141
152

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT - + col2 + col0 DIV - col1 FROM tab0 AS cor0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-7009
SELECT - + col2 + col0 / - col1 FROM tab0 AS cor0
----
-14
-196
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7010
SELECT * FROM tab1 AS cor0 WHERE 85 NOT BETWEEN + CAST( col2 AS DECIMAL ) * - 76 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7010
SELECT * FROM tab1 AS cor0 WHERE 85 NOT BETWEEN + CAST ( col2 AS REAL ) * - 76 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT + COUNT( * ) + + 78 AS col0 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7011
SELECT + COUNT ( * ) + + 78 AS col0 FROM tab2 cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT - 39 DIV + + ( 47 ) + col1 + - 50 FROM tab0 AS cor0
----
-29
-49
31

skipif mysql # not compatible
query I rowsort label-7012
SELECT - 39 / + + ( 47 ) + col1 + - 50 FROM tab0 AS cor0
----
-29
-49
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 + - 89 * - ( - col1 ) col0 FROM tab0 AS cor0
----
-1840
-60
-7180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + - col2 col1 FROM tab2 AS cor0
----
-110
-128
-93

query I rowsort
SELECT - 44 AS col1 FROM tab0 cor0 WHERE ( NULL ) <= - col0
----

query I rowsort
SELECT ALL 41 * col0 - - 52 FROM tab1 AS cor0
----
2143
3537
3783

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + - 3 > col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 98 ) NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT DISTINCT + + COUNT( CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT + + COUNT ( CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

query II rowsort
SELECT - col0 + + - 9, - 60 + - 95 + - col0 AS col0 FROM tab1 AS cor0
----
-100
-246
-60
-206
-94
-240

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 + + - ( col1 ) * + col2 * + - col2 + - 90 col0 FROM tab0
----
178873
2021
9613

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT - - COUNT( * ) - 87 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7026
SELECT - - COUNT ( * ) - 87 FROM tab2 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 * + ( col2 ) col0 FROM tab1 AS cor0
----
-1475
-150212
-18816

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

query II rowsort
SELECT - col1 AS col2, - 32 FROM tab2 AS cor0
----
-51
-32
-67
-32
-77
-32

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

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

query I rowsort
SELECT ALL + 80 * - col2 * - 8 + + col0 FROM tab0 cor0 WHERE col2 BETWEEN NULL AND - + col2 + 76 + col0 / col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * - + 34 BETWEEN - col1 AND NULL AND NOT + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT + 80 + 82 DIV col0 FROM tab1 WHERE NOT col2 - - col2 IS NULL
----
80
80
81

skipif mysql # not compatible
query I rowsort label-7033
SELECT + 80 + 82 / col0 FROM tab1 WHERE NOT col2 - - col2 IS NULL
----
80
80
81

query I rowsort
SELECT DISTINCT ( - 32 ) AS col2 FROM tab0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT DISTINCT 58 DIV 88 + + col0 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT 58 / 88 + + col0 AS col1 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7036
SELECT + 10 * + + 39, + ( + col1 ) - + 19 + - ( + col2 ) + col2 DIV + 37 AS col2 FROM tab2
----
390
-9
390
19
390
9

skipif mysql # not compatible
query II rowsort label-7036
SELECT + 10 * + + 39, + ( + col1 ) - + 19 + - ( + col2 ) + col2 / + 37 AS col2 FROM tab2
----
390
-9
390
19
390
9

query I rowsort
SELECT ALL 10 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= + ( + - col1 )
----

query I rowsort
SELECT DISTINCT - col0 + 34 AS col0 FROM tab2 cor0
----
-12
-30
-41

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

query III rowsort
SELECT * FROM tab0 WHERE col1 + + 72 / - col1 * + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL 19 * 74 + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1415

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL 19 * 74 + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1415

query I rowsort
SELECT col1 FROM tab2 WHERE ( - col0 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = col1 - col2 - + col1
----

query I rowsort
SELECT ALL - 43 * + col1 FROM tab0
----
-3483
-43
-903

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 > 50
----
15
81
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT MIN( ALL - 71 ) FROM tab1 AS cor0 WHERE 70 NOT IN ( + 69 + - ( + + 88 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-7047
SELECT MIN ( ALL - 71 ) FROM tab1 AS cor0 WHERE 70 NOT IN ( + 69 + - ( + + 88 ) )
----
-71

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 86 + col2
----

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

query II rowsort
SELECT ALL - - 19, - col2 * - - 76 AS col2 FROM tab0 AS cor0
----
19
-3572
19
-7524
19
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab2 WHERE + + 20 - - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE + + 20 - - + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT DISTINCT + 35 / CAST( NULL AS SIGNED ) * - 77 + + col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT + 35 / CAST ( NULL AS INTEGER ) * - 77 + + col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col0 - 69 * - ( - + col1 ) + col0 * - - 53 FROM tab0
----
-4779
3249
5169

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * - col2 col1 FROM tab0
----
786
891
9604

query I rowsort
SELECT DISTINCT + 55 * col0 + + + col1 * - col2 FROM tab2
----
1357
239
440

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT + - MAX( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7060
SELECT + - MAX ( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7062
SELECT ALL * FROM tab1 AS cor0 WHERE + 27 * CAST( NULL AS SIGNED ) * - col2 * - 32 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7062
SELECT ALL * FROM tab1 AS cor0 WHERE + 27 * CAST ( NULL AS INTEGER ) * - col2 * - 32 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT col0 * - col1 * + - col0 AS col2, - 9 AS col0 FROM tab0 AS cor0
----
158949
-9
18225
-9
9409
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT MIN( ALL - 54 ) col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7066
SELECT DISTINCT MIN ( ALL - 54 ) col1 FROM tab0 AS cor0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT DISTINCT - - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT - - col1 / col1 AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 77 col1, - col2 FROM tab0 AS cor0
----
-77
-10
-77
-47
-77
-99

query I rowsort
SELECT DISTINCT + 45 * + col1 FROM tab1 AS cor0
----
2115
225
630

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

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

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

query II rowsort
SELECT ALL col0 + col1 AS col1, col2 AS col0 FROM tab1
----
138
68
65
96
90
59

query I rowsort
SELECT + col2 + + 40 * - col1 FROM tab0
----
-3193
-830
59

query I rowsort
SELECT + 59 * col0 FROM tab0
----
5133
5723
885

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT DISTINCT 12 + - CAST( col0 AS SIGNED ) FROM tab2
----
-34
-52
-63

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT 12 + - CAST ( col0 AS INTEGER ) FROM tab2
----
-34
-52
-63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT + - ( col2 ) DIV + - col2 + 22 FROM tab2 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-7081
SELECT + - ( col2 ) / + - col2 + 22 FROM tab2 AS cor0
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 97 * + col1 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE col2 < + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT - CAST( NULL AS SIGNED ) * 61 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT - CAST ( NULL AS INTEGER ) * 61 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 71 + + - 40 ) > - 55
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7087
SELECT col0 AS col1, 35 DIV - col2 AS col1 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-7087
SELECT col0 AS col1, 35 / - col2 AS col1 FROM tab1
----
51
0
85
0
91
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * - 0 * col2 - - col1 <= - - col0
----
75
67
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT + col2 DIV 9 FROM tab1 AS cor0
----
10
6
7

skipif mysql # not compatible
query I rowsort label-7090
SELECT + col2 / 9 FROM tab1 AS cor0
----
10
6
7

query I rowsort
SELECT DISTINCT + 11 * - col0 * 63 * col1 AS col1 FROM tab1 AS cor0
----
-294525
-2963961
-494802

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT - - 69 + MIN( DISTINCT - - 72 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
141

skipif mysql # not compatible
query I rowsort label-7093
SELECT - - 69 + MIN ( DISTINCT - - 72 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
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-7094
SELECT DISTINCT COUNT ( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT + 98 * + - 52 AS col1 FROM tab2
----
-5096
-5096
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT ALL col1 DIV - - 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL col1 / - - 97 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) * - col2 col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7097
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) * - col2 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT - MAX( ALL + + col0 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-75

skipif mysql # not compatible
query I rowsort label-7098
SELECT - MAX ( ALL + + col0 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7099
SELECT * FROM tab1 cor0 WHERE NOT ( NOT NULL IN ( + ( - col1 ) + + + col1, 49, - 35 * col2, + + col1, - CAST( NULL AS SIGNED ) * col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7099
SELECT * FROM tab1 cor0 WHERE NOT ( NOT NULL IN ( + ( - col1 ) + + + col1, 49, - 35 * col2, + + col1, - CAST ( NULL AS INTEGER ) * col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT DISTINCT - 16 * - - COUNT( * ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT - 16 * - - COUNT ( * ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL - + 78 FROM tab2 AS cor0 WHERE 65 <> + col0 + + col0 * + - col0 + - + col2
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - 99 / col1 * + 34 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7103
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) + - 16 * - col1
----

skipif mysql # not compatible
query III rowsort label-7103
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND CAST ( NULL AS REAL ) + - 16 * - col1
----

query II rowsort
SELECT col1 * - 37 * col2, 12 AS col1 FROM tab0
----
-140859
12
-3663
12
-7770
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7105
SELECT ALL - ( 40 ) + - + col2 + + + col1 - col2 * + ( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - ( 40 ) + - + col2 + + + col1 - col2 * + ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT - 38 * - COUNT( * ) AS col1 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-7106
SELECT - 38 * - COUNT ( * ) AS col1 FROM tab1
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 col1 FROM tab0
----
198
20
94

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7109
SELECT DISTINCT - col0 + 80 DIV - col0, 45 AS col2 FROM tab0
----
-20
45
-87
45
-97
45

skipif mysql # not compatible
query II rowsort label-7109
SELECT DISTINCT - col0 + 80 / - col0, 45 AS col2 FROM tab0
----
-20
45
-87
45
-97
45

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7110
SELECT ALL - 36 / + 51 * - CAST ( NULL AS INTEGER ) + - - col1 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 27 > col2
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT DISTINCT col0 DIV col2 * + col2 AS col1 FROM tab2
----
40
46
58

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT col0 / col2 * + col2 AS col1 FROM tab2
----
40
46
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL + 82 * - - COUNT( * ) AS col2 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + 82 * - - COUNT ( * ) AS col2 FROM tab1
----
246

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 34 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 WHERE 62 + 40 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7118
SELECT 9, MAX( - - col0 ) AS col0 FROM tab1
----
9
91

skipif mysql # not compatible
query II rowsort label-7118
SELECT 9, MAX ( - - col0 ) AS col0 FROM tab1
----
9
91

query I rowsort
SELECT - - 60 FROM tab0 WHERE NULL IS NULL
----
60
60
60

query II rowsort
SELECT ALL + col1 - - col2, col0 + col0 + 95 - - 11 + 3 AS col1 FROM tab2 AS cor0
----
117
237
125
259
74
201

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + MAX( ALL - col2 ) - + 96 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + MAX ( ALL - col2 ) - + 96 FROM tab0 AS cor0
----
-106

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

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

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

query I rowsort
SELECT + col2 * + 96 AS col1 FROM tab0
----
4512
9504
960

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col2 FROM tab1 cor0
----
-68
-68
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL - - MAX( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - - MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 32 * + col1 * col2 / - 18 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + + 29 * - ( + 36 ) + - MAX( + col2 ) FROM tab1 cor0
----
-1140

skipif mysql # not compatible
query I rowsort label-7133
SELECT + + 29 * - ( + 36 ) + - MAX ( + col2 ) FROM tab1 cor0
----
-1140

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT ( + + col1 ) + col1 + - col1 * + + CAST( - + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
101
252
3969

skipif mysql # not compatible
query I rowsort label-7136
SELECT ( + + col1 ) + col1 + - col1 * + + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
101
252
3969

query I rowsort
SELECT ALL - col2 * - 72 AS col2 FROM tab2 AS cor0
----
1656
2880
4176

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7139
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col2 * col2 * + col2 / - CAST( NULL AS SIGNED ) < - col2
----

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col2 * col2 * + col2 / - CAST ( NULL AS INTEGER ) < - col2
----

query I rowsort
SELECT + + col0 + + col0 + 95 FROM tab2 AS cor0
----
187
223
245

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT SUM( + 67 ) AS col0 FROM tab2, tab1 AS cor0
----
603

skipif mysql # not compatible
query I rowsort label-7141
SELECT SUM ( + 67 ) AS col0 FROM tab2, tab1 AS cor0
----
603

query I rowsort
SELECT ALL col0 + - + 38 AS col0 FROM tab1
----
13
47
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + - + col1 * - ( + col2 ) col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT DISTINCT + 35 FROM tab0, tab2 AS cor0
----
35

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

query I rowsort
SELECT ALL 2 * - - col1 + col1 FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT 91 - - col1 AS col0 FROM tab2
----
142
158
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT 39 + - COUNT( * ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7148
SELECT 39 + - COUNT ( * ) AS col0 FROM tab2
----
36

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 <> + 66 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT DISTINCT - 59 DIV + ( + col0 ) - + col1 FROM tab0 AS cor0
----
-1
-21
-84

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT - 59 / + ( + col0 ) - + col1 FROM tab0 AS cor0
----
-1
-21
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7151
SELECT + CAST( + 88 AS SIGNED ) + COUNT( ALL - 49 ) FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-7151
SELECT + CAST ( + 88 AS INTEGER ) + COUNT ( ALL - 49 ) FROM tab2 cor0
----
91

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col0 / + col2 <> - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7153
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( - col0 ) AS col0 FROM tab2 cor0 WHERE NULL <= 43
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - col0 * + col2 >= + ( + + 66 ) + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT ALL + 17 * 94 FROM tab1 WHERE NOT ( + col0 ) < col0
----
1598
1598
1598

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 * - 82
----

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

query II rowsort
SELECT + col1 * + - col1 AS col1, col1 AS col1 FROM tab0
----
-1
1
-441
21
-6561
81

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

query II rowsort
SELECT - - col0 AS col1, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7163
SELECT DISTINCT - COUNT( * ) AS col2, 90 FROM tab2 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-7163
SELECT DISTINCT - COUNT ( * ) AS col2, 90 FROM tab2 AS cor0
----
-3
90

query I rowsort
SELECT ( + 57 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

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

query I rowsort
SELECT - col2 * + col1 + + col2 * + col0 AS col1 FROM tab2
----
-115
-520
464

onlyif mysql # aggregate syntax: 
query II rowsort label-7167
SELECT ALL - COUNT( * ) col1, MIN( DISTINCT 92 ) + 29 FROM tab0, tab0 AS cor0
----
-9
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7167
SELECT ALL - COUNT ( * ) col1, MIN ( DISTINCT 92 ) + 29 FROM tab0, tab0 AS cor0
----
-9
121

onlyif mysql # aggregate syntax: 
query II rowsort label-7168
SELECT MAX( ALL col2 ), ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
58
3

skipif mysql # not compatible
query II rowsort label-7168
SELECT MAX ( ALL col2 ), ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
58
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7170
SELECT + - COUNT( * ) * + CAST( + - SUM( DISTINCT - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-7170
SELECT + - COUNT ( * ) * + CAST ( + - SUM ( DISTINCT - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-585

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query II rowsort
SELECT - col0, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

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

query I rowsort
SELECT DISTINCT + 82 + - + 29 AS col1 FROM tab1
----
53

query I rowsort
SELECT DISTINCT col0 * - 28 * - col2 + 86 AS col0 FROM tab2
----
121886
29710
71766

query I rowsort
SELECT col2 + ( col2 ) - - col1 FROM tab0
----
175
199
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7178
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + CAST( col2 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-7178
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + CAST ( col2 AS INTEGER ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / 89 >= - - 6
----

query I rowsort
SELECT + col2 * + col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - ( + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 / + col0 * + col1 + - + col1 * + col2 IS NULL
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7183
SELECT COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab0
----
-1

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

query I rowsort
SELECT + 97 * - col0 * - col2 AS col0 FROM tab2
----
102626
248320
421950

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT COUNT( * ) * 66 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT COUNT ( * ) * 66 FROM tab2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT ALL col2 DIV + - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL col2 / + - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL + MAX( - - 42 ) FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + MAX ( - - 42 ) FROM tab1 cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT - - col2 FROM tab1 cor0 WHERE NOT + ( CAST( + - col2 AS SIGNED ) ) BETWEEN - 28 AND NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7190
SELECT - - col2 FROM tab1 cor0 WHERE NOT + ( CAST ( + - col2 AS INTEGER ) ) BETWEEN - 28 AND NULL
----
59
68
96

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 99 AND - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT 49 * COUNT( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-7192
SELECT 49 * COUNT ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT MAX( ALL + ( - + col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT MAX ( ALL + ( - + col2 ) ) FROM tab0
----
-10

query I rowsort
SELECT col0 * - + 40 FROM tab0
----
-3480
-3880
-600

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

query I rowsort
SELECT + - 24 AS col1 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT + MAX( ALL - 56 ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT + MAX ( ALL - 56 ) FROM tab0 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT ALL - col2 + + col0 + + 39 DIV + - 44 * - 51 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - col2 + + col0 + + 39 / + - 44 * - 51 FROM tab0
----
-2
-32
77

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

query I rowsort
SELECT ALL - ( - 85 ) FROM tab2
----
85
85
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 96 AND NULL
----

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

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

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

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

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

query I rowsort
SELECT + ( - col0 ) * + - col2 + - + 43 FROM tab0 AS cor0
----
662
827
9560

query II rowsort
SELECT ALL 43, col2 FROM tab1 AS cor0
----
43
59
43
68
43
96

query I rowsort
SELECT ALL - - 51 + 69 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 90 IS NULL
----

query I rowsort
SELECT ALL + col1 * + + col1 + + col1 AS col2 FROM tab2 WHERE - + 77 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - + + 15 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT DISTINCT + + COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL < + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL < + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT DISTINCT 54 + - - MAX( ( - - col2 ) ) AS col0 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT 54 + - - MAX ( ( - - col2 ) ) AS col0 FROM tab1
----
150

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 84 = - - ( + + 53 ) / - + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT COUNT( * ) AS col0 FROM tab0 WHERE - - col0 * - col2 * - col1 BETWEEN - - 17 + - 57 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-7215
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE - - col0 * - col2 * - col1 BETWEEN - - 17 + - 57 AND - col0
----
0

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

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

query I rowsort
SELECT ALL ( - - 66 ) + - col0 FROM tab0
----
-21
-31
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 11 ) * + col0 + col0 - + col1 col0 FROM tab1 AS cor0
----
1015
1045
598

query I rowsort
SELECT ALL + 81 * + - col1 FROM tab0 AS cor0
----
-1701
-6561
-81

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

query I rowsort
SELECT - 56 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, + ( - col0 ), 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT DISTINCT MIN( ALL 50 ) AS col1 FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT MIN ( ALL 50 ) AS col1 FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT - + COUNT( * ), - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 43 IS NULL
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7224
SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 43 IS NULL
----
-3
-3

query II rowsort
SELECT ALL 13 AS col1, col2 AS col1 FROM tab0 AS cor0
----
13
10
13
47
13
99

query I rowsort
SELECT - col0 * - + 65 FROM tab0
----
5655
6305
975

query I rowsort
SELECT DISTINCT - + 0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT col0 * + 59 * - col0 FROM tab1
----
-153459
-426275
-488579

query I rowsort
SELECT DISTINCT + 15 * 97 * - col1 AS col1 FROM tab0
----
-117855
-1455
-30555

query I rowsort
SELECT DISTINCT 58 * + - col0 * + - col0 AS col1 FROM tab2
----
122728
237568
326250

query I rowsort
SELECT - col0 * + 37 * + 25 * - + col1 FROM tab2
----
2170050
4558400
4648125

query II rowsort
SELECT 67 * + col1 AS col1, 72 FROM tab0
----
1407
72
5427
72
67
72

query I rowsort
SELECT - col1 * - + col0 * - 48 FROM tab1
----
-20400
-205296
-34272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT DISTINCT col0 * - CAST( + - 46 AS SIGNED ) FROM tab0
----
4002
4462
690

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT col0 * - CAST ( + - 46 AS INTEGER ) FROM tab0
----
4002
4462
690

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7236
SELECT CAST( + col1 AS SIGNED ), + col2 FROM tab0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-7236
SELECT CAST ( + col1 AS INTEGER ), + col2 FROM tab0
----
1
99
21
10
81
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT + ( - SUM( DISTINCT + 71 ) ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + ( - SUM ( DISTINCT + 71 ) ) FROM tab0
----
-71

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

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

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - 22 / - - COUNT ( * ) FROM tab2 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0, - col0 + - 39 / - - col2 / + col0 )
----

query I rowsort
SELECT - 93 * - col2 - col1 FROM tab1 AS cor0
----
5482
6277
8914

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

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

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

query I rowsort
SELECT + + 88 + - + col1 FROM tab0 AS cor0 WHERE + col1 * - + col1 / col0 + col1 - col2 / col1 + col2 IS NOT NULL
----
67
7
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + - col0 ) col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL + col0 * - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7249
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col2, col0 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-7249
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col2, col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT 67 DIV col1 - - 40 FROM tab2
----
40
41
41

skipif mysql # not compatible
query I rowsort label-7250
SELECT 67 / col1 - - 40 FROM tab2
----
40
41
41

query III rowsort
SELECT * FROM tab1 WHERE col1 <> col2 * col0 + - 33 + + col1 - - col0 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + - 97 AS col1 FROM tab0
----
-10
-82
0

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

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

query I rowsort
SELECT + col2 + - + 69 + - 75 * + 48 FROM tab0
----
-3570
-3622
-3659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col1 * - col2 col2 FROM tab2 cor0
----
1196
3120
3944

query I rowsort
SELECT - 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL COUNT( ALL - + ( 87 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL COUNT ( ALL - + ( 87 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT + + col2 * + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT - SUM( ALL + 41 ) col2 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7260
SELECT - SUM ( ALL + 41 ) col2 FROM tab2 AS cor0
----
-123

query I rowsort
SELECT + 21 * - - col1 AS col1 FROM tab2
----
1071
1407
1617

query II rowsort
SELECT DISTINCT + + col1, + 83 + + - 52 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col0 col0 FROM tab0
----
15
15
87
87
97
97

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

skipif mysql # not compatible
query I rowsort label-7264
SELECT - MIN ( - + CAST ( NULL AS INTEGER ) ) + ( + MAX ( ALL + CAST ( + col1 AS REAL ) ) ) FROM tab0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT ALL - 78 DIV - + col1 FROM tab0
----
0
3
78

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - 78 / - + col1 FROM tab0
----
0
3
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7268
SELECT + col2 DIV + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7268
SELECT + col2 / + col0 FROM tab2 cor0
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT DISTINCT col0 + + 7 + - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
52
70
81

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT col0 + + 7 + - col0 / + col0 AS col2 FROM tab2 AS cor0
----
52
70
81

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

query I rowsort
SELECT ALL - col2 + ( - 48 ) FROM tab1
----
-107
-116
-144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT - 28 + MAX( DISTINCT col0 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-7274
SELECT - 28 + MAX ( DISTINCT col0 ) FROM tab2
----
47

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

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

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

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

query I rowsort
SELECT - 81 + - + col2 - + col1 AS col0 FROM tab0 cor0
----
-112
-181
-209

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

query I rowsort
SELECT + 36 * - + col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT ALL - CAST( + + col1 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - CAST ( + + col1 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7281
SELECT + CAST( col0 AS SIGNED ) DIV col0 * - col2 FROM tab2
----
-23
-40
-58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + + col1 col2 FROM tab0
----
127
47
67

query I rowsort
SELECT DISTINCT 34 - - - col2 AS col1 FROM tab1
----
-25
-34
-62

query I rowsort
SELECT + col1 * - col2 - - + col2 FROM tab1
----
-1248
-236
-3128

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT + col0 DIV col0 * + 23 * col1 FROM tab1 AS cor0
----
1081
115
322

skipif mysql # not compatible
query I rowsort label-7286
SELECT + col0 / col0 * + 23 * col1 FROM tab1 AS cor0
----
1081
115
322

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT - col2 DIV - - col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-7287
SELECT - col2 / - - col1 FROM tab1 AS cor0
----
-1
-11
-6

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

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

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

query II rowsort
SELECT DISTINCT col1 + + col1 * col0 + - col1 * + + col0, 26 FROM tab1 AS cor0 WHERE NULL > NULL
----

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

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

query II rowsort
SELECT 27 AS col1, - 0 AS col0 FROM tab1, tab0 AS cor0
----
18 values hashing to 300c4efb9c2375c315f2b961b8b8d2ad

query I rowsort
SELECT 82 * col0 FROM tab0
----
1230
7134
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT + COUNT( * ) + 42 * COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
129

skipif mysql # not compatible
query I rowsort label-7294
SELECT + COUNT ( * ) + 42 * COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
129

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

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

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

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0 WHERE + col0 * 79 < NULL OR NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7299
SELECT ALL - ( MIN( DISTINCT + 84 ) ) * SUM( DISTINCT - 7 ) DIV 60 + 45 AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - ( MIN ( DISTINCT + 84 ) ) * SUM ( DISTINCT - 7 ) / 60 + 45 AS col1 FROM tab2
----
54

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

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

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

query II rowsort
SELECT ALL + col1 AS col2, + col2 * - col2 FROM tab1 AS cor0
----
14
-9216
47
-4624
5
-3481

query I rowsort
SELECT - 50 - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-115
-140
-188

query I rowsort
SELECT + col2 - 47 + col1 * - col1 - - 10 FROM tab1 AS cor0
----
-137
-2178
-3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT 16 * col2 + - ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT 16 * col2 + - ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7308
SELECT DISTINCT + 11 DIV ( + + col2 ) * col2 * + - col2 AS col0 FROM tab0
----
-100
0

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + 11 / ( + + col2 ) * col2 * + - col2 AS col0 FROM tab0
----
-100
0

query I rowsort
SELECT DISTINCT + col1 * - col1 + + - col1 FROM tab1
----
-210
-2256
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - + 75 + + col1 <> - - col0
----

query I rowsort
SELECT ALL + col1 * - 52 FROM tab1 AS cor0
----
-2444
-260
-728

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 > + + col2 + - col0 * + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7314
SELECT DISTINCT + + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) <> 73 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT + + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) <> 73 * - 97
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT - 61 AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-61
-3

skipif mysql # not compatible
query II rowsort label-7316
SELECT - 61 AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-61
-3

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

query I rowsort
SELECT col0 + + + 98 FROM tab1 AS cor0
----
149
183
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT 35 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7319
SELECT 35 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
32

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

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + CAST ( + 44 AS INTEGER ) AS col0 FROM tab2
----
44
44
44

query II rowsort
SELECT ALL - col2, - 6 + col0 AS col0 FROM tab0
----
-10
81
-47
9
-99
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL - SUM( DISTINCT - col0 ) + + 93 FROM tab1
----
320

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL - SUM ( DISTINCT - col0 ) + + 93 FROM tab1
----
320

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

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

query I rowsort
SELECT 20 * + col0 FROM tab1
----
1020
1700
1820

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

query I rowsort
SELECT DISTINCT - 36 FROM tab0 WHERE - col1 <= + col2 + - col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT + 81 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT + 81 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT - - 31 + col0 AS col2 FROM tab2 AS cor0
----
106
77
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT col2 + - + col0 DIV - ( col0 ) FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-7330
SELECT col2 + - + col0 / - ( col0 ) FROM tab0 AS cor0
----
100
11
48

query I rowsort
SELECT - + col2 * - + col2 + 36 AS col2 FROM tab2 AS cor0
----
1636
3400
565

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL - 41 - ( MIN( ALL + + col2 ) ) + + COUNT( * ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL - 41 - ( MIN ( ALL + + col2 ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT + col0 + 86 * + - col2 AS col0 FROM tab0 AS cor0
----
-4027
-773
-8417

query I rowsort
SELECT DISTINCT - + col0 * - 71 AS col2 FROM tab0 AS cor0
----
1065
6177
6887

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 IN ( 45, col1 + - col0, - + col2, + col0, - - 64 * col0 * + + ( - - col1 ) - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL - - 86 * + + 87 - + COUNT( * ) AS col2 FROM tab0 cor0
----
7479

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - - 86 * + + 87 - + COUNT ( * ) AS col2 FROM tab0 cor0
----
7479

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 46 * + + col2 - + - col0 IN ( - - 69 / - - col1 + + - ( - + col2 ), - 86 * - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT DISTINCT col0 DIV 48 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT col0 / 48 AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col2 * + 38 FROM tab0
----
-1786
-3762
-380

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7341
SELECT + CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT + CAST ( NULL AS REAL ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col2 * 54 FROM tab1
----
264384
270810
334152

query III rowsort
SELECT * FROM tab2 WHERE NOT + 72 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT col2 * + - col1 * col1, col1 FROM tab1 cor0
----
-1475
5
-150212
47
-18816
14

query II rowsort
SELECT - col1 AS col0, 43 FROM tab2 AS cor0
----
-51
43
-67
43
-77
43

query I rowsort
SELECT - + ( - + 79 ) FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN 0 * 94 AND NULL
----

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

query II rowsort
SELECT 23 AS col1, 97 + + - col0 AS col2 FROM tab2 AS cor0
----
23
22
23
33
23
51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7351
SELECT ALL - col2 FROM tab2 cor0 WHERE 35 + CAST( NULL AS SIGNED ) * - 63 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL - col2 FROM tab2 cor0 WHERE 35 + CAST ( NULL AS INTEGER ) * - 63 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - CAST ( - 13 AS INTEGER ) FROM tab0
----
13
13
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NULL = 77
----
0

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NULL = 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT DISTINCT - COUNT( * ) + - MAX( col1 + - col0 ) AS col1 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT - COUNT ( * ) + - MAX ( col1 + - col0 ) AS col1 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( - col0 ) * + 53 + col0 BETWEEN NULL AND - col0 * 8
----

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( - col0 ) * + 53 + col0 BETWEEN NULL AND - col0 * 8
----

query I rowsort
SELECT 62 * + col2 + - 93 FROM tab0
----
2821
527
6045

query I rowsort
SELECT ( ( 11 ) ) + col1 FROM tab2
----
62
78
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT DISTINCT - col0 DIV col2 + - 10 DIV + col1 AS col1 FROM tab0
----
-10
-8
0

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - col0 / col2 + - 10 / + col1 AS col1 FROM tab0
----
-10
-8
0

query I rowsort
SELECT ALL 66 * - 35 + + 51 * 48 FROM tab1
----
138
138
138

query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 FROM tab0
----
272
7579
9508

query I rowsort
SELECT ALL + ( 91 ) FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 35 ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 WHERE + 86 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7366
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 WHERE + 86 = NULL
----
0

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

query I rowsort
SELECT DISTINCT + col0 - 63 FROM tab0
----
-48
24
34

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + 53 NOT BETWEEN 71 AND - col1 - col0
----

query I rowsort
SELECT - 58 + col0 FROM tab2 AS cor0
----
-12
17
6

query I rowsort
SELECT + col2 * - 25 + + col1 FROM tab1 AS cor0 WHERE NULL IN ( + col2 * 80 )
----

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

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

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

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

query I rowsort
SELECT ALL - AVG ( + 47 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 94 BETWEEN col1 AND ( + 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + col2 ) * - col2 + + col1 * 83 AS col2 FROM tab1 AS cor0
----
-3066
-723
-8054

query III rowsort
SELECT * FROM tab1 WHERE ( 18 ) > ( 67 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + - col0 * 35 AS col2 FROM tab0
----
-3024
-3394
-444

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

skipif mysql # not compatible
query I rowsort label-7380
SELECT MAX ( ALL - col1 ) * - ( + COUNT ( * ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 + - 64 col1 FROM tab2
----
1536
3300
465

query I rowsort
SELECT 68 - ( 60 ) FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT ALL 96 - col1 FROM tab0 cor0
----
15
75
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT DISTINCT MAX( col0 ) * - 17 FROM tab2 AS cor0 WHERE ( CAST( ( - col2 ) AS SIGNED ) ) IS NOT NULL
----
-1275

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT MAX ( col0 ) * - 17 FROM tab2 AS cor0 WHERE ( CAST ( ( - col2 ) AS INTEGER ) ) IS NOT NULL
----
-1275

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 24 FROM tab1 AS cor0 WHERE + col2 = + col0
----

query I rowsort
SELECT - 90 * ( col1 * col0 ) FROM tab1 cor0
----
-38250
-384930
-64260

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT + - MIN( ALL 76 ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT + - MIN ( ALL 76 ) FROM tab0 AS cor0
----
-76

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 86 BETWEEN col2 * col1 AND - 71 * col2
----

query I rowsort
SELECT 32 AS col2 FROM tab2 WHERE NOT 96 * + 46 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * - col0 < + 0
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col1 - 91
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 99 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7402
SELECT - 47 DIV + 79 * + ( col0 * - col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7402
SELECT - 47 / + 79 * + ( col0 * - col1 ) FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - CAST ( + MIN ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-10

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

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

query I rowsort
SELECT DISTINCT - 33 * 70 AS col2 FROM tab2 AS cor0 WHERE 16 + col1 * - col2 BETWEEN ( NULL ) AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + COUNT( ALL 8 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7406
SELECT + COUNT ( ALL 8 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT + CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7407
SELECT + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 16 * + col0 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT 97 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 26 * + col0 AND 96 - + 22 * + 49
----

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

query I rowsort
SELECT - col1 + + - 95 AS col2 FROM tab2 cor0
----
-146
-162
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + COUNT( * ) + + 73 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7414
SELECT + COUNT ( * ) + + 73 FROM tab2 AS cor0
----
76

query I rowsort
SELECT DISTINCT + 89 * 69 * + col2 * ( + col2 ) + 91 AS col0 FROM tab0 AS cor0
----
13565560
60188032
614191

query I rowsort
SELECT + - col1 * 49 + + - col1 + - 95 FROM tab1 AS cor0
----
-2445
-345
-795

query I rowsort
SELECT + col2 * col2 + + - col2 AS col1 FROM tab0 AS cor0
----
2162
90
9702

query I rowsort
SELECT + 90 + + col1 AS col2 FROM tab0 AS cor0
----
111
171
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 48 ) < NULL
----

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

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

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

query I rowsort
SELECT + 36 + + 43 * col1 AS col2 FROM tab1 WHERE - col2 + - 47 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 * ( + col2 ) - col1 * 33 + + 42 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col1 + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - 98 ) + + col0 AS col0 FROM tab2
----
-23
-34
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE - + col0 - + 50 NOT BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE + 44 >= + col2 * col0
----

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

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

query I rowsort
SELECT + 29 AS col1 FROM tab2 AS cor0 WHERE ( ( - 99 * col0 IS NULL ) )
----

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

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

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

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

query I rowsort
SELECT - col2 * 4 + + + 36 - + col1 * - col0 FROM tab2 cor0
----
2290
4804
4829

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7437
SELECT * FROM tab0 WHERE + CAST( + col0 AS DECIMAL ) * - col0 * 27 IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-7437
SELECT * FROM tab0 WHERE + CAST ( + col0 AS REAL ) * - col0 * 27 IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = - - 44
----

query I rowsort
SELECT + 99 AS col0 FROM tab0
----
99
99
99

query I rowsort
SELECT ( + col1 ) * col2 + - col1 - - + col1 + - col0 * col0 FROM tab2 cor0
----
-1016
-1739
-943

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

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

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * - - col1 IS NULL
----
15
87
97

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( + - 94 / - 77 )
----

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

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

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT + + ( ( col0 ) ) + + col2 BETWEEN ( NULL ) AND col0 - + col2 / + col2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL - MIN( - - col0 ) * + + MIN( ALL - 86 ) FROM tab0
----
1290

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - MIN ( - - col0 ) * + + MIN ( ALL - 86 ) FROM tab0
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL - 12 * - COUNT( * ) * + + SUM( ALL + 47 ) FROM tab0
----
5076

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - 12 * - COUNT ( * ) * + + SUM ( ALL + 47 ) FROM tab0
----
5076

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT - SUM( DISTINCT col1 ), - 71 AS col1 FROM tab0 AS cor0
----
-103
-71

skipif mysql # not compatible
query II rowsort label-7452
SELECT - SUM ( DISTINCT col1 ), - 71 AS col1 FROM tab0 AS cor0
----
-103
-71

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7454
SELECT DISTINCT + 74 AS col0, COUNT( * ) FROM tab1 cor0
----
74
3

skipif mysql # not compatible
query II rowsort label-7454
SELECT DISTINCT + 74 AS col0, COUNT ( * ) FROM tab1 cor0
----
74
3

query I rowsort
SELECT + 48 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7456
SELECT col0 * - col0 + - + col2 + - col2 * - ( - + 14 ) + - - CAST( col2 AS SIGNED ) + - 50 * + col0 AS col1 FROM tab2
----
-10187
-4738
-7856

skipif mysql # not compatible
query I rowsort label-7456
SELECT col0 * - col0 + - + col2 + - col2 * - ( - + 14 ) + - - CAST ( col2 AS INTEGER ) + - 50 * + col0 AS col1 FROM tab2
----
-10187
-4738
-7856

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7458
SELECT ALL 58 * - + SUM( ALL - col1 ) * + 72 AS col1 FROM tab2 AS cor0 WHERE NOT ( - ( 67 ) * - - CAST( NULL AS SIGNED ) ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL 58 * - + SUM ( ALL - col1 ) * + 72 AS col1 FROM tab2 AS cor0 WHERE NOT ( - ( 67 ) * - - CAST ( NULL AS INTEGER ) ) < NULL
----
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 = NULL )
----

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

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
-9

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

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

query I rowsort
SELECT ALL + - 83 AS col2 FROM tab1 cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT col1 * - + col2 + - ( - 24 ) AS col1 FROM tab0 AS cor0
----
-186
-3783
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + 59 * - + SUM( ALL + col2 ) AS col1 FROM tab1 cor0
----
-13157

skipif mysql # not compatible
query I rowsort label-7465
SELECT + 59 * - + SUM ( ALL + col2 ) AS col1 FROM tab1 cor0
----
-13157

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

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

query I rowsort
SELECT ALL col1 + - - 25 FROM tab2
----
102
76
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 + 17 col1 FROM tab0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL COUNT( * ) + + 2 + - ( + ( 84 ) ) AS col2 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL COUNT ( * ) + + 2 + - ( + ( 84 ) ) AS col2 FROM tab0
----
-79

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

query I rowsort
SELECT DISTINCT - 79 + - 77 AS col1 FROM tab2
----
-156

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT col1 * - 60 * + + col2 * - + 88 FROM tab2
----
16262400
20518080
6193440

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT ALL - 12 + + - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
-12

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL - 12 + + - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
-12

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

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7478
SELECT * FROM tab0 AS cor0 WHERE NOT ( 43 / - col2 ) = + ( - CAST( + col2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7478
SELECT * FROM tab0 AS cor0 WHERE NOT ( 43 / - col2 ) = + ( - CAST ( + col2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT DISTINCT + 29 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 49 IS NOT NULL OR NOT ( col0 ) = col0 * + col1 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + 29 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 49 IS NOT NULL OR NOT ( col0 ) = col0 * + col1 + - col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT + col1 + + 88 = - - 78 + + - 23
----
-3

skipif mysql # not compatible
query I rowsort label-7481
SELECT - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT + col1 + + 88 = - - 78 + + - 23
----
-3

query I rowsort
SELECT + - 77 * 12 FROM tab1 AS cor0
----
-924
-924
-924

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

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

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

query II rowsort
SELECT 79 AS col2, - ( - 66 ) AS col1 FROM tab1
----
79
66
79
66
79
66

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 18 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7488
SELECT DISTINCT - SUM ( - + col0 ) col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT + 57 - - col0 BETWEEN 47 AND ( 92 )
----
87
97

query I rowsort
SELECT + 10 / - - 67 / + col1 + col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL + SUM( DISTINCT + 52 ) + + 93 * + 57 * - COUNT( * ) FROM tab2 AS cor0
----
-15851

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL + SUM ( DISTINCT + 52 ) + + 93 * + 57 * - COUNT ( * ) FROM tab2 AS cor0
----
-15851

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE - ( - col1 ) IN ( - col1 + + + 29 * - + col0 * col0 + - - col0 + + col2 * - col1 )
----

query I rowsort
SELECT ALL + ( + 25 ) AS col1 FROM tab1 WHERE - - 57 NOT BETWEEN + + 98 AND + + col2 * 7 + - 42
----
25
25
25

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 cor1 ON NOT NULL IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT DISTINCT + - col1 * 82 FROM tab1 AS cor0
----
-1148
-3854
-410

query I rowsort
SELECT ALL col2 + - 65 * col1 FROM tab2 AS cor0
----
-3292
-4297
-4965

query I rowsort
SELECT ALL 62 * + - 14 * - + 61 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
52978
53122
53142

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + MAX( - 31 ) * COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7499
SELECT + MAX ( - 31 ) * COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + + + 13 + col1 * col0 * + + col2 col2 FROM tab2 AS cor0
----
197170
291500
54008

query II rowsort
SELECT ALL + 7 AS col2, col2 FROM tab0 AS cor0
----
7
10
7
47
7
99

query I rowsort
SELECT DISTINCT - 18 * + 82 * + 85 FROM tab2 AS cor0
----
-125460

query I rowsort
SELECT DISTINCT + col1 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 38 IS NULL
----

query I rowsort
SELECT DISTINCT + 45 * - + col1 FROM tab0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT ALL COUNT( * ) + - - SUM( - col0 ) * - + MIN( - col2 ) FROM tab2
----
-10727

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL COUNT ( * ) + - - SUM ( - col0 ) * - + MIN ( - col2 ) FROM tab2
----
-10727

query I rowsort
SELECT ALL - col2 * col0 * - col2 + + col1 AS col2 FROM tab2
----
102477
24385
252367

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

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL col2 / + 83 + + col2 / + 76 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT ALL - + COUNT( * ) * COUNT( * ) AS col0, + 65 col2 FROM tab1 AS cor0
----
-9
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7509
SELECT ALL - + COUNT ( * ) * COUNT ( * ) AS col0, + 65 col2 FROM tab1 AS cor0
----
-9
65

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7511
SELECT + - col0 - + col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - 7, + CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) - - - col1 + + 7 )
----

skipif mysql # not compatible
query I rowsort label-7511
SELECT + - col0 - + col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - 7, + CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) - - - col1 + + 7 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( 5, + 77 )
----

query I rowsort
SELECT 84 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - ( + ( - - 69 ) ) ) * 95 * + + col0 FROM tab0
----
570285
635835
98325

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7516
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + col0 AS DECIMAL ) <= ( 90 + - - col2 )
----

skipif mysql # not compatible
query III rowsort label-7516
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + col0 AS REAL ) <= ( 90 + - - col2 )
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL <= + 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT DISTINCT 14 DIV + col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT 14 / + col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT ALL - col2 / - - 37 + + - 23 + - - col0 + + col0 + - 84 * - + 31 * + + 7 + + + CAST( NULL AS SIGNED ) * - - col1 + + 58 + - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - col2 / - - 37 + + - 23 + - - col0 + + col0 + - 84 * - + 31 * + + 7 + + + CAST ( NULL AS INTEGER ) * - - col1 + + 58 + - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7523
SELECT * FROM tab2 WHERE NOT ( + col1 ) / + CAST( - 34 AS SIGNED ) + + 97 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7523
SELECT * FROM tab2 WHERE NOT ( + col1 ) / + CAST ( - 34 AS INTEGER ) + + 97 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( col2 ) col0 FROM tab2
----
1600
3364
529

query II rowsort
SELECT - ( col1 ), col1 FROM tab2
----
-51
51
-67
67
-77
77

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 / - - col0 - - - 84 + - 33 + col2 + col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL MAX( + - 77 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL MAX ( + - 77 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT COUNT( * ) * + 33 AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7530
SELECT COUNT ( * ) * + 33 AS col1 FROM tab1
----
99

query I rowsort
SELECT DISTINCT - + 85 FROM tab1 cor0
----
-85

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

skipif mysql # not compatible
query I rowsort label-7532
SELECT + - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
0

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

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

query I rowsort
SELECT + 40 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7535
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-7535
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE 43 / - 33 + - 26 IS NULL
----

query I rowsort
SELECT ALL + col2 * + col2 + ( - 33 ) AS col0 FROM tab2
----
1567
3331
496

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

query I rowsort
SELECT ALL + col1 * - 97 - - col2 AS col1 FROM tab2 AS cor0
----
-4924
-6441
-7429

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 34 NOT BETWEEN - col2 AND 23
----

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
44

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

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

query I rowsort
SELECT DISTINCT col2 * - + col2 + col1 + + + 25 AS col1 FROM tab1 cor0
----
-3451
-4552
-9177

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT + col0 - - + col2 + col2 DIV + 61 AS col0 FROM tab1 AS cor0
----
144
148
160

skipif mysql # not compatible
query I rowsort label-7545
SELECT + col0 - - + col2 + col2 / + 61 AS col0 FROM tab1 AS cor0
----
144
148
160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7546
SELECT DISTINCT + col0 AS col2, - CAST( - col2 AS SIGNED ) * - - 64 + + + ( - ( - col2 ) ) + - col0 * - col1 * - - col0 + + - col0 AS col0 FROM tab2 AS cor0
----
46
109365
64
317928
75
380570

skipif mysql # not compatible
query II rowsort label-7546
SELECT DISTINCT + col0 AS col2, - CAST ( - col2 AS INTEGER ) * - - 64 + + + ( - ( - col2 ) ) + - col0 * - col1 * - - col0 + + - col0 AS col0 FROM tab2 AS cor0
----
46
109365
64
317928
75
380570

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * - + col2 + + col1 AS col2 FROM tab0
----
-2128
-79
-9800

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

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL + CAST ( NULL AS INTEGER ) - 43 / col2 AS col1 FROM tab1
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT + col2 AS col1, - col2 FROM tab0 WHERE NOT col0 / + 83 IS NULL
----
10
-10
47
-47
99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - 36 col1 FROM tab1 AS cor0
----
-1656
-1656
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + SUM( DISTINCT + 59 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7554
SELECT + SUM ( DISTINCT + 59 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-177

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE + col0 = ( + col0 + - + 21 )
----

query I rowsort
SELECT ALL 42 + - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-45
-55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT + SUM( ALL - + 52 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT + SUM ( ALL - + 52 ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT col2 + + + col0 FROM tab0
----
196
62
97

query I rowsort
SELECT - - col1 AS col1 FROM tab0 WHERE col1 >= 46
----
81

query II rowsort
SELECT DISTINCT 75 AS col2, 16 AS col0 FROM tab0
----
75
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT 9, ( - MIN( - + ( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
9
75

skipif mysql # not compatible
query II rowsort label-7564
SELECT 9, ( - MIN ( - + ( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
9
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 74 * + col2 + - - 37 * - 0 / col2 * col0 * 94 * 33 >= ( - 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 78 col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-78

query I rowsort
SELECT ALL + 41 + - ( - col2 ) FROM tab2
----
64
81
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - col1 ) / col0 - col2 + - ( + col1 ) IS NOT NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + + col1 + + ( + ( + col1 ) ) FROM tab1
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - + SUM( ALL + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-7570
SELECT - + SUM ( ALL + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT COUNT( * ) + - + CAST( + ( + 77 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7571
SELECT COUNT ( * ) + - + CAST ( + ( + 77 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-74

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

skipif mysql # not compatible
query I rowsort label-7572
SELECT + col1 FROM tab1 AS cor0 WHERE col2 + + + col0 * - + CAST ( NULL AS INTEGER ) * + 53 NOT BETWEEN + col2 AND - col1
----

query I rowsort
SELECT + col0 + + 52 FROM tab2 AS cor0
----
116
127
98

query II rowsort
SELECT ALL - col0, - 43 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-46
-43
-64
-43
-75
-43

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

query I rowsort
SELECT - 77 + - col2 FROM tab2 AS cor0
----
-100
-117
-135

query I rowsort
SELECT DISTINCT col0 + - col0 * + col0 FROM tab2
----
-2070
-4032
-5550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * - col2 col0 FROM tab0
----
-198
-20
-94

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT COUNT( * ) * 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-7581
SELECT COUNT ( * ) * 51 FROM tab0
----
153

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

query I rowsort
SELECT col2 * + col1 - - ( + ( + col2 ) ) + col0 FROM tab2 cor0
----
1242
3184
4019

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

query I rowsort
SELECT + 34 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + 82 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - + 73 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

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

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT col1 / - + col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 95 * - - col2 FROM tab2
----
2185
3800
5510

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

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - - MIN ( + 43 ) AS col1 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT 94 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT 94 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
282

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

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

query I rowsort
SELECT ALL - + col0 + 32 FROM tab0 cor0
----
-55
-65
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT - MAX( DISTINCT - + 19 ) col1 FROM tab1
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7595
SELECT - MAX ( DISTINCT - + 19 ) col1 FROM tab1
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-7596
SELECT ALL - col2 * 76 + + col1 col0, col1 DIV + col0 + + 46 FROM tab1
----
-4479
46
-5121
46
-7282
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7596
SELECT ALL - col2 * 76 + + col1 col0, col1 / + col0 + + 46 FROM tab1
----
-4479
46
-5121
46
-7282
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT DISTINCT + col2 DIV - col0 + 58 * - col1 * + col2 FROM tab1
----
-17110
-185368
-77953

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT + col2 / - col0 + 58 * - col1 * + col2 FROM tab1
----
-17110
-185368
-77953

query I rowsort
SELECT ALL + 67 + - col1 AS col1 FROM tab1
----
20
53
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ( - SUM( + 82 ) ) AS col2 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-7599
SELECT ( - SUM ( + 82 ) ) AS col2 FROM tab2
----
-246

query II rowsort
SELECT ALL col0 + + + col1 AS col1, + col0 AS col1 FROM tab2
----
141
64
142
75
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL - 41 + + COUNT( + ( col1 ) ) FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL - 41 + + COUNT ( + ( col1 ) ) FROM tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT DISTINCT - MIN( - 53 ) AS col2 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - MIN ( - 53 ) AS col2 FROM tab1
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7603
SELECT ALL + - CAST( NULL AS DECIMAL ) / col0 * - + col2 * + col1 + + col1, + col1 + - 51 + - col0 AS col2 FROM tab1 cor0
----
NULL
-131
NULL
-88
NULL
-95

skipif mysql # not compatible
query II rowsort label-7603
SELECT ALL + - CAST ( NULL AS REAL ) / col0 * - + col2 * + col1 + + col1, + col1 + - 51 + - col0 AS col2 FROM tab1 cor0
----
NULL
-131
NULL
-88
NULL
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 24 * - - col2 * 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + - 90 * 35 + COUNT( * ) col0 FROM tab1 cor0
----
-3147

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

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

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL + col1 * - CAST ( NULL AS REAL ) + + 8 + - + 82 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7607
SELECT DISTINCT col0 + - 32 DIV col0 DIV + + 70 AS col2, - col0 FROM tab1
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-7607
SELECT DISTINCT col0 + - 32 / col0 / + + 70 AS col2, - col0 FROM tab1
----
51
-51
85
-85
91
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT COUNT( * ) - 87 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT COUNT ( * ) - 87 FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT COUNT( * ) - - + ( + 51 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7610
SELECT COUNT ( * ) - - + ( + 51 ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT - + col2 - - ( - - col0 ) FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT col1 - + col2 * col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

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

skipif mysql # not compatible
query I rowsort label-7613
SELECT + col1 / - 50 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7614
SELECT + + ( ( - 11 ) ) * - col2 DIV + col2 + - + col1 col1, col1 AS col2 FROM tab1 cor0
----
-3
14
-36
47
6
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7614
SELECT + + ( ( - 11 ) ) * - col2 / + col2 + - + col1 col1, col1 AS col2 FROM tab1 cor0
----
-3
14
-36
47
6
5

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

query II rowsort
SELECT ALL - 89, col1 FROM tab1 AS cor0
----
-89
14
-89
47
-89
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT MIN( - 80 ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-7617
SELECT MIN ( - 80 ) FROM tab2
----
-80

query I rowsort
SELECT col1 * - - 41 FROM tab1
----
1927
205
574

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 NOT IN ( - 35, - 49 / + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 81 * + col1 AS col2 FROM tab2
----
4131
5427
6237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT ALL + 63 DIV + - COUNT( * ) AS col1 FROM tab0 WHERE - col1 + + col0 >= col1 - - col2 + - col0 * 26
----
-21

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL + 63 / + - COUNT ( * ) AS col1 FROM tab0 WHERE - col1 + + col0 >= col1 - - col2 + - col0 * 26
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL + - MAX( + - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL + - MAX ( + - col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT - col0 * + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) < + col0
----

query I rowsort
SELECT 22 * - col1 AS col0 FROM tab0 AS cor0
----
-1782
-22
-462

query I rowsort
SELECT DISTINCT col1 * - 55 * 94 FROM tab1
----
-242990
-25850
-72380

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - ( - - 55 ) * + col0 / + ( + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - ( - - 55 ) * + col0 / + ( + col2 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL COUNT( - - col2 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL COUNT ( - - col2 ) AS col2 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - ( - 22 ) AS col0, 1 * col2 * - + 95 * + + col2 col2 FROM tab1 AS cor0
----
-1122
-875520
-1870
-330695
-2002
-439280

query I rowsort
SELECT + 43 + - + col0 AS col0 FROM tab1 AS cor0
----
-42
-48
-8

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col1, col1 + col2, + + 35 + col1 * + col0, 11 * col1 + + col0 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL - 83 * - MIN( DISTINCT + 60 ) * + + SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
921300

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - 83 * - MIN ( DISTINCT + 60 ) * + + SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
921300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7635
SELECT COUNT( * ) DIV - 13 + + + MAX( ALL - col0 ) - - CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7635
SELECT COUNT ( * ) / - 13 + + + MAX ( ALL - col0 ) - - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT - COUNT( * ) * + 34 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7636
SELECT - COUNT ( * ) * + 34 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <= col2 / + 25 * - + 65 + - + col2
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <= col2 / + 25 * - + 65 + - + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT ( COUNT( * ) ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT ( COUNT ( * ) ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT - col1 + + 68 AS col1 FROM tab2
----
-9
1
17

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL COUNT( * ) + - MAX( ALL + - 90 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL COUNT ( * ) + - MAX ( ALL + - 90 ) FROM tab1
----
93

query I rowsort
SELECT + col0 * - col0 * + - ( + col1 ) FROM tab2 AS cor0
----
107916
315392
376875

query II rowsort
SELECT ALL + 34 AS col1, col2 FROM tab0 AS cor0
----
34
10
34
47
34
99

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 * + 43 * - + col0 AS col1 FROM tab2 AS cor0
----
46
90988
64
176128
75
241875

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 + + + 37 AS col1 FROM tab2
----
60
77
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT col0 + + - col2 + + CAST( + col0 AS SIGNED ) - col0 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT col0 + + - col2 + + CAST ( + col0 AS INTEGER ) - col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT - ( col1 ) + + col1 * + col2 FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7650
SELECT - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

query I rowsort
SELECT DISTINCT 58 + + + col0 FROM tab1
----
109
143
149

query I rowsort
SELECT ALL - col0 + + 77 FROM tab0 AS cor0
----
-10
-20
62

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT - CAST( + ( col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7654
SELECT - CAST ( + ( col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + + ( - - 11 ) FROM tab2 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7656
SELECT CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT CAST ( + CAST ( NULL AS REAL ) AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 19 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT DISTINCT COUNT( * ) AS col0, + 15 FROM tab1
----
3
15

skipif mysql # not compatible
query II rowsort label-7658
SELECT DISTINCT COUNT ( * ) AS col0, + 15 FROM tab1
----
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - MAX( ALL + + 18 ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7659
SELECT - MAX ( ALL + + 18 ) AS col0 FROM tab2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT - 29 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT - 29 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 21 ) * col2 * - 5 AS col0 FROM tab0
----
10395
1050
4935

query I rowsort
SELECT - col1 * + 45 AS col1 FROM tab0
----
-3645
-45
-945

query II rowsort
SELECT DISTINCT 90 AS col1, 67 FROM tab1 AS cor0
----
90
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 94 + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - 2 + - COUNT( col0 ) AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-7665
SELECT - 2 + - COUNT ( col0 ) AS col0 FROM tab2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT + 69 + CAST( + + col0 AS SIGNED ) FROM tab0
----
156
166
84

skipif mysql # not compatible
query I rowsort label-7666
SELECT + 69 + CAST ( + + col0 AS INTEGER ) FROM tab0
----
156
166
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL + COUNT( DISTINCT + 17 ) AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL + COUNT ( DISTINCT + 17 ) AS col2 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT - + MIN( - 92 ) * - 6 FROM tab1 AS cor0
----
-552

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT - + MIN ( - 92 ) * - 6 FROM tab1 AS cor0
----
-552

query I rowsort
SELECT col1 * + col2 + - + 63 FROM tab0 AS cor0
----
147
36
3744

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) <> 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT 25 + + col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - - col2 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col1 * ( + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 * col0 col1 FROM tab2 cor0
----
-506
-704
-825

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7675
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7675
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 > + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 + - 31 AS col0 FROM tab1
----
-116
-122
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7677
SELECT COUNT( * ) DIV + 45 + - - 65 AS col2 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-7677
SELECT COUNT ( * ) / + 45 + - - 65 AS col2 FROM tab2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT DISTINCT 81 + - SUM( - 83 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT 81 + - SUM ( - 83 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col1 + col2 + col1 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT + ( + + col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7681
SELECT ALL 67 * - - 30 DIV + COUNT( DISTINCT - col2 ) AS col0 FROM tab2
----
670

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL 67 * - - 30 / + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2
----
670

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT - MAX( col1 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7682
SELECT - MAX ( col1 ) col0 FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, col1 col2 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT ALL ( - CAST( col0 AS SIGNED ) ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL ( - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 = + + col1 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 7 * + col2 + + + col1 AS col2 FROM tab0 AS cor0
----
410
694
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7687
SELECT col0 col1, + ( - col2 ) - + col2 + 75 DIV 20 FROM tab0 AS cor0
----
15
-91
87
-17
97
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7687
SELECT col0 col1, + ( - col2 ) - + col2 + 75 / 20 FROM tab0 AS cor0
----
15
-91
87
-17
97
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT ALL + col0 DIV - - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL + col0 / - - col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT + SUM( ALL - - 5 ) * - MIN( + 28 ) AS col1 FROM tab0 AS cor0
----
-420

skipif mysql # not compatible
query I rowsort label-7690
SELECT + SUM ( ALL - - 5 ) * - MIN ( + 28 ) AS col1 FROM tab0 AS cor0
----
-420

query I rowsort
SELECT + - 82 AS col2 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT - SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + ( - col0 ) * ( 22 ) AS col2 FROM tab1
----
-1122
-1870
-2002

query I rowsort
SELECT col0 * + ( + ( - col0 ) ) AS col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT - ( + - 32 ) * - + 78 FROM tab1
----
-2496
-2496
-2496

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( 53 ) * - 89 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col2 * - + 19
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL + COUNT( * ) col0 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-7699
SELECT ALL + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
61

query I rowsort
SELECT ALL - 21 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT + + COUNT( + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + + COUNT ( + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + - 98 + + COUNT( * ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7703
SELECT + - 98 + + COUNT ( * ) FROM tab1 AS cor0
----
-95

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - ( - COUNT( * ) ) + - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7705
SELECT - ( - COUNT ( * ) ) + - - COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND col1 * 39
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7707
SELECT DISTINCT + col2 * + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT + col2 * + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL COUNT( ALL 2 ) * + + MAX( ALL - col0 ) * + 55 AS col0 FROM tab0 AS cor0
----
-2475

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL COUNT ( ALL 2 ) * + + MAX ( ALL - col0 ) * + 55 AS col0 FROM tab0 AS cor0
----
-2475

query III rowsort
SELECT * FROM tab1 WHERE + 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - 84 - + + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7711
SELECT + CAST( - col1 AS SIGNED ), col0 FROM tab1
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-7711
SELECT + CAST ( - col1 AS INTEGER ), col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT - col2 * + col1 * col0 AS col0 FROM tab2 WHERE + 50 IS NOT NULL
----
-197120
-291450
-53958

query III rowsort
SELECT * FROM tab1 WHERE + + col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN ( + - col2 * - + 77 / - + 85 * - col2 - + col2 * - col2 ) AND col2
----

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
91

query I rowsort
SELECT ALL + 89 * + col2 + + - col1 AS col2 FROM tab2 AS cor0
----
1996
3483
5095

query I rowsort
SELECT ALL ( + + ( - col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7719
SELECT ALL - + 18 / - CAST( NULL AS DECIMAL ) * 55 * - col2 / + + col0 - col2 + col0 - - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL - + 18 / - CAST ( NULL AS REAL ) * 55 * - col2 / + + col0 - col2 + col0 - - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT COUNT( * ) * + + MIN( + - col0 ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-7720
SELECT COUNT ( * ) * + + MIN ( + - col0 ) AS col1 FROM tab2
----
-225

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7722
SELECT col0 * CAST( NULL AS SIGNED ) AS col1, 5 FROM tab2
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-7722
SELECT col0 * CAST ( NULL AS INTEGER ) AS col1, 5 FROM tab2
----
NULL
5
NULL
5
NULL
5

query II rowsort
SELECT ALL 87 AS col2, col0 * + - 81 * + - 39 - + - ( 94 ) AS col1 FROM tab0
----
87
274927
87
306517
87
47479

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT - 90 * - COUNT( * ) col0 FROM tab1
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7724
SELECT DISTINCT - 90 * - COUNT ( * ) col0 FROM tab1
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT + col2 DIV + + col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT + col2 / + + col0 AS col1 FROM tab1
----
0
0
1

query II rowsort
SELECT DISTINCT + ( col1 ) AS col1, - col1 FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT ALL col2 + + + col1 FROM tab1 AS cor0 WHERE ( NULL ) = - + col0
----

query I rowsort
SELECT DISTINCT - col2 + - 97 + + 95 AS col0 FROM tab2 AS cor0
----
-25
-42
-60

query I rowsort
SELECT DISTINCT + - 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7730
SELECT col2 + + + col1 + - 20 DIV ( + - col1 ) + - col0 FROM tab2
----
28
50
53

skipif mysql # not compatible
query I rowsort label-7730
SELECT col2 + + + col1 + - 20 / ( + - col1 ) + - col0 FROM tab2
----
28
50
53

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 49 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - - 90 = NULL
----

query II rowsort
SELECT + col2, - 66 FROM tab0 AS cor0 WHERE ( NOT + - ( col0 ) * - col2 >= NULL )
----

query I rowsort
SELECT ALL 41 + + col2 FROM tab2
----
64
81
99

query I rowsort
SELECT 15 * col1 + + col1 * col2 FROM tab1
----
1554
370
3901

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT ( - - col1 ) + + + col2 DIV + col1 + 64 FROM tab1
----
112
80
84

skipif mysql # not compatible
query I rowsort label-7736
SELECT ( - - col1 ) + + + col2 / + col1 + 64 FROM tab1
----
112
80
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + 60 + - + COUNT( col2 ) * + + 82 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-7737
SELECT + 60 + - + COUNT ( col2 ) * + + 82 FROM tab2
----
-186

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7738
SELECT ALL - 11 * COUNT( * ) * - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL - 11 * COUNT ( * ) * - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL 59 * - - 13 - SUM( + col2 ) AS col0 FROM tab2
----
646

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL 59 * - - 13 - SUM ( + col2 ) AS col0 FROM tab2
----
646

query I rowsort
SELECT - - 8 * - col1 AS col1 FROM tab0 AS cor0
----
-168
-648
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT + 7 DIV - ( col1 ) + - 52 * - col2 FROM tab1 AS cor0
----
3067
3536
4992

skipif mysql # not compatible
query I rowsort label-7741
SELECT + 7 / - ( col1 ) + - 52 * - col2 FROM tab1 AS cor0
----
3067
3536
4992

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 1 + + 42 FROM tab1, tab2 cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL + ( + ( COUNT( * ) ) ) * - SUM( ALL + - col0 ) AS col2 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + ( + ( COUNT ( * ) ) ) * - SUM ( ALL + - col0 ) AS col2 FROM tab0
----
597

query II rowsort
SELECT DISTINCT - 57 * - - col2, col1 AS col1 FROM tab0
----
-2679
81
-5643
1
-570
21

query I rowsort
SELECT + col2 * + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT - ( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7747
SELECT - ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - - ( 80 ) AS col1 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + SUM( ALL col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-7749
SELECT + SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
103

query I rowsort
SELECT DISTINCT + + ( + 87 ) FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL + 19 AS col1 FROM tab0 cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT + 32 * 55 + + ( CAST( NULL AS SIGNED ) ) + col2 - + - col2 + + + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT + 32 * 55 + + ( CAST ( NULL AS INTEGER ) ) + col2 - + - col2 + + + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT COUNT( - + col1 ) + COUNT( - col0 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7753
SELECT COUNT ( - + col1 ) + COUNT ( - col0 ) AS col2 FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + - - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT - COUNT( * ) * SUM( DISTINCT - col1 ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - COUNT ( * ) * SUM ( DISTINCT - col1 ) FROM tab0
----
309

query I rowsort
SELECT + col1 * + - 83 AS col2 FROM tab1 cor0
----
-1162
-3901
-415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT + CAST( + 56 AS SIGNED ) FROM tab0 cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-7757
SELECT + CAST ( + 56 AS INTEGER ) FROM tab0 cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7758
SELECT COUNT( * ) AS col0, 17 AS col2 FROM tab0 AS cor0
----
3
17

skipif mysql # not compatible
query II rowsort label-7758
SELECT COUNT ( * ) AS col0, 17 AS col2 FROM tab0 AS cor0
----
3
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT - MIN( - + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7759
SELECT - MIN ( - + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT - COUNT( * ) + 16 col0 FROM tab2
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7760
SELECT DISTINCT - COUNT ( * ) + 16 col0 FROM tab2
----
13

query I rowsort
SELECT 32 / col2 - - - 13 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT DISTINCT + SUM( col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT + SUM ( col2 ) FROM tab1 AS cor0
----
223

query II rowsort
SELECT - 66 + - ( - ( col2 ) ) AS col0, 66 FROM tab0 AS cor0
----
-19
66
-56
66
33
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7764
SELECT - - 95 DIV - 91 + + - COUNT( * ) AS col2 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7764
SELECT - - 95 / - 91 + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7765
SELECT * FROM tab1 cor0 WHERE CAST( 92 AS SIGNED ) + 29 >= + + col2 - - ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-7765
SELECT * FROM tab1 cor0 WHERE CAST ( 92 AS INTEGER ) + 29 >= + + col2 - - ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + - + col1 col2 FROM tab0 AS cor0
----
-38
22
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL COUNT( 25 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL COUNT ( 25 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + + col2 * - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL <> 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT 38 + + + COUNT( * ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT 38 + + + COUNT ( * ) FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL ( + COUNT( * ) ) - + 24 AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL ( + COUNT ( * ) ) - + 24 AS col0 FROM tab2
----
-21

query I rowsort
SELECT + 38 AS col1 FROM tab0 WHERE NULL IS NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL + COUNT( * ) + + 6 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL + COUNT ( * ) + + 6 FROM tab2
----
9

query III rowsort
SELECT * FROM tab2 WHERE + 41 IN ( + col1, col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT ALL 38 + - + 73 DIV - + COUNT( * ) - - COUNT( * ) - + ( + COUNT( * ) ) * + 87 + - 52 AS col2 FROM tab0, tab1 AS cor0
----
-780

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL 38 + - + 73 / - + COUNT ( * ) - - COUNT ( * ) - + ( + COUNT ( * ) ) * + 87 + - 52 AS col2 FROM tab0, tab1 AS cor0
----
-780

query I rowsort
SELECT - ( + col1 ) * - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT + COUNT( * ) DIV + COUNT( * ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7777
SELECT + COUNT ( * ) / + COUNT ( * ) col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - COUNT( * ) * + 11 + - 33 AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7778
SELECT - COUNT ( * ) * + 11 + - 33 AS col1 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT - - ( - 97 ) AS col2 FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - 44 * - + col0 / + + col2 IS NULL )
----

query I rowsort
SELECT DISTINCT - ( AVG ( - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 / - 14 NOT BETWEEN NULL AND 39
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7783
SELECT ALL COUNT( * ) + + MAX( ALL col1 ) + 78 AS col1, CAST( NULL AS SIGNED ) col0 FROM tab0
----
162
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7783
SELECT ALL COUNT ( * ) + + MAX ( ALL col1 ) + 78 AS col1, CAST ( NULL AS INTEGER ) col0 FROM tab0
----
162
NULL

query I rowsort
SELECT DISTINCT - col0 + + - col0 AS col2 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT ALL + CAST( - MIN( - + col1 ) AS SIGNED ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL + CAST ( - MIN ( - + col1 ) AS INTEGER ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT - SUM( col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT - SUM ( col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT - col0 * - col2 + + col2 - + 37 * - col2 AS col1 FROM tab1 AS cor0
----
7257
8544
8772

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL + MIN( 70 ) AS col0 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + MIN ( 70 ) AS col0 FROM tab2 cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - MAX( col0 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col2 * col2 + col1 * + col1 / + col0 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT - MAX ( col0 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col2 * col2 + col1 * + col1 / + col0 AND + col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7790
SELECT - + CAST( COUNT( * ) AS SIGNED ) + 17 AS col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7790
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + 17 AS col1 FROM tab1 AS cor0
----
14

query I rowsort
SELECT 34 + + - col0 - - - col1 AS col2 FROM tab0
----
-62
-64
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7792
SELECT ALL * FROM tab2 WHERE - CAST( - + 35 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7792
SELECT ALL * FROM tab2 WHERE - CAST ( - + 35 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= - 69 * + 72 + - - col1
----

query I rowsort
SELECT DISTINCT - 21 - col1 FROM tab0 cor0
----
-102
-22
-42

query I rowsort
SELECT 2 - - - 98 FROM tab2 AS cor0
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 52 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT + CAST( + 17 AS SIGNED ) - - - col2 - - col0 AS col2 FROM tab2 AS cor0
----
34
40
41

skipif mysql # not compatible
query I rowsort label-7799
SELECT + CAST ( + 17 AS INTEGER ) - - - col2 - - col0 AS col2 FROM tab2 AS cor0
----
34
40
41

query I rowsort
SELECT DISTINCT + 98 * - + col1 FROM tab1 AS cor0
----
-1372
-4606
-490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7801
SELECT ALL - - 88 DIV - SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - - 88 / - SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 98 + + 36 FROM tab2 cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7803
SELECT DISTINCT - COUNT( * ), COUNT( DISTINCT + col1 ) * + + 55 AS col2 FROM tab2
----
-3
165

skipif mysql # not compatible
query II rowsort label-7803
SELECT DISTINCT - COUNT ( * ), COUNT ( DISTINCT + col1 ) * + + 55 AS col2 FROM tab2
----
-3
165

query I rowsort
SELECT + 81 + - col2 FROM tab0
----
-18
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL COUNT( * ) + + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN col1 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 62, col0 FROM tab1
----
62
51
62
85
62
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + + col1 + - 86 - - col2 + + col0 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT + col0 DIV - - col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7809
SELECT + col0 / - - col1 FROM tab0
----
0
4
97

query I rowsort
SELECT - 7 FROM tab2 WHERE NOT + col2 + col0 > NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col2 * + - 42 AS col2 FROM tab1 AS cor0
----
146202
194208
387072

query I rowsort
SELECT 61 * - + ( col1 ) AS col2 FROM tab0 AS cor0
----
-1281
-4941
-61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN NULL AND - - ( + col1 ) )
----

query II rowsort
SELECT col0 AS col2, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7815
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) > - 73
----
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > - 73
----
0

query I rowsort
SELECT ALL - ( + 95 ) AS col1 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col0 FROM tab2 AS cor0
----
102
134
154

query II rowsort
SELECT - - 74 + + 14 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
88
10
88
47
88
99

query I rowsort
SELECT DISTINCT 42 * + - col2 AS col1 FROM tab2
----
-1680
-2436
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT COUNT( * ) FROM tab0 WHERE + col0 >= - - col2 - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT COUNT ( * ) FROM tab0 WHERE + col0 >= - - col2 - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + col2 * ( + + col1 ) AS col2 FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 49 col1, col0 AS col0 FROM tab0 cor0
----
-49
15
-49
87
-49
97

query I rowsort
SELECT ALL + col1 * - 1 + ( + + col0 ) FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + + 44 * col0 FROM tab1 AS cor0
----
2244
3740
4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * + col0 col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL COUNT( * ) + + 26 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL COUNT ( * ) + + 26 FROM tab2
----
29

query I rowsort
SELECT 61 * + 54 FROM tab0
----
3294
3294
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT - SUM( DISTINCT - col0 ) * + 80 + - 64 * COUNT( ALL col1 ) AS col1 FROM tab1 WHERE 92 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT - SUM ( DISTINCT - col0 ) * + 80 + - 64 * COUNT ( ALL col1 ) AS col1 FROM tab1 WHERE 92 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT + 75 + + col2 DIV 16 AS col2 FROM tab2
----
76
77
78

skipif mysql # not compatible
query I rowsort label-7830
SELECT + 75 + + col2 / 16 AS col2 FROM tab2
----
76
77
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT COUNT( * ) * + 14 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT COUNT ( * ) * + 14 FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT DISTINCT - 80 * - COUNT( * ) AS col0 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT - 80 * - COUNT ( * ) AS col0 FROM tab0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 * - col1 col1 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT col0 + 77 FROM tab1
----
128
162
168

query I rowsort
SELECT 72 * col2 AS col0 FROM tab2
----
1656
2880
4176

query I rowsort
SELECT - col1 * 99 AS col2 FROM tab2
----
-5049
-6633
-7623

query I rowsort
SELECT 78 * + col2 FROM tab1
----
4602
5304
7488

query III rowsort
SELECT * FROM tab1 WHERE - col1 - + col1 IS NULL
----

query I rowsort
SELECT + 21 FROM tab2 WHERE ( 28 ) IS NULL
----

query I rowsort
SELECT col0 + 13 FROM tab2
----
59
77
88

query I rowsort
SELECT ( ( - 20 ) ) * 96 FROM tab0
----
-1920
-1920
-1920

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 91 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7843
SELECT DISTINCT + ( - 54 ) DIV + col1 AS col1 FROM tab0
----
-2
-54
0

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT + ( - 54 ) / + col1 AS col1 FROM tab0
----
-2
-54
0

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7845
SELECT DISTINCT - COUNT( * ) DIV CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT - COUNT ( * ) / CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab2
----
-27

query I rowsort
SELECT + 59 AS col0 FROM tab2 WHERE NULL IS NULL
----
59
59
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7848
SELECT ALL COUNT( * ) - + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7848
SELECT ALL COUNT ( * ) - + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 64 / - col1 < ( col0 * 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 83 ) AS col0 FROM tab2
----
83
83
83

query I rowsort
SELECT DISTINCT - col1 + + 66 * 19 AS col1 FROM tab1
----
1207
1240
1249

query I rowsort
SELECT 12 AS col2 FROM tab0 cor0 WHERE NOT - ( - col1 ) + 8 IS NULL
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND col1 + + col0 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( col2 * + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( + 48 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 54 AS col2 FROM tab2 WHERE NOT col2 <= col2 + col1 * col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 15 + - 53 BETWEEN - 3 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 78 + - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-125
-177
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT + CAST( NULL AS SIGNED ) / ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT + CAST ( NULL AS INTEGER ) / ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7862
SELECT ALL + CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + CAST ( NULL AS REAL ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= ( ( + col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( col2 + + 55 )
----

query I rowsort
SELECT DISTINCT + 57 + + 98 FROM tab1 AS cor0
----
155

query I rowsort
SELECT ALL col0 + 68 FROM tab0 cor0
----
155
165
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - MIN( + 50 ) AS col2 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-7868
SELECT - MIN ( + 50 ) AS col2 FROM tab0
----
-50

query I rowsort
SELECT DISTINCT 51 + - + col0 + 49 AS col2 FROM tab2
----
25
36
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + 15 col0 FROM tab2
----
36
52
62

query I rowsort
SELECT ALL col0 + - 24 FROM tab2
----
22
40
51

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + - col2 IN ( + col1 * 19 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + 78 / - 46 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL - SUM( 25 ) + - 5 AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL - SUM ( 25 ) + - 5 AS col1 FROM tab1
----
-80

query I rowsort
SELECT DISTINCT - 8 * - 71 + + 88 FROM tab2
----
656

onlyif mysql # DIV for integer division: 
query I rowsort label-7876
SELECT + 70 + col1 + col1 DIV col2 FROM tab0
----
152
71
93

skipif mysql # not compatible
query I rowsort label-7876
SELECT + 70 + col1 + col1 / col2 FROM tab0
----
152
71
93

query I rowsort
SELECT ALL + ( 41 ) FROM tab1 WHERE 39 * col0 > ( - col0 )
----
41
41
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7878
SELECT - CAST( NULL AS DECIMAL ) + + + 28 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7878
SELECT - CAST ( NULL AS REAL ) + + + 28 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE 27 * col0 < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7880
SELECT DISTINCT * FROM tab0 WHERE col1 / CAST( NULL AS SIGNED ) = + 41
----

skipif mysql # not compatible
query III rowsort label-7880
SELECT DISTINCT * FROM tab0 WHERE col1 / CAST ( NULL AS INTEGER ) = + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT - MIN( - 81 ) * 57 AS col1 FROM tab1 AS cor0
----
4617

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT - MIN ( - 81 ) * 57 AS col1 FROM tab1 AS cor0
----
4617

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) > 31
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7884
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 * - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7884
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 * - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col1, + col1 * 90 FROM tab0
----
15
7290
87
1890
97
90

query I rowsort
SELECT col2 + + 70 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( NULL ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 82 * col2 FROM tab2 AS cor0
----
-1886
-3280
-4756

query I rowsort
SELECT DISTINCT + col0 + - 19 * col2 AS col0 FROM tab2 cor0 WHERE ( NULL ) >= + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT + + MIN( ALL - ( + + col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7891
SELECT + + MIN ( ALL - ( + + col0 ) ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - col2 * - 58 FROM tab1 AS cor0
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7893
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col2 FROM tab0 AS cor0 WHERE NOT 19 IS NULL
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, col2 AS col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - + col1 * + 34 FROM tab2 AS cor0
----
-1734
-2278
-2618

query I rowsort
SELECT - ( col0 ) * + 45 * - 55 FROM tab0
----
215325
240075
37125

query I rowsort
SELECT + col2 * - - col1 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT COUNT( * ) * + 93 AS col2 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT COUNT ( * ) * + 93 AS col2 FROM tab0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7900
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 / + CAST( col1 AS SIGNED ) - - col1 * 83 <= NULL
----

skipif mysql # not compatible
query III rowsort label-7900
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 / + CAST ( col1 AS INTEGER ) - - col1 * 83 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NOT + col0 > ( - col0 )
----

query I rowsort
SELECT ALL col0 * - ( - 26 ) FROM tab2
----
1196
1664
1950

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 83 ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 42 * - col0 AS col2, col0 FROM tab1
----
-2142
51
-3570
85
-3822
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7905
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - - ( - col1 ) ) + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7905
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - - ( - col1 ) ) + + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL - 88 * + col0 AS col0, col2 FROM tab0 cor0
----
-1320
47
-7656
10
-8536
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col0 + col2 * col2 <= + 42 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7908
SELECT SUM( DISTINCT + col1 ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
103
3

skipif mysql # not compatible
query II rowsort label-7908
SELECT SUM ( DISTINCT + col1 ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
103
3

query I rowsort
SELECT ALL - col0 + - - 35 FROM tab0 AS cor0
----
-52
-62
20

query I rowsort
SELECT DISTINCT col0 * + - col2 * + - 78 FROM tab0 AS cor0
----
54990
67860
749034

query I rowsort
SELECT 30 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT DISTINCT 64 DIV + + col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT 64 / + + col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT col0 * - - col1 + + + col0 + - 1 AS col1 FROM tab2 AS cor0
----
2391
4991
5099

query I rowsort
SELECT ALL - 22 AS col1 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - col1 + + - 78 * + col0 FROM tab0 AS cor0
----
-1251
-6807
-7567

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT + + col0 * ( + - col0 ) + 37 DIV + col0 + col0 FROM tab0 AS cor0
----
-208
-7482
-9312

skipif mysql # not compatible
query I rowsort label-7916
SELECT + + col0 * ( + - col0 ) + 37 / + col0 + col0 FROM tab0 AS cor0
----
-208
-7482
-9312

query III rowsort
SELECT * FROM tab1 WHERE + + 15 NOT BETWEEN NULL AND + + ( - ( col1 ) ) / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 WHERE ( NULL ) <= ( - 19 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7919
SELECT * FROM tab2 WHERE + 51 * - CAST( - - 84 AS SIGNED ) <> - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7919
SELECT * FROM tab2 WHERE + 51 * - CAST ( - - 84 AS INTEGER ) <> - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE + 38 * col2 < - 91
----

query I rowsort
SELECT + - col0 + + col2 FROM tab2 WHERE ( - - col0 ) IS NOT NULL
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 33 - col0 AS col2 FROM tab0
----
-54
-64
18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( 6 * - + col1 / col0 ) IN ( col2 * + 19 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7924
SELECT ALL + CAST( - + 99 AS SIGNED ) + - COUNT( - col2 ) - + - 2 AS col1 FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL + CAST ( - + 99 AS INTEGER ) + - COUNT ( - col2 ) - + - 2 AS col1 FROM tab1
----
-100

query I rowsort
SELECT DISTINCT col1 + + col1 * - ( + col1 ) - 62 - + col1 + + 69 FROM tab0 AS cor0
----
-434
-6554
6

query II rowsort
SELECT ALL - 48 AS col1, - col1 FROM tab0 AS cor0
----
-48
-1
-48
-21
-48
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 64 IN ( - col0, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + - col1 - + - 56 AS col0 FROM tab0 cor0
----
497
57
6617

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ( - - COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7929
SELECT ( - - COUNT ( * ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT MAX( + ( - 42 ) ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-7930
SELECT MAX ( + ( - 42 ) ) FROM tab0
----
-42

query I rowsort
SELECT - + col0 * - + 9 AS col0 FROM tab0 AS cor0
----
135
783
873

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
14
47
5

query I rowsort
SELECT - + col2 * - col1 + col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT ALL 38 FROM tab2 WHERE NOT NULL IS NOT NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT + MAX( 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT + MAX ( 28 ) FROM tab0
----
28

query I rowsort
SELECT DISTINCT 4 * col0 AS col2 FROM tab2
----
184
256
300

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN - col2 + - - ( - - col0 ) AND + - 87 * col0 + - col0 + + 83 * 33
----
0

skipif mysql # not compatible
query I rowsort label-7937
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN - col2 + - - ( - - col0 ) AND + - 87 * col0 + - col0 + + 83 * 33
----
0

query II rowsort
SELECT DISTINCT - col1 * - ( + col0 ), 28 * - + col2 AS col0 FROM tab2
----
2346
-644
4928
-1120
5025
-1624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7939
SELECT DISTINCT 7 DIV + COUNT( * ) col1 FROM tab0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7939
SELECT DISTINCT 7 / + COUNT ( * ) col1 FROM tab0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7940
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 * + - CAST( NULL AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7940
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 * + - CAST ( NULL AS INTEGER ) >= ( NULL )
----

query I rowsort
SELECT + col2 * ( 35 ) - + col1 FROM tab0 AS cor0
----
1564
329
3464

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL + COUNT( * ) + - 95 AS col0 FROM tab1 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL + COUNT ( * ) + - 95 AS col0 FROM tab1 cor0
----
-92

query I rowsort
SELECT ALL col0 * - ( + 94 ) FROM tab2 AS cor0
----
-4324
-6016
-7050

query I rowsort
SELECT 2 + - 5 FROM tab0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT + COUNT( * ) + + 18 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + COUNT ( * ) + + 18 FROM tab2
----
21

query I rowsort
SELECT DISTINCT + 41 + 93 + - 52 FROM tab2
----
82

query I rowsort
SELECT + + ( - - 45 ) AS col1 FROM tab1 AS cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + col2 + - - col2 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT DISTINCT + 37 - - MIN( - 1 ) FROM tab0 AS cor0 WHERE NOT - col2 * + 50 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT + 37 - - MIN ( - 1 ) FROM tab0 AS cor0 WHERE NOT - col2 * + 50 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT ALL 43 + ( + COUNT( * ) ), 37 AS col2 FROM tab1
----
46
37

skipif mysql # not compatible
query II rowsort label-7950
SELECT ALL 43 + ( + COUNT ( * ) ), 37 AS col2 FROM tab1
----
46
37

query I rowsort
SELECT DISTINCT 66 * + ( - - col0 ) + + + ( 4 ) + + 44 FROM tab1
----
3414
5658
6054

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7952
SELECT ALL + 16 * - + CAST( NULL AS DECIMAL ) * 55 + - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + 16 * - + CAST ( NULL AS REAL ) * 55 + - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - - col0 + + col2 FROM tab2
----
120
181
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT CAST( NULL AS SIGNED ) + + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT CAST ( NULL AS INTEGER ) + + - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT 37 + + - ( - COUNT( * ) ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-7955
SELECT 37 + + - ( - COUNT ( * ) ) FROM tab2
----
40

query I rowsort
SELECT + 40 AS col0 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT col0 + + 99 FROM tab2
----
145
163
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col2 FROM tab1 cor0
----
69
69
69

query II rowsort
SELECT DISTINCT col2, col0 * col1 FROM tab0
----
10
1827
47
1215
99
97

query II rowsort
SELECT ALL + + col2 * 92 AS col2, - 1 * + + col2 / 54 FROM tab1 AS cor0 WHERE NULL IN ( + ( - col0 ), + col0 - + col0 )
----

query II rowsort
SELECT ALL col0, + col0 FROM tab2 cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - col0 + + col0 FROM tab1 AS cor0 WHERE ( NULL ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT - COUNT( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - 46 AS col0, 63 AS col1 FROM tab1 cor0
----
-46
63
-46
63
-46
63

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7966
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) * + + 24 AS col2 FROM tab2 AS cor0
----
-3
72

skipif mysql # not compatible
query II rowsort label-7966
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) * + + 24 AS col2 FROM tab2 AS cor0
----
-3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT + + ( - MAX( - 79 ) ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7967
SELECT + + ( - MAX ( - 79 ) ) AS col2 FROM tab1 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - + col2 + 74 col0 FROM tab2 AS cor0
----
-2486
-4276
-984

query I rowsort
SELECT + col0 * ( - 95 ) FROM tab0 WHERE NOT ( NULL > ( NULL ) )
----

query II rowsort
SELECT DISTINCT + ( col1 ) + - - col2 AS col2, col2 - + 46 FROM tab1
----
110
50
115
22
64
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL - MAX( ALL + 79 ) * - 53 + + 55 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
4242

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL - MAX ( ALL + 79 ) * - 53 + + 55 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
4242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT - CAST( NULL AS SIGNED ) + + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT - CAST ( NULL AS INTEGER ) + + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 + + 37 - col0 FROM tab0 AS cor0
----
121
39
49

query I rowsort
SELECT col2 + 1 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL + COUNT( - col1 ) * 38 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + COUNT ( - col1 ) * 38 FROM tab2 AS cor0
----
114

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col0 * + 38 <> ( - 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 88 + - - col1 AS col0 FROM tab2 AS cor0
----
-11
-21
-37

query I rowsort
SELECT - ( col2 ) + - col0 + col1 AS col1 FROM tab0 AS cor0
----
-195
-76
19

query I rowsort
SELECT DISTINCT - 91 * + col0 + + + col2 AS col1 FROM tab1 AS cor0
----
-4545
-7676
-8213

query I rowsort
SELECT ALL col1 + - - 73 FROM tab2
----
124
140
150

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT ALL + col2 DIV - ( 35 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + col2 / - ( 35 ) FROM tab0
----
-1
-2
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 39 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT DISTINCT + col1 DIV + col1 + + col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + col1 / + col1 + + col1 FROM tab2
----
52
68
78

query I rowsort
SELECT DISTINCT col0 + + + 46 AS col0 FROM tab0
----
133
143
61

query I rowsort
SELECT ALL 26 - col1 FROM tab0
----
-55
25
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL + 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 cor0 WHERE NOT col1 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT DISTINCT - 74 + - - col0 FROM tab2 AS cor0 WHERE CAST( - + 99 AS SIGNED ) + - col1 + - 85 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT - 74 + - - col0 FROM tab2 AS cor0 WHERE CAST ( - + 99 AS INTEGER ) + - col1 + - 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - SUM( DISTINCT 72 ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7990
SELECT - SUM ( DISTINCT 72 ) FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL > - + col2 / + - col1 + + col0 * - + 53 + - + 34
----

query II rowsort
SELECT ALL col2 AS col1, + 79 FROM tab2
----
23
79
40
79
58
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT MIN( ALL + - col1 ) FROM tab0 WHERE NOT + 7 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT MIN ( ALL + - col1 ) FROM tab0 WHERE NOT + 7 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col2, ( + 15 ) AS col0 FROM tab2
----
23
15
40
15
58
15

query I rowsort
SELECT - - 88 FROM tab2 AS cor0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL MIN( col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL MIN ( col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7998
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + - col0 - + + col0 FROM tab0
----
210
7482
9312

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + - col0 - + + col0 FROM tab0
----
210
7482
9312

query II rowsort
SELECT ALL - col2 * - col0 - col0 AS col2, col0 * - col0 AS col1 FROM tab2 cor0
----
1012
-2116
2496
-4096
4275
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT DISTINCT 87 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT 87 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + + 89 + - 90, + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1
196
-1
62
-1
97

query I rowsort
SELECT - ( - 63 ) + + 52 - - col2 AS col1 FROM tab0 WHERE ( - 30 * + col2 IS NOT NULL )
----
125
162
214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 AS col2, - 38 + 98 col1 FROM tab1
----
88
60
88
60
88
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8004
SELECT col1 + col1 - - col0 DIV + col2 AS col2 FROM tab2
----
104
135
155

skipif mysql # not compatible
query I rowsort label-8004
SELECT col1 + col1 - - col0 / + col2 AS col2 FROM tab2
----
104
135
155

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT ALL - col1 + - col1 - + - col0 DIV col2 FROM tab0
----
-162
-2
-34

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - col1 + - col1 - + - col0 / col2 FROM tab0
----
-162
-2
-34

query I rowsort
SELECT col1 + col2 * col2 + + + 34 * - 81 AS col2 FROM tab0
----
-2633
-464
7048

query I rowsort
SELECT - col1 + + 65 FROM tab2
----
-12
-2
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT MIN( DISTINCT - + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8008
SELECT MIN ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT col1 * + + col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab0
----
2835
35
735

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= col2 + 82 / - + 96
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT ALL COUNT( * ) DIV SUM( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL COUNT ( * ) / SUM ( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8013
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + - - 56 AND + + CAST( - col0 AS SIGNED ) * ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-8013
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + - - 56 AND + + CAST ( - col0 AS INTEGER ) * ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT ( + + 23 ) / - COUNT( * ) + - ( ( + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT ( + + 23 ) / - COUNT ( * ) + - ( ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT DISTINCT col2 DIV - 91 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT col2 / - 91 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8019
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) < + ( - CAST( NULL AS SIGNED ) ) + + col1
----

skipif mysql # not compatible
query III rowsort label-8019
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) < + ( - CAST ( NULL AS INTEGER ) ) + + col1
----

query I rowsort
SELECT ALL 70 * - 97 AS col1 FROM tab0
----
-6790
-6790
-6790

query I rowsort
SELECT col2 + - - 35 AS col1 FROM tab2
----
58
75
93

query I rowsort
SELECT ALL col0 + col0 * - col1 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT + 88 + - col1 FROM tab0
----
67
7
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 31 * + col0 * col2 col1 FROM tab0 AS cor0
----
1027185
269700
29471607

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 9 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 1 AS col0, col2 + col2 + - col0 FROM tab2 AS cor0
----
1
0
1
16
1
41

query I rowsort
SELECT - 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8028
SELECT + col0 + + col2 + - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8028
SELECT + col0 + + col2 + - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 94 - - col1 FROM tab1 AS cor0
----
108
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT + MAX( - + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col2, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT + MAX ( - + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col2, - col0 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 - + - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8032
SELECT - + 30 * - - COUNT( * ) DIV - COUNT( * ) col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8032
SELECT - + 30 * - - COUNT ( * ) / - COUNT ( * ) col1 FROM tab1 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8033
SELECT + col1 / + + CAST( NULL AS SIGNED ) AS col1, - col0 * + 56 * col2 AS col2 FROM tab2 AS cor0
----
NULL
-143360
NULL
-243600
NULL
-59248

skipif mysql # not compatible
query II rowsort label-8033
SELECT + col1 / + + CAST ( NULL AS INTEGER ) AS col1, - col0 * + 56 * col2 AS col2 FROM tab2 AS cor0
----
NULL
-143360
NULL
-243600
NULL
-59248

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - - SUM( + 19 ) AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8034
SELECT - - SUM ( + 19 ) AS col0 FROM tab1 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col1, - 4 AS col2 FROM tab2 cor0
----
51
-4
67
-4
77
-4

query I rowsort
SELECT + col2 * - col1 * + + col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 60 col0 FROM tab0 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8038
SELECT ALL + - 62 AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-62
3

skipif mysql # not compatible
query II rowsort label-8038
SELECT ALL + - 62 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-62
3

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE + col1 + + col0 * 19 IS NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT - MIN( col1 ) * 97 * - 97 col2 FROM tab1
----
47045

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8040
SELECT - MIN ( col1 ) * 97 * - 97 col2 FROM tab1
----
47045

query I rowsort
SELECT DISTINCT + col2 * col2 * col2 FROM tab0
----
1000
103823
970299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 * + 30 col1 FROM tab2
----
420
420
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + + 0 col0 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT DISTINCT + - SUM( DISTINCT + - CAST( + - 77 AS SIGNED ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT + - SUM ( DISTINCT + - CAST ( + - 77 AS INTEGER ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL - col0 * - 30 FROM tab0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL COUNT( * ) * - + 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-306

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL COUNT ( * ) * - + 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-306

query II rowsort
SELECT - ( + 79 ) * + col1 AS col0, + col2 * 55 FROM tab1
----
-1106
5280
-3713
3740
-395
3245

query I rowsort
SELECT ALL col0 * 1 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT + col2 * 14 AS col1 FROM tab2
----
322
560
812

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT DISTINCT 60 DIV + col2 AS col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT 60 / + col2 AS col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT + col0 * - ( - col2 ) - col2 + - col1 FROM tab2 AS cor0
----
2443
4225
984

query I rowsort
SELECT - + 87 * 5 FROM tab0 AS cor0
----
-435
-435
-435

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < col2 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ALL + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE + 54 * - 35 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE + 54 * - 35 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 = + 84 + + + col1 * - - 56 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - ( - + col2 ) col2, col0 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT SUM( - 22 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-8059
SELECT SUM ( - 22 ) FROM tab0
----
-66

query I rowsort
SELECT col2 + + ( + 75 ) FROM tab1
----
134
143
171

query I rowsort
SELECT ( col1 ) + col2 + + + ( col2 ) FROM tab1
----
123
183
206

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT ALL + - 75 + + ( + col2 ) DIV + + col2 FROM tab0 cor0 WHERE NOT - col2 + + col0 + + - col2 IS NULL
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL + - 75 + + ( + col2 ) / + + col2 FROM tab0 cor0 WHERE NOT - col2 + + col0 + + - col2 IS NULL
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT DISTINCT + - 47, 15 * ( + COUNT( * ) ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col0
----
-47
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8063
SELECT DISTINCT + - 47, 15 * ( + COUNT ( * ) ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col0
----
-47
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8064
SELECT DISTINCT - col0 * + 72 - + col0 + + - 8 DIV - col2, col1 FROM tab0
----
-1095
81
-6351
21
-7081
1

skipif mysql # not compatible
query II rowsort label-8064
SELECT DISTINCT - col0 * + 72 - + col0 + + - 8 / - col2, col1 FROM tab0
----
-1095
81
-6351
21
-7081
1

query I rowsort
SELECT DISTINCT + 20 + - col2 AS col0 FROM tab0
----
-27
-79
10

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8066
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( - 96 * + CAST( + 49 AS SIGNED ), ( + + ( + 9 ) ), - 9 )
----

skipif mysql # not compatible
query IIIIII rowsort label-8066
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IN ( - 96 * + CAST ( + 49 AS INTEGER ), ( + + ( + 9 ) ), - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL - MIN( 51 ) + - SUM( - + col2 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - MIN ( 51 ) + - SUM ( - + col2 ) FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL + MIN( + 83 ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL + MIN ( + 83 ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col0 * + 68 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT col1 * - 88 + - CAST( NULL AS SIGNED ) * - - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT col1 * - 88 + - CAST ( NULL AS INTEGER ) * - - col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT COUNT( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8071
SELECT COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + MIN( DISTINCT - col2 ) * - - COUNT( - 28 ) AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8072
SELECT + MIN ( DISTINCT - col2 ) * - - COUNT ( - 28 ) AS col1 FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT DISTINCT MAX( DISTINCT 4 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT MAX ( DISTINCT 4 ) FROM tab2
----
4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN ( + + col2 + + col1 + + col1 + - col0 * - + col1 ) AND + 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8075
SELECT DISTINCT + col0, + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8075
SELECT DISTINCT + col0, + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT + 91 * - MAX( + + 24 ) AS col0 FROM tab0
----
-2184

skipif mysql # not compatible
query I rowsort label-8076
SELECT + 91 * - MAX ( + + 24 ) AS col0 FROM tab0
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + COUNT( - - 35 ) * + - 32 * 88 FROM tab2
----
-8448

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + COUNT ( - - 35 ) * + - 32 * 88 FROM tab2
----
-8448

query I rowsort
SELECT col1 * col2 * - - 1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab2 WHERE NOT - 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8080
SELECT + col2 AS col0, CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-8080
SELECT + col2 AS col0, CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT 72 + 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 708ab89da52f5539ae8cc2b28295d0f9

query I rowsort
SELECT ALL - 59 + - 30 AS col1 FROM tab2
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT + MAX( + - 95 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT + MAX ( + - 95 ) FROM tab0 AS cor0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT - - 8 DIV col2 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8084
SELECT - - 8 / col2 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT - 23 + + MIN( ALL + + col0 ) AS col1 FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-8086
SELECT - 23 + + MIN ( ALL + + col0 ) AS col1 FROM tab1 cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT DISTINCT - 51 * - + 33 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - 51 * - + 33 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 69 * 21 - - - col1 FROM tab0 AS cor0
----
1368
1428
1448

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT - COUNT( col1 ) FROM tab2 AS cor0 WHERE + col0 / - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8089
SELECT - COUNT ( col1 ) FROM tab2 AS cor0 WHERE + col0 / - col2 <> NULL
----
0

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT ALL + + 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT - - 55 * COUNT( * ) * COUNT( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
495

skipif mysql # not compatible
query I rowsort label-8092
SELECT - - 55 * COUNT ( * ) * COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
495

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - col2 * - + col1, - col0 + - - col2 )
----

query I rowsort
SELECT ( + 63 ) AS col0 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT ALL - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col2 * - col0 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 10 col2 FROM tab1
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT - - COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) < col1
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) < col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 69 + + 75 / + col1 * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col0 * - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT DISTINCT - CAST( + - 9 AS SIGNED ) FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - CAST ( + - 9 AS INTEGER ) FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT - col0 * - - col2 - + col1 * col0 + + 82 - + col2 DIV 13 * - ( + col2 ) FROM tab1 AS cor0
----
-10043
-4856
-5122

skipif mysql # not compatible
query I rowsort label-8102
SELECT - col0 * - - col2 - + col1 * col0 + + 82 - + col2 / 13 * - ( + col2 ) FROM tab1 AS cor0
----
-10043
-4856
-5122

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL + - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL 16 + + + 44 + + - COUNT( * ) * + 65 AS col0 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL 16 + + + 44 + + - COUNT ( * ) * + 65 AS col0 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col0, 40 + - col2 + + + 74, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT MIN( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8106
SELECT MIN ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT DISTINCT + col0 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT + col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT - COUNT( * ) * + - 37 + + MAX( ALL - col1 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT - COUNT ( * ) * + - 37 + + MAX ( ALL - col1 ) FROM tab2
----
60

query I rowsort
SELECT ALL - col2 + - 73 * + - col2 * + col0 AS col2 FROM tab0
----
51418
63500
700920

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT ( - 89 ) + + MIN( - col1 ) FROM tab2
----
-166

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT ( - 89 ) + + MIN ( - col1 ) FROM tab2
----
-166

query II rowsort
SELECT ALL 14 + + col0, ( - + col1 ) AS col1 FROM tab1
----
105
-47
65
-14
99
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8112
SELECT ALL + CAST( NULL AS SIGNED ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT ALL - + 1 - - 58 - + MAX( DISTINCT - col0 ) + 17 FROM tab1 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - + 1 - - 58 - + MAX ( DISTINCT - col0 ) + 17 FROM tab1 AS cor0
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT ALL + + CAST( - col0 AS SIGNED ) * + 13 * col2 FROM tab0 cor0
----
-11310
-124839
-9165

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + + CAST ( - col0 AS INTEGER ) * + 13 * col2 FROM tab0 cor0
----
-11310
-124839
-9165

query I rowsort
SELECT - 45 - + col0 FROM tab1
----
-130
-136
-96

query I rowsort
SELECT ALL col0 * - col2 * + + ( + ( - col1 ) ) FROM tab2 AS cor0
----
197120
291450
53958

query II rowsort
SELECT + col1, + col0 * + col1 AS col0 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query I rowsort
SELECT + + 45 * - col0 AS col2 FROM tab2 AS cor0
----
-2070
-2880
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - MAX( ALL + 8 ) AS col2 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8119
SELECT - MAX ( ALL + 8 ) AS col2 FROM tab2 AS cor0
----
-8

query II rowsort
SELECT ALL + col1, - col1 * - - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-441
81
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - MAX( DISTINCT - + col0 ) * COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8121
SELECT - MAX ( DISTINCT - + col0 ) * COUNT ( * ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT 22 * - - COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-8122
SELECT 22 * - - COUNT ( * ) FROM tab2
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 73 < + + col2 * + col2
----

query I rowsort
SELECT col0 * col1 * - col1 AS col1 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 WHERE NOT - 53 / + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 53 / + + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT + - COUNT( * ) DIV + MIN( DISTINCT + + 88 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT + - COUNT ( * ) / + MIN ( DISTINCT + + 88 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + ( + + 10 ) FROM tab1 AS cor0
----
10
10
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( - 16 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT + COUNT( * ) + SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT + COUNT ( * ) + SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 0 ) * - + col1 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT - + col1 + - - ( - - col2 ), + col1 AS col1 FROM tab2 cor0
----
-28
51
-37
77
-9
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 79 ) * 21 col0 FROM tab0 AS cor0
----
-1659
-1659
-1659

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT col0 + CAST( NULL AS SIGNED ) * + col2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT col0 + CAST ( NULL AS INTEGER ) * + col2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - - 10 AS col0 FROM tab2 AS cor0
----
56
74
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + - col2 >= + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 26 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 AS col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 + + col1 BETWEEN col2 AND + col0 * + col0 + + 89
----
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE + + 50 + + + 85 <= NULL
----

query III rowsort
SELECT - col0, col1, - ( - - col2 ) AS col1 FROM tab1
----
9 values hashing to 5119d283251a8c20cc41aec64fd2e568

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * col0 + - - col0 = NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 - + - 35 FROM tab0 AS cor0
----
-12
-64
25

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + + 97 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8148
SELECT COUNT( 8 ) AS col1, + 10 DIV + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8148
SELECT COUNT ( 8 ) AS col1, + 10 / + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT ALL - col1 DIV + 25 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - col1 / + 25 AS col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT SUM( + col2 ) * + COUNT( ALL ( + col0 ) ) FROM tab2 AS cor0 WHERE ( col2 * - 27 * col1 ) IS NOT NULL
----
363

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT SUM ( + col2 ) * + COUNT ( ALL ( + col0 ) ) FROM tab2 AS cor0 WHERE ( col2 * - 27 * col1 ) IS NOT NULL
----
363

query I rowsort
SELECT ( 59 ) AS col2 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 93 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + - 69 ) AS col1 FROM tab1
----
-69
-69
-69

query I rowsort
SELECT + 79 * 48 * - col0 FROM tab1
----
-193392
-322320
-345072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL + CAST( + - COUNT( ALL - - col0 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + CAST ( + - COUNT ( ALL - - col0 ) AS INTEGER ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + - - col0 + + col1 > 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT CAST( col0 AS SIGNED ) col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8158
SELECT CAST ( col0 AS INTEGER ) col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT + + COUNT( * ) AS col0, 63 FROM tab0 AS cor0 WHERE NOT ( + 58 ) <= 29
----
3
63

skipif mysql # not compatible
query II rowsort label-8159
SELECT + + COUNT ( * ) AS col0, 63 FROM tab0 AS cor0 WHERE NOT ( + 58 ) <= 29
----
3
63

query II rowsort
SELECT col2 AS col2, col2 AS col0 FROM tab1 cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT COUNT( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8161
SELECT COUNT ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT DISTINCT col1 * - - CAST( NULL AS SIGNED ) + 90 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT col1 * - - CAST ( NULL AS INTEGER ) + 90 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 31 + + - 28 FROM tab0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT CAST( NULL AS SIGNED ) * - col0 - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT CAST ( NULL AS INTEGER ) * - col0 - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - - ( - col2 ) + - 82 * 87 * + + col2 FROM tab2 AS cor0
----
-164611
-286960
-417136

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT DISTINCT - col1 * + 87 DIV - 86 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - col1 * + 87 / - 86 AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT DISTINCT + CAST( 4 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT + CAST ( 4 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NULL <= + col1
----
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL <= + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 74 * col2 col1 FROM tab0
----
-3397
-719
-7325

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8170
SELECT + col0 + + - col1 + + col2 + - - col2 * + col1 * + 52 AS col1, CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
15479
NULL
166304
NULL
70021
NULL

skipif mysql # not compatible
query II rowsort label-8170
SELECT + col0 + + - col1 + + col2 + - - col2 * + col1 * + 52 AS col1, CAST ( NULL AS REAL ) AS col0 FROM tab1
----
15479
NULL
166304
NULL
70021
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 >= + col0
----
15
81
47

query I rowsort
SELECT - 32 + + col2 FROM tab2
----
-9
26
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT - + col0 FROM tab0 WHERE 7 * - - 96 NOT BETWEEN - - col1 AND + ( + CAST( - col2 AS SIGNED ) )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8173
SELECT - + col0 FROM tab0 WHERE 7 * - - 96 NOT BETWEEN - - col1 AND + ( + CAST ( - col2 AS INTEGER ) )
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col2 FROM tab0 cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL + - ( + - MAX( + - col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + - ( + - MAX ( + - col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - - col0 - - + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT DISTINCT - SUM( DISTINCT + 64 ) AS col2 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT - SUM ( DISTINCT + 64 ) AS col2 FROM tab2 AS cor0
----
-64

query II rowsort
SELECT - - 78, col0 AS col0 FROM tab0 AS cor0
----
78
15
78
87
78
97

query I rowsort
SELECT ALL 40 FROM tab1 AS cor0 WHERE ( NULL ) < - 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8180
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col1 FROM tab0 cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT - 29 + - SUM( DISTINCT - + col2 ) FROM tab0 cor0
----
127

skipif mysql # not compatible
query I rowsort label-8182
SELECT - 29 + - SUM ( DISTINCT - + col2 ) FROM tab0 cor0
----
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - + col2 - + + col2 * 71 col1 FROM tab2 AS cor0
----
-1707
-2957
-4243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT + ( - COUNT( * ) ) + MIN( + + CAST( NULL AS SIGNED ) ) * + - 56 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT + ( - COUNT ( * ) ) + MIN ( + + CAST ( NULL AS INTEGER ) ) * + - 56 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <> + + col0
----

query I rowsort
SELECT + ( - col0 ) + ( - ( + - ( + 79 ) ) ) FROM tab2
----
15
33
4

query I rowsort
SELECT + 5 * + - col0 AS col1 FROM tab2
----
-230
-320
-375

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 92 * - - 16 FROM tab1
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8190
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL ( + - 88 ) FROM tab1 AS cor0
----
-88
-88
-88

query II rowsort
SELECT + + col2 * 55 AS col0, + 14 * - + 27 * col2 FROM tab1 cor0
----
3245
-22302
3740
-25704
5280
-36288

query I rowsort
SELECT DISTINCT + col1 + 95 FROM tab0
----
116
176
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT - 56 DIV - + 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8194
SELECT - 56 / - + 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT ALL + 72, + col2 FROM tab2
----
72
23
72
40
72
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 - - 72 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT + col1 DIV - col2 + + + col1 + - col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-8197
SELECT + col1 / - col2 + + + col1 + - col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8198
SELECT + 16 * - 59 + + 56, - COUNT( * ) AS col0 FROM tab2 cor0
----
-888
-3

skipif mysql # not compatible
query II rowsort label-8198
SELECT + 16 * - 59 + + 56, - COUNT ( * ) AS col0 FROM tab2 cor0
----
-888
-3

query I rowsort
SELECT DISTINCT - col2 - 93 FROM tab1 AS cor0
----
-152
-161
-189

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 + col1 FROM tab0 AS cor0
----
121
2290
9802

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT + - COUNT( - + col2 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8202
SELECT + - COUNT ( - + col2 ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT - - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8203
SELECT - - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT 27 - col1 + col2 * + + col0 IN ( 18, - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT 27 - col1 + col2 * + + col0 IN ( 18, - col2 )
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( col2 > - ( 66 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT + col1 * 35 + CAST( - 74 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-39
2761
661

skipif mysql # not compatible
query I rowsort label-8206
SELECT + col1 * 35 + CAST ( - 74 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-39
2761
661

query II rowsort
SELECT DISTINCT + 44 AS col2, 76 FROM tab2 AS cor0
----
44
76

query I rowsort
SELECT ALL - 7 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - ( - col0 )
----

query I rowsort
SELECT + col1 FROM tab0 WHERE - col1 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col1 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - MAX( + ( col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8211
SELECT - MAX ( + ( col0 ) ) AS col2 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT ALL + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT - COUNT( 37 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT - COUNT ( 37 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT + MAX( - - 23 ) AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + MAX ( - - 23 ) AS col2 FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT ALL - - ( col2 ) + CAST( + 82 AS SIGNED ) FROM tab0 AS cor0
----
129
181
92

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - - ( col2 ) + CAST ( + 82 AS INTEGER ) FROM tab0 AS cor0
----
129
181
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT ALL CAST( NULL AS SIGNED ) * + col2 * + + 44 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 * + + 44 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT + 61 + - MIN( + col1 ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + 61 + - MIN ( + col1 ) AS col0 FROM tab2
----
10

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 9 AND - col2 + - 9 + + col0 + - col1 + + - col0
----

query II rowsort
SELECT ALL + col0 AS col2, 28 AS col1 FROM tab1
----
51
28
85
28
91
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL COUNT( * ) + - - 76 - + 23 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL COUNT ( * ) + - - 76 - + 23 FROM tab2
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, 66 FROM tab2
----
46
66
64
66
75
66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + - col1 ) + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + - 85 * 20 * - 51 FROM tab2 AS cor0
----
86723
86740
86758

query I rowsort
SELECT DISTINCT - 48 + + + col0 * + + ( + - col2 ) FROM tab1
----
-4944
-5063
-6236

query II rowsort
SELECT + 88 * 82 * - col0, + 83 AS col0 FROM tab2
----
-331936
83
-461824
83
-541200
83

query I rowsort
SELECT ALL - + 6 / - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL MIN( DISTINCT - ( - col2 ) ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL MIN ( DISTINCT - ( - col2 ) ) AS col0 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT DISTINCT + 79 * CAST( NULL AS SIGNED ) * + + 18 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT + 79 * CAST ( NULL AS INTEGER ) * + + 18 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 - + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 46 FROM tab0 AS cor0 WHERE col2 > NULL
----

query I rowsort
SELECT - ( + col1 ) * + col0 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8233
SELECT ALL + 25 DIV MAX( + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + 25 / MAX ( + col0 ) FROM tab1
----
0

query II rowsort
SELECT + col1, + 81 + - col2 + 15 FROM tab1
----
14
0
47
28
5
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT col1 DIV + - 69 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT col1 / + - 69 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - - col0 IS NULL
----

query II rowsort
SELECT ALL - col0 AS col0, + col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

query II rowsort
SELECT ALL + 20 AS col0, - 32 FROM tab0
----
20
-32
20
-32
20
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - - col2 - + 42 col0, col0 - + ( + col2 ) FROM tab1 WHERE + + 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT COUNT( * ) * 49 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT COUNT ( * ) * 49 FROM tab1 AS cor0
----
147

query II rowsort
SELECT - 34 AS col1, col0 + - 46 FROM tab0 AS cor0
----
-34
-31
-34
41
-34
51

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * + col1 IS NULL
----

query I rowsort
SELECT ALL + 29 * + col2 + - 19 AS col1 FROM tab0
----
1344
271
2852

query I rowsort
SELECT + 0 FROM tab0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 72 * col0 + - ( 13 ) AS col1 FROM tab0
----
1067
6251
6971

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT - COUNT( + 98 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8246
SELECT - COUNT ( + 98 ) FROM tab2
----
-3

query I rowsort
SELECT ALL + 55 + + col0 AS col0 FROM tab1
----
106
140
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT - 62 + - COUNT( * ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-8248
SELECT - 62 + - COUNT ( * ) FROM tab2
----
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 86 <= ( col0 )
----
15
81
47

query III rowsort
SELECT * FROM tab0 WHERE NOT - 54 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 5 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT 90 + 31 NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT - CAST( - 85 AS SIGNED ) col2 FROM tab0
----
85
85
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8253
SELECT - CAST ( - 85 AS INTEGER ) col2 FROM tab0
----
85
85
85

query I rowsort
SELECT ALL 48 + - col1 AS col0 FROM tab1
----
1
34
43

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE + col1 + - 4 / - col2 > ( 26 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE - col2 = + 63
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 + + 39 ) IS NULL
----

query I rowsort
SELECT col0 - + 44 FROM tab2
----
2
20
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE + 2 / + col1 >= + 91
----
0

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE + 2 / + col1 >= + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT CAST( NULL AS SIGNED ) * - 45 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT CAST ( NULL AS INTEGER ) * - 45 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col0 + - col2 AS col0 FROM tab1
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT COUNT( * ) * MAX( DISTINCT - col0 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8263
SELECT COUNT ( * ) * MAX ( DISTINCT - col0 ) FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + COUNT( * ) FROM tab2 WHERE NOT col1 NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT + COUNT ( * ) FROM tab2 WHERE NOT col1 NOT IN ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT - MAX( - ( col2 ) ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8265
SELECT - MAX ( - ( col2 ) ) col0 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 81 ) * + 73 col0 FROM tab2
----
-5913
-5913
-5913

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL + MAX( DISTINCT - col1 ) + - MAX( col1 ) * COUNT( * ) col2 FROM tab2
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8267
SELECT ALL + MAX ( DISTINCT - col1 ) + - MAX ( col1 ) * COUNT ( * ) col2 FROM tab2
----
-282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT - MAX( + CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT - MAX ( + CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 34 * + col2 AS col1 FROM tab2
----
-1360
-1972
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL ( + COUNT( * ) ) col2 FROM tab1 WHERE NOT - ( + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8270
SELECT ALL ( + COUNT ( * ) ) col2 FROM tab1 WHERE NOT - ( + col2 ) IS NOT NULL
----
0

query I rowsort
SELECT + col1 - - col1 * + 86 AS col0 FROM tab0
----
1827
7047
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT + col2 - col0 DIV col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-8272
SELECT + col2 - col0 / col0 FROM tab1
----
58
67
95

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT 71 + col0 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT DISTINCT col1 - 76 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - ( + col2 ) + col2 AND ( - col2 * + col2 - CAST( NULL AS SIGNED ) / col1 )
----

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT col1 - 76 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - ( + col2 ) + col2 AND ( - col2 * + col2 - CAST ( NULL AS INTEGER ) / col1 )
----

query I rowsort
SELECT 93 * 62 FROM tab2 AS cor0
----
5766
5766
5766

query I rowsort
SELECT ( + col1 ) * - 43 FROM tab2 AS cor0
----
-2193
-2881
-3311

query I rowsort
SELECT col2 * + 28 AS col1 FROM tab0 AS cor0
----
1316
2772
280

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * - col0 - + 57 col1 FROM tab2 AS cor0 WHERE NOT - 86 * - col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8281
SELECT ALL + 23 DIV SUM( 74 ) + - ( - 53 ) col2 FROM tab0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8281
SELECT ALL + 23 / SUM ( 74 ) + - ( - 53 ) col2 FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT DISTINCT + + MIN( ALL - 22 ) * 94 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-2071

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + + MIN ( ALL - 22 ) * 94 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-2071

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN ( 28 ) AND 27 + col2
----

query I rowsort
SELECT col2 * 47 FROM tab2 AS cor0 WHERE - col2 BETWEEN ( col1 ) + - col2 / col1 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 52 col2 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT DISTINCT 5 - COUNT( * ) col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8286
SELECT DISTINCT 5 - COUNT ( * ) col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT + col2 * + 55 AS col2 FROM tab0 AS cor0
----
2585
5445
550

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT ALL + 53 DIV - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL + 53 / - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT DISTINCT - + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT - + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8291
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( - col0 AS SIGNED ) + 49 * col1 = + col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8291
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) + 49 * col1 = + col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 66 AS col1 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT ALL 22 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL 22 / col0 AS col2 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8294
SELECT COUNT( * ) DIV + + CAST( - MIN( col0 ) AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT COUNT ( * ) / + + CAST ( - MIN ( col0 ) AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col1 FROM tab2 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * col1 + col1 / col0 FROM tab0 WHERE NOT + col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + + 22 ) FROM tab0
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8298
SELECT * FROM tab2 AS cor0 WHERE NOT 50 * col2 - - CAST( - ( col2 ) AS DECIMAL ) * col1 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8298
SELECT * FROM tab2 AS cor0 WHERE NOT 50 * col2 - - CAST ( - ( col2 ) AS REAL ) * col1 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT MAX( DISTINCT - 25 ) AS col1 FROM tab0 cor0 WHERE NOT + col2 NOT BETWEEN + 64 / 1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT MAX ( DISTINCT - 25 ) AS col1 FROM tab0 cor0 WHERE NOT + col2 NOT BETWEEN + 64 / 1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT MAX( 2 ) col1 FROM tab0 WHERE NOT - - 61 - col0 * col2 <> 90
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8300
SELECT DISTINCT MAX ( 2 ) col1 FROM tab0 WHERE NOT - - 61 - col0 * col2 <> 90
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + 33 + - col0 )
----

query I rowsort
SELECT ALL - 95 + + + 73 + + - col0 AS col1 FROM tab0
----
-109
-119
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, 17 col0 FROM tab2
----
51
17
67
17
77
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT - 9 * COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-8304
SELECT - 9 * COUNT ( * ) FROM tab0
----
-27

query II rowsort
SELECT col2, 12 FROM tab0
----
10
12
47
12
99
12

query II rowsort
SELECT ALL - col0 AS col0, - ( col0 ) FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT SUM( ALL col2 ) * + 88 FROM tab1 AS cor0 WHERE col0 * - 22 + col0 / 87 IS NOT NULL
----
19624

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT SUM ( ALL col2 ) * + 88 FROM tab1 AS cor0 WHERE col0 * - 22 + col0 / 87 IS NOT NULL
----
19624

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8309
SELECT * FROM tab0 AS cor0 WHERE ( + 25 * + - CAST( NULL AS SIGNED ) ) IN ( - col2 * - col0 - 32 )
----

skipif mysql # not compatible
query III rowsort label-8309
SELECT * FROM tab0 AS cor0 WHERE ( + 25 * + - CAST ( NULL AS INTEGER ) ) IN ( - col2 * - col0 - 32 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - + 82 NOT BETWEEN ( + 77 * 13 ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col0 FROM tab0 AS cor0 WHERE ( NULL ) < - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT ALL - - 62, COUNT( * ) col2 FROM tab0 AS cor0
----
62
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8312
SELECT ALL - - 62, COUNT ( * ) col2 FROM tab0 AS cor0
----
62
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8313
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8313
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < ( 52 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + COUNT( ALL + + col1 ) * + COUNT( * ) + SUM( + col0 ) AS col2 FROM tab2
----
194

skipif mysql # not compatible
query I rowsort label-8315
SELECT + COUNT ( ALL + + col1 ) * + COUNT ( * ) + SUM ( + col0 ) AS col2 FROM tab2
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT ALL - col1 DIV - col0 + + 72 AS col1 FROM tab1
----
72
72
72

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - col1 / - col0 + + 72 AS col1 FROM tab1
----
72
72
72

query I rowsort
SELECT col1 * col2 * + + ( + 30 ) + - 89 FROM tab0
----
114121
2881
6211

query I rowsort
SELECT + col0 FROM tab0 WHERE ( + 83 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT ALL + CAST( col1 AS SIGNED ) - col0 AS col2 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + CAST ( col1 AS INTEGER ) - col0 AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2
----
-54

query I rowsort
SELECT - 73 + 80 + + + col2 AS col2 FROM tab2
----
30
47
65

query I rowsort
SELECT ALL ( + 37 ) + 37 AS col0 FROM tab0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT + 89 - - - ( MIN( - col1 ) ) FROM tab2
----
166

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT + 89 - - - ( MIN ( - col1 ) ) FROM tab2
----
166

query II rowsort
SELECT col1 + col1 AS col0, col2 AS col0 FROM tab1
----
10
59
28
96
94
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL - CAST( - 55 AS SIGNED ) * - - col1 FROM tab1
----
2585
275
770

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL - CAST ( - 55 AS INTEGER ) * - - col1 FROM tab1
----
2585
275
770

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > ( - 81 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL - CAST( AVG ( DISTINCT - ( + col2 ) ) AS SIGNED ) * 55 FROM tab2 AS cor0
----
2200

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL - CAST ( AVG ( DISTINCT - ( + col2 ) ) AS INTEGER ) * 55 FROM tab2 AS cor0
----
2200

onlyif mysql # DIV for integer division: 
query II rowsort label-8328
SELECT + col1 DIV + col2 AS col1, 34 col2 FROM tab2 cor0
----
1
34
1
34
2
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8328
SELECT + col1 / + col2 AS col1, 34 col2 FROM tab2 cor0
----
1
34
1
34
2
34

query I rowsort
SELECT ALL + ( - 68 ) + 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query III rowsort
SELECT * FROM tab1 WHERE - - col2 - col2 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, ( + + 32 ) + col1 * + 87 + + 1 * 26 AS col1 FROM tab2
----
23
4495
40
6757
58
5887

query I rowsort
SELECT 51 - + - col2 + - ( - - 84 ) FROM tab0
----
-23
14
66

query I rowsort
SELECT ALL col1 FROM tab0 WHERE + - 24 > - - col1 + 34
----

query I rowsort
SELECT DISTINCT - + 82 * + - col0 AS col0 FROM tab2 AS cor0
----
3772
5248
6150

query I rowsort
SELECT ALL 64 * 15 FROM tab2 AS cor0
----
960
960
960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8336
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( + + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8336
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * col0 + - col0 + + col2 * + - ( 47 ) FROM tab0 AS cor0
----
-1009
-4653
1270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 * + col0 / - CAST( col0 AS SIGNED ) * + col1 ) NOT BETWEEN 21 AND + 22 * - col2
----

skipif mysql # not compatible
query I rowsort label-8338
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 * + col0 / - CAST ( col0 AS INTEGER ) * + col1 ) NOT BETWEEN 21 AND + 22 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col2 FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT COUNT( col2 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8340
SELECT COUNT ( col2 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8341
SELECT - COUNT( ALL - 15 ) + + CAST( 11 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-8341
SELECT - COUNT ( ALL - 15 ) + + CAST ( 11 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----
11

query I rowsort
SELECT 68 + + ( + col1 ) FROM tab1 AS cor0 WHERE NOT 13 * - + 23 + 20 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8343
SELECT ( + CAST( NULL AS DECIMAL ) ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT ( + CAST ( NULL AS REAL ) ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * - 85 AS col0 FROM tab1
----
-1190
-3995
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT COUNT( * ) col2 FROM tab0 WHERE NOT ( NULL NOT IN ( col0, col0 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8345
SELECT COUNT ( * ) col2 FROM tab0 WHERE NOT ( NULL NOT IN ( col0, col0 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8346
SELECT - COUNT( * ), 74 col2 FROM tab1
----
-3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8346
SELECT - COUNT ( * ), 74 col2 FROM tab1
----
-3
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT ( + - MIN( + 23 ) ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT ( + - MIN ( + 23 ) ) FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE ( NOT NULL <= ( - col2 * - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT NULL <= ( - col2 * - col0 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8349
SELECT + 13 DIV - + COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8349
SELECT + 13 / - + COUNT ( * ) FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT DISTINCT + + 37 - - COUNT( * ) col2 FROM tab1 WHERE NOT NULL > NULL
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8350
SELECT DISTINCT + + 37 - - COUNT ( * ) col2 FROM tab1 WHERE NOT NULL > NULL
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) * + ( + COUNT( * ) ) * + 69 * 17 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + ( + COUNT ( * ) ) * + 69 * 17 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8352
SELECT + 24 DIV - col0 + - 47 * + 62 FROM tab1 AS cor0
----
-2914
-2914
-2914

skipif mysql # not compatible
query I rowsort label-8352
SELECT + 24 / - col0 + - 47 * + 62 FROM tab1 AS cor0
----
-2914
-2914
-2914

query I rowsort
SELECT + + ( + + col1 ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + + 4 AS col2 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT - - col1 + + - 50 FROM tab2 AS cor0
----
1
17
27

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col0 ) >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8357
SELECT + col0 * 13 DIV + col0, col2 FROM tab2
----
13
23
13
40
13
58

skipif mysql # not compatible
query II rowsort label-8357
SELECT + col0 * 13 / + col0, col2 FROM tab2
----
13
23
13
40
13
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL - COUNT( * ) + + - 91 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL - COUNT ( * ) + + - 91 FROM tab1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT DISTINCT col0 + - col1 DIV + col2 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT col0 + - col1 / + col2 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + - COUNT( * ) + - - 29 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
20

skipif mysql # not compatible
query I rowsort label-8360
SELECT + - COUNT ( * ) + - - 29 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
20

query I rowsort
SELECT DISTINCT - - 21 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL + MIN( - col0 ) + + + 68 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + MIN ( - col0 ) + + + 68 FROM tab0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT ALL - - col2 * 10 / col1 + col2 * col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + + CAST( NULL AS SIGNED ) <> - 8
----

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - - col2 * 10 / col1 + col2 * col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + + CAST ( NULL AS INTEGER ) <> - 8
----

query I rowsort
SELECT ( - col2 ) + + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col2 + 37 FROM tab0 AS cor0
----
136
47
84

query I rowsort
SELECT ALL + col1 + - 4 FROM tab0
----
-3
17
77

query I rowsort
SELECT ALL ( 61 ) + - 1 FROM tab2
----
60
60
60

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + col0 ) * - + col1 NOT BETWEEN NULL AND - col0 + - - ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 7 * - + col0 + + col1 FROM tab1
----
-343
-590
-590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT - - col1 * col1 * - col0 + - 16 + 28 + - CAST( + - 1 AS SIGNED ) * + col0 - + col0 FROM tab1 AS cor0
----
-201007
-2113
-9984

skipif mysql # not compatible
query I rowsort label-8371
SELECT - - col1 * col1 * - col0 + - 16 + 28 + - CAST ( + - 1 AS INTEGER ) * + col0 - + col0 FROM tab1 AS cor0
----
-201007
-2113
-9984

query I rowsort
SELECT - 94 - + + 67 + - 73 AS col1 FROM tab1 AS cor0
----
-234
-234
-234

query I rowsort
SELECT - 17 * - col2 * + + col1 + - 89 - + 15 + - + col1 * - + col1 + col0 AS col0 FROM tab1 AS cor0
----
22991
5021
56528

query I rowsort
SELECT ( + 30 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT - COUNT( * ) * + - 26 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243

skipif mysql # not compatible
query I rowsort label-8375
SELECT - COUNT ( * ) * + - 26 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243

query I rowsort
SELECT DISTINCT col1 * - + 56 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
-2632
-280
-784

query I rowsort
SELECT ALL - col2 * 63 * + + col2 * - col2 AS col0 FROM tab1 AS cor0
----
12938877
19809216
55738368

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8378
SELECT ALL * FROM tab2 AS cor0 WHERE col2 >= - col1 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8378
SELECT ALL * FROM tab2 AS cor0 WHERE col2 >= - col1 + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + 22 * - 83 AS col1 FROM tab2
----
-1826
-1826
-1826

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8380
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND - + col2 / + CAST( - - 97 AS DECIMAL )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND - + col2 / + CAST ( - - 97 AS REAL )
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 56 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col0 col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL col2 * - - 32 AS col1 FROM tab1
----
1888
2176
3072

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 83 BETWEEN NULL AND + col2 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 83 + + ( + col2 ) + + col0 AS col2 FROM tab1 cor0
----
227
230
242

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col0 AND ( + col2 )
----

query I rowsort
SELECT DISTINCT + + 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - + col1 IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 27 - + col1 AS col2 FROM tab0 AS cor0
----
-54
26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL - + 51 * - 83 + + COUNT( * ) + COUNT( * ) * + 8 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
4257

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL - + 51 * - 83 + + COUNT ( * ) + COUNT ( * ) * + 8 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
4257

query I rowsort
SELECT - col1 + - - 59 FROM tab1
----
12
45
54

query I rowsort
SELECT ALL 80 + 95 FROM tab0
----
175
175
175

query I rowsort
SELECT col0 + col0 * - col0 FROM tab1
----
-2550
-7140
-8190

query I rowsort
SELECT ALL - ( + col2 ) * + 22 + + + col0 FROM tab0
----
-1019
-133
-2081

query III rowsort
SELECT * FROM tab2 WHERE + 18 * + 79 * + 83 = NULL
----

query I rowsort
SELECT - col0 + 92 - - col2 AS col2 FROM tab0
----
124
15
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + - MAX( col1 ) * COUNT( * ) AS col0 FROM tab2 WHERE col0 IN ( - col0 * - + col0 + - ( - 31 ) / + 27 + - col0 + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + - MAX ( col1 ) * COUNT ( * ) AS col0 FROM tab2 WHERE col0 IN ( - col0 * - + col0 + - ( - 31 ) / + 27 + - col0 + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL + 94 + + SUM( 34 ) AS col1 FROM tab1
----
196

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL + 94 + + SUM ( 34 ) AS col1 FROM tab1
----
196

query I rowsort
SELECT ALL + + col1 * + col2 + 42 * + 40 AS col0 FROM tab2 WHERE NOT + + 27 IS NULL
----
2853
4760
5566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 46 col1 FROM tab1
----
-2346
-3910
-4186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 47 col0 FROM tab0
----
15
47
87
47
97
47

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT + COUNT( DISTINCT + 62 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT + COUNT ( DISTINCT + 62 ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 52 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, + 54 AS col2 FROM tab1 cor0
----
-14
54
-47
54
-5
54

query I rowsort
SELECT ( - + 79 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT - col0, col1 * - - col2 AS col0 FROM tab2 AS cor0
----
-46
1173
-64
3080
-75
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL - + ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - + ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + + + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 3, + ( 82 ) col0 FROM tab1 AS cor0
----
3
82

query II rowsort
SELECT DISTINCT + - col0 AS col1, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT ALL + + 18, ( + - col2 ) AS col2 FROM tab2 AS cor0
----
18
-23
18
-40
18
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col0, + col2 + col0 col1 FROM tab1 AS cor0
----
51
147
85
144
91
159

query I rowsort
SELECT + col1 * + 68 AS col0 FROM tab0 AS cor0
----
1428
5508
68

query II rowsort
SELECT ALL + + col1 AS col2, 88 FROM tab2 AS cor0
----
51
88
67
88
77
88

query I rowsort
SELECT ALL + 7 * - 31 AS col0 FROM tab1 AS cor0
----
-217
-217
-217

onlyif mysql # DIV for integer division: 
query II rowsort label-8419
SELECT - 53 AS col0, col0 DIV + ( - - col0 ) FROM tab2 cor0
----
-53
1
-53
1
-53
1

skipif mysql # not compatible
query II rowsort label-8419
SELECT - 53 AS col0, col0 / + ( - - col0 ) FROM tab2 cor0
----
-53
1
-53
1
-53
1

query II rowsort
SELECT - col0 AS col1, - ( - col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
-15
705
-87
870
-97
9603

query I rowsort
SELECT ALL 57 AS col1 FROM tab1 AS cor0 WHERE - col1 * col2 NOT IN ( - + col1 )
----
57
57
57

query I rowsort
SELECT + 3 AS col2 FROM tab0 WHERE NOT - 86 IS NULL
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT DISTINCT + CAST( - + SUM( col2 ) AS SIGNED ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT + CAST ( - + SUM ( col2 ) AS INTEGER ) FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query II rowsort label-8424
SELECT ALL col0 + ( + - col1 ) - + col1 * col1 AS col1, + 55 * + col0 + + + 61 DIV - + col0 FROM tab2 AS cor0
----
-2606
2529
-4481
4125
-5942
3520

skipif mysql # not compatible
query II rowsort label-8424
SELECT ALL col0 + ( + - col1 ) - + col1 * col1 AS col1, + 55 * + col0 + + + 61 / - + col0 FROM tab2 AS cor0
----
-2606
2529
-4481
4125
-5942
3520

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < ( - col0 )
----

query I rowsort
SELECT DISTINCT + col1 + - col2 + + col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT DISTINCT col1 * - CAST( 20 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT col1 * - CAST ( 20 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT + 4 + - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8430
SELECT + 4 + - COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL CAST( + CAST( CAST( + MIN( ALL - - col1 ) AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL CAST ( + CAST ( CAST ( + MIN ( ALL - - col1 ) AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - 19
----

query I rowsort
SELECT ALL 86 + + col2 + + + col0 * - col1 * - col0 * - 13 * 75 + - col1 FROM tab1 AS cor0
----
-35221735
-35503482
-379476718

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT ALL + 14 DIV - ( COUNT( * ) ) col2 FROM tab0 cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8434
SELECT ALL + 14 / - ( COUNT ( * ) ) col2 FROM tab0 cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - + 46 BETWEEN col2 AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 28 * col0 <= - col2 + + col1
----

query I rowsort
SELECT ALL + ( - 72 ) + - col1 FROM tab1
----
-119
-77
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT - 17 DIV col1 - - - col2 AS col2 FROM tab1
----
-62
-68
-97

skipif mysql # not compatible
query I rowsort label-8438
SELECT - 17 / col1 - - - col2 AS col2 FROM tab1
----
-62
-68
-97

query I rowsort
SELECT col1 - - col0 + - + col0 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - ( - + 93 ) + - 44 AS col1 FROM tab0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL CAST( NULL AS SIGNED ) * - 57 + + - 22 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL CAST ( NULL AS INTEGER ) * - 57 + + - 22 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT MAX( + col1 ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-8442
SELECT MAX ( + col1 ) AS col0 FROM tab2 cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT ALL CAST( - MIN( ( ( 5 ) ) ) AS SIGNED ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL CAST ( - MIN ( ( ( 5 ) ) ) AS INTEGER ) FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT COUNT( DISTINCT - + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8444
SELECT COUNT ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT + MIN( - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8445
SELECT + MIN ( - col1 ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + 73 * - + 79 * - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
265282
369088
432525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8447
SELECT - CAST( NULL AS SIGNED ) / MAX( + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT - CAST ( NULL AS INTEGER ) / MAX ( + col2 ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + col2 * - col0, + 28 + - - 97 FROM tab0 cor0 WHERE NOT ( ( ( - + col0 ) ) / + 93 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT - MIN( DISTINCT - ( 46 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8449
SELECT - MIN ( DISTINCT - ( 46 ) ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT + 1 * 54 + col0 + + col0 FROM tab0 AS cor0
----
228
248
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + col2 AND NULL
----
51
14
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 59 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( 63 ) AS col0 FROM tab0 AS cor0
----
63
63
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 97 + col1 + 14 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT DISTINCT CAST( + + col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT + 75 FROM tab2, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + 76 col2 FROM tab0
----
6308
6308
6308

query II rowsort
SELECT + col1 AS col1, - col1 AS col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT col0 + + 38 * - 1 FROM tab0
----
-23
49
59

query II rowsort
SELECT ALL + col1 AS col2, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8461
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8461
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8462
SELECT DISTINCT ( + + CAST( + col2 AS SIGNED ) ), - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-8462
SELECT DISTINCT ( + + CAST ( + col2 AS INTEGER ) ), - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL 17 * + - col0 AS col1 FROM tab0 AS cor0
----
-1479
-1649
-255

query I rowsort
SELECT + ( + 99 ) AS col1 FROM tab1
----
99
99
99

query I rowsort
SELECT + ( - - col2 ) FROM tab2
----
23
40
58

query I rowsort
SELECT ALL 47 * col1 + + col2 AS col1 FROM tab0
----
146
3854
997

query I rowsort
SELECT DISTINCT + 49 * + col0 + 10 AS col0 FROM tab2 cor0
----
2264
3146
3685

query I rowsort
SELECT ALL - col1 * + 64 AS col1 FROM tab1 AS cor0
----
-3008
-320
-896

query I rowsort
SELECT ALL + 5 - + 73 AS col1 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT col1 - + - 87 - - + 5 FROM tab2 AS cor0
----
143
159
169

query I rowsort
SELECT + col0 * col2 FROM tab0 cor0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT ALL + + col1 * - + col1 + - col1 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8473
SELECT ALL col0 AS col2, + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8473
SELECT ALL col0 AS col2, + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT col0 * col2 + - col2 FROM tab1 WHERE + col0 NOT IN ( + col1, col2 )
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT ( + + col0 ) DIV 49 * col1 * - - col1 + 84 AS col2 FROM tab0
----
525
84
85

skipif mysql # not compatible
query I rowsort label-8475
SELECT ( + + col0 ) / 49 * col1 * - - col1 + 84 AS col2 FROM tab0
----
525
84
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8476
SELECT ALL - col2 * + ( - col1 ) * - - col1 * + - 78 AS col1, - CAST( + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) + - - col2 + - col0 + 56 * - - col0 * + - col0 AS col1 FROM tab0
----
-24052626
NULL
-343980
NULL
-7722
NULL

skipif mysql # not compatible
query II rowsort label-8476
SELECT ALL - col2 * + ( - col1 ) * - - col1 * + - 78 AS col1, - CAST ( + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - col2 + - col0 + 56 * - - col0 * + - col0 AS col1 FROM tab0
----
-24052626
NULL
-343980
NULL
-7722
NULL

query I rowsort
SELECT DISTINCT + col1 * + col0 * + col2 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT ALL - col2 * col0 + + 94 * + col1 FROM tab1 cor0
----
-1770
-3580
-4545

query I rowsort
SELECT + + 66 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN 39 * - + col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + COUNT( * ) + COUNT( DISTINCT - 30 ) FROM tab0 AS cor0 WHERE NOT + 21 + - 75 + - 10 * 68 NOT BETWEEN - col1 * 63 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT + COUNT ( * ) + COUNT ( DISTINCT - 30 ) FROM tab0 AS cor0 WHERE NOT + 21 + - 75 + - 10 * 68 NOT BETWEEN - col1 * 63 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL COUNT( + + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL COUNT ( + + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 94 * + + col1 + - - 73 AS col0 FROM tab2 AS cor0
----
4867
6371
7311

query I rowsort
SELECT - + 22 + + + 34 + col2 FROM tab2 AS cor0
----
35
52
70

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT DISTINCT + - 98 DIV + col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + - 98 / + col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT ALL + 42 AS col1, 94 + col0 * col1 FROM tab1 AS cor0
----
42
4371
42
519
42
808

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + - col0 * - col1 - - 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - - 2 FROM tab2
----
-21
-38
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT DISTINCT ( + COUNT( * ) ) AS col0, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-8490
SELECT DISTINCT ( + COUNT ( * ) ) AS col0, - COUNT ( * ) FROM tab1
----
3
-3

query I rowsort
SELECT ALL ( ( - col1 ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT DISTINCT - col1 * + col1 + - + col1 * - + CAST( - 50 AS SIGNED ) FROM tab0
----
-10611
-1491
-51

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT - col1 * + col1 + - + col1 * - + CAST ( - 50 AS INTEGER ) FROM tab0
----
-10611
-1491
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - col0 + + col1 / + - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT + + col0 * col1 DIV col0 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8494
SELECT + + col0 * col1 / col0 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + - 23 AS col0 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - 20 + - col1 + - + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - 20 + - col1 + - + 84 )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 30 ) + - col1 * + + col1 - - 24 + + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + ( col0 ) - + col0 * + - 49 AS col0 FROM tab1 AS cor0
----
2454
4191
4482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8499
SELECT col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 26 AND col2
----

skipif mysql # not compatible
query I rowsort label-8499
SELECT col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 26 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + COUNT( DISTINCT + + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8500
SELECT + COUNT ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col1 - 4 FROM tab2 AS cor0
----
-55
-71
-81

query II rowsort
SELECT ALL 75, col0 AS col2 FROM tab1 AS cor0
----
75
51
75
85
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 32
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - COUNT( * ) * - 81 AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-8504
SELECT - COUNT ( * ) * - 81 AS col1 FROM tab0 AS cor0
----
243

query II rowsort
SELECT col0, + 40 AS col0 FROM tab1 AS cor0
----
51
40
85
40
91
40

query II rowsort
SELECT ALL - 88, col2 FROM tab0 AS cor0
----
-88
10
-88
47
-88
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 41 AND NULL
----

query I rowsort
SELECT - col2 * - - ( col1 ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) + 72 FROM tab1, tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) + 72 FROM tab1, tab2 cor0
----
90

query I rowsort
SELECT ALL col0 * ( col0 ) AS col0 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT DISTINCT + SUM( ALL + + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT + SUM ( ALL + + col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL - 57 * - + COUNT( * ) * + 97 FROM tab0
----
16587

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - 57 * - + COUNT ( * ) * + 97 FROM tab0
----
16587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8513
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT + MIN( - - 16 ) * - 30 AS col0 FROM tab1
----
-480

skipif mysql # not compatible
query I rowsort label-8514
SELECT + MIN ( - - 16 ) * - 30 AS col0 FROM tab1
----
-480

query II rowsort
SELECT ALL col1 * 50 AS col1, - col1 * + 26 FROM tab1
----
2350
-1222
250
-130
700
-364

query I rowsort
SELECT col1 * 18 AS col2 FROM tab0
----
1458
18
378

query II rowsort
SELECT DISTINCT col0 + + col0 + 43 AS col1, col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 36 * col1 FROM tab1 AS cor0
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT + 67 * COUNT( * ) + - + MAX( DISTINCT + + 42 ) + + + COUNT( * ) * - - 43 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + 67 * COUNT ( * ) + - + MAX ( DISTINCT + + 42 ) + + + COUNT ( * ) * - - 43 FROM tab1 AS cor0
----
288

query I rowsort
SELECT + col2 + 26 FROM tab2
----
49
66
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT DISTINCT - COUNT( * ) + 7 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - COUNT ( * ) + 7 FROM tab2
----
4

query I rowsort
SELECT - col1 + + 47 FROM tab0
----
-34
26
46

query I rowsort
SELECT ALL - ( 20 ) FROM tab0
----
-20
-20
-20

query II rowsort
SELECT DISTINCT + - col2 AS col0, col1 * col0 FROM tab2 AS cor0
----
-23
2346
-40
4928
-58
5025

query I rowsort
SELECT DISTINCT + + 11 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
11

query I rowsort
SELECT + + col2 + col0 AS col1 FROM tab2 cor0 WHERE + 73 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col1 FROM tab0 cor0
----
27

query I rowsort
SELECT + 23 * - - col2 AS col1 FROM tab0 cor0
----
1081
2277
230

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 26 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + + col0 col0 FROM tab0 AS cor0
----
-123
-2
-3792

query I rowsort
SELECT - col1 * + + col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8532
SELECT * FROM tab1 WHERE NOT + col2 > - + CAST( NULL AS SIGNED ) + + 49
----

skipif mysql # not compatible
query III rowsort label-8532
SELECT * FROM tab1 WHERE NOT + col2 > - + CAST ( NULL AS INTEGER ) + + 49
----

query I rowsort
SELECT - ( + col0 ) * col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT + ( - - 92 ) AS col2 FROM tab0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8535
SELECT ALL + col0 FROM tab1 WHERE NOT - + col1 * + col0 * + + CAST( - - 61 AS DECIMAL ) * - col1 / 10 - - col1 + + CAST( + - 0 AS SIGNED ) - + 0 + 63 * + 8 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + col0 FROM tab1 WHERE NOT - + col1 * + col0 * + + CAST ( - - 61 AS REAL ) * - col1 / 10 - - col1 + + CAST ( + - 0 AS INTEGER ) - + 0 + 63 * + 8 IS NOT NULL
----

query I rowsort
SELECT - 49 * + ( - 58 ) AS col2 FROM tab1
----
2842
2842
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT - - COUNT( * ) FROM tab0 WHERE NOT + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT + - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + + 58 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, - col1 + + 87 FROM tab1
----
59
82
68
40
96
73

query I rowsort
SELECT ALL + 22 * + + col1 * + + 7 * - 61 FROM tab0
----
-197274
-760914
-9394

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + ( + MIN( DISTINCT + col1 ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8544
SELECT + ( + MIN ( DISTINCT + col1 ) ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - 98 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) * - 85 FROM tab2
----
765

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) * - 85 FROM tab2
----
765

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT DISTINCT 34 + + + col1 DIV - col2 FROM tab2
----
32
33

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT 34 + + + col1 / - col2 FROM tab2
----
32
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT 15 + - COUNT( + col1 ) col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8549
SELECT 15 + - COUNT ( + col1 ) col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT - 62 * col0 FROM tab0 AS cor0
----
-5394
-6014
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT - - ( COUNT( DISTINCT - col1 ) ) + + 27 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8551
SELECT - - ( COUNT ( DISTINCT - col1 ) ) + + 27 FROM tab2 AS cor0
----
30

query I rowsort
SELECT - - col1 + - 39 AS col0 FROM tab1 AS cor0
----
-25
-34
8

query I rowsort
SELECT ALL + col2 + + 67 FROM tab2 cor0
----
107
125
90

query II rowsort
SELECT ALL + col0 / + col1 - - - col2, - 16 FROM tab2 WHERE NULL NOT BETWEEN + + col1 AND + 1 * + col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 / + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 26 + + col2 AS col2 FROM tab2
----
49
66
84

query I rowsort
SELECT + - col2 - + - ( ( - + col1 ) ) FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT DISTINCT - MAX( + - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT - MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT + COUNT( * ) * + MIN( + + ( 13 ) ) - + MAX( DISTINCT 3 ) AS col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8559
SELECT + COUNT ( * ) * + MIN ( + + ( 13 ) ) - + MAX ( DISTINCT 3 ) AS col2 FROM tab0 AS cor0
----
36

query II rowsort
SELECT - col1 - + 3 * + 86 AS col0, col0 FROM tab1 AS cor0
----
-263
85
-272
51
-305
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT DISTINCT - - 1 * CAST( - col2 AS SIGNED ) * - 93 + + + 44 + - + col2 FROM tab1 AS cor0
----
5472
6300
8876

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT - - 1 * CAST ( - col2 AS INTEGER ) * - 93 + + + 44 + - + col2 FROM tab1 AS cor0
----
5472
6300
8876

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 83 * - col1 / col1 / + 85 + col0 <= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + - - col1 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab1
----
-13
-13
-13

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IN ( - 23 )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8567
SELECT col0 AS col0, + 57 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <= - col1 * + col2
----

skipif mysql # not compatible
query II rowsort label-8567
SELECT col0 AS col0, + 57 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <= - col1 * + col2
----

query II rowsort
SELECT ALL + col1, - 48 FROM tab1 AS cor0
----
14
-48
47
-48
5
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + MIN( ALL 6 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + MIN ( ALL 6 ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col0 NOT IN ( col2, col1, + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT - COUNT( * ) * 4 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8571
SELECT - COUNT ( * ) * 4 FROM tab2
----
-12

query I rowsort
SELECT - - 46 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8573
SELECT + 46 DIV - 81 + - COUNT( * ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8573
SELECT + 46 / - 81 + - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 <= - + 94
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8575
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( col2 AS DECIMAL ) - - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8575
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( col2 AS REAL ) - - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8576
SELECT + CAST( NULL AS DECIMAL ) + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <= + col2 + + - 43 + + - col0
----

skipif mysql # not compatible
query I rowsort label-8576
SELECT + CAST ( NULL AS REAL ) + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <= + col2 + + - 43 + + - col0
----

query II rowsort
SELECT 87 + + + 5, + col2 FROM tab0 AS cor0
----
92
10
92
47
92
99

query I rowsort
SELECT ALL - 20 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query II rowsort
SELECT DISTINCT - + col1 AS col1, - 11 FROM tab1 AS cor0
----
-14
-11
-47
-11
-5
-11

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 12 col1 FROM tab0 cor0
----
-12
-12
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) <> - col2 / - col2 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + ( - + 71 ) * - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + ( - + 71 ) * - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
213

query I rowsort
SELECT + col2 + - 59 FROM tab2
----
-1
-19
-36

query I rowsort
SELECT - 18 + + - 78 AS col2 FROM tab0
----
-96
-96
-96

query I rowsort
SELECT col2 + 99 AS col1 FROM tab1
----
158
167
195

query I rowsort
SELECT ALL - col2 + + - col2 AS col0 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 - - col0 + 41 + - 51 AS col0 FROM tab1
----
160
172
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT + 2 + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8590
SELECT + 2 + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT - 28 + - ( + MIN( DISTINCT + - col1 ) ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - 28 + - ( + MIN ( DISTINCT + - col1 ) ) FROM tab1
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8592
SELECT - CAST( NULL AS DECIMAL ) * col2 + ( - col2 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8592
SELECT - CAST ( NULL AS REAL ) * col2 + ( - col2 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 30 * + - col2 col0 FROM tab0 cor0
----
-1410
-2970
-300

query I rowsort
SELECT ALL + col1 + + + 44 FROM tab1 AS cor0
----
49
58
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT - + COUNT( - 10 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT - + COUNT ( - 10 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE ( + 43 ) IS NULL
----

query I rowsort
SELECT - 59 * + col2 * - 33 AS col1 FROM tab1 cor0
----
114873
132396
186912

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + + 68 * + COUNT( DISTINCT + 83 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8598
SELECT + + 68 * + COUNT ( DISTINCT + 83 ) FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT ALL MIN( ALL - col1 ) AS col0, - 40 col2 FROM tab2
----
-77
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8599
SELECT ALL MIN ( ALL - col1 ) AS col0, - 40 col2 FROM tab2
----
-77
-40

query II rowsort
SELECT - 27 AS col1, 63 AS col0 FROM tab2
----
-27
63
-27
63
-27
63

query II rowsort
SELECT ALL - 67, - 46 AS col1 FROM tab1
----
-67
-46
-67
-46
-67
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT 40 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT 40 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 54 NOT BETWEEN NULL AND + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT + + MIN( ALL - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + + MIN ( ALL - col0 ) FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT - + MAX( - + 95 ) + 67 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT - + MAX ( - + 95 ) + 67 FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT - + MIN( - + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8606
SELECT - + MIN ( - + col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL ( - 45 ) FROM tab2
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL + COUNT( DISTINCT + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + COUNT ( DISTINCT + col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8609
SELECT DISTINCT + col2 * + col1 + col0 * - 1 * CAST( + 20 AS SIGNED ) + + + col1 AS col0, + 94 FROM tab1 AS cor0
----
-1400
94
1423
94
338
94

skipif mysql # not compatible
query II rowsort label-8609
SELECT DISTINCT + col2 * + col1 + col0 * - 1 * CAST ( + 20 AS INTEGER ) + + + col1 AS col0, + 94 FROM tab1 AS cor0
----
-1400
94
1423
94
338
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT + col0 + - col1 DIV - col2 AS col1 FROM tab2 cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-8610
SELECT + col0 + - col1 / - col2 AS col1 FROM tab2 cor0
----
48
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 87 * + 94 col0 FROM tab1 AS cor0
----
8178
8178
8178

query I rowsort
SELECT - + col2 + - - 12 + + + col1 * - col2 FROM tab1 AS cor0
----
-1428
-3252
-342

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8614
SELECT MIN( DISTINCT + col1 ), 89 AS col1 FROM tab1 AS cor0
----
5
89

skipif mysql # not compatible
query II rowsort label-8614
SELECT MIN ( DISTINCT + col1 ), 89 AS col1 FROM tab1 AS cor0
----
5
89

query I rowsort
SELECT DISTINCT 0 * + + col1 AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 = col0 + + col2
----

query I rowsort
SELECT ALL 47 + col1 AS col2 FROM tab1
----
52
61
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8618
SELECT ALL * FROM tab1 WHERE ( col0 * CAST( NULL AS SIGNED ) * + - col1 - + 79 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8618
SELECT ALL * FROM tab1 WHERE ( col0 * CAST ( NULL AS INTEGER ) * + - col1 - + 79 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 - 42 FROM tab0 AS cor0
----
-141
-52
-89

query I rowsort
SELECT + 0 * ( + 17 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 19 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT ALL + COUNT( DISTINCT - 54 ) * + 55 * + - COUNT( * ) AS col1, - 23 FROM tab2
----
-165
-23

skipif mysql # not compatible
query II rowsort label-8622
SELECT ALL + COUNT ( DISTINCT - 54 ) * + 55 * + - COUNT ( * ) AS col1, - 23 FROM tab2
----
-165
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT + CAST( - ( - 58 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-8623
SELECT + CAST ( - ( - 58 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT - - MAX( + + col1 ) AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
47
-3

skipif mysql # not compatible
query II rowsort label-8624
SELECT - - MAX ( + + col1 ) AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
47
-3

query I rowsort
SELECT DISTINCT + col2 - - + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + col0 * col0 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT + COUNT( + 86 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT + COUNT ( + 86 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT - MAX( ALL + 50 ) AS col0 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-8627
SELECT - MAX ( ALL + 50 ) AS col0 FROM tab1
----
-50

query I rowsort
SELECT 79 * 70 AS col1 FROM tab0
----
5530
5530
5530

query I rowsort
SELECT - ( + - 70 ) + + col0 AS col0 FROM tab2 WHERE NOT - 53 + + - col1 + col0 * + 60 BETWEEN - 32 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT ALL - + 97 DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL - + 97 / + col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 43 FROM tab1 AS cor0 WHERE ( ( NOT ( NOT NULL IS NULL ) ) )
----
43

query I rowsort
SELECT ALL - - 21 + + - col2 AS col0 FROM tab2 AS cor0
----
-19
-2
-37

query I rowsort
SELECT ALL + col1 + - 67 AS col2 FROM tab0
----
-46
-66
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + 60 col0 FROM tab1
----
59
60
68
60
96
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < 97
----
0

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT + - 86 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8636
SELECT + - 86 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
258

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - - col0 * + ( + col1 ) + col1 + - 59 + - col1 + + 28 IN ( + col0 * 78, col1, + 20 + col2 ) AND NULL IS NOT NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE 65 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8639
SELECT DISTINCT MAX( - col2 ), - CAST( - 98 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
98

skipif mysql # not compatible
query II rowsort label-8639
SELECT DISTINCT MAX ( - col2 ), - CAST ( - 98 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
98

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 * col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8641
SELECT col0 + - - col2 DIV + CAST( - 11 AS SIGNED ) FROM tab0
----
11
87
88

skipif mysql # not compatible
query I rowsort label-8641
SELECT col0 + - - col2 / + CAST ( - 11 AS INTEGER ) FROM tab0
----
11
87
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8642
SELECT ALL - ( + - col1 ) + - col0 + CAST( NULL AS DECIMAL ) * 69 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - ( + - col1 ) + - col0 + CAST ( NULL AS REAL ) * 69 * + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL COUNT( * ) * SUM( ALL + + col1 ) - + ( + ( + + 53 ) ) AS col1 FROM tab1
----
145

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL COUNT ( * ) * SUM ( ALL + + col1 ) - + ( + ( + + 53 ) ) AS col1 FROM tab1
----
145

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT MAX( DISTINCT + + 89 ) + 69 * - 11 AS col1 FROM tab1
----
-670

skipif mysql # not compatible
query I rowsort label-8645
SELECT MAX ( DISTINCT + + 89 ) + 69 * - 11 AS col1 FROM tab1
----
-670

query I rowsort
SELECT ALL + 8 * - - col0 - - 75 + - - 22 * + + 21 AS col2 FROM tab1
----
1217
1265
945

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 12 BETWEEN - + 59 - col2 + + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL + 49 + + COUNT( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + 49 + + COUNT ( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT - MAX( ALL + 27 ) AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - MAX ( ALL + 27 ) AS col2 FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8650
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8651
SELECT - 56 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8651
SELECT - 56 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT + SUM( ALL + col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + SUM ( ALL + col2 ) FROM tab0 cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + - col0 + - - col1 col0 FROM tab1 AS cor0
----
-16
-52
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8654
SELECT ALL col0 DIV + col1 FROM tab2 cor0 WHERE ( col2 * CAST( NULL AS SIGNED ) * + + CAST( + col1 AS SIGNED ) ) IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL col0 / + col1 FROM tab2 cor0 WHERE ( col2 * CAST ( NULL AS INTEGER ) * + + CAST ( + col1 AS INTEGER ) ) IS NULL
----
0
0
1

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8656
SELECT ALL - 63 AS col1, + col2 + ( CAST( NULL AS SIGNED ) ) + - col1 + - 57 FROM tab2 AS cor0
----
-63
NULL
-63
NULL
-63
NULL

skipif mysql # not compatible
query II rowsort label-8656
SELECT ALL - 63 AS col1, + col2 + ( CAST ( NULL AS INTEGER ) ) + - col1 + - 57 FROM tab2 AS cor0
----
-63
NULL
-63
NULL
-63
NULL

query I rowsort
SELECT ALL 34 * + 39 AS col0 FROM tab1 AS cor0
----
1326
1326
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT SUM( DISTINCT col0 ) + - 91 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-8658
SELECT SUM ( DISTINCT col0 ) + - 91 FROM tab0
----
108

query I rowsort
SELECT DISTINCT 48 + + col1 * - col1 + + ( - 15 ) FROM tab1
----
-163
-2176
8

query II rowsort
SELECT 51 * + col1 AS col2, col0 FROM tab0
----
1071
87
4131
15
51
97

query II rowsort
SELECT + col1 + - + col1 AS col0, - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8662
SELECT DISTINCT col0 DIV col1 AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT col0 / col1 AS col0 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL + MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL + MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL col1 + + col2 + - col2 - + 59 + - col2 + + col2 FROM tab2
----
-8
18
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8665
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + CAST ( NULL AS REAL ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT + 79 + - - ( COUNT( * ) ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8666
SELECT DISTINCT + 79 + - - ( COUNT ( * ) ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
88

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT - 68 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - COUNT( * ) * + - 18 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8669
SELECT - COUNT ( * ) * + - 18 FROM tab0 AS cor0
----
54

query I rowsort
SELECT + 11 * + col1 AS col1 FROM tab1 AS cor0
----
154
517
55

query I rowsort
SELECT col0 * + col0 * + col1 AS col2 FROM tab2 AS cor0
----
107916
315392
376875

query II rowsort
SELECT - 0 AS col2, col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

query I rowsort
SELECT + ( - - 10 ) FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT - col0 + 1 AS col2 FROM tab0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT 67 + col0 AS col1 FROM tab0
----
154
164
82

query II rowsort
SELECT DISTINCT + col1, + col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT ALL CAST( + - 76 AS SIGNED ) AS col2 FROM tab1
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL CAST ( + - 76 AS INTEGER ) AS col2 FROM tab1
----
-76
-76
-76

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / + col1 BETWEEN - col2 + - col2 * + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / 70 + - col0 - + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT ALL - ( + + col1 ) * col0 DIV - + 23 AS col1 FROM tab0
----
4
52
79

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - ( + + col1 ) * col0 / - + 23 AS col1 FROM tab0
----
4
52
79

query I rowsort
SELECT + 82 AS col1 FROM tab0 cor0
----
82
82
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 4 + + col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL = - col0 )
----

query I rowsort
SELECT - - col0 * ( - 1 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 75 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8686
SELECT ( COUNT( * ) ) DIV + - SUM( - col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT ( COUNT ( * ) ) / + - SUM ( - col2 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + ( - ( 2 ) ) AS col1 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL + COUNT( - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + COUNT ( - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT DISTINCT - - 33, MIN( col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
33
46

skipif mysql # not compatible
query II rowsort label-8689
SELECT DISTINCT - - 33, MIN ( col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
33
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT + COUNT( * ) * - 64 AS col1 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + COUNT ( * ) * - 64 AS col1 FROM tab1
----
-192

query I rowsort
SELECT ALL 11 + 9 FROM tab2
----
20
20
20

query III rowsort
SELECT * FROM tab2 WHERE 87 * + + 4 + col1 * - col0 IS NULL
----

query I rowsort
SELECT ALL + col0 * + 14 * - col2 AS col1 FROM tab1
----
-68544
-70210
-86632

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - 90 + ( COUNT( * ) ) * 95 AS col2 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - 90 + ( COUNT ( * ) ) * 95 AS col2 FROM tab1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT ALL CAST( NULL AS SIGNED ) + + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL CAST ( NULL AS INTEGER ) + + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT 31 + + + COUNT( ALL + col2 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT 31 + + + COUNT ( ALL + col2 ) FROM tab0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT col2 + + col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT col2 + + col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 42 + - col1 = - 45
----

query III rowsort
SELECT * FROM tab0 WHERE - 63 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 49 NOT BETWEEN ( - ( 52 ) ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT MIN( DISTINCT 30 ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8701
SELECT MIN ( DISTINCT 30 ) AS col0 FROM tab0
----
30

query I rowsort
SELECT col2 + 57 AS col2 FROM tab1
----
116
125
153

query I rowsort
SELECT - col1 + 25 FROM tab0
----
-56
24
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT + MIN( col0 ) + + 67 AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8704
SELECT + MIN ( col0 ) + + 67 AS col1 FROM tab0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 WHERE NOT 5 BETWEEN NULL AND + col0 + - 96 / - col0
----

query I rowsort
SELECT DISTINCT - 66 + col2 AS col2 FROM tab1
----
-7
2
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT - 83 DIV 47 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8707
SELECT - 83 / 47 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8708
SELECT + 39 DIV - col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8708
SELECT + 39 / - col2 FROM tab0
----
-3
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + AVG ( - col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + AVG ( - col0 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + ( col0 ) + + col2 * - col2 FROM tab0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8711
SELECT DISTINCT - MAX( DISTINCT col2 ) DIV + MAX( ALL + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT - MAX ( DISTINCT col2 ) / + MAX ( ALL + col1 ) FROM tab2
----
0

query I rowsort
SELECT ALL 23 / col0 FROM tab1 WHERE NULL > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col1 FROM tab1 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + 63 * COUNT( * ) AS col0 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-8714
SELECT + 63 * COUNT ( * ) AS col0 FROM tab1
----
189

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT ( - 59 ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 78 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT SUM( - 15 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT SUM ( - 15 ) FROM tab1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8719
SELECT * FROM tab2 WHERE NOT col1 + + CAST( NULL AS SIGNED ) < ( col2 / + col2 )
----

skipif mysql # not compatible
query III rowsort label-8719
SELECT * FROM tab2 WHERE NOT col1 + + CAST ( NULL AS INTEGER ) < ( col2 / + col2 )
----

query I rowsort
SELECT ALL - 43 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-43
-43
-43

query I rowsort
SELECT ALL 87 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 43 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8723
SELECT ALL * FROM tab2 WHERE NOT 90 >= + col2 * col0 + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8723
SELECT ALL * FROM tab2 WHERE NOT 90 >= + col2 * col0 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT - 22 - - ( ( COUNT( * ) ) ) AS col1 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-8724
SELECT - 22 - - ( ( COUNT ( * ) ) ) AS col1 FROM tab0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT - 22 = 56 + 60
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 AS cor0 WHERE + col1 = NULL
----

query I rowsort
SELECT ALL - 68 AS col0 FROM tab1 cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-8728
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8729
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8729
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col1 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) < - 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT - + 83 DIV col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8731
SELECT - + 83 / col0 FROM tab0 AS cor0
----
-5
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( col0 ) + 40 * + 36 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8734
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( CAST( 9 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8734
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( CAST ( 9 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT COUNT( * ) + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE + col0 + col1 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT COUNT ( * ) + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE + col0 + col1 IS NOT NULL
----
6

query I rowsort
SELECT + + 28 + + col2 * - col1 FROM tab0 AS cor0
----
-182
-3779
-71

query I rowsort
SELECT ALL col0 * 64 AS col1 FROM tab0 cor0
----
5568
6208
960

query I rowsort
SELECT - col2 + col2 * + 50 FROM tab1 cor0
----
2891
3332
4704

query I rowsort
SELECT ALL + 89 * - 6 FROM tab0 AS cor0
----
-534
-534
-534

query I rowsort
SELECT ALL 54 * + col2 AS col1 FROM tab2 AS cor0
----
1242
2160
3132

query I rowsort
SELECT - col2 + 51 FROM tab0 AS cor0
----
-48
4
41

query I rowsort
SELECT - col1 * + col1 + - 66 FROM tab2 AS cor0
----
-2667
-4555
-5995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT ALL 41 + COUNT( * ) DIV COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL 41 + COUNT ( * ) / COUNT ( * ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT - MAX( - col2 ) + MIN( DISTINCT - 23 ) AS col2 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - MAX ( - col2 ) + MIN ( DISTINCT - 23 ) AS col2 FROM tab0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 58 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 58 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 * + - col0 * col2 + + col1 * + ( 73 ) AS col1 FROM tab1
----
-248674
-425910
-559677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT DISTINCT - CAST( - - 4 AS SIGNED ) + + 54 AS col0 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - CAST ( - - 4 AS INTEGER ) + + 54 AS col0 FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT - 75 * - - MAX( - col1 ) FROM tab2
----
3825

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - 75 * - - MAX ( - col1 ) FROM tab2
----
3825

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IN ( 97 * 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT - 20 DIV 52 + + col2 col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8750
SELECT - 20 / 52 + + col2 col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL MAX( 64 ) * 60 AS col0 FROM tab1 AS cor0
----
3840

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL MAX ( 64 ) * 60 AS col0 FROM tab1 AS cor0
----
3840

query I rowsort
SELECT - col1 - + 66 FROM tab1 AS cor0
----
-113
-71
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT SUM( + + col0 ) - COUNT( * ) AS col2 FROM tab0 cor0
----
196

skipif mysql # not compatible
query I rowsort label-8753
SELECT SUM ( + + col0 ) - COUNT ( * ) AS col2 FROM tab0 cor0
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8754
SELECT - COUNT( * ) + - MIN( ALL CAST( col0 AS SIGNED ) ) DIV 93 col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8754
SELECT - COUNT ( * ) + - MIN ( ALL CAST ( col0 AS INTEGER ) ) / 93 col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT + col2 + + - 94 FROM tab2 AS cor0
----
-36
-54
-71

query I rowsort
SELECT DISTINCT + + ( - - col1 ) * 57 AS col1 FROM tab0 AS cor0
----
1197
4617
57

query I rowsort
SELECT 38 + - 12 + + - ( + 59 ) FROM tab2
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT CAST( NULL AS SIGNED ) * + 79 + + 52 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT CAST ( NULL AS INTEGER ) * + 79 + + 52 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 49 < ( + col2 )
----
97
1
99

query I rowsort
SELECT ALL - ( + ( + col0 ) ) - col1 * - col0 FROM tab0 AS cor0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - + MAX( ALL - + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8762
SELECT - + MAX ( ALL - + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT + ( COUNT( * ) ) + - 28 * - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE 31 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT + ( COUNT ( * ) ) + - 28 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE 31 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - + MAX( - - col0 ) * + 59 FROM tab1 AS cor0
----
-5369

skipif mysql # not compatible
query I rowsort label-8764
SELECT - + MAX ( - - col0 ) * + 59 FROM tab1 AS cor0
----
-5369

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8765
SELECT - COUNT( * ) AS col2, 99 DIV - 89 FROM tab0 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-8765
SELECT - COUNT ( * ) AS col2, 99 / - 89 FROM tab0 AS cor0
----
-3
-1

query I rowsort
SELECT 65 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN col1 AND col1
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8767
SELECT * FROM tab2 AS cor0 WHERE NOT - 46 + - + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8767
SELECT * FROM tab2 AS cor0 WHERE NOT - 46 + - + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL - col0 * + ( - ( + 44 ) ) FROM tab1 AS cor0
----
2244
3740
4004

query I rowsort
SELECT + col2 + col2 FROM tab0 AS cor0 WHERE NOT + col1 + + 49 / - 55 IS NOT NULL
----

query I rowsort
SELECT - col1 + + ( + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - col2 < ( 8 * + col0 )
----

query I rowsort
SELECT DISTINCT 66 * col0 FROM tab0 cor0
----
5742
6402
990

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 83 < NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8775
SELECT col2 + + col1 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-8775
SELECT col2 + + col1 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8776
SELECT - 99 DIV + COUNT( * ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-8776
SELECT - 99 / + COUNT ( * ) FROM tab0
----
-33

query I rowsort
SELECT + ( 42 ) FROM tab0
----
42
42
42

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL < + col2 * + + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + ( + - COUNT( ALL - col2 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8780
SELECT + ( + - COUNT ( ALL - col2 ) ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8781
SELECT + col1 DIV col2 FROM tab2 cor0 WHERE NOT ( col2 ) BETWEEN 31 AND - - ( 56 ) + 62 * - col0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8781
SELECT + col1 / col2 FROM tab2 cor0 WHERE NOT ( col2 ) BETWEEN 31 AND - - ( 56 ) + 62 * - col0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT + COUNT( + - col0 ) * 70 AS col1 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT + COUNT ( + - col0 ) * 70 AS col1 FROM tab2 AS cor0
----
210

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col0 + - + col2 * col2 * - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - ( - 65 ) ) * + col1 BETWEEN col0 * col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8785
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 NOT IN ( ( + CAST( - ( + col2 ) AS SIGNED ) ) * + 58 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8785
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 NOT IN ( ( + CAST ( - ( + col2 ) AS INTEGER ) ) * + 58 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 32 + col0 + + ( - + col1 ) * col1 AS col0 FROM tab2
----
-2523
-4382
-5833

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IN ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT - + 36 AS col2, - 66 + COUNT( * ) + + 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-36
40

skipif mysql # not compatible
query II rowsort label-8788
SELECT - + 36 AS col2, - 66 + COUNT ( * ) + + 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-36
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT + - COUNT( * ) + 1 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8789
SELECT DISTINCT + - COUNT ( * ) + 1 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col2 FROM tab0 AS cor0
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8792
SELECT + - col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8792
SELECT + - col0 / col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 * - col1 * - 73 FROM tab0 AS cor0
----
-32193
-478953
-73

query I rowsort
SELECT + col2 + + col2 * col0 FROM tab1 cor0 WHERE NULL IN ( col0 + + col2 + - + 39 - - 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT + 79 * + + ( ( + COUNT( * ) ) ) + - + 99 AS col1 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT + 79 * + + ( ( + COUNT ( * ) ) ) + - + 99 AS col1 FROM tab2 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + - - col0 col2 FROM tab0
----
125
135
53

query I rowsort
SELECT col0 + - + col2 * + col0 FROM tab0
----
-690
-783
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 34 * col0 col1 FROM tab0
----
2979
3299
591

query I rowsort
SELECT ALL ( + 28 ) - - col1 * col1 - col1 AS col2 FROM tab1 AS cor0
----
210
2190
48

query I rowsort
SELECT + 17 FROM tab1 AS cor0 WHERE 41 + - col2 BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT ALL + + col1 DIV + 56 + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + + col1 / + 56 + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 83 * + col0 FROM tab0 cor0
----
1245
7221
8051

query II rowsort
SELECT + - col2 AS col1, + col0 * col0 AS col2 FROM tab1 AS cor0
----
-59
7225
-68
8281
-96
2601

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8804
SELECT col0 - - 10 AS col0, - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
56
NULL
74
NULL
85
NULL

skipif mysql # not compatible
query II rowsort label-8804
SELECT col0 - - 10 AS col0, - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
56
NULL
74
NULL
85
NULL

query II rowsort
SELECT + 85 - - col1, - ( - 38 ) AS col2 FROM tab1
----
132
38
90
38
99
38

onlyif mysql # DIV for integer division: 
query II rowsort label-8806
SELECT DISTINCT + + col0 * - col1, - col1 DIV + + col1 AS col1 FROM tab1 AS cor0
----
-425
-1
-4277
-1
-714
-1

skipif mysql # not compatible
query II rowsort label-8806
SELECT DISTINCT + + col0 * - col1, - col1 / + + col1 AS col1 FROM tab1 AS cor0
----
-425
-1
-4277
-1
-714
-1

query I rowsort
SELECT ALL - 21 AS col0 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT - - 24 * - SUM( ALL + col1 ) AS col1, 21 FROM tab2 AS cor0
----
-4680
21

skipif mysql # not compatible
query II rowsort label-8808
SELECT - - 24 * - SUM ( ALL + col1 ) AS col1, 21 FROM tab2 AS cor0
----
-4680
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col0 FROM tab1 AS cor0 WHERE 21 + col1 + col0 IS NOT NULL
----
196
2209
25

query I rowsort
SELECT ALL - 8 * + + col1 FROM tab2
----
-408
-536
-616

onlyif mysql # DIV for integer division: 
query I rowsort label-8811
SELECT 4 DIV - col2 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8811
SELECT 4 / - col2 col0 FROM tab0
----
0
0
0

query II rowsort
SELECT col0, 8 + col2 FROM tab2
----
46
31
64
48
75
66

query I rowsort
SELECT DISTINCT col1 * + col2 * + col0 AS col2 FROM tab1
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT 52 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8814
SELECT 52 / + - col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT ALL + col1 DIV + 20 + col2 + col0 AS col0 FROM tab2 AS cor0
----
107
136
71

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL + col1 / + 20 + col2 + col0 AS col0 FROM tab2 AS cor0
----
107
136
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT - MAX( + - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT - MAX ( + - col2 ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT ALL col2, - col0 * - + col0 AS col0 FROM tab1 AS cor0
----
59
7225
68
8281
96
2601

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 52 + 25
----

query I rowsort
SELECT 14 - - ( - col0 ) FROM tab2 AS cor0 WHERE NOT + col2 + 92 + col0 IS NULL
----
-32
-50
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 25, col2 col2 FROM tab1 AS cor0 WHERE NOT 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8821
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL + 72 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IN ( + col0 * - CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) - - col1 )
----

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IN ( + col0 * - CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT ALL - 89 DIV - - 80 + - - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - 89 / - - 80 + - - COUNT ( * ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT + col0 + + col0 * + + col2 * + col0 AS col1 FROM tab2 AS cor0
----
163904
326325
48714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8826
SELECT + COUNT( * ) + + 77 + - - 55 * 56 - + + 75 + + 44 DIV COUNT( * ) FROM tab1 AS cor0
----
3099

skipif mysql # not compatible
query I rowsort label-8826
SELECT + COUNT ( * ) + + 77 + - - 55 * 56 - + + 75 + + 44 / COUNT ( * ) FROM tab1 AS cor0
----
3099

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT + - COUNT( * ) + + COUNT( DISTINCT 40 ) * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8827
SELECT + - COUNT ( * ) + + COUNT ( DISTINCT 40 ) * + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 20 + + col2 FROM tab2 AS cor0
----
20
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT DISTINCT COUNT( DISTINCT + - 69 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT COUNT ( DISTINCT + - 69 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT DISTINCT - + col2 + + - ( + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT - + col2 + + - ( + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + col2 + - ( + col1 ) + - - col0 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
-19
15
195
97
76
87

query I rowsort
SELECT ALL - col2 * - col0 * col1 + - + col0 - - 92 AS col1 FROM tab2
----
197148
291467
54004

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL 61 + + MAX( DISTINCT - 61 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL 61 + + MAX ( DISTINCT - 61 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab1 WHERE + ( + 17 ) IS NOT NULL
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + - col1 + 78 col0 FROM tab0
----
174
176
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8836
SELECT DISTINCT - CAST( - - AVG ( DISTINCT - 24 ) AS SIGNED ) + - 57 + + - COUNT( * ) * - SUM( DISTINCT - col0 ) FROM tab0
----
-630

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT - CAST ( - - AVG ( DISTINCT - 24 ) AS INTEGER ) + - 57 + + - COUNT ( * ) * - SUM ( DISTINCT - col0 ) FROM tab0
----
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) - + 46 col0 FROM tab1 AS cor0
----
-131
-137
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT + col1 * + + col0 - + CAST( + col1 AS SIGNED ) + - ( - + ( - + 33 ) ) AS col1 FROM tab1 AS cor0
----
387
4197
667

skipif mysql # not compatible
query I rowsort label-8838
SELECT + col1 * + + col0 - + CAST ( + col1 AS INTEGER ) + - ( - + ( - + 33 ) ) AS col1 FROM tab1 AS cor0
----
387
4197
667

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < col1 * col2
----

query II rowsort
SELECT ALL + ( - 59 ) AS col1, - col1 AS col0 FROM tab1
----
-59
-14
-59
-47
-59
-5

query I rowsort
SELECT ALL 33 * 75 FROM tab2
----
2475
2475
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - ( - COUNT( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8842
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 / - col2 - - 61 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT + 46 AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-8846
SELECT + 46 AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
46
3

query II rowsort
SELECT + col1, - col1 * col2 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080

query II rowsort
SELECT + col2 AS col2, col1 * + 26 AS col0 FROM tab1 AS cor0
----
59
130
68
1222
96
364

query II rowsort
SELECT DISTINCT + + 17 AS col0, col0 AS col1 FROM tab0 AS cor0
----
17
15
17
87
17
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8850
SELECT col1 * + - col1 + + + ( + - 38 ) AS col0, CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-2639
NULL
-4527
NULL
-5967
NULL

skipif mysql # not compatible
query II rowsort label-8850
SELECT col1 * + - col1 + + + ( + - 38 ) AS col0, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-2639
NULL
-4527
NULL
-5967
NULL

query II rowsort
SELECT DISTINCT col1 / - col1 + + col0 AS col2, + col1 FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 35 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL ( + 66 ) * + - MAX( + - col1 ) + - + SUM( - col2 ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL ( + 66 ) * + - MAX ( + - col1 ) + - + SUM ( - col2 ) FROM tab0
----
222

query II rowsort
SELECT ALL 6 * col1 AS col2, - 92 FROM tab2
----
306
-92
402
-92
462
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT + COUNT( - col2 ) * ( - MAX( DISTINCT - 57 ) ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-8855
SELECT + COUNT ( - col2 ) * ( - MAX ( DISTINCT - 57 ) ) FROM tab2
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT ALL + col1 DIV + col1 + - - 84 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + col1 / + col1 + - - 84 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + 49 + + 31 * + 70 FROM tab0 AS cor0 WHERE NOT + 13 * + - 32 < - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT + MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT + MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 65 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL + SUM( DISTINCT 69 ) AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + SUM ( DISTINCT 69 ) AS col0 FROM tab1 AS cor0
----
69

query I rowsort
SELECT + 1 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1
1
1

query II rowsort
SELECT DISTINCT - col0 AS col0, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 27 col0 FROM tab1 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8865
SELECT + col2 + col1 * - col0 * + + col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-119623
NULL
-336617
NULL
-379416
NULL

skipif mysql # not compatible
query II rowsort label-8865
SELECT + col2 + col1 * - col0 * + + col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-119623
NULL
-336617
NULL
-379416
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL ( + COUNT( * ) ) + + - MAX( ALL - 93 ) AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL ( + COUNT ( * ) ) + + - MAX ( ALL - 93 ) AS col2 FROM tab2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT DISTINCT - 98 DIV 70 + ( - + col2 ) AS col1 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT - 98 / 70 + ( - + col2 ) AS col1 FROM tab1
----
-60
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + + COUNT( * ) + + 86 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
86

skipif mysql # not compatible
query I rowsort label-8868
SELECT + + COUNT ( * ) + + 86 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT 73 - - COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT 73 - - COUNT ( * ) FROM tab0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col0 - - col2 col0 FROM tab0
----
15
87
97

query II rowsort
SELECT DISTINCT + ( col0 ) + - + 25, col0 / - 37 * - col0 - 49 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 46 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 NOT BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT ALL 12 * col0 FROM tab1
----
1020
1092
612

query I rowsort
SELECT + 10 * - col1 FROM tab1 AS cor0
----
-140
-470
-50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT 75 * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT 75 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - 7 col2 FROM tab1 AS cor0
----
-413
-476
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - MIN( ALL + 8 ) FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8879
SELECT - MIN ( ALL + 8 ) FROM tab0 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL MAX( DISTINCT col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL MAX ( DISTINCT col0 ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT MAX( 88 ) AS col2, + ( - 57 ) AS col2 FROM tab2
----
88
-57

skipif mysql # not compatible
query II rowsort label-8881
SELECT MAX ( 88 ) AS col2, + ( - 57 ) AS col2 FROM tab2
----
88
-57

query I rowsort
SELECT DISTINCT - 12 * + - ( - + col2 ) FROM tab2
----
-276
-480
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col0 FROM tab1
----
60

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 NOT BETWEEN NULL AND + + col2 + - col2
----

query I rowsort
SELECT ALL 3 * + + 97 FROM tab0
----
291
291
291

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8887
SELECT * FROM tab2 WHERE NOT + col2 * + col2 * col1 / + + CAST( NULL AS SIGNED ) + + + col0 * - + col0 + col1 / + col1 * + col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8887
SELECT * FROM tab2 WHERE NOT + col2 * + col2 * col1 / + + CAST ( NULL AS INTEGER ) + + + col0 * - + col0 + col1 / + col1 * + col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT + + 48 DIV - + col0 - 53 FROM tab2 AS cor0
----
-53
-53
-54

skipif mysql # not compatible
query I rowsort label-8888
SELECT + + 48 / - + col0 - 53 FROM tab2 AS cor0
----
-53
-53
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * + col1, - col1 col2 FROM tab2 AS cor0
----
2601
-51
4489
-67
5929
-77

query II rowsort
SELECT 98, + 46 * - + 94 + ( + 57 ) AS col2 FROM tab2 AS cor0
----
98
-4267
98
-4267
98
-4267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8891
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 60 col1 FROM tab2 AS cor0
----
2760
3840
4500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * 20, + col2 * - col2 col2 FROM tab0 AS cor0
----
1620
-2209
20
-9801
420
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8894
SELECT DISTINCT + MAX( ALL col1 ) - COUNT( * ) DIV + + 87 AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + MAX ( ALL col1 ) - COUNT ( * ) / + + 87 AS col1 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 1 * + - 74 col1 FROM tab2 cor0
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8896
SELECT CAST( 61 AS SIGNED ) col0, + col1 AS col2 FROM tab2 AS cor0
----
61
51
61
67
61
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8896
SELECT CAST ( 61 AS INTEGER ) col0, + col1 AS col2 FROM tab2 AS cor0
----
61
51
61
67
61
77

query II rowsort
SELECT + col0 * + 87, + col2 FROM tab1 AS cor0
----
4437
96
7395
59
7917
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + COUNT( * ) FROM tab0 cor0 WHERE 34 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8898
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE 34 = NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + 0 IN ( 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT ( + + 79 ) * 0 + + + MAX( - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT ( + + 79 ) * 0 + + + MAX ( - col2 ) AS col0 FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 WHERE ( 93 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 82 + + 98 + - ( 57 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb

onlyif mysql # DIV for integer division: 
query II rowsort label-8903
SELECT ALL + 41 col2, 99 DIV + + col1 FROM tab1
----
41
19
41
2
41
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8903
SELECT ALL + 41 col2, 99 / + + col1 FROM tab1
----
41
19
41
2
41
7

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 26 - col0 col0 FROM tab0
----
-2349
-2619
-405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 col2 FROM tab2
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 56, + col1 col1 FROM tab2
----
56
51
56
67
56
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 90 * + + 95 col1 FROM tab0 cor0
----
8550
8550
8550

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + 53 * - col0 <= NULL
----

query II rowsort
SELECT - col0 AS col2, + 29 FROM tab0 AS cor0
----
-15
29
-87
29
-97
29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT - MAX( ALL col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8913
SELECT - MAX ( ALL col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT ALL + col1 + + CAST( col0 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE ( NOT ( - col0 IS NOT NULL ) )
----

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL + col1 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE ( NOT ( - col0 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT - MAX( DISTINCT - 9 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8915
SELECT - MAX ( DISTINCT - 9 ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8916
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 68 + + 98 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL SUM( ALL - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL SUM ( ALL - col2 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT DISTINCT 46 * col0 * + col1 + - col0 AS col0 FROM tab1 AS cor0
----
19465
196651
32793

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 53 ) * col1 + + + 44 col2 FROM tab0
----
1157
4337
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col2 FROM tab1
----
-3

query I rowsort
SELECT - col1 + + 96 FROM tab2 cor0
----
19
29
45

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
89

query I rowsort
SELECT col0 * + 59 AS col0 FROM tab2
----
2714
3776
4425

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= + 63
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 73 IN ( col2, - 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col2 * - col1 IN ( col1 / + + col0 * + + 44, col0, - 63, + 13 )
----
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 * - col1 IN ( col1 / + + col0 * + + 44, col0, - 63, + 13 )
----
0

query I rowsort
SELECT ALL 59 * - + col2 AS col2 FROM tab1 AS cor0
----
-3481
-4012
-5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 95 col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + + ( - col1 ) + - + col0 AS col0 FROM tab2 cor0
----
-141
-142
-97

query I rowsort
SELECT ALL 67 + + - col0 FROM tab0 cor0
----
-20
-30
52

query I rowsort
SELECT - 34 + + col0 FROM tab0 cor0
----
-19
53
63

query I rowsort
SELECT col0 + - 37 FROM tab1 AS cor0
----
14
48
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT ALL ( ( + + 33 ) ) DIV ( - col1 ) + - + col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL ( ( + + 33 ) ) / ( - col1 ) + - + col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8936
SELECT + 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-8936
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 > + 55 * - col0 * + 10 - - + col0 / col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 > 51
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8939
SELECT DISTINCT 90 DIV - SUM( ALL + 36 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT 90 / - SUM ( ALL + 36 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT DISTINCT + MIN( ALL - - 3 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8940
SELECT DISTINCT + MIN ( ALL - - 3 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ALL + 46 * + COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL + 46 * + COUNT ( * ) FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - 41 + + COUNT( * ) col0 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8944
SELECT - 41 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT ALL - + col1 DIV - - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL - + col1 / - - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT - col1 + - CAST( NULL AS SIGNED ) - + - ( + 99 ) + 36 - + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT - col1 + - CAST ( NULL AS INTEGER ) - + - ( + 99 ) + 36 - + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT DISTINCT - CAST( - 34 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT - CAST ( - 34 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
34

query I rowsort
SELECT - col2 + 90 FROM tab1 cor0
----
-6
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT + COUNT( * ) * - COUNT( + col0 ) + - - ( MIN( - - col0 ) ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT + COUNT ( * ) * - COUNT ( + col0 ) + - - ( MIN ( - - col0 ) ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8951
SELECT ALL - 34 DIV col1 + - + 78 AS col2 FROM tab2
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - 34 / col1 + - + 78 AS col2 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT + ( - - 48 ) FROM tab1
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) * 16 + + 38 FROM tab1
----
182

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) * 16 + + 38 FROM tab1
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT - - SUM( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8954
SELECT DISTINCT - - SUM ( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - COUNT( ALL - col1 ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8956
SELECT - COUNT ( ALL - col1 ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT + 70 * COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8958
SELECT + 70 * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
207

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col1 * 5 * - ( col0 ) FROM tab2 AS cor0
----
18711
20636
9129

query II rowsort
SELECT - 80 + + - col2 AS col1, - col0 AS col2 FROM tab0 cor0
----
-127
-15
-179
-97
-90
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT DISTINCT + + 48 * + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + + 48 * + CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5

query I rowsort
SELECT DISTINCT + col0 + - + 48 AS col2 FROM tab0
----
-33
39
49

query II rowsort
SELECT col0 AS col1, + col2 FROM tab1
----
51
96
85
59
91
68

query II rowsort
SELECT DISTINCT - + 92 * + 98 - - col0 - - col0 * 78, - col1 AS col1 FROM tab2 AS cor0
----
-3091
-67
-3960
-77
-5382
-51

query I rowsort
SELECT DISTINCT col1 - col2 - + - col0 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8967
SELECT - col1 AS col0, + ( + - 93 ) + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-94
-21
-114
-81
-174

skipif mysql # not compatible
query II rowsort label-8967
SELECT - col1 AS col0, + ( + - 93 ) + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-94
-21
-114
-81
-174

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 13 )
----

query I rowsort
SELECT ( + col2 ) * - + ( - col0 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT + - col1 DIV + - col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8970
SELECT + - col1 / + - col0 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT DISTINCT 34 FROM tab1 AS cor0 WHERE NULL IS NULL
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0 cor0 WHERE NOT ( - col1 ) * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN - col2 AND - col1 * col0 )
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT - - COUNT( * ) * + ( + 94 ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-8975
SELECT - - COUNT ( * ) * + ( + 94 ) FROM tab1 AS cor0
----
282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT - COUNT( + col0 ) * - ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT - COUNT ( + col0 ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8977
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL OR NULL NOT BETWEEN NULL AND + col0 * - CAST( NULL AS SIGNED ) * + 64
----

skipif mysql # not compatible
query III rowsort label-8977
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL OR NULL NOT BETWEEN NULL AND + col0 * - CAST ( NULL AS INTEGER ) * + 64
----

query I rowsort
SELECT ALL - 8 * col1 FROM tab0
----
-168
-648
-8

query I rowsort
SELECT - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT + - COUNT( * ) * 29 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8980
SELECT + - COUNT ( * ) * 29 FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT + COUNT( * ) AS col0, COUNT( * ) FROM tab0 cor0 WHERE NOT + 22 + col0 * + - col0 + - + col1 IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-8981
SELECT + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 cor0 WHERE NOT + 22 + col0 * + - col0 + - + col1 IS NULL
----
3
3

query I rowsort
SELECT + ( col2 ) * - col0 + col1 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT ALL col0 * + - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT ALL - 44 + + ( col2 ) FROM tab1 AS cor0
----
15
24
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 + + col1 col2 FROM tab1
----
102
135
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT ALL 20 DIV + 13 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL 20 / + 13 FROM tab1
----
1
1
1

query I rowsort
SELECT col0 + + 63 + - 47 AS col2 FROM tab1
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT DISTINCT - COUNT( * ) + + 20 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - COUNT ( * ) + + 20 FROM tab1
----
17

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 + - + col1 ) <> col2 * 52 * - + ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL AVG ( ALL + + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT DISTINCT - MIN( ALL - col1 ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT - MIN ( ALL - col1 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - MIN( col2 ) - + 81 + + 57 AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-8995
SELECT - MIN ( col2 ) - + 81 + + 57 AS col2 FROM tab2
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + - col1 col0 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8997
SELECT ALL col2 - - - CAST( NULL AS SIGNED ) AS col1, col2 * + + 96 FROM tab0 AS cor0
----
NULL
4512
NULL
9504
NULL
960

skipif mysql # not compatible
query II rowsort label-8997
SELECT ALL col2 - - - CAST ( NULL AS INTEGER ) AS col1, col2 * + + 96 FROM tab0 AS cor0
----
NULL
4512
NULL
9504
NULL
960

query II rowsort
SELECT 21 * + col1 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
1701
81
21
1
441
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT col2 * + + CAST( - col0 AS SIGNED ) col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8999
SELECT col2 * + + CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9000
SELECT + 92 DIV + + COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9000
SELECT + 92 / + + COUNT ( * ) FROM tab1
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9001
SELECT - 86 AS col0 FROM tab0 WHERE NOT NULL > - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9001
SELECT - 86 AS col0 FROM tab0 WHERE NOT NULL > - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT SUM( + col0 ) * - MIN( + col1 ) + COUNT( * ) FROM tab1
----
-1132

skipif mysql # not compatible
query I rowsort label-9002
SELECT SUM ( + col0 ) * - MIN ( + col1 ) + COUNT ( * ) FROM tab1
----
-1132

query I rowsort
SELECT col0 * + - col2 AS col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + 47 * + + col2 FROM tab0
----
2209
4653
470

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 BETWEEN + - col2 AND ( col2 )
----

query I rowsort
SELECT - - 7 AS col2 FROM tab2 AS cor0
----
7
7
7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - col0 BETWEEN - col0 AND + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT ALL CAST( - MIN( DISTINCT col1 ) AS SIGNED ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL CAST ( - MIN ( DISTINCT col1 ) AS INTEGER ) FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT DISTINCT - col1 DIV ( - 85 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT - col1 / ( - 85 ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9011
SELECT ALL - ( col2 ) DIV - - col1 col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9011
SELECT ALL - ( col2 ) / - - col1 col1 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT ALL - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT 49 + + COUNT( * ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9013
SELECT 49 + + COUNT ( * ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT + col0 * + col1 + + + 37 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT - - ( + - COUNT( DISTINCT - col2 ) ) FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9015
SELECT - - ( + - COUNT ( DISTINCT - col2 ) ) FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT - MIN( ALL - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - MIN ( ALL - col2 ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + 70 col1 FROM tab0 cor0
----
-151
-71
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-9018
SELECT DISTINCT - - col2 - + col1, 22 DIV + - col2 AS col2 FROM tab0 cor0 WHERE NOT - col0 IN ( + col1, col2 )
----
-11
-2
-34
0
98
0

skipif mysql # not compatible
query II rowsort label-9018
SELECT DISTINCT - - col2 - + col1, 22 / + - col2 AS col2 FROM tab0 cor0 WHERE NOT - col0 IN ( + col1, col2 )
----
-11
-2
-34
0
98
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT col0 + + 23 DIV - - 95 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9019
SELECT col0 + + 23 / - - 95 AS col2 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT ALL + col2 AS col0, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - 41 + + + col0 FROM tab0
----
-26
46
56

query I rowsort
SELECT ALL AVG ( DISTINCT + 77 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + - 91 AS col2 FROM tab1 WHERE + 88 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT - + CAST( SUM( DISTINCT - - col2 ) AS SIGNED ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT - + CAST ( SUM ( DISTINCT - - col2 ) AS INTEGER ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL 44 - + COUNT( * ) + - + 23 AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL 44 - + COUNT ( * ) + - + 23 AS col2 FROM tab1
----
18

query I rowsort
SELECT - 41 * + col1 - ( 85 ) AS col1 FROM tab1
----
-2012
-290
-659

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT - 29 + - 84 + - COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
-122

skipif mysql # not compatible
query I rowsort label-9027
SELECT - 29 + - 84 + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
-122

query I rowsort
SELECT DISTINCT col0 + ( + col1 ) - - 24 AS col2 FROM tab2
----
121
165
166

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 74 + col1 BETWEEN NULL AND - + 38
----

query I rowsort
SELECT - 5 + - col1 * + col2 AS col2 FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9031
SELECT + MAX( DISTINCT - ( - col2 ) ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
58
3

skipif mysql # not compatible
query II rowsort label-9031
SELECT + MAX ( DISTINCT - ( - col2 ) ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
58
3

query II rowsort
SELECT ALL - col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9033
SELECT - + COUNT( * ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9033
SELECT - + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT DISTINCT COUNT( + 14 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT COUNT ( + 14 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( - - ( - col1 ) ) + - - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL - - MIN( ALL + ( + - 35 ) ) AS col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - - MIN ( ALL + ( + - 35 ) ) AS col1 FROM tab2 AS cor0
----
-35

query II rowsort
SELECT + + 44, 46 AS col2 FROM tab2 AS cor0
----
44
46
44
46
44
46

query I rowsort
SELECT DISTINCT - ( + + 7 ) AS col1 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ( MAX( ( - col1 ) ) ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9039
SELECT ( MAX ( ( - col1 ) ) ) col2 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 51 + - col1 * col0 + + - col1 <= + col0
----

query I rowsort
SELECT 56 * - + col2 AS col0 FROM tab1
----
-3304
-3808
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL - SUM( ALL 70 ) * + + COUNT( * ) FROM tab2
----
-630

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL - SUM ( ALL 70 ) * + + COUNT ( * ) FROM tab2
----
-630

query I rowsort
SELECT + + ( - + col1 ) AS col0 FROM tab2 WHERE NOT + ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT CAST( + - 81 AS SIGNED ) * + col0 AS col2 FROM tab1
----
-4131
-6885
-7371

skipif mysql # not compatible
query I rowsort label-9044
SELECT CAST ( + - 81 AS INTEGER ) * + col0 AS col2 FROM tab1
----
-4131
-6885
-7371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9045
SELECT 4 * + COUNT( * ) * + CAST( COUNT( DISTINCT 81 ) AS SIGNED ) DIV - + 73 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9045
SELECT 4 * + COUNT ( * ) * + CAST ( COUNT ( DISTINCT 81 ) AS INTEGER ) / - + 73 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT DISTINCT MIN( ALL col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + + MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9048
SELECT + + MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT COUNT( * ) + + + MAX( DISTINCT - 3 ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT COUNT ( * ) + + + MAX ( DISTINCT - 3 ) AS col0 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 41 * + - 62 AS col0 FROM tab0
----
2542
2542
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + MAX( - 28 ) AS col0 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-9053
SELECT + MAX ( - 28 ) AS col0 FROM tab1
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col0 FROM tab1 cor0
----
41

query I rowsort
SELECT DISTINCT - col0 * col2 + - col2 * - 98 FROM tab2 AS cor0
----
1196
1334
1360

query I rowsort
SELECT ALL + 5 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
5
5
5

query I rowsort
SELECT 69 * 6 AS col2 FROM tab2 AS cor0
----
414
414
414

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( - - 28 ) + + col1 - + col2 > - col1 * - + 90 * 6 + col0
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( - - 28 ) + + col1 - + col2 > - col1 * - + 90 * 6 + col0
----
0

query I rowsort
SELECT ALL 82 * + 65 AS col2 FROM tab1 cor0
----
5330
5330
5330

query I rowsort
SELECT ALL + ( + - col2 ) AS col1 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - - COUNT( - 82 ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9061
SELECT - - COUNT ( - 82 ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT col1 + ( + 99 ) FROM tab1
----
104
113
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT + COUNT( * ) FROM tab2 WHERE 67 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9063
SELECT + COUNT ( * ) FROM tab2 WHERE 67 IS NOT NULL
----
3

query I rowsort
SELECT ALL 42 - - + 75 AS col2 FROM tab0
----
117
117
117

query I rowsort
SELECT 78 + 74 AS col0 FROM tab1
----
152
152
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9066
SELECT 76 * + 8 + + COUNT( * ) DIV - + COUNT( * ) FROM tab1
----
607

skipif mysql # not compatible
query I rowsort label-9066
SELECT 76 * + 8 + + COUNT ( * ) / - + COUNT ( * ) FROM tab1
----
607

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT 27 - - COUNT( * ) * - + COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT 27 - - COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
18

query I rowsort
SELECT - + col1 FROM tab1 WHERE - - 56 + - 84 IS NULL
----

query II rowsort
SELECT ALL - - col2 * + col2 + - ( + 25 ) + - 36 + - 3 AS col1, col1 - - 93 AS col2 FROM tab0 cor0
----
2145
174
36
114
9737
94

query I rowsort
SELECT DISTINCT + + ( + + 14 ) - + col2 AS col2 FROM tab0 AS cor0
----
-33
-85
4

query I rowsort
SELECT ALL - col1 * - col1 * - col2 AS col1 FROM tab2 cor0
----
-237160
-260362
-59823

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 65 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - + col2 >= NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL - - COUNT( * ) * + 39 AS col2 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL - - COUNT ( * ) * + 39 AS col2 FROM tab1 AS cor0
----
117

query I rowsort
SELECT DISTINCT col2 * - col1 + - 23 FROM tab1 AS cor0
----
-1367
-318
-3219

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT - - CAST( NULL AS SIGNED ) + 31 + 84 + + CAST( - col0 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 97 + + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9078
SELECT - - CAST ( NULL AS INTEGER ) + 31 + 84 + + CAST ( - col0 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 97 + + - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 43, + col1 + 95 AS col0 FROM tab1
----
43
100
43
109
43
142

query I rowsort
SELECT 76 * + 29 * - col2 AS col1 FROM tab2
----
-127832
-50692
-88160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT - CAST( NULL AS SIGNED ) * - - 27 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT - CAST ( NULL AS INTEGER ) * - - 27 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0, col2 * + ( 1 ) AS col1 FROM tab1
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + ( col2 ) ) >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 AS col2, ( - - 96 ) FROM tab0 cor0
----
-15
96
-87
96
-97
96

query II rowsort
SELECT - col2, + ( - col1 ) + - 16 AS col0 FROM tab2 AS cor0
----
-23
-67
-40
-93
-58
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + - ( + COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9086
SELECT + - ( + COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - + COUNT( * ) + + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-9087
SELECT - + COUNT ( * ) + + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT - + 47 + ( MAX( col2 ) ) col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9088
SELECT DISTINCT - + 47 + ( MAX ( col2 ) ) col2 FROM tab2 AS cor0
----
11

query II rowsort
SELECT DISTINCT + col2 * - col1, col1 AS col0 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

query I rowsort
SELECT col0 + - 94 * + col0 FROM tab2 cor0
----
-4278
-5952
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT - 75 + SUM( + col1 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9091
SELECT - 75 + SUM ( + col1 ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - col0 * ( - col0 ) FROM tab0 cor0
----
225
7569
9409

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - - col0 < - 60 * + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT + COUNT( * ) * - - COUNT( DISTINCT 51 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9094
SELECT + COUNT ( * ) * - - COUNT ( DISTINCT 51 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 17 + + col0 AS col1 FROM tab1 AS cor0
----
34
68
74

query I rowsort
SELECT ALL + + col0 + 42 FROM tab1 AS cor0
----
127
133
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT DISTINCT + col2 + - + col0 + + col0 DIV + - 64 AS col1 FROM tab0
----
-78
1
32

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + col2 + - + col0 + + col0 / + - 64 AS col1 FROM tab0
----
-78
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL + ( + MAX( - - col1 ) ) + + 89 AS col0 FROM tab2
----
166

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL + ( + MAX ( - - col1 ) ) + + 89 AS col0 FROM tab2
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT - CAST( + + 43 AS SIGNED ) - - - 65 AS col1 FROM tab0
----
-108
-108
-108

skipif mysql # not compatible
query I rowsort label-9099
SELECT - CAST ( + + 43 AS INTEGER ) - - - 65 AS col1 FROM tab0
----
-108
-108
-108

query I rowsort
SELECT DISTINCT + 74 + - col0 FROM tab1
----
-11
-17
23

query I rowsort
SELECT ALL + 69 - col1 + - col0 * - 85 FROM tab0
----
1263
7443
8313

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 36
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT DISTINCT - col1 DIV - col0 * col1 * - + 13 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT - col1 / - col0 * col1 * - + 13 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 30 AS col0 FROM tab0 cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT DISTINCT + 65 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT + 65 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT ALL col1 DIV - col0 + - + 63 AS col2 FROM tab0 WHERE ( + - col1 DIV + col0 ) IS NOT NULL
----
-63
-63
-68

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL col1 / - col0 + - + 63 AS col2 FROM tab0 WHERE ( + - col1 / + col0 ) IS NOT NULL
----
-63
-63
-68

query II rowsort
SELECT - 79 AS col1, 92 FROM tab2
----
-79
92
-79
92
-79
92

onlyif mysql # DIV for integer division: 
query II rowsort label-9110
SELECT DISTINCT col0 AS col2, ( + col1 ) + 50 DIV + ( + 34 ) FROM tab0
----
15
82
87
22
97
2

skipif mysql # not compatible
query II rowsort label-9110
SELECT DISTINCT col0 AS col2, ( + col1 ) + 50 / + ( + 34 ) FROM tab0
----
15
82
87
22
97
2

query II rowsort
SELECT - 22 AS col0, - 90 FROM tab0 cor0
----
-22
-90
-22
-90
-22
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL - COUNT( * ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9112
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT DISTINCT - - col2 DIV + 8 AS col1 FROM tab2 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT - - col2 / + 8 AS col1 FROM tab2 AS cor0
----
2
5
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9114
SELECT DISTINCT col1 DIV + - col2 - - - 64 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT col1 / + - col2 - - - 64 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT - 29 * + ( + col1 ) AS col2 FROM tab0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT - SUM( ALL 38 ) * 84 - 54 FROM tab0
----
-9630

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT - SUM ( ALL 38 ) * 84 - 54 FROM tab0
----
-9630

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 = col0 * - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT + 63 + - SUM( col2 ) AS col1 FROM tab1
----
-160

skipif mysql # not compatible
query I rowsort label-9118
SELECT + 63 + - SUM ( col2 ) AS col1 FROM tab1
----
-160

query I rowsort
SELECT col2 + - ( - col1 ) * + - 44 FROM tab0
----
-3517
-914
55

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - + 51 + - - col0 + + col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 WHERE col1 + - col0 IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT - - 44 - + - MAX( ( col1 ) ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-9124
SELECT - - 44 - + - MAX ( ( col1 ) ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
124

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col2 - + 57 * + - 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * col1 * - col1 FROM tab0 cor0
----
1
531441
9261

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL - - MAX( + 84 ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - - MAX ( + 84 ) AS col0 FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 + - 77 col0 FROM tab0
----
-9
-9
-9

query II rowsort
SELECT ( - 53 ) AS col1, col1 FROM tab2
----
-53
51
-53
67
-53
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT COUNT( * ) * + 40 AS col0 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT COUNT ( * ) * + 40 AS col0 FROM tab2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL + - COUNT( * ) + + COUNT( col1 ) FROM tab1 WHERE col0 + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + - COUNT ( * ) + + COUNT ( col1 ) FROM tab1 WHERE col0 + col2 <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 NOT IN ( - 96, 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT 50 * + COUNT( * ) col2 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9134
SELECT 50 * + COUNT ( * ) col2 FROM tab2 AS cor0
----
150

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 + 59 * + col2 * - - 59 * col2 ) <= 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT + MAX( DISTINCT - + col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) + + 27 + + ( col0 ) FROM tab2 AS cor0
----
131
160
96

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) + + 27 + + ( col0 ) FROM tab2 AS cor0
----
131
160
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL MAX( + + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL MAX ( + + col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL + 36 + - + col0 FROM tab1 AS cor0
----
-15
-49
-55

query II rowsort
SELECT + + col2, - 86 + + 12 * - col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + 10 + - 63 * - 96 AS col0 FROM tab1 AS cor0
----
6058
6058
6058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, - 94 col1 FROM tab1
----
51
-94
85
-94
91
-94

query I rowsort
SELECT DISTINCT - 2 * - col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9146
SELECT ALL CAST( NULL AS DECIMAL ) * + - CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL CAST ( NULL AS REAL ) * + - CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 61 * - col0 AS col0 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT DISTINCT 26 * + 27 FROM tab2
----
702

query I rowsort
SELECT + 5 * ( + col1 ) AS col2 FROM tab2
----
255
335
385

query I rowsort
SELECT col1 * + + ( - col1 ) FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + 75 * - col1 AS col0 FROM tab1
----
-1050
-3525
-375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9152
SELECT ALL COUNT( * ) DIV ( + - 56 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL COUNT ( * ) / ( + - 56 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col0 + + col2 - - - 17 * + col2 * + + col0 FROM tab1
----
-105037
-83085
-85111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT DISTINCT CAST( - 56 AS SIGNED ) FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT CAST ( - 56 AS INTEGER ) FROM tab2 cor0
----
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9156
SELECT - COUNT( * ) DIV + + 99 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9156
SELECT - COUNT ( * ) / + + 99 col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col2 + 37, col0 FROM tab0 cor0
----
136
97
47
87
84
15

query I rowsort
SELECT 29 + + - 95 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT + ( - COUNT( * ) ) + - - 88 AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + ( - COUNT ( * ) ) + - - 88 AS col1 FROM tab1
----
85

query I rowsort
SELECT + + col0 FROM tab0 WHERE - + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 33 col1 FROM tab2 AS cor0
----
-1320
-1914
-759

query I rowsort
SELECT 51 * - 73 FROM tab2 AS cor0
----
-3723
-3723
-3723

query I rowsort
SELECT ALL + col1 - + 96 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-19
-29
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT - + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9164
SELECT - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + ( + 69 ) * - col0 FROM tab0 AS cor0
----
-1035
-6003
-6693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT + CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9166
SELECT + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 30 * 77 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 85 * - - col2, - col0, + 2, - col2 - + col0, + - 73 * ( - col2 ), 9 )
----

query I rowsort
SELECT DISTINCT + col2 * + - col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT - - col2 + + ( 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT ALL 34 AS col0, COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
34
0

skipif mysql # not compatible
query II rowsort label-9171
SELECT ALL 34 AS col0, COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
34
0

query II rowsort
SELECT - 77 AS col0, - ( col0 ) AS col2 FROM tab1 AS cor0
----
-77
-51
-77
-85
-77
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> 20
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + col1 * 12 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col1 FROM tab1 WHERE NOT ( NULL ) = - col1
----

query I rowsort
SELECT ( - 71 ) AS col0 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT + MAX( DISTINCT 10 ) FROM tab0 WHERE ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + MAX ( DISTINCT 10 ) FROM tab0 WHERE ( col0 ) IS NULL
----
NULL

query I rowsort
SELECT 12 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE ( + 92 ) NOT BETWEEN ( col1 ) AND + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL COUNT( * ) * + MAX( col1 * col2 ) + + 74 FROM tab0
----
11495

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL COUNT ( * ) * + MAX ( col1 * col2 ) + + 74 FROM tab0
----
11495

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT - COUNT( DISTINCT - 69 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT - COUNT ( DISTINCT - 69 ) AS col2 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE - col1 = col1 * + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT ALL - COUNT( * ) + SUM( DISTINCT + 91 + 88 DIV - col0 ) AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - COUNT ( * ) + SUM ( DISTINCT + 91 + 88 / - col0 ) AS col1 FROM tab0
----
264

query III rowsort
SELECT ALL * FROM tab0 WHERE + 63 + col1 <> 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL COUNT( * ) + 80 FROM tab2 WHERE NOT NULL < NULL
----
80

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL COUNT ( * ) + 80 FROM tab2 WHERE NOT NULL < NULL
----
80

query I rowsort
SELECT - 60 + col2 AS col2 FROM tab0
----
-13
-50
39

query I rowsort
SELECT + ( 9 ) FROM tab0
----
9
9
9

query I rowsort
SELECT + 50 + - col2 * + 61 FROM tab2
----
-1353
-2390
-3488

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9191
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 79 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 79 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT ALL + CAST( SUM( - 75 ) AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1
----
-675

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + CAST ( SUM ( - 75 ) AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1
----
-675

query I rowsort
SELECT col2 * - 85 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - COUNT( * ) - - 61 * - 85 AS col2 FROM tab1
----
-5188

skipif mysql # not compatible
query I rowsort label-9195
SELECT - COUNT ( * ) - - 61 * - 85 AS col2 FROM tab1
----
-5188

query I rowsort
SELECT DISTINCT 68 * ( col1 ) AS col2 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9197
SELECT + SUM( 30 ) DIV + 26 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9197
SELECT + SUM ( 30 ) / + 26 FROM tab2
----
3

query I rowsort
SELECT - col1 * - col1 - col1 AS col2 FROM tab1
----
182
20
2162

query I rowsort
SELECT - 22 - - col0 FROM tab0
----
-7
65
75

query I rowsort
SELECT ALL 99 - + col2 FROM tab2 cor0
----
41
59
76

query I rowsort
SELECT ALL col0 * + col2 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + 65 * col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 65 * col1 > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9203
SELECT ALL - - CAST( NULL AS DECIMAL ) * col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - - CAST ( NULL AS REAL ) * col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9204
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 30 - col2 = ( - col0 - ( - CAST( NULL AS SIGNED ) ) * 38 )
----

skipif mysql # not compatible
query III rowsort label-9204
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 30 - col2 = ( - col0 - ( - CAST ( NULL AS INTEGER ) ) * 38 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 62 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 75 BETWEEN col0 + 68 AND + ( col1 ) + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT DISTINCT - + COUNT( * ) * 38 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - + COUNT ( * ) * 38 FROM tab2 AS cor0
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT COUNT( + col1 ) DIV - 66 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9208
SELECT COUNT ( + col1 ) / - 66 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 17 * + 3 ) IN ( col1 )
----
64
77
40
75
67
58

query I rowsort
SELECT + - 87 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
4437
5829
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL ( + + COUNT( DISTINCT col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL ( + + COUNT ( DISTINCT col1 ) ) FROM tab0
----
3

query I rowsort
SELECT - ( + col2 ) * col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT + 88 * + COUNT( * ) * - COUNT( * ) FROM tab2
----
-792

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 88 * + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT col0 DIV - 47 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT col0 / - 47 AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 64 * - col2 AS col0 FROM tab1 WHERE col0 NOT BETWEEN 24 + + col0 AND - col2 * + col2
----
-3776
-4352
-6144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 76 + col0 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL COUNT( - - 22 ) * ( COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL COUNT ( - - 22 ) * ( COUNT ( * ) ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT col2 + - col2 * + col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 64 + - col0 )
----

query I rowsort
SELECT col2 + col1 FROM tab2 AS cor0 WHERE NOT ( + ( col0 ) + col1 ) <> col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9220
SELECT * FROM tab1 cor0 WHERE NOT - 80 IN ( CAST( NULL AS DECIMAL ) * col1 ) AND NOT 2 * col2 NOT IN ( + col1 * 28 )
----

skipif mysql # not compatible
query III rowsort label-9220
SELECT * FROM tab1 cor0 WHERE NOT - 80 IN ( CAST ( NULL AS REAL ) * col1 ) AND NOT 2 * col2 NOT IN ( + col1 * 28 )
----

query I rowsort
SELECT ( + 59 ) FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL col0 * - + col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - 61 + col1 FROM tab2
----
2857
3981
4642

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - col1 > col0 * - 74 - + col2 * - col0
----
15
81
47
97
1
99

query I rowsort
SELECT + + 51 + + + 93 FROM tab1 AS cor0
----
144
144
144

query I rowsort
SELECT + 52 + - - col2 + + col0 * 17 FROM tab1 AS cor0
----
1015
1556
1667

query I rowsort
SELECT + col2 + + + 2 FROM tab1 AS cor0
----
61
70
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 30 FROM tab1 AS cor0
----
51
30
85
30
91
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9230
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 22 AND ( + col2 - CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-9230
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 22 AND ( + col2 - CAST ( NULL AS INTEGER ) * + col1 )
----

query I rowsort
SELECT ALL + col2 + + - col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT COUNT( DISTINCT + 60 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9232
SELECT COUNT ( DISTINCT + 60 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT ( col0 ) * + col1 + - ( - 36 ) FROM tab0
----
1251
133
1863

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - - ( + + ( col1 ) ) AND col0
----

query I rowsort
SELECT ALL - col1 + + - col1 AS col0 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT 17 + 79 AS col0 FROM tab1 WHERE ( + + 55 ) NOT IN ( + col0 )
----
96
96
96

query I rowsort
SELECT DISTINCT + ( 2 ) + + - col1 - 29 * + col0 FROM tab2
----
-1383
-1931
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + MIN( 35 ) FROM tab1 WHERE - col1 IS NOT NULL
----
35

skipif mysql # not compatible
query I rowsort label-9238
SELECT + MIN ( 35 ) FROM tab1 WHERE - col1 IS NOT NULL
----
35

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN 68 - - col0 AND ( NULL )
----

query I rowsort
SELECT col0 * - - col2 * + col0 AS col1 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NOT 35 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NOT 35 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9242
SELECT + 17 - 16 DIV + col2 + - 58 AS col1 FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-9242
SELECT + 17 - 16 / + col2 + - 58 AS col1 FROM tab2 AS cor0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 95 * - col1 col2 FROM tab1 AS cor0
----
-1330
-4465
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + ( + - COUNT( * ) ) - 34 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9244
SELECT + ( + - COUNT ( * ) ) - 34 FROM tab2 AS cor0
----
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 IN ( + ( col2 ) / + col0 + - ( col2 ) )
----

query I rowsort
SELECT ALL + col1 * 33 * - 73 + + + 21 AS col2 FROM tab0 AS cor0
----
-195108
-2388
-50568

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( NULL ) BETWEEN + 59 AND + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL - 21 * - ( + COUNT( * ) ) - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL - 21 * - ( + COUNT ( * ) ) - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - + 53 * + 5 col2 FROM tab2 AS cor0
----
-190
-201
-219

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col0 + - 60 FROM tab1 AS cor0
----
-9
25
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 + - 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT + col2 + + col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT + col2 + + col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + 31 AS col0 FROM tab2
----
106
77
95

query II rowsort
SELECT col2 AS col1, 78 * 87 AS col2 FROM tab1 AS cor0
----
59
6786
68
6786
96
6786

query I rowsort
SELECT DISTINCT 83 - - ( - 44 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT - CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9258
SELECT - CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT 42 * + 72 BETWEEN + 4 + + 89 AND ( NULL )
----

query I rowsort
SELECT col0 * 30 AS col0 FROM tab0 AS cor0
----
2610
2910
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + - col0 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - col1 * 26 * + 6 + 70 FROM tab0 AS cor0
----
-12566
-3206
-86

query I rowsort
SELECT ALL - 73 * - col2 FROM tab1 cor0
----
4307
4964
7008

query I rowsort
SELECT DISTINCT + col1 * - + col0 + - - col2 FROM tab1 AS cor0
----
-366
-4209
-618

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - - 20 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT SUM( DISTINCT + ( - - 2 ) ) AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9266
SELECT SUM ( DISTINCT + ( - - 2 ) ) AS col0 FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT + col2 DIV - 72 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT + col2 / - 72 AS col0 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9269
SELECT DISTINCT CAST( NULL AS DECIMAL ), + ( + col0 ) * col0 AS col2 FROM tab2
----
NULL
2116
NULL
4096
NULL
5625

skipif mysql # not compatible
query II rowsort label-9269
SELECT DISTINCT CAST ( NULL AS REAL ), + ( + col0 ) * col0 AS col2 FROM tab2
----
NULL
2116
NULL
4096
NULL
5625

query I rowsort
SELECT ALL + col2 * - 15 FROM tab2
----
-345
-600
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT ( + - ( + col2 ) ) DIV + + col0 + 76 FROM tab2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-9271
SELECT ( + - ( + col2 ) ) / + + col0 + 76 FROM tab2
----
76
76
76

query I rowsort
SELECT - ( + 72 ) AS col0 FROM tab1
----
-72
-72
-72

query II rowsort
SELECT + col1, - 0 FROM tab2
----
51
0
67
0
77
0

query II rowsort
SELECT DISTINCT - 97 AS col2, + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-97
110
-97
115
-97
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT - + COUNT( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - + COUNT ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 + - + 44 AS col1 FROM tab0 cor0
----
-143
-54
-91

query I rowsort
SELECT ALL - ( - 21 ) FROM tab0
----
21
21
21

query I rowsort
SELECT + col1 * - - 95 * + 78 * + - col2 FROM tab0
----
-1556100
-28209870
-733590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9279
SELECT col2 * - CAST( NULL AS SIGNED ) * - + ( - + col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT col2 * - CAST ( NULL AS INTEGER ) * - + ( - + col1 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - COUNT( DISTINCT 61 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9280
SELECT - COUNT ( DISTINCT 61 ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9281
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( + col2 - + col0 * + col0 ) IN ( - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( + col2 - + col0 * + col0 ) IN ( - CAST ( NULL AS REAL ) ) )
----

query I rowsort
SELECT ALL - 31 * + 8 AS col2 FROM tab2 cor0
----
-248
-248
-248

query I rowsort
SELECT ALL - 48 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9284
SELECT + col2 AS col2, - col1 * - ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0 WHERE col1 + - col0 NOT IN ( - 81 )
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9284
SELECT + col2 AS col2, - col1 * - ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 WHERE col1 + - col0 NOT IN ( - 81 )
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + 23 + + 59 + - 84 * + - 21 + - col2 FROM tab2
----
1788
1806
1823

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT + col2 * - 16 * col1 + + + col0 + - col2 DIV + 42 AS col2 FROM tab2
----
-18722
-49216
-62102

skipif mysql # not compatible
query I rowsort label-9286
SELECT + col2 * - 16 * col1 + + + col0 + - col2 / + 42 AS col2 FROM tab2
----
-18722
-49216
-62102

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + + 49, - 35 + 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT SUM( DISTINCT - + col0 ) * - - 13 * + + ( 60 ) + + COUNT( * ) FROM tab2 WHERE + 74 > col1
----
-94378

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT SUM ( DISTINCT - + col0 ) * - - 13 * + + ( 60 ) + + COUNT ( * ) FROM tab2 WHERE + 74 > col1
----
-94378

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - - ( - + 62 ) ) BETWEEN - col2 AND + 73
----

query I rowsort
SELECT ALL col0 + - 98 - - col0 FROM tab2
----
-6
30
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT DISTINCT - 56 * col1 + + - 85 - 73 DIV - col1 FROM tab1
----
-2716
-351
-864

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - 56 * col1 + + - 85 - 73 / - col1 FROM tab1
----
-2716
-351
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT + CAST( - - COUNT( * ) AS SIGNED ) + - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9292
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) + - - COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 / - col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT + 46 + - - COUNT( DISTINCT col1 ) * + - 72 * - 60 AS col1 FROM tab0 AS cor0
----
13006

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT + 46 + - - COUNT ( DISTINCT col1 ) * + - 72 * - 60 AS col1 FROM tab0 AS cor0
----
13006

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT - SUM( ALL + - 42 ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-9295
SELECT - SUM ( ALL + - 42 ) FROM tab1
----
126

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> - col1
----

query I rowsort
SELECT DISTINCT + 25 * + 2 * - + col2 FROM tab1 AS cor0
----
-2950
-3400
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 26 col1 FROM tab2 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT COUNT( - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9299
SELECT COUNT ( - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 1 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 49 * - + 67 FROM tab1
----
-3283

query I rowsort
SELECT ALL - col1 * + - col0 * - + col2 * col1 FROM tab1
----
-125375
-13669292
-959616

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 49 * col1 + - + 30 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9305
SELECT + COUNT( * ) DIV - + 76 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9305
SELECT + COUNT ( * ) / - + 76 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 70 * 56 * col2 FROM tab0
----
184240
388080
39200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, - col2 col1 FROM tab2 cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL - MAX( + 30 ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - MAX ( + 30 ) AS col0 FROM tab0 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT - + CAST( + 39 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-9309
SELECT - + CAST ( + 39 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT + + CAST( - - SUM( DISTINCT - 59 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9310
SELECT + + CAST ( - - SUM ( DISTINCT - 59 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9311
SELECT ALL + MIN( ALL + + 40 ) DIV - 54 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL + MIN ( ALL + + 40 ) / - 54 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT SUM( + 45 ) AS col1 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9312
SELECT SUM ( + 45 ) AS col1 FROM tab0 AS cor0
----
135

query I rowsort
SELECT DISTINCT + + ( 57 ) * + col0 + - col0 * - 0 * - col1 + + col1 FROM tab2 AS cor0 WHERE - 58 IS NULL
----

query I rowsort
SELECT ALL - col1 + + 11 FROM tab0
----
-10
-70
10

query II rowsort
SELECT - ( - + col2 ) AS col1, 36 FROM tab1
----
59
36
68
36
96
36

query II rowsort
SELECT - 88, 94 AS col2 FROM tab0
----
-88
94
-88
94
-88
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col1 col2 FROM tab0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9318
SELECT ALL * FROM tab1 WHERE NOT - col1 >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9318
SELECT ALL * FROM tab1 WHERE NOT - col1 >= + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + 32 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9319
SELECT + 32 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
35

query II rowsort
SELECT DISTINCT + 44, + col1 FROM tab2 AS cor0
----
44
51
44
67
44
77

query I rowsort
SELECT DISTINCT + - col1 + + col1 + - + col1 * - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT ALL col2 AS col1, col1 + 6 FROM tab1 AS cor0
----
59
11
68
53
96
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT - col0 DIV - + 8 AS col1 FROM tab2 AS cor0
----
5
8
9

skipif mysql # not compatible
query I rowsort label-9323
SELECT - col0 / - + 8 AS col1 FROM tab2 AS cor0
----
5
8
9

query I rowsort
SELECT - col1 * 35 FROM tab1 AS cor0
----
-1645
-175
-490

query I rowsort
SELECT ALL + 73 - col1 + + col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT - ( - col1 ), + col1 AS col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL 53 + - col0 AS col0 FROM tab2
----
-11
-22
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL ( + 88 ) + - + COUNT( * ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL ( + 88 ) + - + COUNT ( * ) AS col0 FROM tab1
----
85

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + 79 FROM tab0
----
100
160
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT ALL - ( - + 48 ) + + + 61 + col2 + + - col1 DIV + 88 * + ( - ( - col2 ) ) FROM tab2
----
132
149
167

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL - ( - + 48 ) + + + 61 + col2 + + - col1 / + 88 * + ( - ( - col2 ) ) FROM tab2
----
132
149
167

query I rowsort
SELECT + col2 - - + 23 AS col2 FROM tab2
----
46
63
81

query I rowsort
SELECT ALL - col2 - + 36 FROM tab0 AS cor0
----
-135
-46
-83

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT + - col1 * col1 * col0 + + + col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT + - col1 * col1 * col0 + + + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + 96 col0 FROM tab0
----
10
96
47
96
99
96

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT IN ( + col2, 7 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL + COUNT( ALL 90 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + COUNT ( ALL 90 ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * - + col0 col0 FROM tab2
----
-2714
-3776
-4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT DISTINCT col2 * - col2 * + CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0 WHERE 16 + 19 NOT BETWEEN NULL AND - 84 * - + col0
----

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT col2 * - col2 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0 WHERE 16 + 19 NOT BETWEEN NULL AND - 84 * - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9342
SELECT ALL - 21 + + - 39 - - col2 AS col0, col1 * + + 54 FROM tab1 AS cor0 WHERE col2 / + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) = col2
----

skipif mysql # not compatible
query II rowsort label-9342
SELECT ALL - 21 + + - 39 - - col2 AS col0, col1 * + + 54 FROM tab1 AS cor0 WHERE col2 / + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) = col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col0, + 64 AS col2 FROM tab0 AS cor0
----
15
64
87
64
97
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL + 80 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + 80 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
240

query I rowsort
SELECT DISTINCT col0 * - - col0 * col1 * + + col0 AS col2 FROM tab2 AS cor0
----
20185088
28265625
4964136

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + ( + COUNT( * ) ) * 61 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + ( + COUNT ( * ) ) * 61 FROM tab0
----
183

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT ( + 88 ) > + 77 * - + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL + 10 * + COUNT( * ) col2 FROM tab2
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9349
SELECT ALL + 10 * + COUNT ( * ) col2 FROM tab2
----
30

query I rowsort
SELECT col1 * + + 28 AS col1 FROM tab0
----
2268
28
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 63 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9351
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9352
SELECT 21 AS col1, + col2 + + 55 DIV col2 * col1 FROM tab1
----
21
59
21
68
21
96

skipif mysql # not compatible
query II rowsort label-9352
SELECT 21 AS col1, + col2 + + 55 / col2 * col1 FROM tab1
----
21
59
21
68
21
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - + SUM( DISTINCT 97 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-9353
SELECT - + SUM ( DISTINCT 97 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

query I rowsort
SELECT DISTINCT col0 + + ( ( 74 ) ) FROM tab0
----
161
171
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT - COUNT( * ) - SUM( ALL col2 ) + - + 7 AS col2 FROM tab1 cor0
----
-233

skipif mysql # not compatible
query I rowsort label-9355
SELECT - COUNT ( * ) - SUM ( ALL col2 ) + - + 7 AS col2 FROM tab1 cor0
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL - - COUNT( DISTINCT - - 29 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - - COUNT ( DISTINCT - - 29 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT col0 * - col2 - - - 86 FROM tab0 AS cor0
----
-791
-956
-9689

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT 60 * - + 43 * - COUNT( * ) - - + 42 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
42

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT 60 * - + 43 * - COUNT ( * ) - - + 42 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT + - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT + - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE 44 + 17 <= NULL
----

query I rowsort
SELECT DISTINCT + 52 + col0 AS col2 FROM tab0 AS cor0
----
139
149
67

query I rowsort
SELECT 12 + - ( + col0 ) FROM tab0
----
-3
-75
-85

query I rowsort
SELECT col2 + col2 + col2 FROM tab0
----
141
297
30

query I rowsort
SELECT 53 + - 96 + + 74 FROM tab0
----
31
31
31

query II rowsort
SELECT DISTINCT col1 - - + 81 AS col2, + 1 * - ( ( - col2 ) ) * - col2 FROM tab1
----
128
-4624
86
-3481
95
-9216

query I rowsort
SELECT ALL + 27 - col1 FROM tab0
----
-54
26
6

query II rowsort
SELECT ALL + col1, 81 FROM tab2
----
51
81
67
81
77
81

query I rowsort
SELECT ALL + 80 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 38 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9370
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9371
SELECT - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9371
SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT - col1 = NULL
----

query II rowsort
SELECT + + col1 AS col1, + col1 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9374
SELECT DISTINCT - COUNT( * ) * ( + - 49 ) AS col0, - 8 FROM tab1
----
147
-8

skipif mysql # not compatible
query II rowsort label-9374
SELECT DISTINCT - COUNT ( * ) * ( + - 49 ) AS col0, - 8 FROM tab1
----
147
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - COUNT( * ) * - 37 AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-9375
SELECT - COUNT ( * ) * - 37 AS col1 FROM tab2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL IN ( - + ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( - + ( + col1 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT - CAST( - 94 AS SIGNED ) FROM tab0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-9377
SELECT - CAST ( - 94 AS INTEGER ) FROM tab0
----
94
94
94

query I rowsort
SELECT DISTINCT + ( + 68 ) AS col0 FROM tab0 AS cor0
----
68

query I rowsort
SELECT - col0 * + 36 AS col0 FROM tab0 cor0
----
-3132
-3492
-540

query I rowsort
SELECT - + 92 AS col2 FROM tab1 cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + + 93 * + 11 + + COUNT( * ) col2 FROM tab0 AS cor0
----
1026

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9381
SELECT + + 93 * + 11 + + COUNT ( * ) col2 FROM tab0 AS cor0
----
1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT DISTINCT + MAX( DISTINCT CAST( 1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT + MAX ( DISTINCT CAST ( 1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - MAX( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9383
SELECT - MAX ( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - + 14 ) >= + 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + - col0 * + ( - ( - + 85 ) ) + - col1 FROM tab1
----
-4335
-7225
-7735

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT + COUNT( * ) + + 92 + COUNT( * ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + COUNT ( * ) + + 92 + COUNT ( * ) AS col0 FROM tab1
----
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 + 22 * + - col2 BETWEEN NULL AND 84
----

query I rowsort
SELECT DISTINCT - col1 * - - col2 + - + 62 FROM tab0 AS cor0
----
-161
-272
-3869

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT + 38 * - - COUNT( * ) col0 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9389
SELECT DISTINCT + 38 * - - COUNT ( * ) col0 FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL COUNT( * ) - + + 97 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL COUNT ( * ) - + + 97 FROM tab1
----
-94

query I rowsort
SELECT col1 * - - col1 AS col2 FROM tab0 cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT + col0 DIV 46 * - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9392
SELECT + col0 / 46 * - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL - MIN( DISTINCT - col0 ) + - + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL - MIN ( DISTINCT - col0 ) + - + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT + 36 <> - col0 ) )
----

query I rowsort
SELECT DISTINCT + col0 * + 96 * - col2 AS col1 FROM tab2 cor0
----
-101568
-245760
-417600

query III rowsort
SELECT * FROM tab0 WHERE - + 6 IS NULL
----

query I rowsort
SELECT col0 - - - 3 FROM tab1
----
48
82
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 96 + - col0 * col0 + - col1 IS NOT NULL OR NOT 86 <> + - 66
----

query I rowsort
SELECT DISTINCT + + 67 FROM tab1 WHERE NOT - col2 IS NULL
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT - COUNT( + col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - COUNT ( + col2 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - MIN( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9401
SELECT - MIN ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + 3 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9402
SELECT + 3 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT DISTINCT col1, col2, + - col1 * + - col2 * + col2 FROM tab2
----
9 values hashing to 3922f296048c0f30685c6d59fb87a648

query I rowsort
SELECT 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT - col0 DIV + + 30 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-9406
SELECT - col0 / + + 30 FROM tab2
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL + + COUNT( * ) FROM tab0 WHERE NOT + ( + ( + 9 ) ) * + - col2 - - 13 NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE NOT + ( + ( + 9 ) ) * + - col2 - - 13 NOT BETWEEN NULL AND + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col1 col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query II rowsort
SELECT + col1 AS col1, + 47 AS col2 FROM tab0 cor0
----
1
47
21
47
81
47

query II rowsort
SELECT col0, + ( - + 33 ) FROM tab2 AS cor0
----
46
-33
64
-33
75
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT + col0 DIV - 34 FROM tab0 AS cor0 WHERE NOT + col2 * + 41 * - col0 > + col2
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT + col0 / - 34 FROM tab0 AS cor0 WHERE NOT + col2 * + 41 * - col0 > + col2
----
-2
-2
0

query I rowsort
SELECT DISTINCT - 50 + col2 AS col2 FROM tab2 AS cor0
----
-10
-27
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 + ( - + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + 4 FROM tab0 AS cor0
----
10
4
47
4
99
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL COUNT( 66 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL COUNT ( 66 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9416
SELECT DISTINCT col1 + - + CAST( NULL AS SIGNED ) AS col2, col1 + + col1 + - 54 * - 53 AS col1 FROM tab0
----
NULL
2864
NULL
2904
NULL
3024

skipif mysql # not compatible
query II rowsort label-9416
SELECT DISTINCT col1 + - + CAST ( NULL AS INTEGER ) AS col2, col1 + + col1 + - 54 * - 53 AS col1 FROM tab0
----
NULL
2864
NULL
2904
NULL
3024

onlyif mysql # DIV for integer division: 
query I rowsort label-9417
SELECT DISTINCT - 48 + + - col2 DIV + col1 * ( - col0 ) - - - col2 AS col1 FROM tab2
----
-106
-71
-88

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - 48 + + - col2 / + col1 * ( - col0 ) - - - col2 AS col1 FROM tab2
----
-106
-71
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9418
SELECT col1 DIV + + col1 + CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-9418
SELECT col1 / + + col1 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-14
-86
-96

query I rowsort
SELECT + - col0 * 88 * col1 AS col0 FROM tab2 AS cor0
----
-206448
-433664
-442200

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT + COUNT( * ) AS col0, + 99 AS col2 FROM tab0
----
3
99

skipif mysql # not compatible
query II rowsort label-9421
SELECT + COUNT ( * ) AS col0, + 99 AS col2 FROM tab0
----
3
99

query I rowsort
SELECT DISTINCT 53 * ( col2 ) * - 62 + - 50 AS col2 FROM tab0
----
-154492
-325364
-32910

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ALL - COUNT( * ) + - 94 + - 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-159

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL - COUNT ( * ) + - 94 + - 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-159

query II rowsort
SELECT + 35 - + col2 * - col1 AS col1, 24 AS col2 FROM tab2 AS cor0
----
1208
24
3115
24
3921
24

query I rowsort
SELECT ALL + + col1 - + + 29 FROM tab1 cor0
----
-15
-24
18

query I rowsort
SELECT ALL - 87 * + col2 FROM tab1 AS cor0
----
-5133
-5916
-8352

query I rowsort
SELECT ALL 30 + - col0 AS col1 FROM tab0 cor0
----
-57
-67
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT ALL 23 DIV col2 col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9428
SELECT ALL 23 / col2 col0 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9429
SELECT DISTINCT col0 * - 96 AS col0, CAST( - - col2 AS SIGNED ) FROM tab2
----
-4416
23
-6144
40
-7200
58

skipif mysql # not compatible
query II rowsort label-9429
SELECT DISTINCT col0 * - 96 AS col0, CAST ( - - col2 AS INTEGER ) FROM tab2
----
-4416
23
-6144
40
-7200
58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 73 * 25 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 27 * 63 FROM tab0 WHERE NOT + - col1 * - col0 + + ( + col2 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL + 32 * - + col2 * col1 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL + 32 * - + col2 * col1 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 50 * - col0 * - + col2 * + - col0 AS col2, - col2 + - col1 AS col0 FROM tab0
----
-3784500
-31
-46574550
-100
-528750
-128

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT NULL <= ( 50 / + col1 + - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9435
SELECT ALL - - 35 DIV + + MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL - - 35 / + + MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT 56 AS col2, col0 + ( + ( + + col0 ) ) + col1 FROM tab2
----
56
143
56
205
56
217

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73 col2, - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - ( - 1 ) > - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - - 98 )
----

query I rowsort
SELECT ALL ( 5 ) FROM tab2 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT SUM( ALL col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT SUM ( ALL col0 ) FROM tab0 cor0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT + - COUNT( * ) + + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9442
SELECT + - COUNT ( * ) + + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + + col0 * col1 * - col0 + - - col0 + - col2 * - - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-163272
-326577
-9411

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT - MAX( + 55 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT - MAX ( + 55 ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT DISTINCT + col0 + + col2 + 54 * 38 * col2 FROM tab2 AS cor0
----
119149
47265
82184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9446
SELECT - col2 AS col0, - ( - - col1 ) + - CAST( + col1 AS SIGNED ) FROM tab2
----
-23
-102
-40
-154
-58
-134

skipif mysql # not compatible
query II rowsort label-9446
SELECT - col2 AS col0, - ( - - col1 ) + - CAST ( + col1 AS INTEGER ) FROM tab2
----
-23
-102
-40
-154
-58
-134

query I rowsort
SELECT ALL col0 + + ( - col2 ) AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL - col2 * - col2 + col0 AS col0 FROM tab0 WHERE NOT 89 < 15 + - ( + col1 ) - - - 71
----
187
2224
9898

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + 77
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col1 ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - + ( - col0 ) AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - ( - - 92 ) * - - col1 AS col0 FROM tab0 AS cor0
----
-1932
-7452
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 + + + col2 * + col2 col0 FROM tab0
----
199
2308
9900

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + 20
----

query I rowsort
SELECT - - 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL + + MIN( + 22 ) - SUM( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9456
SELECT ALL + + MIN ( + 22 ) - SUM ( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
249

query I rowsort
SELECT ALL - 88 * - - col1 FROM tab0 AS cor0
----
-1848
-7128
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT DISTINCT col2 DIV - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT col2 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT DISTINCT - 30 DIV 55 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT - 30 / 55 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - + 57, - col1 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * ( + - 90 ) col1 FROM tab1
----
-540
-540
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT MIN( DISTINCT + 99 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9463
SELECT MIN ( DISTINCT + 99 ) AS col2 FROM tab1
----
99

query I rowsort
SELECT DISTINCT - col1 * - - 95 AS col1 FROM tab0 AS cor0
----
-1995
-7695
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT ALL + 79 DIV + - 29 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL + 79 / + - 29 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> col1
----

query I rowsort
SELECT + - 82 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 / + col2 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT 85 * + + COUNT( * ) - - COUNT( * ) * - 90 - + - 72 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9468
SELECT 85 * + + COUNT ( * ) - - COUNT ( * ) * - 90 - + - 72 FROM tab1 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-9469
SELECT ALL + + col1 DIV + col1, - col1 AS col1 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

skipif mysql # not compatible
query II rowsort label-9469
SELECT ALL + + col1 / + col1, - col1 AS col1 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL + MIN( DISTINCT - + ( + + col1 ) ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL + MIN ( DISTINCT - + ( + + col1 ) ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + COUNT( DISTINCT 8 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + COUNT ( DISTINCT 8 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col2 * col2 + col1 AS col0 FROM tab0 AS cor0
----
121
2290
9802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + + - col1 col2 FROM tab2 cor0
----
-2167
-4173
-5692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 89 col0 FROM tab0 WHERE NULL >= - 52
----

query I rowsort
SELECT ALL - 65 + col0 AS col0 FROM tab2
----
-1
-19
10

query I rowsort
SELECT col2 + + + 4 AS col1 FROM tab2
----
27
44
62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( + col2 ) ) IS NULL
----

query I rowsort
SELECT ALL col0 * - 54 + col0 + - col0 AS col0 FROM tab2
----
-2484
-3456
-4050

query I rowsort
SELECT ALL + 38 + + + col2 FROM tab1
----
106
134
97

query I rowsort
SELECT - col0 + 28 FROM tab1
----
-23
-57
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT 97 + - + COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT 97 + - + COUNT ( * ) FROM tab0
----
94

query I rowsort
SELECT 95 + - + col2 AS col1 FROM tab0
----
-4
48
85

query I rowsort
SELECT DISTINCT ( + 0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 - - + col0 * col0 FROM tab0
----
272
7579
9508

query I rowsort
SELECT DISTINCT - + col0 * - 90 FROM tab2 AS cor0
----
4140
5760
6750

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9486
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 + - CAST( + + col0 AS SIGNED ) <> + 21 - col1 + + 65 * + - col1
----

skipif mysql # not compatible
query III rowsort label-9486
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 + - CAST ( + + col0 AS INTEGER ) <> + 21 - col1 + + 65 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL MIN( ALL + 97 ) AS col1 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL MIN ( ALL + 97 ) AS col1 FROM tab2
----
97

query I rowsort
SELECT - 30 * ( - 5 ) AS col0 FROM tab2
----
150
150
150

query II rowsort
SELECT - 48 * + - 50, 62 AS col2 FROM tab2
----
2400
62
2400
62
2400
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL 36 * - COUNT( * ) * - 63 col2 FROM tab0
----
6804

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9490
SELECT ALL 36 * - COUNT ( * ) * - 63 col2 FROM tab0
----
6804

query I rowsort
SELECT ( + 4 ) FROM tab0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT DISTINCT + + ( + COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9492
SELECT DISTINCT + + ( + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT ALL + - 68 * - COUNT( * ) AS col2, + 74 col1 FROM tab1 AS cor0
----
204
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9493
SELECT ALL + - 68 * - COUNT ( * ) AS col2, + 74 col1 FROM tab1 AS cor0
----
204
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT - MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT + + ( - COUNT( * ) ) * - + COUNT( * ) / - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT + + ( - COUNT ( * ) ) * - + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT DISTINCT 45 + + 6 DIV col2 * 57 + + col2 - + - col1 col1 FROM tab1 AS cor0
----
109
155
160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9496
SELECT DISTINCT 45 + + 6 / col2 * 57 + + col2 - + - col1 col1 FROM tab1 AS cor0
----
109
155
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL + COUNT( - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + COUNT ( - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * - 12 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 26 * + 79 FROM tab0
----
-2054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT - CAST( - 43 AS SIGNED ) - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-9500
SELECT - CAST ( - 43 AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 WHERE NOT 12 IN ( - col1 + col0, ( - 79 ), + 19 * - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 WHERE NOT 12 IN ( - col1 + col0, ( - 79 ), + 19 * - col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 61 AS col1 FROM tab2 WHERE NOT - + col1 < - col0 + - - 21 + + - col1
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL ( - MIN( DISTINCT + 82 ) ) AS col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL ( - MIN ( DISTINCT + 82 ) ) AS col1 FROM tab1 AS cor0
----
-82

query II rowsort
SELECT - + 9 AS col1, 48 FROM tab1 AS cor0
----
-9
48
-9
48
-9
48

query II rowsort
SELECT 12, col2 FROM tab2 AS cor0
----
12
23
12
40
12
58

query I rowsort
SELECT DISTINCT - col1 + - ( + + col0 ) FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 10 * - 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT - COUNT( * ) + + AVG ( DISTINCT - + 50 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT - COUNT ( * ) + + AVG ( DISTINCT - + 50 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2
----
NULL

query I rowsort
SELECT ( - - col0 ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL col1 + - CAST( NULL AS SIGNED ) + - - col1 + - + col1 * - ( + 75 ) + - 97 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) + - - col1 + - + col1 * - ( + 75 ) + - 97 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT BETWEEN + col2 AND + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT + 75 - - col1 DIV + col1 FROM tab2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-9512
SELECT + 75 - - col1 / + col1 FROM tab2
----
76
76
76

query I rowsort
SELECT + 36 AS col1 FROM tab1 WHERE - 7 IS NOT NULL
----
36
36
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 58 = + - 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 + - col1 col2, - 57 AS col1 FROM tab1 AS cor0
----
-110
-57
-115
-57
-64
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT ALL 46 DIV COUNT( DISTINCT - + col0 ) + + 93 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 46 / COUNT ( DISTINCT - + col0 ) + + 93 FROM tab1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ( + - COUNT( * ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9517
SELECT ( + - COUNT ( * ) ) col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 46 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT - SUM( 88 ) AS col2 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-9519
SELECT - SUM ( 88 ) AS col2 FROM tab2 AS cor0
----
-264

query I rowsort
SELECT ALL + + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - + ( - 39 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 32 col2 FROM tab0
----
1504
3168
320

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT + ( - 42 ) * - col1 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT ALL - CAST( ( - col1 ) AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - CAST ( ( - col1 ) AS INTEGER ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT DISTINCT - 30 + - MAX( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - 30 + - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT MAX( ALL - 91 ) + - 74 AS col1 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-9526
SELECT MAX ( ALL - 91 ) + - 74 AS col1 FROM tab0 AS cor0
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT ALL - - col0 * + col2 * 90 + - col1 DIV + col1 AS col1 FROM tab2 cor0
----
230399
391499
95219

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - - col0 * + col2 * 90 + - col1 / + col1 AS col1 FROM tab2 cor0
----
230399
391499
95219

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - CAST( - ( - col1 ) AS SIGNED ) + ( - ( col1 ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - CAST ( - ( - col1 ) AS INTEGER ) + ( - ( col1 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT - COUNT( * ) FROM tab2 WHERE + + col2 + - - col0 NOT BETWEEN NULL AND - 1
----
-3

skipif mysql # not compatible
query I rowsort label-9529
SELECT - COUNT ( * ) FROM tab2 WHERE + + col2 + - - col0 NOT BETWEEN NULL AND - 1
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 42 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL CAST( - - ( - 81 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9531
SELECT ALL CAST ( - - ( - 81 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-81
-81
-81

query II rowsort
SELECT + col2 AS col2, col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT - SUM( - 97 ) AS col2, - 73 + - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
291
-73

skipif mysql # not compatible
query II rowsort label-9533
SELECT - SUM ( - 97 ) AS col2, - 73 + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
291
-73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / + 28 / - 0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT ALL - CAST( + - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT NULL < col2 * - + col0 / - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9536
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT NULL < col2 * - + col0 / - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + 85 + - col0 FROM tab2
----
10
21
39

query I rowsort
SELECT col1 + + - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 + + 10 FROM tab0 WHERE NULL IS NULL
----
-11
-71
9

query I rowsort
SELECT ALL + ( col1 ) + - + col0 + 66 FROM tab1
----
-14
22
29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9541
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1 WHERE + 29 * - - 20 - + ( - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 WHERE + 29 * - - 20 - + ( - col1 ) IS NOT NULL
----
NULL

query II rowsort
SELECT - - col0 AS col1, + col2 FROM tab2 WHERE - 61 + - 5 / + 82 IS NOT NULL
----
46
23
64
40
75
58

query I rowsort
SELECT + col0 * col0 + 47 * + - 90 FROM tab0
----
-4005
3339
5179

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9544
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9544
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 + - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT - - 38 AS col2 FROM tab2 WHERE + ( + 55 ) IS NULL
----

query II rowsort
SELECT + 90 * - 17 + - - col2 + 5 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
-1426
-97
-1478
-15
-1515
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL - - col1 * + CAST( NULL AS SIGNED ) * col1 / - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL - - col1 * + CAST ( NULL AS INTEGER ) * col1 / - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT - SUM( DISTINCT - + 53 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT - SUM ( DISTINCT - + 53 ) FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL - + MAX( ALL + 98 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-98

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL - + MAX ( ALL + 98 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col1 * col0 FROM tab1 AS cor0
----
2131375
26466076
3495744

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * 45 FROM tab1 AS cor0
----
2115
225
630

onlyif mysql # DIV for integer division: 
query II rowsort label-9554
SELECT col2 * - col1 - ( - col2 ) col1, + 69 + 12 + col1 - - + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1248
98
-236
103
-3128
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9554
SELECT col2 * - col1 - ( - col2 ) col1, + 69 + 12 + col1 - - + col0 / + col1 AS col2 FROM tab1 AS cor0
----
-1248
98
-236
103
-3128
129

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 61 * - col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT col0 * - - 76 AS col0 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT col2 + col1 * - col1 - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > 16
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 <= - + col0
----

query I rowsort
SELECT DISTINCT 13 * + col2 AS col0 FROM tab2 AS cor0
----
299
520
754

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND - ( + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL - COUNT( * ) * - - 95 AS col1 FROM tab0 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - COUNT ( * ) * - - 95 AS col1 FROM tab0 cor0
----
-285

query I rowsort
SELECT ALL + col1 + + col2 * + 44 FROM tab2 AS cor0
----
1063
1837
2619

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9564
SELECT DISTINCT + - SUM( DISTINCT - 31 ) * - + 48 DIV + 4 AS col2, + 51 FROM tab2 AS cor0
----
-372
51

skipif mysql # not compatible
query II rowsort label-9564
SELECT DISTINCT + - SUM ( DISTINCT - 31 ) * - + 48 / + 4 AS col2, + 51 FROM tab2 AS cor0
----
-372
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 15 > NULL
----

query I rowsort
SELECT ALL + 80 * - - col2 FROM tab1 AS cor0
----
4720
5440
7680

query I rowsort
SELECT ALL + - col2 * + col1 + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT 15 DIV ( + 43 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9568
SELECT 15 / ( + 43 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9569
SELECT + + COUNT( * ) DIV - 26 AS col2 FROM tab0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT + + COUNT ( * ) / - 26 AS col2 FROM tab0 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT COUNT( DISTINCT + - 81 ) - + COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9570
SELECT COUNT ( DISTINCT + - 81 ) - + COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT DISTINCT + + 25 - + + COUNT( * ) col0 FROM tab1 WHERE col0 / 81 IS NOT NULL
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9571
SELECT DISTINCT + + 25 - + + COUNT ( * ) col0 FROM tab1 WHERE col0 / 81 IS NOT NULL
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT ALL 40 AS col2, + COUNT( DISTINCT - 1 ) FROM tab0, tab2 AS cor0
----
40
1

skipif mysql # not compatible
query II rowsort label-9572
SELECT ALL 40 AS col2, + COUNT ( DISTINCT - 1 ) FROM tab0, tab2 AS cor0
----
40
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 + + col1 col2, + col2 AS col1 FROM tab2
----
125
23
141
58
151
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) - + + ( + col0 ) col1 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT ALL + + col2 AS col2 FROM tab1 WHERE NOT - col1 IN ( - ( + ( + + col2 ) ), col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + + col2 AS col2 FROM tab1 WHERE NOT - col1 IN ( - ( + ( + + col2 ) ), col0, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 89 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL MIN( DISTINCT - 19 ) AS col1 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL MIN ( DISTINCT - 19 ) AS col1 FROM tab0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT col1 * - - col1 + col2 * + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
2277
292
84

skipif mysql # not compatible
query I rowsort label-9579
SELECT col1 * - - col1 + col2 * + col2 / + col2 AS col2 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT DISTINCT + CAST( 74 AS SIGNED ) * 39 AS col1 FROM tab2 AS cor0 WHERE 73 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT + CAST ( 74 AS INTEGER ) * 39 AS col1 FROM tab2 AS cor0 WHERE 73 IS NULL
----

query II rowsort
SELECT + + col2, - ( - col2 ) FROM tab2 AS cor0 WHERE NOT + 86 IS NOT NULL
----

query I rowsort
SELECT + 18 AS col1 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ( 26 ) FROM tab2 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9584
SELECT DISTINCT + 97 AS col0, COUNT( * ) FROM tab1 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-9584
SELECT DISTINCT + 97 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT - SUM( col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT - SUM ( col1 ) AS col0 FROM tab0 cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 + col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT 55 + - + col0 + - - 61 - + 93 + + 22 FROM tab2
----
-1
-19
-30

query I rowsort
SELECT + col2 + - 7 - col1 AS col2 FROM tab1
----
14
47
75

query I rowsort
SELECT 62 + col2 FROM tab0
----
109
161
72

query I rowsort
SELECT ALL + col1 * + 13 AS col0 FROM tab0 AS cor0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query II rowsort label-9591
SELECT 84 + + - COUNT( * ), SUM( + - col0 ) AS col0 FROM tab2 AS cor0
----
81
-185

skipif mysql # not compatible
query II rowsort label-9591
SELECT 84 + + - COUNT ( * ), SUM ( + - col0 ) AS col0 FROM tab2 AS cor0
----
81
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT DISTINCT + COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT + COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab2 cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT COUNT( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0 WHERE + 77 / + - 30 IN ( 7, col2 + 7 + + col0, - col2 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9594
SELECT COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0 WHERE + 77 / + - 30 IN ( 7, col2 + 7 + + col0, - col2 + col1 )
----
0

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NOT - 85 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL 57 + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
124
134

query II rowsort
SELECT + 55 + + - 56 * + col2 AS col0, col1 + 41 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3249
46
-3753
88
-5321
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT 91 + ( - + CAST( NULL AS SIGNED ) ) * col2 * + ( 63 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT 91 + ( - + CAST ( NULL AS INTEGER ) ) * col2 * + ( 63 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT col2 DIV + - col1 AS col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT col2 / + - col1 AS col1 FROM tab0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + MAX( + - 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-9602
SELECT + MAX ( + - 14 ) FROM tab1
----
-14

query I rowsort
SELECT DISTINCT + col2 - + - 40 AS col0 FROM tab2
----
63
80
98

query I rowsort
SELECT - 74 + col1 FROM tab2 WHERE NULL <> col1 * col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT 18 AS col1, - COUNT( * ) AS col2 FROM tab0
----
18
-3

skipif mysql # not compatible
query II rowsort label-9605
SELECT 18 AS col1, - COUNT ( * ) AS col2 FROM tab0
----
18
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT + SUM( ALL - 28 ) AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-9606
SELECT + SUM ( ALL - 28 ) AS col2 FROM tab1
----
-84

query I rowsort
SELECT ALL - ( ( 68 ) ) AS col1 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT DISTINCT col1 * + - col2 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, 15 + - - ( + - 59 ) FROM tab2
----
46
-44
64
-44
75
-44

query I rowsort
SELECT + - 45 AS col1 FROM tab0 WHERE NOT col1 / 99 + 57 + - col1 + - + col0 + - col1 * - - 99 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = col1 * + - 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - 13 FROM tab1 AS cor0
----
-14
-13
-47
-13
-5
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT ( - - col2 ) DIV + + col1 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9613
SELECT ( - - col2 ) / + + col1 AS col0 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - - MAX( + ( - + 79 ) ) * + 58 AS col0 FROM tab0 WHERE NOT 50 BETWEEN NULL AND + - col1
----
-4582

skipif mysql # not compatible
query I rowsort label-9614
SELECT - - MAX ( + ( - + 79 ) ) * + 58 AS col0 FROM tab0 WHERE NOT 50 BETWEEN NULL AND + - col1
----
-4582

query I rowsort
SELECT DISTINCT - 50 + 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9616
SELECT 64 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9616
SELECT 64 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 10 ) <> - - col0 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 + + + col2, - col1 col2 FROM tab1 AS cor0
----
112
-14
75
-5
84
-47

query I rowsort
SELECT ALL ( - - 5 ) * + 6 - + - col2 - 50 AS col0 FROM tab0 AS cor0 WHERE col2 + + + col0 IS NULL
----

query I rowsort
SELECT ALL + + col0 + - - col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + - 52 AS col1 FROM tab1 cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT col0 * 78 AS col0 FROM tab0
----
1170
6786
7566

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT ALL col1 + + col1 DIV + col0 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL col1 + + col1 / + col0 FROM tab0
----
1
21
86

query I rowsort
SELECT DISTINCT + ( - + ( - + 84 ) ) + + + col1 FROM tab2
----
135
151
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL - COUNT( * ) * + ( - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT ( + + ( - col2 ) ) + + col0 FROM tab2
----
17
23
24

query I rowsort
SELECT + 37 + - - 36 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL + COUNT( * ) col1 FROM tab2 cor0 WHERE - 16 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9628
SELECT ALL + COUNT ( * ) col1 FROM tab2 cor0 WHERE - 16 IS NULL
----
0

query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab2 AS cor0 WHERE + col1 * - 43 NOT BETWEEN - 7 AND 83
----
22

query I rowsort
SELECT 93 FROM tab1 WHERE NULL BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT ALL col1 * 96 FROM tab0
----
2016
7776
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL ( + COUNT( * ) ) + - 33 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL ( + COUNT ( * ) ) + - 33 FROM tab2
----
-30

query I rowsort
SELECT col1 * - 54 AS col0 FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT 55 + 56 FROM tab1
----
111
111
111

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 58 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT ALL 67 DIV ( ( + COUNT( * ) ) ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL 67 / ( ( + COUNT ( * ) ) ) FROM tab2
----
22

query I rowsort
SELECT col2 + - 85 FROM tab1 WHERE + 63 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT DISTINCT col1 DIV + 20 col0 FROM tab1
----
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9638
SELECT DISTINCT col1 / + 20 col0 FROM tab1
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9639
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT col2 * 67 AS col1 FROM tab1
----
3953
4556
6432

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) IN ( col0 * 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( 94 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT - MIN( + 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-9643
SELECT - MIN ( + 89 ) FROM tab0
----
-89

query I rowsort
SELECT + col2 - 95 FROM tab1
----
-27
-36
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT - 53 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT - 53 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 84 * - col1 AS col0 FROM tab0
----
-1764
-6804
-84

query III rowsort
SELECT * FROM tab2 WHERE ( ( col2 ) * col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT MAX( DISTINCT col1 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT MAX ( DISTINCT col1 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) IN ( + 7 * - 74 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT - 49 DIV 83 + - col2 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9650
SELECT - 49 / 83 + - col2 AS col0 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * - col1 NOT IN ( + col1 + - 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - 51 + + COUNT( * ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9652
SELECT - 51 + + COUNT ( * ) AS col1 FROM tab1
----
-48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9654
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 10 * + 35 NOT BETWEEN NULL AND ( col2 * 50 )
----

query I rowsort
SELECT ALL col0 * - 40 AS col1 FROM tab1 AS cor0 WHERE ( 92 ) > ( col1 )
----
-2040
-3400
-3640

query I rowsort
SELECT + ( 80 ) AS col2 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT DISTINCT - 56 * - 91 AS col2 FROM tab1 AS cor0
----
5096

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 68 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 51 FROM tab2 AS cor0 CROSS JOIN tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - - MAX( col0 ) col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9661
SELECT - - MAX ( col0 ) col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 70 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 * - 73 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT - - SUM( 47 ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - - SUM ( 47 ) FROM tab1 AS cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL - CAST( 72 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < col2 / col0 + + 64 * col0
----

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL - CAST ( 72 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < col2 / col0 + + 64 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - COUNT( * ) * - MIN( ALL 97 + - 8 * col2 ) FROM tab1 AS cor0
----
-2013

skipif mysql # not compatible
query I rowsort label-9666
SELECT - COUNT ( * ) * - MIN ( ALL 97 + - 8 * col2 ) FROM tab1 AS cor0
----
-2013

query I rowsort
SELECT ALL + col2 * - col2 + 46 AS col2 FROM tab2
----
-1554
-3318
-483

query I rowsort
SELECT ALL - 98 FROM tab1 WHERE + col1 IS NOT NULL
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT + col1 + - 56 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
-110
-138
-77

skipif mysql # not compatible
query I rowsort label-9669
SELECT + col1 + - 56 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
-110
-138
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9670
SELECT ALL CAST( NULL AS DECIMAL ) / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL CAST ( NULL AS REAL ) / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9671
SELECT - COUNT( * ) - 26 * + 96 AS col2 FROM tab0 WHERE + 2 * col0 NOT BETWEEN 33 * CAST( + 7 / 91 AS DECIMAL ) AND 52
----
-2498

skipif mysql # not compatible
query I rowsort label-9671
SELECT - COUNT ( * ) - 26 * + 96 AS col2 FROM tab0 WHERE + 2 * col0 NOT BETWEEN 33 * CAST ( + 7 / 91 AS REAL ) AND 52
----
-2498

query I rowsort
SELECT 78 + - - col1 FROM tab1
----
125
83
92

query I rowsort
SELECT 77 * 40 + - col2 FROM tab0
----
2981
3033
3070

query I rowsort
SELECT DISTINCT 13 + + 40 FROM tab2
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 83 * + col2 col2 FROM tab2
----
1960
3397
4881

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN - 0 * col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + col1 ) + 17 * col1 AS col2 FROM tab1 WHERE 83 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT COUNT( * ) + - 36 * + COUNT( * ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-9678
SELECT COUNT ( * ) + - 36 * + COUNT ( * ) FROM tab1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT COUNT( * ) * MIN( DISTINCT + col1 ) + 8 AS col2 FROM tab2
----
161

skipif mysql # not compatible
query I rowsort label-9679
SELECT COUNT ( * ) * MIN ( DISTINCT + col1 ) + 8 AS col2 FROM tab2
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT + - CAST( NULL AS SIGNED ) / + CAST( + col0 AS SIGNED ) * + col0 + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT + - CAST ( NULL AS INTEGER ) / + CAST ( + col0 AS INTEGER ) * + col0 + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 71 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT DISTINCT MAX( ALL - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT MAX ( ALL - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT + COUNT( * ) FROM tab1 WHERE NULL BETWEEN NULL AND - 93
----
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT + COUNT ( * ) FROM tab1 WHERE NULL BETWEEN NULL AND - 93
----
0

query I rowsort
SELECT ALL 46 + + + col2 FROM tab2
----
104
69
86

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 * col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT ALL - 28 - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-27
-7
53

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL - 28 - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-27
-7
53

query I rowsort
SELECT ALL col2 - - col0 * ( col1 ) + + col1 AS col0 FROM tab2
----
2420
5045
5150

query I rowsort
SELECT ALL col0 + + 17 + + + col2 FROM tab0
----
114
213
79

query I rowsort
SELECT - col1 * + ( + 91 ) + col0 AS col0 FROM tab2
----
-4595
-6022
-6943

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 25 IS NULL
----

query I rowsort
SELECT DISTINCT 65 - + col1 + + col2 FROM tab1 AS cor0
----
119
147
86

query I rowsort
SELECT DISTINCT col0 + - + col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 72 col2 FROM tab1 AS cor0
----
-119
-77
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT ALL - col1 - 44 DIV + 38 + + col2 AS col1 FROM tab1 cor0
----
20
53
81

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - col1 - 44 / + 38 + + col2 AS col1 FROM tab1 cor0
----
20
53
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT + 72 * + - COUNT( * ) AS col2 FROM tab0 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT + 72 * + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-216

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 24 < - 11 + + ( 30 )
----
15
87
97

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 + ( - 90 ) FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT - 31 DIV - - col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT - 31 / - - col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT DISTINCT col0 * - 75 * - - 39 FROM tab2
----
-134550
-187200
-219375

query I rowsort
SELECT DISTINCT - 29 * - col0 FROM tab2
----
1334
1856
2175

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + + 11 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9704
SELECT COUNT( * ) * + MAX( col2 ) + 68 * - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT ( - - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT COUNT ( * ) * + MAX ( col2 ) + 68 * - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT ( - - col1 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT + CAST( NULL AS SIGNED ) * 80 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT + CAST ( NULL AS INTEGER ) * 80 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL MIN( - + 56 ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL MIN ( - + 56 ) FROM tab0 AS cor0
----
-56

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 2 / + ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col2 FROM tab2 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL + + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT DISTINCT - col0 + CAST( - col0 AS SIGNED ) FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT - col0 + CAST ( - col0 AS INTEGER ) FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT COUNT( * ) * + COUNT( * ) * + 48 * - + 51 AS col2 FROM tab1
----
-22032

skipif mysql # not compatible
query I rowsort label-9711
SELECT COUNT ( * ) * + COUNT ( * ) * + 48 * - + 51 AS col2 FROM tab1
----
-22032

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - ( + 77 ) * + - col2 - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 22 col1, 71 AS col2 FROM tab0 AS cor0
----
22
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL + - CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + - CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - - 85 * - col1 + - - col1 + + 70 FROM tab0 AS cor0
----
-14
-1694
-6734

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) + + - col1 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9717
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) NOT IN ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9717
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) NOT IN ( + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT + col2 * + col0 + + - col0 FROM tab2
----
1012
2496
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT ALL + 26 DIV + col1 + + + 77 * + 75 FROM tab1
----
5775
5776
5780

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + 26 / + col1 + + + 77 * + 75 FROM tab1
----
5775
5776
5780

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * + col2 ) IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 69 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 * - col1 + 36 FROM tab0
----
-2637
-657
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL - CAST( + - col1 AS SIGNED ) - + + 35 FROM tab2
----
16
32
42

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - CAST ( + - col1 AS INTEGER ) - + + 35 FROM tab2
----
16
32
42

query I rowsort
SELECT DISTINCT - ( ( + + col1 ) ) - - + 1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9725
SELECT ALL - COUNT( * ) DIV - - COUNT( col1 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - COUNT ( * ) / - - COUNT ( col1 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
2

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE + col2 * 30 * + 8 < - 43
----

query I rowsort
SELECT DISTINCT - + 6 AS col1 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 + col1 / - - col2 - - + 62 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9729
SELECT - 86 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT - 86 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL - - COUNT( * ) * + MAX( - col1 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - - COUNT ( * ) * + MAX ( - col1 ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT ( + 49 ) * + 10 * - - col1 * - - col1 AS col2 FROM tab1
----
1082410
12250
96040

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL 43 + - + COUNT( DISTINCT - + col0 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL 43 + - + COUNT ( DISTINCT - + col0 ) FROM tab0
----
40

query I rowsort
SELECT DISTINCT 54 + 69 * + col1 * + col0 FROM tab1
----
29379
295167
49320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9734
SELECT + col2 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 67 <> + + ( col2 )
----

skipif mysql # not compatible
query II rowsort label-9734
SELECT + col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 67 <> + + ( col2 )
----

query I rowsort
SELECT DISTINCT - 55 * col0 AS col2 FROM tab2 AS cor0
----
-2530
-3520
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT + MAX( col1 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + MAX ( col1 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
231

query II rowsort
SELECT - 15 * col1 AS col2, 91 FROM tab1 cor0
----
-210
91
-705
91
-75
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9738
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ), col0, - 96 )
----

skipif mysql # not compatible
query III rowsort label-9738
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ), col0, - 96 )
----

query I rowsort
SELECT - col1 * col1 + + - col0 + 97 AS col2 FROM tab2 AS cor0
----
-2550
-4467
-5896

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col1 + + col1 * - - 60 < + col1 * - - 30 * - col1 - - col0 + + 50 * col2
----
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT - 83 AS col2, - 81 + + COUNT( - 89 ) AS col1 FROM tab1
----
-83
-78

skipif mysql # not compatible
query II rowsort label-9741
SELECT - 83 AS col2, - 81 + + COUNT ( - 89 ) AS col1 FROM tab1
----
-83
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT - 3 DIV + 45 FROM tab1 WHERE NOT + - col0 * 83 * + 68 + - - col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9742
SELECT - 3 / + 45 FROM tab1 WHERE NOT + - col0 * 83 * + 68 + - - col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9743
SELECT ALL COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9744
SELECT col1 DIV 19 DIV 61, col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-9744
SELECT col1 / 19 / 61, col1 FROM tab1
----
0
14
0
47
0
5

query III rowsort
SELECT * FROM tab2 WHERE NOT - 57 + - - ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + + 88 IS NOT NULL
----

query II rowsort
SELECT - col2, col1 AS col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9749
SELECT - CAST( NULL AS SIGNED ) col1, + 29 * col0 * - + col1 AS col0 FROM tab0
----
NULL
-2813
NULL
-35235
NULL
-52983

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9749
SELECT - CAST ( NULL AS INTEGER ) col1, + 29 * col0 * - + col1 AS col0 FROM tab0
----
NULL
-2813
NULL
-35235
NULL
-52983

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL >= + - 84
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 24 NOT BETWEEN NULL AND - 98 + + + col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9752
SELECT 91 * - 82 AS col0, MAX( + ( col2 ) ) FROM tab2
----
-7462
58

skipif mysql # not compatible
query II rowsort label-9752
SELECT 91 * - 82 AS col0, MAX ( + ( col2 ) ) FROM tab2
----
-7462
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL COUNT( + - 77 ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL COUNT ( + - 77 ) FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT ALL ( - - 94 ) AS col0 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT + - COUNT( * ) DIV 92 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT + - COUNT ( * ) / 92 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + + col0 * - col0 / + + 45 NOT BETWEEN NULL AND - - 74 * + col2 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - + 59 col0 FROM tab1 AS cor0
----
-8
26
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT COUNT( * ) + + - COUNT( * ) * + 34 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9758
SELECT COUNT ( * ) + + - COUNT ( * ) * + 34 FROM tab0
----
-99

query I rowsort
SELECT ALL + 62 - col2 + + col0 * + 31 AS col0 FROM tab1
----
1547
2638
2815

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-9761
SELECT col0, col0 DIV - CAST( NULL AS DECIMAL ) + + col0, + col0 DIV + 7 + - ( + + 22 ) AS col2 FROM tab2
----
9 values hashing to 9a92669f0b283a09808115ffdbb8a603

skipif mysql # not compatible
query III rowsort label-9761
SELECT col0, col0 / - CAST ( NULL AS REAL ) + + col0, + col0 / + 7 + - ( + + 22 ) AS col2 FROM tab2
----
9 values hashing to 9a92669f0b283a09808115ffdbb8a603

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - SUM( ALL + 99 ) FROM tab0 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9762
SELECT - SUM ( ALL + 99 ) FROM tab0 cor0
----
-297

query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
-3375
-658503
-912673

query II rowsort
SELECT ALL 30 AS col1, col0 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
30
-3396
30
-4533
30
-9165

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE + col1 BETWEEN + 86 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9766
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9766
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT DISTINCT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - - col1 AS col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT + - 23 FROM tab0 cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 18 col1 FROM tab0 cor0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - 93 * + SUM( DISTINCT - - col0 ) AS col2 FROM tab0
----
-18507

skipif mysql # not compatible
query I rowsort label-9771
SELECT - 93 * + SUM ( DISTINCT - - col0 ) AS col2 FROM tab0
----
-18507

query I rowsort
SELECT + 59 * - 99 AS col1 FROM tab0
----
-5841
-5841
-5841

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT col1 DIV + - col2 col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9773
SELECT col1 / + - col2 col0 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9774
SELECT CAST( - + SUM( DISTINCT col2 ) AS SIGNED ) * + + COUNT( * ) + - - 92 AS col1 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT CAST ( - + SUM ( DISTINCT col2 ) AS INTEGER ) * + + COUNT ( * ) + - - 92 AS col1 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT DISTINCT - - col0 / col0 * + col2 / + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - - col0 / col0 * + col2 / + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - - 74 + 51 FROM tab2 AS cor0
----
125
125
125

query I rowsort
SELECT DISTINCT - + 12 AS col2 FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + MAX( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9779
SELECT + MAX ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT MIN( col1 ) * 4 AS col2 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9780
SELECT MIN ( col1 ) * 4 AS col2 FROM tab2 AS cor0
----
204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9781
SELECT 67 DIV + + col1 + col0 AS col1, CAST( NULL AS SIGNED ) - - - col0 FROM tab0 cor0
----
15
NULL
164
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-9781
SELECT 67 / + + col1 + col0 AS col1, CAST ( NULL AS INTEGER ) - - - col0 FROM tab0 cor0
----
15
NULL
164
NULL
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + 92 * - - 52 * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-43056

skipif mysql # not compatible
query I rowsort label-9782
SELECT + 92 * - - 52 * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-43056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9783
SELECT COUNT( * ), - 26 + - SUM( DISTINCT + 42 ) AS col0 FROM tab1 AS cor0 WHERE - 33 / - 95 * + 25 * CAST( + + col2 AS SIGNED ) / - col2 + + col1 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9783
SELECT COUNT ( * ), - 26 + - SUM ( DISTINCT + 42 ) AS col0 FROM tab1 AS cor0 WHERE - 33 / - 95 * + 25 * CAST ( + + col2 AS INTEGER ) / - col2 + + col1 IS NULL
----
0
NULL

query I rowsort
SELECT ALL + 1 + + + 94 FROM tab2 AS cor0
----
95
95
95

query II rowsort
SELECT DISTINCT - - 68 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
68
10
68
47
68
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT ALL - ( - col2 ) DIV 10 + col2 AS col1 FROM tab1 AS cor0
----
105
64
74

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL - ( - col2 ) / 10 + col2 AS col1 FROM tab1 AS cor0
----
105
64
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL + 28 + - CAST( - col2 AS SIGNED ) - col0 * + + 26 + + CAST( - col0 AS SIGNED ) FROM tab2
----
-1191
-1660
-1939

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL + 28 + - CAST ( - col2 AS INTEGER ) - col0 * + + 26 + + CAST ( - col0 AS INTEGER ) FROM tab2
----
-1191
-1660
-1939

query III rowsort
SELECT * FROM tab0 WHERE + 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + + col0 = - col0
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col0 NOT IN ( col2 * + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT MIN( 57 ) - - - 23 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-9792
SELECT MIN ( 57 ) - - - 23 FROM tab0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT + CAST( - - col1 AS SIGNED ) + - 87 * 69 FROM tab1
----
-5956
-5989
-5998

skipif mysql # not compatible
query I rowsort label-9793
SELECT + CAST ( - - col1 AS INTEGER ) + - 87 * 69 FROM tab1
----
-5956
-5989
-5998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 + - 9 * - - 40 col1 FROM tab2
----
-434

query I rowsort
SELECT ALL - 59 * - 42 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9798
SELECT ALL COUNT( * ) AS col2, 22 AS col1 FROM tab0
----
3
22

skipif mysql # not compatible
query II rowsort label-9798
SELECT ALL COUNT ( * ) AS col2, 22 AS col1 FROM tab0
----
3
22

query I rowsort
SELECT ALL 17 * + - 3 FROM tab2
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col1 FROM tab1
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT ALL + ( + col0 ) * - col2 + - - col1 DIV - - col0 AS col2 FROM tab2 AS cor0
----
-1057
-2559
-4350

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL + ( + col0 ) * - col2 + - - col1 / - - col0 AS col2 FROM tab2 AS cor0
----
-1057
-2559
-4350

query I rowsort
SELECT ALL ( - col2 ) * + 99 AS col0 FROM tab2 AS cor0 WHERE + col0 * - col0 + + col2 > - col0
----

query II rowsort
SELECT DISTINCT + + col2, 64 FROM tab0 AS cor0
----
10
64
47
64
99
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT ALL - col1 DIV - col0 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - col1 / - col0 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 55 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * + 23, col1 FROM tab1 WHERE NOT 68 + ( - col2 ) - + 86 NOT BETWEEN + col0 AND + ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + col2 ) + - 7 * + 26 <> NULL
----

query I rowsort
SELECT + - col1 + - 91 FROM tab0 WHERE NOT - - col0 * - col2 <= + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + + col2 AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9811
SELECT 78, 62 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
78
NULL
78
NULL
78
NULL

skipif mysql # not compatible
query II rowsort label-9811
SELECT 78, 62 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
78
NULL
78
NULL
78
NULL

query I rowsort
SELECT ALL + 99 * + - 30 AS col0 FROM tab1
----
-2970
-2970
-2970

query I rowsort
SELECT DISTINCT - ( - 84 ) * - + col1 AS col0 FROM tab0
----
-1764
-6804
-84

query I rowsort
SELECT - - col2 + + - 29 FROM tab0 AS cor0
----
-19
18
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT ALL - + ( + 62 ) DIV + + 33 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9815
SELECT ALL - + ( + 62 ) / + + 33 col0 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + 69 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL - 89 + + col2 AS col2 FROM tab0
----
-42
-79
10

query I rowsort
SELECT 57 - - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2289
-4871
-4968

query I rowsort
SELECT 92 - 91 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL col2 + + + col0 * - - col2 FROM tab1 cor0
----
4992
5074
6256

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <= col0 * 91 + - col0
----

query I rowsort
SELECT + col2 + - + ( - col2 ) * - col2 AS col2 FROM tab2
----
-1560
-3306
-506

query I rowsort
SELECT ALL + col0 * + ( + + col1 ) + - + col0 + - + ( + + 29 ) FROM tab1
----
311
4157
634

onlyif mysql # aggregate syntax: 
query II rowsort label-9825
SELECT 27 AS col0, - COUNT( DISTINCT + 41 ) AS col2 FROM tab1
----
27
-1

skipif mysql # not compatible
query II rowsort label-9825
SELECT 27 AS col0, - COUNT ( DISTINCT + 41 ) AS col2 FROM tab1
----
27
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT ALL CAST( - col2 AS SIGNED ) + + col0 AS col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL CAST ( - col2 AS INTEGER ) + + col0 AS col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9827
SELECT COUNT( * ), COUNT( ALL - - col0 ) col2 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9827
SELECT COUNT ( * ), COUNT ( ALL - - col0 ) col2 FROM tab0
----
3
3

query I rowsort
SELECT ALL - 52 - col2 + + + col0 AS col0 FROM tab0
----
-54
-84
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + 66 + + COUNT( * ) AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + 66 + + COUNT ( * ) AS col0 FROM tab0
----
69

query I rowsort
SELECT - - 80 FROM tab1 WHERE + - col1 + + - col2 IS NULL
----

query I rowsort
SELECT ALL col2 * - - col1 - col0 * - 13 FROM tab2
----
1771
3912
4861

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= 77
----

query I rowsort
SELECT ALL col2 + 44 FROM tab2 AS cor0 WHERE ( 95 ) > NULL
----

query I rowsort
SELECT ALL + + 43 AS col2 FROM tab2 cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * 70 * + col0 * + col2 col1 FROM tab0 AS cor0 WHERE NOT + 1 * + col1 * + + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT - - MAX( ALL - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9837
SELECT - - MAX ( ALL - col0 ) FROM tab2 cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT ALL - CAST( 88 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - CAST ( 88 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= col2 + + 84
----

query I rowsort
SELECT - 38 * - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-59
3063
711

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT MIN( + 62 ) col1 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9841
SELECT MIN ( + 62 ) col1 FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL COUNT( * ) * MAX( DISTINCT + + col2 ) AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL COUNT ( * ) * MAX ( DISTINCT + + col2 ) AS col0 FROM tab1
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT DISTINCT col1 DIV + - col1 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT col1 / + - col1 AS col0 FROM tab0
----
-1

query I rowsort
SELECT - col0 + - + col0 FROM tab1 WHERE NOT - + col2 + 14 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( ( 20 ) ) col1 FROM tab0
----
-1740
-1940
-300

query I rowsort
SELECT col0 FROM tab1 WHERE - - 80 * - col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 + + col2 + col0, + col1 col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT - COUNT( * ) col1 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9850
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + - ( - + SUM( ALL col2 ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9851
SELECT + - ( - + SUM ( ALL col2 ) ) AS col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) * - col1 + 8 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 / + 25 * - 86 + - - 94 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - col0 + + col0 FROM tab0 AS cor0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9855
SELECT ALL COUNT( * ) * + COUNT( DISTINCT - col1 ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL COUNT ( * ) * + COUNT ( DISTINCT - col1 ) * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 86 + col1 AS col2 FROM tab2 AS cor0
----
137
153
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT DISTINCT + COUNT( * ) * - MAX( + col2 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT + COUNT ( * ) * - MAX ( + col2 ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9858
SELECT ALL - + 77 DIV - 28, + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 32 IS NOT NULL
----
2
0

skipif mysql # not compatible
query II rowsort label-9858
SELECT ALL - + 77 / - 28, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 32 IS NOT NULL
----
2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT col0 DIV + - 43 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT col0 / + - 43 FROM tab0 AS cor0
----
-2
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9860
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - 58 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9860
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - 58 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT - + 32 - - col2 DIV - col2 FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-9861
SELECT - + 32 - - col2 / - col2 FROM tab2 AS cor0
----
-33
-33
-33

query II rowsort
SELECT ALL col1 AS col0, + 50 * - + col2 AS col2 FROM tab2 cor0
----
51
-1150
67
-2900
77
-2000

query I rowsort
SELECT - col1 - - - col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ( - 96 ) - col1 FROM tab1
----
-101
-110
-143

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 63 ) AND + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - 6 + col0 - + 27 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col0 FROM tab1
----
-84
-84
-84

query II rowsort
SELECT ALL - col2, - col0 AS col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT - - COUNT( - 88 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9869
SELECT - - COUNT ( - 88 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - COUNT( ALL + + 93 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9870
SELECT - COUNT ( ALL + + 93 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT AVG ( - col1 ) FROM tab1 WHERE - 90 IS NULL
----
NULL

query I rowsort
SELECT - 80 FROM tab2 WHERE + col0 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9873
SELECT - col1 DIV 30 + - CAST( + + 1 AS SIGNED ) col2, col1 + ( - col2 ) - + - col1 - 14 col0 FROM tab1
----
-1
-63
-1
-82
-2
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9873
SELECT - col1 / 30 + - CAST ( + + 1 AS INTEGER ) col2, col1 + ( - col2 ) - + - col1 - 14 col0 FROM tab1
----
-1
-63
-1
-82
-2
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col2 col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT 20 + - ( - + 67 ) + col0 AS col0 FROM tab2
----
133
151
162

onlyif mysql # DIV for integer division: 
query II rowsort label-9876
SELECT 37 + + - col0, + col2 DIV - col0 AS col1 FROM tab0
----
-50
0
-60
-1
22
-3

skipif mysql # not compatible
query II rowsort label-9876
SELECT 37 + + - col0, + col2 / - col0 AS col1 FROM tab0
----
-50
0
-60
-1
22
-3

query I rowsort
SELECT - + 82 + - - 68 FROM tab2 AS cor0
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 / col2 * col1 * - 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + + COUNT( * ) * + + MIN( ALL ( - 32 ) ) * - SUM( ALL - 58 ) AS col0 FROM tab2 cor0
----
-16704

skipif mysql # not compatible
query I rowsort label-9879
SELECT + + COUNT ( * ) * + + MIN ( ALL ( - 32 ) ) * - SUM ( ALL - 58 ) AS col0 FROM tab2 cor0
----
-16704

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL SUM( 4 ) + 29 AS col2 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL SUM ( 4 ) + 29 AS col2 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9881
SELECT DISTINCT - COUNT( + col2 ) + COUNT( * ) + COUNT( * ) + - + COUNT( * ) * + COUNT( col0 ) DIV - 77 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT - COUNT ( + col2 ) + COUNT ( * ) + COUNT ( * ) + - + COUNT ( * ) * + COUNT ( col0 ) / - 77 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + SUM( ALL + + 66 ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-9882
SELECT + SUM ( ALL + + 66 ) FROM tab2
----
198

query I rowsort
SELECT DISTINCT + col2 * 88 - 89 AS col2 FROM tab1
----
5103
5895
8359

query I rowsort
SELECT DISTINCT col0 * col2 - - col1 AS col0 FROM tab1
----
4910
5020
6235

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT 6 DIV + - col1 - + col0 + 87 AS col0 FROM tab0
----
-16
0
72

skipif mysql # not compatible
query I rowsort label-9885
SELECT 6 / + - col1 - + col0 + 87 AS col0 FROM tab0
----
-16
0
72

query I rowsort
SELECT - col0 * col0 + + 0 AS col1 FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL 61 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * + col2 >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT COUNT( * ) * + COUNT( ALL - ( + col0 ) ) / - 69 * - COUNT( * ) + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT COUNT ( * ) * + COUNT ( ALL - ( + col0 ) ) / - 69 * - COUNT ( * ) + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 + col2 + - col1 FROM tab0 cor0
----
-115
-32
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 NOT BETWEEN NULL AND - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9893
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col0, - col0 + 39 FROM tab0
----
NULL
-48
NULL
-58
NULL
24

skipif mysql # not compatible
query II rowsort label-9893
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col0, - col0 + 39 FROM tab0
----
NULL
-48
NULL
-58
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT DISTINCT - ( - - COUNT( * ) ) * - + 58 + - 5 FROM tab0
----
169

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - ( - - COUNT ( * ) ) * - + 58 + - 5 FROM tab0
----
169

query I rowsort
SELECT ALL + col0 * + col0 * ( col1 ) AS col2 FROM tab2
----
107916
315392
376875

onlyif mysql # DIV for integer division: 
query I rowsort label-9896
SELECT DISTINCT - col2 DIV - 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - col2 / - 93 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9897
SELECT DISTINCT CAST( - col0 AS SIGNED ), col0 + - 21 AS col2, + - 4 AS col2 FROM tab1
----
9 values hashing to e38fae73af3f0555c70a232365aa1bda

skipif mysql # not compatible
query III rowsort label-9897
SELECT DISTINCT CAST ( - col0 AS INTEGER ), col0 + - 21 AS col2, + - 4 AS col2 FROM tab1
----
9 values hashing to e38fae73af3f0555c70a232365aa1bda

query I rowsort
SELECT + 0 * - - 41 * col2 FROM tab0
----
0
0
0

query II rowsort
SELECT - col1, col2 AS col1 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL ( 15 ) AS col0 FROM tab0
----
15
15
15

query I rowsort
SELECT ALL col1 * + col0 * - + 59 FROM tab2 cor0
----
-138414
-290752
-296475

query I rowsort
SELECT ALL - + col2 * - - 2 * - - col2 AS col0 FROM tab2 AS cor0
----
-1058
-3200
-6728

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL + MAX( ALL + + 14 ) AS col1 FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + MAX ( ALL + + 14 ) AS col1 FROM tab0 cor0
----
14

query I rowsort
SELECT - col0 * + - 49 AS col0 FROM tab1
----
2499
4165
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + 98 * COUNT( * ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-9905
SELECT + 98 * COUNT ( * ) FROM tab1
----
294

query I rowsort
SELECT 13 * col0 FROM tab0
----
1131
1261
195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 NOT BETWEEN 32 * + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 <= - 91 * - col2
----

query I rowsort
SELECT - 13 + - col0 * col0 * + col1 * + col2 FROM tab1 AS cor0
----
-2131388
-26466089
-3495757

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT + - col0 + - - 90 * col0 * - col1 * 66 AS col2 FROM tab2 AS cor0
----
-13935286
-29272384
-29848575

query I rowsort
SELECT + - 66 * + col0 + + + col2 FROM tab1 cor0
----
-3270
-5551
-5938

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9913
SELECT + - col2 * - + 70 AS col0, - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4130
NULL
4760
NULL
6720
NULL

skipif mysql # not compatible
query II rowsort label-9913
SELECT + - col2 * - + 70 AS col0, - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4130
NULL
4760
NULL
6720
NULL

query I rowsort
SELECT ALL + 89 + - + col2 FROM tab2
----
31
49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT COUNT( * ) FROM tab2 WHERE NULL IN ( + col0 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9915
SELECT COUNT ( * ) FROM tab2 WHERE NULL IN ( + col0 + - col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT ALL col0 * col0 DIV - 98 + + col2 * + + 98 FROM tab0
----
4604
903
9606

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL col0 * col0 / - 98 + + col2 * + + 98 FROM tab0
----
4604
903
9606

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9917
SELECT ALL * FROM tab2 WHERE NOT + ( + 73 ) * + col0 * - col1 + + + col1 / - col0 + col0 + - col2 / - CAST( + col1 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9917
SELECT ALL * FROM tab2 WHERE NOT + ( + 73 ) * + col0 * - col1 + + + col1 / - col0 + col0 + - col2 / - CAST ( + col1 AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL - 62 + - 57 AS col1 FROM tab0
----
-119
-119
-119

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT - col2 + - - col1 DIV col1 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - col2 + - - col1 / col1 FROM tab1 AS cor0
----
-58
-67
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9922
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + + COUNT( * ) + - + 78 + 33 AS col2 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9923
SELECT + + COUNT ( * ) + - + 78 + 33 AS col2 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL - 22 * + - col0 FROM tab0 AS cor0
----
1914
2134
330

query III rowsort
SELECT ALL * FROM tab1 WHERE 78 <= ( - - 56 )
----

query II rowsort
SELECT DISTINCT col1 - - col0 + + col0 + + col2, col2 AS col2 FROM tab2
----
166
23
245
40
275
58

query I rowsort
SELECT DISTINCT + - 51 - + col2 FROM tab2 cor0
----
-109
-74
-91

query I rowsort
SELECT ALL + - col1 * - col0 + 80 FROM tab1 AS cor0
----
4357
505
794

query I rowsort
SELECT + - ( + 3 ) * - + col0 FROM tab0 AS cor0
----
261
291
45

query I rowsort
SELECT 20 * 84 * + + 29 * - col1 FROM tab1 AS cor0
----
-2289840
-243600
-682080

query I rowsort
SELECT + - 92 * - - col2 AS col0 FROM tab1 AS cor0
----
-5428
-6256
-8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab2 AS cor0 WHERE NOT col1 / + col0 IN ( - col0, - col2, col2 )
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL MIN( + 80 ) FROM tab0, tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL MIN ( + 80 ) FROM tab0, tab2 AS cor0
----
80

query I rowsort
SELECT + 3 FROM tab0 WHERE NOT NULL < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT + - col2 <> + + col0 * 23 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-9935
SELECT CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT + - col2 <> + + col0 * 23 * - col0
----
0

query II rowsort
SELECT col2, 18 AS col2 FROM tab2
----
23
18
40
18
58
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9937
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9937
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) col0 FROM tab0
----
1

query I rowsort
SELECT ALL col0 * 60 AS col1 FROM tab2 AS cor0
----
2760
3840
4500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 AS col1, col0 col1 FROM tab0 AS cor0
----
22
15
22
87
22
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT + 47 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + 47 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-141

query I rowsort
SELECT ALL + - 34 AS col0 FROM tab0 AS cor0
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col1, col0 AS col2 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL 29 * COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL 29 * COUNT ( * ) FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - 14 * MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
812

skipif mysql # not compatible
query I rowsort label-9945
SELECT - 14 * MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
812

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT ALL + COUNT( * ) AS col1, + 76 FROM tab1
----
3
76

skipif mysql # not compatible
query II rowsort label-9946
SELECT ALL + COUNT ( * ) AS col1, + 76 FROM tab1
----
3
76

query I rowsort
SELECT + - col2 * - + ( + + col0 ) + + - col2 + + + col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT DISTINCT - col1 col2 FROM tab2 cor0 WHERE NOT ( NOT + col0 NOT BETWEEN CAST( + col2 AS SIGNED ) - - col0 AND + col2 )
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9949
SELECT DISTINCT - col1 col2 FROM tab2 cor0 WHERE NOT ( NOT + col0 NOT BETWEEN CAST ( + col2 AS INTEGER ) - - col0 AND + col2 )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-9950
SELECT DISTINCT 8, - col0 + + col2 + 36 DIV - col1 AS col0 FROM tab2 cor0
----
8
-17
8
-23
8
-24

skipif mysql # not compatible
query II rowsort label-9950
SELECT DISTINCT 8, - col0 + + col2 + 36 / - col1 AS col0 FROM tab2 cor0
----
8
-17
8
-23
8
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT + - ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 + - col1 + + 79 + 63 AND - 40
----
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + - ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 + - col1 + + 79 + 63 AND - 40
----
0

query I rowsort
SELECT DISTINCT col0 + col0 + - - ( + col0 ) - ( - 46 ) + - col1 FROM tab2
----
133
161
204

query I rowsort
SELECT DISTINCT 37 + - - ( + col1 ) + + + 22 + 22 * + col1 AS col0 FROM tab1
----
1140
174
381

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + MAX( - col2 ) + + 71 col2 FROM tab2
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT + MAX ( - col2 ) + + 71 col2 FROM tab2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9955
SELECT - COUNT( * ) + + 51 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 8 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT - COUNT ( * ) + + 51 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 8 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab2 AS cor0 WHERE - 28 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9956
SELECT CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab2 AS cor0 WHERE - 28 IS NULL
----

query II rowsort
SELECT ALL + 15 + - col2, col2 AS col1 FROM tab1 cor0
----
-44
59
-53
68
-81
96

query I rowsort
SELECT 55 - + 67 AS col1 FROM tab2
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-9959
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9961
SELECT ALL + - 76, ( - COUNT( * ) ) + - COUNT( * ) + + - 97 AS col1 FROM tab1 AS cor0
----
-76
-103

skipif mysql # not compatible
query II rowsort label-9961
SELECT ALL + - 76, ( - COUNT ( * ) ) + - COUNT ( * ) + + - 97 AS col1 FROM tab1 AS cor0
----
-76
-103

query I rowsort
SELECT + col0 + - 46 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - - 67 AS col2, - col1 * + - 4 AS col1 FROM tab2 AS cor0
----
67
204
67
268
67
308

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT SUM( + - col2 ) * - 62 FROM tab2
----
7502

skipif mysql # not compatible
query I rowsort label-9964
SELECT SUM ( + - col2 ) * - 62 FROM tab2
----
7502

query II rowsort
SELECT col0 * + + col2 AS col1, col0 + + 72 AS col0 FROM tab2
----
1058
118
2560
136
4350
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT COUNT( * ) * - + ( - 72 ) AS col2 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-9966
SELECT COUNT ( * ) * - + ( - 72 ) AS col2 FROM tab2
----
216

query I rowsort
SELECT DISTINCT 55 * + - col2 AS col0 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT ALL - col1 * + + col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL + COUNT( * ) * - 22 col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9969
SELECT ALL + COUNT ( * ) * - 22 col1 FROM tab1
----
-66

query I rowsort
SELECT 92 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT ALL + col1 DIV 38 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + col1 / 38 FROM tab0
----
0
0
2

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + - col2 AND col2 * - col0 + - col0 * col1 + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9973
SELECT DISTINCT + COUNT( DISTINCT col2 ) DIV - MIN( 87 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT + COUNT ( DISTINCT col2 ) / - MIN ( 87 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 46 + - 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2, 44 col2 FROM tab0 AS cor0
----
10
44
47
44
99
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT DISTINCT CAST( - + col2 AS SIGNED ) + + - col2 + - + 93 + + ( + col2 ) * 25 FROM tab2 AS cor0
----
1241
436
827

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) + + - col2 + - + 93 + + ( + col2 ) * 25 FROM tab2 AS cor0
----
1241
436
827

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + MIN( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9977
SELECT + MIN ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9979
SELECT - ( - col0 ) DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9979
SELECT - ( - col0 ) / - col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 * col1 * + 92 * 90 AS col0 FROM tab1 AS cor0
----
11128320
2442600
26462880

query I rowsort
SELECT DISTINCT - 77 + - + col1 FROM tab1 AS cor0
----
-124
-82
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT ALL - col2 + + + CAST( - 87 AS SIGNED ) FROM tab0
----
-134
-186
-97

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - col2 + + + CAST ( - 87 AS INTEGER ) FROM tab0
----
-134
-186
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NULL ) NOT BETWEEN + 10 AND + + 89 )
----

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * 61 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL + col2 * + + CAST( - 60 AS SIGNED ) - + - col1 col0 FROM tab1
----
-3535
-4033
-5746

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9985
SELECT ALL + col2 * + + CAST ( - 60 AS INTEGER ) - + - col1 col0 FROM tab1
----
-3535
-4033
-5746

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT COUNT( * ) + - MIN( + 62 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT COUNT ( * ) + - MIN ( + 62 ) AS col2 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + - col1 > NULL OR ( + - col0 ) * - + col0 <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9988
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + - col1 * - col2 AS col0, 57 FROM tab1 AS cor0
----
1344
57
295
57
3196
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT - COUNT( * ) * SUM( DISTINCT 94 ) FROM tab0 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9990
SELECT - COUNT ( * ) * SUM ( DISTINCT 94 ) FROM tab0 cor0
----
-282

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9992
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * 63 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9992
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * 63 IS NULL
----

query I rowsort
SELECT + 20 + + col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 51 * col1 AS col1 FROM tab0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 70 + COUNT( * ) AS col1 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 70 + COUNT ( * ) AS col1 FROM tab0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9996
SELECT DISTINCT + + 19 AS col2, 38 + - CAST( NULL AS SIGNED ) - + 52 * + COUNT( * ) FROM tab1 AS cor0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-9996
SELECT DISTINCT + + 19 AS col2, 38 + - CAST ( NULL AS INTEGER ) - + 52 * + COUNT ( * ) FROM tab1 AS cor0
----
19
NULL

query I rowsort
SELECT + col0 * + 82 + - 78 + + 46 + - col1 + - - 59 FROM tab1 AS cor0
----
4195
6992
7442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 85 + col0 * - col2 + + col0 col0 FROM tab1 AS cor0
----
-4664
-4786
-5944

onlyif mysql # aggregate syntax: 
query II rowsort label-9999
SELECT ALL 86 * - COUNT( DISTINCT + 85 ) AS col0, 16 FROM tab0 cor0
----
-86
16

skipif mysql # not compatible
query II rowsort label-9999
SELECT ALL 86 * - COUNT ( DISTINCT + 85 ) AS col0, 16 FROM tab0 cor0
----
-86
16

