hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 + + - col0 + - 67 AS col2 FROM tab1
----
-22
-90
-93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT - 37 DIV + 90 + + ( col1 ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2
SELECT - 37 / + 90 + + ( col1 ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3
SELECT DISTINCT - 17 DIV - COUNT( + - 79 ) + - 12 col1 FROM tab1
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3
SELECT DISTINCT - 17 / - COUNT ( + - 79 ) + - 12 col1 FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT + COUNT( * ) * - 77 AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4
SELECT + COUNT ( * ) * - 77 AS col0 FROM tab2 AS cor0
----
-231

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT + - col1 - + CAST( + 63 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-144
-64
-84

skipif mysql # not compatible
query I rowsort label-6
SELECT + - col1 - + CAST ( + 63 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-144
-64
-84

query I rowsort
SELECT DISTINCT + 42 - + + col1 AS col2 FROM tab2 AS cor0
----
-25
-35
-9

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

query I rowsort
SELECT DISTINCT + - 21 - - col1 FROM tab1 AS cor0
----
-16
-7
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 - + col2 col1 FROM tab1 AS cor0
----
-15
-43
-6

query I rowsort
SELECT DISTINCT + ( + col2 ) + + 83 + col1 FROM tab1 AS cor0
----
147
193
198

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT + SUM( DISTINCT col1 ) FROM tab2 WHERE NOT - 80 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT + SUM ( DISTINCT col1 ) FROM tab2 WHERE NOT - 80 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT DISTINCT + 12 * + CAST( + - col0 AS SIGNED ) AS col1 FROM tab0
----
-1044
-1164
-180

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT + 12 * + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0
----
-1044
-1164
-180

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

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

query I rowsort
SELECT col1 * + - col2 FROM tab1 WHERE NOT NULL = - - 8 * 27
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT - SUM( + 68 ) FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-20
SELECT - SUM ( + 68 ) FROM tab2 AS cor0
----
-204

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - MIN( ALL 4 ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-23
SELECT - MIN ( ALL 4 ) AS col0 FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL + 88 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL + 88 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
91

query I rowsort
SELECT col1 * - col1 + + col1 FROM tab0 AS cor0
----
-420
-6480
0

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

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

skipif mysql # not compatible
query I rowsort label-27
SELECT COUNT ( * ) + - 10 AS col2 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL - 79 * - 61 AS col0 FROM tab1 AS cor0
----
4819
4819
4819

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 21 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col2, col1 * + + 60 FROM tab2 AS cor0
----
23
3060
40
4620
58
4020

query I rowsort
SELECT + col1 + 23 AS col2 FROM tab0 AS cor0
----
104
24
44

onlyif mysql # DIV for integer division: 
query II rowsort label-33
SELECT ALL - 61, - col1 DIV - ( col1 ) AS col0 FROM tab2 AS cor0
----
-61
1
-61
1
-61
1

skipif mysql # not compatible
query II rowsort label-33
SELECT ALL - 61, - col1 / - ( col1 ) AS col0 FROM tab2 AS cor0
----
-61
1
-61
1
-61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + + MIN( - col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT + + MIN ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) - + ( + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 46 * + 9 * - ( 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT DISTINCT 66 + + + COUNT( - + col1 ) * + 59 AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT 66 + + + COUNT ( - + col1 ) * + 59 AS col2 FROM tab0
----
243

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

onlyif mysql # aggregate syntax: 
query II rowsort label-38
SELECT ALL 44 AS col1, + MIN( DISTINCT + col1 ) col2 FROM tab2
----
44
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-38
SELECT ALL 44 AS col1, + MIN ( DISTINCT + col1 ) col2 FROM tab2
----
44
51

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT ALL - col0 DIV + ( - + 13 ) AS col2 FROM tab0 AS cor0
----
1
6
7

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - col0 / + ( - + 13 ) AS col2 FROM tab0 AS cor0
----
1
6
7

query I rowsort
SELECT - - 23 - 65 - + col1 AS col0 FROM tab0 cor0
----
-123
-43
-63

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-42
SELECT ALL - COUNT( + col2 ) + + 16 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
16

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL - COUNT ( + col2 ) + + 16 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
16

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 32 < - col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + MIN( ALL + 27 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-45
SELECT + MIN ( ALL + 27 ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT ALL 31 * - 55 + + col0 AS col2 FROM tab2 AS cor0
----
-1630
-1641
-1659

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-49
SELECT COUNT( * ) DIV COUNT( * ) col2, - ( - - 82 ) FROM tab0 AS cor0
----
1
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-49
SELECT COUNT ( * ) / COUNT ( * ) col2, - ( - - 82 ) FROM tab0 AS cor0
----
1
-82

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

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT - + ( - MAX ( DISTINCT - - col2 ) ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
96

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 AS col2 FROM tab2
----
46
-23
64
-40
75
-58

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

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

query II rowsort
SELECT + col1 * ( + col0 ) AS col0, - col0 + - + ( col2 ) FROM tab1
----
425
-144
4277
-159
714
-147

query III rowsort
SELECT * FROM tab1 WHERE NOT + 85 = NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT MAX( ALL - col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-58
SELECT DISTINCT MAX ( ALL - col1 ) col2 FROM tab1
----
-5

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

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

query I rowsort
SELECT - 91 * + col1 AS col2 FROM tab0 AS cor0
----
-1911
-7371
-91

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

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

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

query I rowsort
SELECT col2 + + 14 FROM tab1
----
110
73
82

query III rowsort
SELECT * FROM tab0 WHERE + col2 = - + col1 * col1
----

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

query I rowsort
SELECT - 89 + + - col1 AS col2 FROM tab1
----
-103
-136
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT 36 + + col2 DIV 30 AS col0 FROM tab1
----
37
38
39

skipif mysql # not compatible
query I rowsort label-67
SELECT 36 + + col2 / 30 AS col0 FROM tab1
----
37
38
39

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

skipif mysql # not compatible
query I rowsort label-68
SELECT - COUNT ( * ) + - COUNT ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT + col1 + 82 * - col2 AS col2, 72 FROM tab1
----
-4833
72
-5529
72
-7858
72

query I rowsort
SELECT + col1 + + - col2 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-71
SELECT DISTINCT col2 - - - ( - col1 ) + + - 71 DIV col1, 77 * - + col1 col0 FROM tab0 AS cor0
----
128
-6237
28
-1617
29
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-71
SELECT DISTINCT col2 - - - ( - col1 ) + + - 71 / col1, 77 * - + col1 col0 FROM tab0 AS cor0
----
128
-6237
28
-1617
29
-77

query I rowsort
SELECT DISTINCT - - 59 - + + col2 + + 58 AS col2 FROM tab0 AS cor0
----
107
18
70

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

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

query I rowsort
SELECT col0 - 65 AS col2 FROM tab0
----
-50
22
32

query II rowsort
SELECT + 46 - + col0 + col1 + - + col0 + col1 - 64 AS col1, col2 AS col0 FROM tab0
----
-150
10
-210
99
114
47

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-78
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT ALL - 34 DIV - - 21 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL - 34 / - - 21 AS col0 FROM tab0
----
-1
-1
-1

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 33 AND + - 96 + - col2
----

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

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

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

query I rowsort
SELECT ALL + + col1 + + - 98 / + col1 + - col0 FROM tab0 AS cor0 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT COUNT( * ) + + + MAX( ALL - + col0 ) + - 30 * 15 FROM tab2
----
-493

skipif mysql # not compatible
query I rowsort label-85
SELECT COUNT ( * ) + + + MAX ( ALL - + col0 ) + - 30 * 15 FROM tab2
----
-493

query I rowsort
SELECT - col1 + - 33 AS col0 FROM tab1 AS cor0
----
-38
-47
-80

query I rowsort
SELECT DISTINCT - col0 + + col2 + + col0 / ( - ( - 38 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 48 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - 32 FROM tab1 AS cor0
----
-37
-46
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL SUM( - 34 ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL SUM ( - 34 ) FROM tab2 AS cor0
----
-102

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

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

query I rowsort
SELECT - + col0 * ( + 92 ) AS col2 FROM tab1 AS cor0
----
-4692
-7820
-8372

query I rowsort
SELECT DISTINCT - 1 * + 24 FROM tab2
----
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + - col1 ) + + - 86 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 89 IS NULL
----

query I rowsort
SELECT ALL + col0 + 57 AS col1 FROM tab1
----
108
142
148

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT + COUNT( * ) - 27 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-98
SELECT + COUNT ( * ) - 27 FROM tab2
----
-24

query I rowsort
SELECT DISTINCT - ( + 57 ) + - - col0 FROM tab0
----
-42
30
40

query I rowsort
SELECT col1 * - col2 * col0 - - 57 AS col1 FROM tab1 AS cor0
----
-25018
-290779
-68487

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL = ( 59 * 56 ) )
----

query I rowsort
SELECT 33 * + col0 AS col0 FROM tab1
----
1683
2805
3003

query I rowsort
SELECT 82 * + 34 AS col1 FROM tab0
----
2788
2788
2788

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-104
SELECT ALL + col1 AS col2, col2 + - ( 88 ) * + col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-104
SELECT ALL + col1 AS col2, col2 + - ( 88 ) * + col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL + - col2 AS col0, ( - - col2 ) AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

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

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

query I rowsort
SELECT DISTINCT 10 * + col0 FROM tab0
----
150
870
970

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

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + 1 / + col0 FROM tab2
----
0
0
0

query II rowsort
SELECT 72, col0 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 * + - 73 AND - + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT MIN( - col2 ) * - COUNT( * ) - + + COUNT( * ) AS col0 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-111
SELECT MIN ( - col2 ) * - COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL + 99 + 69 * + COUNT( * ) FROM tab0
----
306

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL + 99 + 69 * + COUNT ( * ) FROM tab0
----
306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT + CAST( NULL AS SIGNED ) + 83 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT + CAST ( NULL AS INTEGER ) + 83 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT DISTINCT col1 * - CAST( - - col2 AS SIGNED ) * - col1 * - col1 FROM tab1 AS cor0
----
-263424
-7059964
-7375

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT col1 * - CAST ( - - col2 AS INTEGER ) * - col1 * - col1 FROM tab1 AS cor0
----
-263424
-7059964
-7375

query I rowsort
SELECT - col1 + - 44 - + col2 AS col0 FROM tab2 cor0 WHERE NOT ( NOT - col2 = - 69 * - col2 * + - col0 + + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * - - 47 col2 FROM tab1 cor0
----
163607
217328
433152

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

query I rowsort
SELECT DISTINCT - 77 * + col0 * + col1 * col1 FROM tab2
----
-25923975
-29218112
-9212742

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT DISTINCT 82 + + COUNT( * ) + - COUNT( * ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT 82 + + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT DISTINCT - - COUNT( * ) + + + 28 AS col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT - - COUNT ( * ) + + + 28 AS col0 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL 98 * + COUNT( * ) + - 95 AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL 98 * + COUNT ( * ) + - 95 AS col1 FROM tab0 AS cor0
----
199

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

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

query I rowsort
SELECT 9 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + - ( + col2 ) - - - 6 - - + 18 AS col2 FROM tab1 AS cor0
----
-47
-56
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * - col2 * 8 + - 81 col2 FROM tab0 AS cor0
----
-36929
-77697
-7921

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-127
SELECT DISTINCT + 83 - - 33 + - + col1 + + - CAST( - col2 AS SIGNED ), + col0 FROM tab0 AS cor0
----
105
87
214
97
82
15

skipif mysql # not compatible
query II rowsort label-127
SELECT DISTINCT + 83 - - 33 + - + col1 + + - CAST ( - col2 AS INTEGER ), + col0 FROM tab0 AS cor0
----
105
87
214
97
82
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-128
SELECT COUNT( + 0 ) + + + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-128
SELECT COUNT ( + 0 ) + + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
NULL
3

query I rowsort
SELECT col2 * + 60 + - - 77 FROM tab0
----
2897
6017
677

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT ( - + COUNT( + 21 ) ) * 91 + COUNT( * ) AS col2 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT ( - + COUNT ( + 21 ) ) * 91 + COUNT ( * ) AS col2 FROM tab1
----
-270

query II rowsort
SELECT col2 + - - 26 - - col2 AS col0, col1 FROM tab1
----
144
5
162
47
218
14

query I rowsort
SELECT DISTINCT - col1 * 84 * - + col2 + - 57 - - col2 AS col1 FROM tab0
----
17593
319778
8358

query I rowsort
SELECT ( col0 ) * + 77 + 82 FROM tab1
----
4009
6627
7089

query II rowsort
SELECT + col0, 33 + - - 84 AS col2 FROM tab1
----
51
117
85
117
91
117

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT + 53 * - col2 FROM tab1 WHERE 60 IN ( + 88 * CAST( 20 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-136
SELECT + 53 * - col2 FROM tab1 WHERE 60 IN ( + 88 * CAST ( 20 AS INTEGER ) )
----

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

query I rowsort
SELECT - col0 * col0 + col0 * + col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT 97 + + 46 AS col2 FROM tab1
----
143

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

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

query I rowsort
SELECT ( + 17 ) + 6 FROM tab2
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT 12 DIV + col2 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-144
SELECT 12 / + col2 + col0 FROM tab2
----
46
64
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT col2 DIV col2 + + col2 * + 78 FROM tab0
----
3667
7723
781

skipif mysql # not compatible
query I rowsort label-146
SELECT col2 / col2 + + col2 * + 78 FROM tab0
----
3667
7723
781

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( ( 76 ) )
----

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

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + MAX ( - col0 ) FROM tab1
----
-51

query III rowsort
SELECT * FROM tab2 WHERE + ( - col0 ) * 81 = + col0 * 6
----

query I rowsort
SELECT DISTINCT - col2 + col0 AS col1 FROM tab0 WHERE + col1 + 80 < NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-152
SELECT COUNT ( 0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col2 + - 89 FROM tab1
----
-21
-30
7

query I rowsort
SELECT DISTINCT + ( col0 ) - col1 * + col2 FROM tab1
----
-1293
-210
-3105

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

query I rowsort
SELECT + 15 + + 3 FROM tab0
----
18
18
18

query I rowsort
SELECT col2 - col0 * 38 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 37 ) + col1 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND + 95
----

query I rowsort
SELECT DISTINCT 59 + - 58 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 32
----

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

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT - COUNT ( ALL col1 ) * + MIN ( col1 ) FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT DISTINCT 22 * - COUNT( * ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT 22 * - COUNT ( * ) FROM tab2 AS cor0
----
-66

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-164
SELECT + SUM( DISTINCT col1 ) DIV + MAX( + col1 ) col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-164
SELECT + SUM ( DISTINCT col1 ) / + MAX ( + col1 ) col2 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL - col1 DIV - col2 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-165
SELECT ALL - col1 / - col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - 25 FROM tab1 AS cor0
----
1175
125
350

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

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

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

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

query I rowsort
SELECT DISTINCT ( - ( 25 ) ) * + 93 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
-2325

query I rowsort
SELECT - col1 + - ( 14 + col1 ) AS col2 FROM tab1 AS cor0
----
-108
-24
-42

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

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

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

query I rowsort
SELECT ALL 14 + + ( + 72 ) FROM tab0 AS cor0
----
86
86
86

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-175
SELECT DISTINCT + 85 - COUNT ( * ) col2 FROM tab2 AS cor0
----
82

query I rowsort
SELECT 32 * - 12 AS col0 FROM tab2 AS cor0
----
-384
-384
-384

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

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

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

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL - - 30 / COUNT ( * ) FROM tab2 AS cor0
----
10

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 BETWEEN col1 + col0 * - col1 AND ( + col0 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT - col0 * + ( col0 + 88 ) FROM tab0 AS cor0
----
-15225
-1545
-17945

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL - - SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - - SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
-156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT DISTINCT MIN( DISTINCT + col2 ) - 96 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT MIN ( DISTINCT + col2 ) - 96 FROM tab0
----
-86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT 57 - 29 DIV + 32 AS col0 FROM tab1
----
57
57
57

skipif mysql # not compatible
query I rowsort label-187
SELECT 57 - 29 / + 32 AS col0 FROM tab1
----
57
57
57

query I rowsort
SELECT + col1 FROM tab0 WHERE ( + col2 * - col2 ) <> 9 / 62
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT 17 DIV col0 - 14 AS col2 FROM tab2
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-189
SELECT 17 / col0 - 14 AS col2 FROM tab2
----
-14
-14
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-190
SELECT COUNT( DISTINCT - CAST( - 10 AS DECIMAL ) ) + - 62 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-190
SELECT COUNT ( DISTINCT - CAST ( - 10 AS REAL ) ) + - 62 FROM tab1
----
-61

query I rowsort
SELECT ALL ( + 15 ) AS col1 FROM tab0
----
15
15
15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT 54 DIV - col1 + + col2 AS col1 FROM tab0 AS cor0
----
45
47
8

skipif mysql # not compatible
query I rowsort label-194
SELECT 54 / - col1 + + col2 AS col1 FROM tab0 AS cor0
----
45
47
8

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT DISTINCT - col0 DIV + + col0 FROM tab0 AS cor0
----
-1

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

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

query I rowsort
SELECT ALL + 8 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT ALL - 72 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - 72 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 78 ) IS NOT NULL OR NOT ( col1 ) NOT IN ( - 54 + col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT 72 * - - MIN( col2 ) col0 FROM tab0 AS cor0
----
720

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-206
SELECT DISTINCT 72 * - - MIN ( col2 ) col0 FROM tab0 AS cor0
----
720

query I rowsort
SELECT DISTINCT col2 / + + col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT 20 DIV + - col2 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-208
SELECT 20 / + - col2 AS col0 FROM tab0
----
-2
0
0

query II rowsort
SELECT + ( col0 ) AS col0, col2 + - ( - ( + 50 ) ) * + col0 AS col2 FROM tab2
----
46
2323
64
3240
75
3808

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL CAST( - 86 AS SIGNED ) FROM tab1
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL CAST ( - 86 AS INTEGER ) FROM tab1
----
-86
-86
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT col2 DIV col2 + + - col1 + - + col0 * col0 FROM tab0
----
-305
-7589
-9409

skipif mysql # not compatible
query I rowsort label-212
SELECT col2 / col2 + + - col1 + - + col0 * col0 FROM tab0
----
-305
-7589
-9409

query I rowsort
SELECT col1 + + - col2 * - - col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT ( 60 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 * + + 49 )
----

query I rowsort
SELECT - 56 * - - col2 FROM tab1
----
-3304
-3808
-5376

query I rowsort
SELECT ( + 82 ) AS col0 FROM tab0
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT - col0 DIV ( col2 ) AS col0 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-217
SELECT - col0 / ( col2 ) AS col0 FROM tab0
----
-8
0
0

query I rowsort
SELECT + 69 - + col0 AS col2 FROM tab1
----
-16
-22
18

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

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

query I rowsort
SELECT ALL + col2 + + + 72 FROM tab2 cor0
----
112
130
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-221
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - - ( col0 ) * - ( CAST( + 33 AS SIGNED ) ) * 14 >= ( NULL ) AND NOT + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-221
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - - ( col0 ) * - ( CAST ( + 33 AS INTEGER ) ) * 14 >= ( NULL ) AND NOT + col2 IS NULL
----

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

query I rowsort
SELECT ALL ( 62 ) AS col1 FROM tab2 cor0
----
62
62
62

query I rowsort
SELECT - 67 + + + col0 FROM tab2 AS cor0
----
-21
-3
8

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

query II rowsort
SELECT col2 * + 46 AS col2, + 16 FROM tab1
----
2714
16
3128
16
4416
16

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT ALL 2 * - + 48 - + - 85 DIV + - col0 AS col0 FROM tab1
----
-96
-97
-97

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL 2 * - + 48 - + - 85 / + - col0 AS col0 FROM tab1
----
-96
-97
-97

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 65 col2 FROM tab2 WHERE NOT + + col1 <= ( - col2 )
----
1495
2600
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( col1, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( col1, - col0 )
----
0

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT + col0 + col2 NOT IN ( + col2 + - + col2 + - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 72 ) <> - col1 * 54
----

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

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

query I rowsort
SELECT DISTINCT + col1 + 61 * - col0 FROM tab2 WHERE NOT - - col2 = NULL
----

query I rowsort
SELECT + 77 - - col0 FROM tab1 AS cor0 WHERE NOT NULL <> + 75
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - + 64 + - + col2 + - 34 * - 92 / - 7 <= NULL )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( - ( col2 ) )
----

query I rowsort
SELECT ALL ( col0 ) FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT - col0 * + - ( - col0 ) + - col0 + - col2 * + 1 FROM tab0 AS cor0
----
-287
-7666
-9605

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

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

query I rowsort
SELECT - - ( + 67 ) * + col0 + + 31 * - - ( - + 10 ) FROM tab1 AS cor0
----
3107
5385
5787

query I rowsort
SELECT + col1 * 94 * 74 * 81 FROM tab0
----
11832156
45638316
563436

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL COUNT( * ) + + - 80 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL COUNT ( * ) + + - 80 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT DISTINCT - SUM( DISTINCT + 6 ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT - SUM ( DISTINCT + 6 ) AS col1 FROM tab0
----
-6

query I rowsort
SELECT - col2 / 62 + + 76 / - ( - + col1 ) * + col2 AS col0 FROM tab2 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-250
SELECT * FROM tab1 WHERE - - 55 + - + col2 * CAST( NULL AS SIGNED ) * - col1 * + col0 / + - ( 95 ) = col1 * - 15 + + col1
----

skipif mysql # not compatible
query III rowsort label-250
SELECT * FROM tab1 WHERE - - 55 + - + col2 * CAST ( NULL AS INTEGER ) * - col1 * + col0 / + - ( 95 ) = col1 * - 15 + + col1
----

query II rowsort
SELECT DISTINCT col0 AS col2, + 27 * + col2 AS col0 FROM tab1
----
51
2592
85
1593
91
1836

query I rowsort
SELECT ALL 4 * + 18 * - col2 + + col0 FROM tab0 WHERE + + col1 NOT IN ( - - ( + col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 < NULL
----

query II rowsort
SELECT + 39, 43 AS col2 FROM tab1 AS cor0
----
39
43
39
43
39
43

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT - 14 + - - COUNT( * ) + 68 AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-255
SELECT - 14 + - - COUNT ( * ) + 68 AS col0 FROM tab2 AS cor0
----
57

query I rowsort
SELECT - col1 * - col0 FROM tab2 WHERE ( NOT col2 + - col0 - + 13 / - col0 IS NOT NULL )
----

query I rowsort
SELECT - 86 + + 59 FROM tab1
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-258
SELECT col1 DIV - + 38 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-258
SELECT col1 / - + 38 FROM tab0 AS cor0
----
-2
0
0

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

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

query I rowsort
SELECT DISTINCT - + col2 + - 66 FROM tab0 AS cor0
----
-113
-165
-76

query I rowsort
SELECT DISTINCT - col1 - - - col1 * + col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

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

skipif mysql # not compatible
query I rowsort label-262
SELECT - + col0 / - + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT DISTINCT 58 - + col2 AS col1 FROM tab1 AS cor0
----
-1
-10
-38

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT 8 * + 44 AS col2 FROM tab2
----
352
352
352

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL COUNT( * ) * - 42 * + 17 col0 FROM tab2
----
-2142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-269
SELECT ALL COUNT ( * ) * - 42 * + 17 col0 FROM tab2
----
-2142

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT ALL col2 DIV + - 76 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL col2 / + - 76 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL + + SUM( - col1 ) + + + 61 AS col0 FROM tab1 WHERE col1 / - col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL + + SUM ( - col1 ) + + + 61 AS col0 FROM tab1 WHERE col1 / - col1 >= NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ( 15 ) * ( + 75 ) * - + COUNT( * ) AS col0 FROM tab2
----
-3375

skipif mysql # not compatible
query I rowsort label-273
SELECT ( 15 ) * ( + 75 ) * - + COUNT ( * ) AS col0 FROM tab2
----
-3375

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

query I rowsort
SELECT + 31 FROM tab0 WHERE NOT - 12 IS NULL
----
31
31
31

onlyif mysql # DIV for integer division: 
query II rowsort label-276
SELECT col1 col1, 75 * + col1 DIV + + col1 FROM tab2
----
51
75
67
75
77
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-276
SELECT col1 col1, 75 * + col1 / + + col1 FROM tab2
----
51
75
67
75
77
75

query I rowsort
SELECT - col2 * col1 * + ( - + col2 ) AS col2 FROM tab1 AS cor0
----
129024
17405
217328

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

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT col2 * + col0 + - col2 + - 35 DIV - 97 * + col0 - col0 FROM tab0 AS cor0
----
643
773
9407

skipif mysql # not compatible
query I rowsort label-279
SELECT col2 * + col0 + - col2 + - 35 / - 97 * + col0 - col0 FROM tab0 AS cor0
----
643
773
9407

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 70 + + col0 + - + col2 + col2 ) <= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 95 = col2
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col2 * 42 col2 FROM tab1
----
146117
194117
387021

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT COUNT( * ) + - - SUM( col0 ) AS col1 FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-287
SELECT COUNT ( * ) + - - SUM ( col0 ) AS col1 FROM tab0
----
202

query I rowsort
SELECT + 57 + + col2 AS col2 FROM tab1
----
116
125
153

query I rowsort
SELECT 12 + col0 AS col1 FROM tab0
----
109
27
99

query I rowsort
SELECT + col0 * + col2 + - 58 FROM tab1
----
4838
4957
6130

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT DISTINCT col2 + - col2 + - 78 DIV - 12 - - col1 DIV + 76 * + ( - col0 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT col2 + - col2 + - 78 / - 12 - - col1 / + 76 * + ( - col0 ) AS col0 FROM tab1
----
6

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT - 36 * + - COUNT( * ) + + 24 AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT - 36 * + - COUNT ( * ) + + 24 AS col1 FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT ALL COUNT( + 29 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL COUNT ( + 29 ) FROM tab1 cor0
----
3

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL > 25 * - 84
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT + - CAST( + COUNT( * ) AS SIGNED ) * MAX( ALL col0 ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-297
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) * MAX ( ALL col0 ) FROM tab0 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL ( SUM( - 65 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL ( SUM ( - 65 ) ) FROM tab2
----
-195

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

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

query I rowsort
SELECT 63 * - + col2 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
308434
315940
389797

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE 12 <= - col0 / - 78
----

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

query I rowsort
SELECT DISTINCT 32 * + col0 AS col1 FROM tab1 AS cor0
----
1632
2720
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL + - 62 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL + - 62 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-186

query I rowsort
SELECT + 30 * + ( col1 ) AS col1 FROM tab1
----
1410
150
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, col2 + - col0 AS col0 FROM tab2 WHERE NOT - - col1 IS NULL
----
46
-23
64
-24
75
-17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 = + 85
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) * 24 * - ( ( - - 63 ) ) AS col2 FROM tab2
----
-4536

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) * 24 * - ( ( - - 63 ) ) AS col2 FROM tab2
----
-4536

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 / + 47 IS NOT NULL
----

query II rowsort
SELECT ( 53 ), col0 AS col1 FROM tab2 AS cor0
----
53
46
53
64
53
75

query I rowsort
SELECT DISTINCT col2 * + col2 * + - col1 AS col2 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT DISTINCT col2 * + ( - col0 ) + - - 90 FROM tab2
----
-2470
-4260
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT DISTINCT - - COUNT( * ) * + 6 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT - - COUNT ( * ) * + 6 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54

query I rowsort
SELECT ALL + col1 + 91 - + - col1 - col2 + + - col0 FROM tab1 cor0
----
-28
-43
26

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

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
34

query I rowsort
SELECT 5 * + - col2 * + col2 * - 4 FROM tab2 AS cor0
----
10580
32000
67280

query I rowsort
SELECT DISTINCT - col1 * + 79 + col0 FROM tab2 AS cor0
----
-3983
-5218
-6019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-319
SELECT + AVG ( - CAST( NULL AS SIGNED ) ), COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-319
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ), COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----
NULL
0

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

skipif mysql # not compatible
query I rowsort label-320
SELECT - MAX ( + - 84 ) FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL MAX( - 11 ) AS col0 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL MAX ( - 11 ) AS col0 FROM tab2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT ALL + col2 + 67 + 78 - - 70 DIV + col1 AS col1 FROM tab1
----
214
218
246

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL + col2 + 67 + 78 - - 70 / + col1 AS col1 FROM tab1
----
214
218
246

query I rowsort
SELECT + 40 * - col2 * + + col0 AS col2 FROM tab2
----
-102400
-174000
-42320

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT DISTINCT COUNT( * ) + + 4 AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT COUNT ( * ) + + 4 AS col2 FROM tab0
----
7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 55 * + + 95 col1 FROM tab2
----
-120175
-209000
-303050

onlyif mysql # aggregate syntax: 
query II rowsort label-328
SELECT DISTINCT + COUNT( * ) AS col2, 24 FROM tab0
----
3
24

skipif mysql # not compatible
query II rowsort label-328
SELECT DISTINCT + COUNT ( * ) AS col2, 24 FROM tab0
----
3
24

query I rowsort
SELECT ALL - col0 + 79 FROM tab1
----
-12
-6
28

query I rowsort
SELECT - ( - - col2 ) - - 6 FROM tab2 AS cor0
----
-17
-34
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT - CAST( + 42 AS SIGNED ) + - + col2 AS col0 FROM tab1 cor0
----
-101
-110
-138

skipif mysql # not compatible
query I rowsort label-331
SELECT - CAST ( + 42 AS INTEGER ) + - + col2 AS col0 FROM tab1 cor0
----
-101
-110
-138

query I rowsort
SELECT ALL + + col0 + - - 91 * - col0 AS col2 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT DISTINCT - - 74 DIV - 5 AS col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT - - 74 / - 5 AS col1 FROM tab2 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab0 AS cor0 WHERE 43 + - 14 * + + 67 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-335
SELECT ALL - col2 - - CAST( + col1 AS SIGNED ) + - col0 FROM tab1
----
-112
-133
-139

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL - col2 - - CAST ( + col1 AS INTEGER ) + - col0 FROM tab1
----
-112
-133
-139

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

query I rowsort
SELECT ALL + + 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + - col0 * 31 FROM tab1 AS cor0
----
-1581
-2635
-2821

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

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT 83 DIV + 34 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-340
SELECT 83 / + 34 FROM tab2 AS cor0
----
2
2
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 62 col0, - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - col2 * - 19 AS col1 FROM tab2
----
1102
437
760

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

onlyif mysql # DIV for integer division: 
query II rowsort label-347
SELECT ALL col1 AS col0, - col0 * - col0 + + col1 DIV - ( + 26 ) FROM tab1
----
14
2601
47
8280
5
7225

skipif mysql # not compatible
query II rowsort label-347
SELECT ALL col1 AS col0, - col0 * - col0 + + col1 / - ( + 26 ) FROM tab1
----
14
2601
47
8280
5
7225

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-350
SELECT - col0, col1 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-350
SELECT - col0, col1 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT DISTINCT + 12 DIV + col2 * - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT + 12 / + col2 * - col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT COUNT( * ) * MAX( ALL + + 92 ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT COUNT ( * ) * MAX ( ALL + + 92 ) FROM tab0
----
276

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

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

query I rowsort
SELECT ALL + - 38 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL COUNT( * ) + + MAX( - - col0 ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL COUNT ( * ) + + MAX ( - - col0 ) AS col1 FROM tab2 AS cor0
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT DISTINCT + - COUNT( * ) + + SUM( ALL col2 ) FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT + - COUNT ( * ) + + SUM ( ALL col2 ) FROM tab2 AS cor0
----
118

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

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT DISTINCT + COUNT( * ) + - ( 97 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + COUNT ( * ) + - ( 97 ) FROM tab1 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-363
SELECT ALL col1 DIV 65 * + - 41 AS col0 FROM tab0 cor0
----
-41
0
0

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL col1 / 65 * + - 41 AS col0 FROM tab0 cor0
----
-41
0
0

query I rowsort
SELECT - - 24 + - - 23 FROM tab1 AS cor0
----
47
47
47

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

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

query I rowsort
SELECT - col0 + - - col2 * - - col1 FROM tab2
----
1127
3016
3811

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

skipif mysql # not compatible
query I rowsort label-368
SELECT col0 * + + col0 + - col1 + - - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 80 + + col2 + + col1 / + 67 = NULL
----

query I rowsort
SELECT - 27 * + + col0 + col1 FROM tab1
----
-1363
-2290
-2410

query I rowsort
SELECT + 49 + + + col1 * - + col1 AS col0 FROM tab0
----
-392
-6512
48

query II rowsort
SELECT col0 * - - col0, 9 AS col1 FROM tab1 AS cor0 WHERE + ( - + col1 ) IS NULL
----

query I rowsort
SELECT - col0 - - - 93 AS col2 FROM tab2 cor0
----
-139
-157
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 * + col0 - + col0 col0 FROM tab1 AS cor0
----
-2805
-4675
-5005

query I rowsort
SELECT - col2 - + 82 FROM tab2
----
-105
-122
-140

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT + 83 DIV col1 FROM tab0
----
1
3
83

skipif mysql # not compatible
query I rowsort label-378
SELECT + 83 / col1 FROM tab0
----
1
3
83

query I rowsort
SELECT + + 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL - 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT - - col2 * + 33 * - + col1 FROM tab0 AS cor0
----
-125631
-3267
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-382
SELECT - - col0 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 17 * + col0 + - 72 * 85, CAST( NULL AS SIGNED ) + + - col0 )
----

skipif mysql # not compatible
query I rowsort label-382
SELECT - - col0 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 17 * + col0 + - 72 * 85, CAST ( NULL AS INTEGER ) + + - col0 )
----

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

skipif mysql # not compatible
query II rowsort label-383
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-384
SELECT + 96, - MIN( ALL - + 91 ) DIV 70 DIV + 70 - + 93 AS col0 FROM tab1 AS cor0
----
96
-93

skipif mysql # not compatible
query II rowsort label-384
SELECT + 96, - MIN ( ALL - + 91 ) / 70 / + 70 - + 93 AS col0 FROM tab1 AS cor0
----
96
-93

query I rowsort
SELECT ALL - col0 * + col0 * + col0 * - 8 + - col0 FROM tab2 AS cor0
----
2097088
3374925
778642

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN 98 AND 10
----

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

query I rowsort
SELECT ALL - 83 * + 88 - - col0 + - col2 FROM tab1 AS cor0
----
-7278
-7281
-7349

query II rowsort
SELECT + 14 * + col0 AS col2, - 9 AS col0 FROM tab2 AS cor0
----
1050
-9
644
-9
896
-9

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

query II rowsort
SELECT DISTINCT col2, + col2 * + col0 AS col2 FROM tab0
----
10
870
47
705
99
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT ALL - 82 AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-82
3

skipif mysql # not compatible
query II rowsort label-394
SELECT ALL - 82 AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-82
3

query II rowsort
SELECT DISTINCT - - col2, col2 * - + col2 AS col2 FROM tab1 AS cor0
----
59
-3481
68
-4624
96
-9216

query II rowsort
SELECT DISTINCT - + 66 - - col0 + col0 AS col0, ( + ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
104
85
116
91
36
51

query I rowsort
SELECT DISTINCT - + 65 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 86 col0, 17 AS col1 FROM tab0 cor0
----
-86
17
-86
17
-86
17

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT 95 * - COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT 95 * - COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
-285

query I rowsort
SELECT ALL 13 + + ( + - col2 ) FROM tab2
----
-10
-27
-45

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

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

query I rowsort
SELECT + 26 + col2 FROM tab2 AS cor0
----
49
66
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT DISTINCT MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT MAX ( col1 ) FROM tab0 AS cor0
----
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT MAX( DISTINCT - + 79 ) * COUNT( * ) AS col2 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT MAX ( DISTINCT - + 79 ) * COUNT ( * ) AS col2 FROM tab2
----
-237

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT DISTINCT CAST( NULL AS SIGNED ) / 56 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 56 FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT DISTINCT + MIN( col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT + MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col1 * + 59 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + 51 * + col0 AS col2 FROM tab0 cor0
----
4437
4947
765

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col0 * + 60 * + col1 IN ( + 45 * - 82 / - + col1, - 75 / - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT - 91 + + - 75 FROM tab2
----
-166

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT + SUM( - 19 ) + + 60 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-420
SELECT + SUM ( - 19 ) + + 60 AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL col0 + col0 + - - col2 * - col0 * - ( - ( + - 68 ) ) AS col1 FROM tab2 cor0
----
174208
295950
72036

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

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT MIN ( - ( + col2 ) ) FROM tab0
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT DISTINCT + 23 * + COUNT( - 69 ) - + + COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT + 23 * + COUNT ( - 69 ) - + + COUNT ( * ) FROM tab2 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + - 34 col2 FROM tab0 AS cor0
----
-24
13
65

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

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

query I rowsort
SELECT DISTINCT col1 * - 33 * + col2 - + col1 FROM tab0
----
-125712
-3268
-6951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-428
SELECT col0 + col0 / + 92 - CAST( NULL AS SIGNED ) * + 0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT col0 + col0 / + 92 - CAST ( NULL AS INTEGER ) * + 0 FROM tab1
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 39 col1 FROM tab2
----
-1794
-2496
-2925

query I rowsort
SELECT DISTINCT + col0 * - + 58 FROM tab1
----
-2958
-4930
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - 38 * + COUNT( * ) FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-432
SELECT - 38 * + COUNT ( * ) FROM tab1
----
-114

query I rowsort
SELECT ( col0 ) * + - col0 + - - 93 AS col0 FROM tab0
----
-132
-7476
-9316

query I rowsort
SELECT ALL + col2 * + col0 + col0 AS col2 FROM tab0 WHERE NOT + - col2 = + col1 * col2 + - + col0
----
720
957
9700

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-435
SELECT ALL + MAX ( ALL - - col2 ) col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-436
SELECT - COUNT( * ) AS col1, 7 col0 FROM tab0 AS cor0
----
-3
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-436
SELECT - COUNT ( * ) AS col1, 7 col0 FROM tab0 AS cor0
----
-3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT MIN( ALL + 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-437
SELECT MIN ( ALL + 43 ) FROM tab2
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-438
SELECT ALL col0 DIV col2 AS col2, col0 FROM tab2
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-438
SELECT ALL col0 / col2 AS col2, col0 FROM tab2
----
1
64
1
75
2
46

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

query I rowsort
SELECT ALL - 56 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT 4 * - - 12 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
112
123
94

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-444
SELECT ALL CAST( + + 16 AS SIGNED ) * 24 + col1 AS col1, - 19 AS col0 FROM tab1 AS cor0
----
389
-19
398
-19
431
-19

skipif mysql # not compatible
query II rowsort label-444
SELECT ALL CAST ( + + 16 AS INTEGER ) * 24 + col1 AS col1, - 19 AS col0 FROM tab1 AS cor0
----
389
-19
398
-19
431
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT SUM( + - 55 ) * 76 + - ( + COUNT( * ) ) * 92 FROM tab0
----
-12816

skipif mysql # not compatible
query I rowsort label-445
SELECT SUM ( + - 55 ) * 76 + - ( + COUNT ( * ) ) * 92 FROM tab0
----
-12816

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL ( - + COUNT( * ) ) * + COUNT( * ) - + 42 col1 FROM tab0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-446
SELECT ALL ( - + COUNT ( * ) ) * + COUNT ( * ) - + 42 col1 FROM tab0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-447
SELECT ALL CAST( col1 AS SIGNED ) / - + col1 + + col1 * + - CAST( 43 AS SIGNED ) / - ( - 70 ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL CAST ( col1 AS INTEGER ) / - + col1 + + col1 * + - CAST ( 43 AS INTEGER ) / - ( - 70 ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + + 8 AS col0 FROM tab1 cor0
----
-43
-77
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-449
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT COUNT( * ) + + COUNT( DISTINCT 19 ) * 74 - - - 39 col0 FROM tab0 WHERE - - 80 IS NOT NULL
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-450
SELECT COUNT ( * ) + + COUNT ( DISTINCT 19 ) * 74 - - - 39 col0 FROM tab0 WHERE - - 80 IS NOT NULL
----
38

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - - 46 < + 77
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-453
SELECT ALL + CAST( - - col1 AS DECIMAL ) FROM tab0 AS cor0 WHERE 81 = - + col0
----

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + CAST ( - - col1 AS REAL ) FROM tab0 AS cor0 WHERE 81 = - + col0
----

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

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

query I rowsort
SELECT DISTINCT + col0 - 85 FROM tab2 AS cor0
----
-10
-21
-39

query I rowsort
SELECT col0 - - - col0 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT - - 53 - - - 0 AS col1 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT - 36 - - + col0 + + + ( + - col1 ) AS col2 FROM tab2
----
-28
-41
-49

query I rowsort
SELECT ALL + 3 - col1 * + 54 AS col0 FROM tab1
----
-2535
-267
-753

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab2 WHERE NOT - 10 IS NOT NULL OR NOT - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-461
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab2 WHERE NOT - 10 IS NOT NULL OR NOT - col1 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT + COUNT( * ) * + 57 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-462
SELECT + COUNT ( * ) * + 57 FROM tab1
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-463
SELECT - 56 DIV + - MAX( - + col2 ) AS col0, + 95 AS col1 FROM tab0
----
-5
95

skipif mysql # not compatible
query II rowsort label-463
SELECT - 56 / + - MAX ( - + col2 ) AS col0, + 95 AS col1 FROM tab0
----
-5
95

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

query II rowsort
SELECT + col1 * + col1 AS col0, + 42 AS col1 FROM tab0
----
1
42
441
42
6561
42

onlyif mysql # DIV for integer division: 
query I rowsort label-466
SELECT 70 DIV ( col2 ) DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-466
SELECT 70 / ( col2 ) / - col0 FROM tab0
----
0
0
0

query II rowsort
SELECT + ( col0 ), + col0 * + + ( - + col1 ) * + col2 + - + 95 AS col1 FROM tab2 AS cor0
----
46
-54053
64
-197215
75
-291545

query I rowsort
SELECT ALL + - col1 * + 75 FROM tab2 AS cor0
----
-3825
-5025
-5775

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 18 * + col0 + col1 = col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 = + col1 / + 38
----

onlyif mysql # DIV for integer division: 
query II rowsort label-471
SELECT col0, - col0 DIV col2 FROM tab2
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-471
SELECT col0, - col0 / col2 FROM tab2
----
46
-2
64
-1
75
-1

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

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

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

query I rowsort
SELECT - - 18 * 60 AS col1 FROM tab0 AS cor0
----
1080
1080
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT MAX( - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT MAX ( - col0 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT DISTINCT - col2 * - 19 AS col2 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT col0 + col2 * + - ( ( col2 ) ) FROM tab2 AS cor0 WHERE NOT col0 = - - CAST( - - 36 AS SIGNED )
----
-1536
-3289
-483

skipif mysql # not compatible
query I rowsort label-477
SELECT col0 + col2 * + - ( ( col2 ) ) FROM tab2 AS cor0 WHERE NOT col0 = - - CAST ( - - 36 AS INTEGER )
----
-1536
-3289
-483

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

query I rowsort
SELECT DISTINCT - + col0 * 57 FROM tab2 cor0
----
-2622
-3648
-4275

query II rowsort
SELECT 44, - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT ALL 31 DIV - - col1 + - 71 FROM tab1 AS cor0
----
-65
-69
-71

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL 31 / - - col1 + - 71 FROM tab1 AS cor0
----
-65
-69
-71

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

onlyif mysql # DIV for integer division: 
query II rowsort label-483
SELECT DISTINCT - 69 DIV col0 + - - 27 AS col2, + col0 FROM tab1 AS cor0
----
26
51
27
85
27
91

skipif mysql # not compatible
query II rowsort label-483
SELECT DISTINCT - 69 / col0 + - - 27 AS col2, + col0 FROM tab1 AS cor0
----
26
51
27
85
27
91

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

query I rowsort
SELECT ALL - col0 * - 44 * + 61 FROM tab1 AS cor0
----
136884
228140
244244

query I rowsort
SELECT - 93 + + - col0 AS col1 FROM tab1
----
-144
-178
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT 5 + 94 - + COUNT( * ) AS col0 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-487
SELECT 5 + 94 - + COUNT ( * ) AS col0 FROM tab0
----
96

query I rowsort
SELECT DISTINCT col2 + - + col1 + + + col0 FROM tab2
----
18
27
66

query I rowsort
SELECT ALL 39 + 35 AS col0 FROM tab0
----
74
74
74

query I rowsort
SELECT - col1 * - 50 + - 93 FROM tab2
----
2457
3257
3757

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

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

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

query I rowsort
SELECT ALL 6 + col0 * - 93 FROM tab0
----
-1389
-8085
-9015

onlyif mysql # DIV for integer division: 
query I rowsort label-494
SELECT col1 DIV + - 87 * - 81 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-494
SELECT col1 / + - 87 * - 81 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - + col1 * 35 + + + ( + 32 ) FROM tab1 AS cor0
----
-143
-1613
-458

query I rowsort
SELECT ALL - col0 * 1 + - 92 AS col0 FROM tab1 AS cor0
----
-143
-177
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-497
SELECT DISTINCT + 45 DIV + - SUM( DISTINCT - 5 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT + 45 / + - SUM ( DISTINCT - 5 ) FROM tab2 AS cor0
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT CAST( + 39 AS SIGNED ) * col2 * - - ( + col2 ) + col2 - col2 FROM tab1
----
135759
180336
359424

skipif mysql # not compatible
query I rowsort label-499
SELECT CAST ( + 39 AS INTEGER ) * col2 * - - ( + col2 ) + col2 - col2 FROM tab1
----
135759
180336
359424

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < ( 35 )
----
87
21
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT DISTINCT - + col1 * col1 DIV - - col2 - col0 * + - 59 AS col1 FROM tab1 AS cor0
----
3007
5015
5337

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT - + col1 * col1 / - - col2 - col0 * + - 59 AS col1 FROM tab1 AS cor0
----
3007
5015
5337

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

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

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

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

query I rowsort
SELECT DISTINCT col2 / col0 * col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-508
SELECT + COUNT ( * ) col2, + 52 AS col1 FROM tab2
----
3
52

query II rowsort
SELECT DISTINCT + 1, col2 * col1 AS col2 FROM tab2
----
1
1173
1
3080
1
3886

query II rowsort
SELECT col0 AS col1, col0 + 38 AS col1 FROM tab0
----
15
53
87
125
97
135

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

skipif mysql # not compatible
query III rowsort label-511
SELECT DISTINCT * FROM tab1 WHERE NULL < + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL col1 * - 84 AS col2, - 78 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1764
-78
-6804
-78
-84
-78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT ALL + CAST( + + 72 AS SIGNED ) * + 92 AS col0 FROM tab1 AS cor0 WHERE NOT - 65 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL + CAST ( + + 72 AS INTEGER ) * + 92 AS col0 FROM tab1 AS cor0 WHERE NOT - 65 * + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + + 53, 59 * + + col1 AS col0 FROM tab2 AS cor0
----
53
3009
53
3953
53
4543

query I rowsort
SELECT + col2 * + - col1 * col2 FROM tab0 cor0
----
-178929
-2100
-9801

query I rowsort
SELECT 85 * 43 * 4 FROM tab1 AS cor0
----
14620
14620
14620

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

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

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

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

query II rowsort
SELECT DISTINCT - - 24, + col0 FROM tab1 AS cor0
----
24
51
24
85
24
91

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT DISTINCT + col1 + col1 DIV + col1 AS col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT + col1 + col1 / + col1 AS col2 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + MIN( DISTINCT col2 ) * - + 93 + 42 * - 96 FROM tab2 AS cor0
----
-6171

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + MIN ( DISTINCT col2 ) * - + 93 + 42 * - 96 FROM tab2 AS cor0
----
-6171

query I rowsort
SELECT ALL - 60 * 75 FROM tab2 AS cor0
----
-4500
-4500
-4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT ALL - CAST( NULL AS SIGNED ) + 43 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - CAST ( NULL AS INTEGER ) + 43 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 44 * - col0 col1 FROM tab1 AS cor0
----
-2244
-3740
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT 90 * + - MIN( ALL + 26 ) FROM tab1 AS cor0
----
-2340

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT 90 * + - MIN ( ALL + 26 ) FROM tab1 AS cor0
----
-2340

query I rowsort
SELECT + - 91 * - col0 AS col0 FROM tab2 AS cor0
----
4186
5824
6825

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

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - ( + col2 ) / 67 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT + SUM( ALL + - col1 ) * + COUNT( DISTINCT - 73 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-529
SELECT + SUM ( ALL + - col1 ) * + COUNT ( DISTINCT - 73 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query III rowsort label-530
SELECT + SUM( DISTINCT + col0 ), - COUNT( * ) AS col0, 39 col0 FROM tab0 AS cor0
----
199
-3
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-530
SELECT + SUM ( DISTINCT + col0 ), - COUNT ( * ) AS col0, 39 col0 FROM tab0 AS cor0
----
199
-3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT - - ( + COUNT( * ) ) * + 92 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-531
SELECT - - ( + COUNT ( * ) ) * + 92 FROM tab1 AS cor0
----
276

query II rowsort
SELECT DISTINCT - + 12 * - col1 AS col0, col2 * col0 FROM tab2 AS cor0
----
612
1058
804
4350
924
2560

query II rowsort
SELECT ALL 52 AS col0, - 67 AS col1 FROM tab1
----
52
-67
52
-67
52
-67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-536
SELECT DISTINCT + 59 + - - 48 DIV col0 + col2 * col0 AS col1 FROM tab1
----
4955
5074
6247

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT + 59 + - - 48 / col0 + col2 * col0 AS col1 FROM tab1
----
4955
5074
6247

query I rowsort
SELECT + col2 * 2 - - 18 * + col1 AS col2 FROM tab1
----
208
444
982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) - 27 col1 FROM tab0 AS cor0
----
-12
60
70

query I rowsort
SELECT col0 * + - 53 + + 8 AS col1 FROM tab0 AS cor0
----
-4603
-5133
-787

query I rowsort
SELECT DISTINCT - - col0 - col0 * + col2 FROM tab0 AS cor0
----
-690
-783
-9506

query III rowsort
SELECT * FROM tab1 WHERE - 22 + 34 + + + col1 * + col0 IS NULL
----

query I rowsort
SELECT + col0 * + + 20 FROM tab1
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 * + col0 + col2 + + col1 NOT BETWEEN col0 AND + + col0
----
0

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

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

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

query II rowsort
SELECT DISTINCT 81, + col0 AS col1 FROM tab1
----
81
51
81
85
81
91

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

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

query I rowsort
SELECT col0 * - - 3 AS col2 FROM tab2
----
138
192
225

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

skipif mysql # not compatible
query I rowsort label-549
SELECT COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-550
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT MAX( + 83 ) * - MIN( ALL - col2 ) FROM tab1
----
7968

skipif mysql # not compatible
query I rowsort label-551
SELECT MAX ( + 83 ) * - MIN ( ALL - col2 ) FROM tab1
----
7968

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

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

query III rowsort
SELECT col1, + 50 AS col0, - 10 FROM tab1
----
9 values hashing to 166273c883f180430fa178956f763232

query I rowsort
SELECT ALL + col1 + + 54 + - ( + 80 ) + + - 62 * + 44 AS col1 FROM tab1 AS cor0
----
-2707
-2740
-2749

query I rowsort
SELECT + col1 * - + col2 * - - ( - 43 ) AS col1 FROM tab2 cor0
----
132440
167098
50439

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - 23 + - 38 IN ( 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 3 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT - - col2 DIV col1 * - - col0 - - 19 * + col1 + - col0 + + col0 DIV 98 AS col1 FROM tab0 AS cor0
----
1524
312
9525

skipif mysql # not compatible
query I rowsort label-559
SELECT - - col2 / col1 * - - col0 - - 19 * + col1 + - col0 + + col0 / 98 AS col1 FROM tab0 AS cor0
----
1524
312
9525

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + 79 + + SUM( ALL + col2 ) FROM tab1
----
302

skipif mysql # not compatible
query I rowsort label-564
SELECT + 79 + + SUM ( ALL + col2 ) FROM tab1
----
302

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT 92 + - COUNT( * ) AS col2, - MIN( col0 ) FROM tab0
----
89
-15

skipif mysql # not compatible
query II rowsort label-565
SELECT 92 + - COUNT ( * ) AS col2, - MIN ( col0 ) FROM tab0
----
89
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT DISTINCT + 98 * - MIN( DISTINCT 32 ) * + COUNT( * ) AS col2 FROM tab0
----
-9408

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT + 98 * - MIN ( DISTINCT 32 ) * + COUNT ( * ) AS col2 FROM tab0
----
-9408

query I rowsort
SELECT DISTINCT - col0 + - 36 AS col0 FROM tab1
----
-121
-127
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT SUM( + col2 ) DIV - 44 AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-568
SELECT SUM ( + col2 ) / - 44 AS col0 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT 31 + - col1 FROM tab1 cor0
----
-16
17
26

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

query I rowsort
SELECT DISTINCT + 70 - - 18 FROM tab2 AS cor0
----
88

query I rowsort
SELECT DISTINCT - 29 - + + col0 + col1 AS col0 FROM tab1
----
-109
-66
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT 89 - col0 * col1 DIV + - 65 AS col0 FROM tab1
----
154
95
99

skipif mysql # not compatible
query I rowsort label-573
SELECT 89 - col0 * col1 / + - 65 AS col0 FROM tab1
----
154
95
99

query II rowsort
SELECT + - 26 AS col1, 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to b8c49f56951d524dcf5b69300c186504

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 <> NULL
----

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

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

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

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

query II rowsort
SELECT ALL 64 AS col2, - 62 + - col0 + 62 - - col0 AS col0 FROM tab0 cor0
----
64
0
64
0
64
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col0 * - - ( - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT ( + 81 ) AS col1, col1 FROM tab0
----
81
1
81
21
81
81

query I rowsort
SELECT DISTINCT - 23 * - + col1 AS col0 FROM tab2
----
1173
1541
1771

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + ( + - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 53 * + + 84 + + - col1 >= col2
----

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

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

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

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

query I rowsort
SELECT - 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

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

query I rowsort
SELECT DISTINCT 36 + + col0 + + ( col1 ) + - col0 FROM tab1 AS cor0
----
41
50
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 92 - - 17 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - - 93 * + - col2 + + col0 - - - ( col2 ) col0 FROM tab2 AS cor0
----
-2162
-3760
-5452

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + COUNT( * ) * + 79 AS col0 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-600
SELECT + COUNT ( * ) * + 79 AS col0 FROM tab1 AS cor0
----
237

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + - ( - + 10 ) col2 FROM tab1
----
-5
37
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-603
SELECT ALL col0 * - - CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL col0 * - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT SUM( col1 ) - + + 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-604
SELECT SUM ( col1 ) - + + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL - 96 * COUNT( * ) * + MAX( DISTINCT ( + col2 ) ) * - ( - - COUNT( * ) ) AS col2 FROM tab1
----
82944

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL - 96 * COUNT ( * ) * + MAX ( DISTINCT ( + col2 ) ) * - ( - - COUNT ( * ) ) AS col2 FROM tab1
----
82944

query I rowsort
SELECT ALL col2 + col1 * + 74 AS col1 FROM tab2
----
3797
5016
5738

query I rowsort
SELECT + 0 + ( - 73 ) * + col1 AS col0 FROM tab1 cor0
----
-1022
-3431
-365

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-608
SELECT ALL col1 DIV 42 * - CAST( col2 AS SIGNED ) + + col2 - - col0 FROM tab1 AS cor0
----
144
147
91

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL col1 / 42 * - CAST ( col2 AS INTEGER ) + + col2 - - col0 FROM tab1 AS cor0
----
144
147
91

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

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

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

query I rowsort
SELECT + 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

query I rowsort
SELECT - - 97 * - - col2 AS col2 FROM tab2 cor0
----
2231
3880
5626

query I rowsort
SELECT + - 27 AS col2 FROM tab1 cor0
----
-27
-27
-27

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-616
SELECT - + CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE NOT NULL <> ( col0 )
----

skipif mysql # not compatible
query I rowsort label-616
SELECT - + CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE NOT NULL <> ( col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * - col2 col1 FROM tab1 AS cor0
----
1180
1360
1920

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT ALL - - col0 DIV - + col1 + col2 + - col0 AS col2 FROM tab0 cor0
----
-81
-95
32

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - - col0 / - + col1 + col2 + - col0 AS col2 FROM tab0 cor0
----
-81
-95
32

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL - 57 * + COUNT( * ) col1 FROM tab1
----
-171

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

query II rowsort
SELECT ALL ( - col0 ) * - - col0 AS col2, 90 AS col0 FROM tab1
----
-2601
90
-7225
90
-8281
90

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT ALL 2 DIV - + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL 2 / - + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * + - 65 FROM tab2
----
-3315
-4355
-5005

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

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

query I rowsort
SELECT ALL 82 * + + 29 AS col2 FROM tab2 AS cor0
----
2378
2378
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ( + MAX( DISTINCT + - 92 ) ) AS col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-626
SELECT ( + MAX ( DISTINCT + - 92 ) ) AS col1 FROM tab0 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT DISTINCT MAX( ALL 51 ) AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT MAX ( ALL 51 ) AS col0 FROM tab0
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( 97 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT - col1 + - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-629
SELECT - col1 + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT - MIN( + col1 ) AS col0 FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT - MIN ( + col1 ) AS col0 FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT 60 FROM tab2 WHERE NOT 2 + ( col1 ) * + col1 BETWEEN ( NULL ) AND - col1
----
60
60
60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( 27 * + 90 ) col1 FROM tab0
----
-114210
-240570
-24300

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT ( + col1 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-634
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + col1 ) <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 22 * AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT + col0 IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 22 * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT + col0 IN ( col0 )
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 67 + + 6 ) = ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-640
SELECT - 82 * col0 col0 FROM tab2 WHERE NOT - 39 + + ( + 17 ) IN ( - CAST( col2 AS SIGNED ) )
----
-3772
-5248
-6150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-640
SELECT - 82 * col0 col0 FROM tab2 WHERE NOT - 39 + + ( + 17 ) IN ( - CAST ( col2 AS INTEGER ) )
----
-3772
-5248
-6150

query I rowsort
SELECT ALL + col0 * + ( col2 * 76 ) + col1 * col2 FROM tab0
----
57387
66330
729927

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

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

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

query I rowsort
SELECT 74 * + 57 FROM tab1
----
4218
4218
4218

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT COUNT( * ) + - 55 AS col1 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-645
SELECT COUNT ( * ) + - 55 AS col1 FROM tab2
----
-52

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 45 * + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 + col1 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL - MAX( col0 ) * COUNT( * ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - MAX ( col0 ) * COUNT ( * ) AS col1 FROM tab1
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT - col0 DIV 74 + - 24 * col2 col0 FROM tab0
----
-1128
-2377
-241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-650
SELECT - col0 / 74 + - 24 * col2 col0 FROM tab0
----
-1128
-2377
-241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 74 col1 FROM tab2 AS cor0
----
-3
23
7

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT COUNT( * ) * - MAX( DISTINCT 76 ) AS col0 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-652
SELECT COUNT ( * ) * - MAX ( DISTINCT 76 ) AS col0 FROM tab2 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL - 19 * + COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - 19 * + COUNT ( * ) FROM tab0
----
-57

query I rowsort
SELECT col0 * - 45 AS col2 FROM tab0
----
-3915
-4365
-675

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL - col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 42 NOT BETWEEN col2 + col1 AND + col0 + - 51 * + col0
----

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

query I rowsort
SELECT + 82 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT COUNT( - col2 ) * COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT col1 BETWEEN ( NULL ) AND ( 94 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT COUNT ( - col2 ) * COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT col1 BETWEEN ( NULL ) AND ( 94 * col0 )
----
0

query I rowsort
SELECT ALL + 1 * 48 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - 92 * col0 AS col1 FROM tab2 cor0
----
-4232
-5888
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT - 52 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT - 52 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL + MIN( col2 ) FROM tab2 AS cor0 WHERE NULL >= col0 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + MIN ( col2 ) FROM tab2 AS cor0 WHERE NULL >= col0 * + col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-665
SELECT MAX ( 15 ) AS col1 FROM tab2 AS cor0
----
15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT ALL - ( - col0 ) DIV col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - ( - col0 ) / col0 FROM tab1 AS cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-668
SELECT col2 / 70 FROM tab0 AS cor0
----
0
0
1

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

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

query I rowsort
SELECT DISTINCT col1 / 75 FROM tab0 WHERE col0 * - 15 + + col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT - 29 * + + COUNT( * ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT - 29 * + + COUNT ( * ) AS col2 FROM tab1
----
-87

query I rowsort
SELECT ALL - 96 * col1 AS col0 FROM tab0
----
-2016
-7776
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-674
SELECT ALL * FROM tab1 WHERE ( 83 - CAST( NULL AS SIGNED ) * col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-674
SELECT ALL * FROM tab1 WHERE ( 83 - CAST ( NULL AS INTEGER ) * col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 92 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN + col1 AND + col2 - - col1
----
85
5
59

query I rowsort
SELECT + 17 * col1 AS col1 FROM tab2
----
1139
1309
867

query I rowsort
SELECT col1 * - col1 FROM tab0 AS cor0 WHERE 71 * col1 NOT BETWEEN - col0 / 50 AND col1
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL - COUNT( * ) * + MAX( ALL + col1 ) FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - COUNT ( * ) * + MAX ( ALL + col1 ) FROM tab2 cor0
----
-231

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

query I rowsort
SELECT 85 FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN + col1 * + col2 + col2 * col0 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-682
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 55 * col2 BETWEEN ( - col1 ) AND NULL AND 85 / - col2 < ( CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-682
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 55 * col2 BETWEEN ( - col1 ) AND NULL AND 85 / - col2 < ( CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT 60 + + COUNT( * ) AS col0 FROM tab2 WHERE ( NOT col0 IN ( + col0 ) )
----
60

skipif mysql # not compatible
query I rowsort label-683
SELECT 60 + + COUNT ( * ) AS col0 FROM tab2 WHERE ( NOT col0 IN ( + col0 ) )
----
60

query I rowsort
SELECT DISTINCT - + 56 * - 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-685
SELECT ALL + CAST( - 78 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + CAST ( - 78 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT col2 + col1 + col2 AS col0 FROM tab0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT MAX( ALL + 55 ) + - - COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-687
SELECT MAX ( ALL + 55 ) + - - COUNT ( * ) FROM tab1
----
58

query I rowsort
SELECT + 49 * - 98 AS col1 FROM tab0
----
-4802
-4802
-4802

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

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

query I rowsort
SELECT + + col2 * - 7 AS col0 FROM tab0 AS cor0
----
-329
-693
-70

query I rowsort
SELECT ALL col2 + - - 48 FROM tab0 AS cor0
----
147
58
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-693
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) IN ( - ( 48 ) * - CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-693
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) IN ( - ( 48 ) * - CAST ( - col0 AS INTEGER ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT DISTINCT MIN( col2 ) FROM tab2 cor0 WHERE + ( + col0 ) + col1 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT MIN ( col2 ) FROM tab2 cor0 WHERE + ( + col0 ) + col1 IS NOT NULL
----
23

query I rowsort
SELECT ( 19 ) AS col1 FROM tab0 AS cor0
----
19
19
19

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

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

query I rowsort
SELECT ALL + 24 - col2 FROM tab1 cor0
----
-35
-44
-72

query I rowsort
SELECT DISTINCT - col0 / - col1 AS col1 FROM tab1 AS cor0 WHERE - col0 > NULL
----

query I rowsort
SELECT DISTINCT 76 - + + ( + 65 ) AS col1 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT + AVG ( ALL col2 ) * - MAX( + col0 / - col2 ) FROM tab1 WHERE NOT ( NULL ) = NULL AND NOT + col0 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + AVG ( ALL col2 ) * - MAX ( + col0 / - col2 ) FROM tab1 WHERE NOT ( NULL ) = NULL AND NOT + col0 * - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 54 col2 FROM tab2
----
100
118
129

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT + SUM( ALL - - 44 ) - + 23 FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-704
SELECT + SUM ( ALL - - 44 ) - + 23 FROM tab0
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT 42 DIV + col1 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-705
SELECT 42 / + col1 + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT 46 DIV - col1 FROM tab1
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-706
SELECT 46 / - col1 FROM tab1
----
-3
-9
0

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, + col2 + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> ( col0 ) OR NOT + col1 + 48 < ( - col2 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * 55 AS col1 FROM tab1 AS cor0
----
3245
3740
5280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-711
SELECT DISTINCT - - MAX( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT - - MAX ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 / + - col2 AS col2 FROM tab2 AS cor0 WHERE - 29 NOT BETWEEN NULL AND - 16
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT DISTINCT + 36 * - 45 DIV COUNT( + + col2 ) FROM tab2
----
-540

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT + 36 * - 45 / COUNT ( + + col2 ) FROM tab2
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT MAX( ALL + col0 ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT MAX ( ALL + col0 ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT DISTINCT + MIN( col1 ) + + MAX( - CAST( + col2 AS SIGNED ) ) * + - 83 * 33 FROM tab0
----
27391

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT + MIN ( col1 ) + + MAX ( - CAST ( + col2 AS INTEGER ) ) * + - 83 * 33 FROM tab0
----
27391

query I rowsort
SELECT col2 + + + 39 + - 40 * 72 AS col0 FROM tab2
----
-2783
-2801
-2818

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

query III rowsort
SELECT DISTINCT col1, + col1 AS col2, + col0 FROM tab0
----
9 values hashing to 47b74cbda3bc2bd72edbf832f5a4b2e4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 78
----

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

skipif mysql # not compatible
query I rowsort label-721
SELECT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-723
SELECT ALL + 69 + + 81 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + 69 + + 81 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 14 + - col2 AS col2 FROM tab1 AS cor0
----
-110
-73
-82

query I rowsort
SELECT ALL + - col0 * ( - col0 ) - col0 + col1 FROM tab2 cor0
----
2121
4109
5617

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-727
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND - - 36
----

skipif mysql # not compatible
query III rowsort label-727
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND - - 36
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL + SUM( ALL - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + SUM ( ALL - col2 ) FROM tab0
----
-156

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

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

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

query I rowsort
SELECT ALL - 46 * - col0 FROM tab0
----
4002
4462
690

query I rowsort
SELECT ALL + col0 * - 26 + - + col2 FROM tab1 WHERE NOT + col2 >= - - col1 + - - 2
----

query I rowsort
SELECT ALL 13 * + col0 AS col2 FROM tab1
----
1105
1183
663

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT MAX( - 15 ) FROM tab2 WHERE NOT NULL IN ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT MAX ( - 15 ) FROM tab2 WHERE NOT NULL IN ( 7 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-738
SELECT * FROM tab2 WHERE NOT - - 25 * - col0 - - 13 / + ( + 28 ) + - col2 > col1 * - CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-738
SELECT * FROM tab2 WHERE NOT - - 25 * - col0 - - 13 / + ( + 28 ) + - col2 > col1 * - CAST ( NULL AS INTEGER ) + + col0
----

query I rowsort
SELECT - col1 * - + 13 AS col1 FROM tab1 AS cor0
----
182
611
65

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

query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab0 AS cor0 WHERE col2 * + 11 NOT BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-744
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 47 * - 16 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT + col2 + - 55 + + col0 FROM tab1 cor0
----
104
89
92

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ALL + + 70 DIV + col0 FROM tab0 AS cor0 WHERE NOT + col2 * + + 93 IS NULL
----
0
0
4

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + + 70 / + col0 FROM tab0 AS cor0 WHERE NOT + col2 * + + 93 IS NULL
----
0
0
4

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

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

query I rowsort
SELECT + 34 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
166464
170510
210392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-751
SELECT + 39 DIV + - 5 + + - ( MAX( DISTINCT col1 ) ) col0 FROM tab0 cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-751
SELECT + 39 / + - 5 + + - ( MAX ( DISTINCT col1 ) ) col0 FROM tab0 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL - + MAX( ALL col2 ) * + + 1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL - + MAX ( ALL col2 ) * + + 1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-754
SELECT * FROM tab0 WHERE + - CAST( col0 AS SIGNED ) + - col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-754
SELECT * FROM tab0 WHERE + - CAST ( col0 AS INTEGER ) + - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-755
SELECT - ( - ( - + col2 ) ) DIV + - 61 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-755
SELECT - ( - ( - + col2 ) ) / + - 61 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL - 43 + - 67 * + col1 FROM tab2 WHERE NOT + col1 IS NULL
----
-3460
-4532
-5202

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

query III rowsort
SELECT * FROM tab1 WHERE - - col0 NOT BETWEEN NULL AND + ( col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT 98 * ( - 46 ) AS col0 FROM tab1
----
-4508
-4508
-4508

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

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

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

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

query I rowsort
SELECT ALL 27 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 >= NULL
----

query I rowsort
SELECT col2 + + 20 * col0 * + + col2 * - + 32 FROM tab2 AS cor0
----
-1638360
-2783942
-677097

query I rowsort
SELECT + + 16 * - + col2 + - 16 FROM tab1 AS cor0
----
-1104
-1552
-960

query I rowsort
SELECT - 9 + - + col1 AS col1 FROM tab1 cor0
----
-14
-23
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-767
SELECT - col0 / + - col0 + + 65 * 38 * + CAST( NULL AS SIGNED ) / + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT - col0 / + - col0 + + 65 * 38 * + CAST ( NULL AS INTEGER ) / + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT MAX( DISTINCT - 30 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT MAX ( DISTINCT - 30 ) FROM tab1
----
-30

query III rowsort
SELECT * FROM tab1 WHERE + 31 > + 45
----

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

query I rowsort
SELECT DISTINCT - 14 + col0 FROM tab1
----
37
71
77

query I rowsort
SELECT DISTINCT - col1 * 42 * + col0 AS col2 FROM tab1
----
-17850
-179634
-29988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT ALL - col0 + + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL - col0 + + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT + 75 DIV col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-775
SELECT + 75 / col2 FROM tab1 cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT DISTINCT + col1 - col0 DIV + 78 + + + 45 + + 32 - - - col0 FROM tab1 AS cor0
----
-4
32
40

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT + col1 - col0 / + 78 + + + 45 + + 32 - - - col0 FROM tab1 AS cor0
----
-4
32
40

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

query I rowsort
SELECT DISTINCT - 16 FROM tab1 WHERE + 10 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-779
SELECT DISTINCT + SUM( - col1 ) DIV + MIN( col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + SUM ( - col1 ) / + MIN ( col1 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 30 >= NULL
----

query I rowsort
SELECT ALL - - col1 + + - 9 FROM tab2 AS cor0
----
42
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL + SUM( DISTINCT 38 ) AS col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL + SUM ( DISTINCT 38 ) AS col1 FROM tab0 AS cor0
----
38

query I rowsort
SELECT 70 + ( - col2 ) FROM tab1
----
-26
11
2

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT - MIN( ALL col1 ) + + 80 AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-784
SELECT - MIN ( ALL col1 ) + + 80 AS col0 FROM tab0
----
79

query I rowsort
SELECT 78 + + col1 * - col0 AS col1 FROM tab2
----
-2268
-4850
-4947

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL - SUM( ALL + col0 ) + + COUNT( * ) col0 FROM tab2
----
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-786
SELECT ALL - SUM ( ALL + col0 ) + + COUNT ( * ) col0 FROM tab2
----
-182

query I rowsort
SELECT ( + - col0 ) + 17 AS col1 FROM tab1
----
-34
-68
-74

query I rowsort
SELECT DISTINCT - col2 + - 63 + + - col0 FROM tab1
----
-207
-210
-222

query I rowsort
SELECT DISTINCT col2 + 21 FROM tab0
----
120
31
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT + MAX( DISTINCT + 6 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-791
SELECT + MAX ( DISTINCT + 6 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + - col2 * - + 57 FROM tab1 AS cor0
----
3363
3876
5472

query III rowsort
SELECT * FROM tab0 WHERE NULL = 45
----

query I rowsort
SELECT + col1 - + - 88 FROM tab1
----
102
135
93

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT COUNT( * ) + 15 * + 99 * 42 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
62379

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-795
SELECT COUNT ( * ) + 15 * + 99 * 42 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
62379

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-796
SELECT ( + COUNT ( * ) ) + + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
18

query I rowsort
SELECT - 33 + col0 FROM tab0
----
-18
54
64

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

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

query I rowsort
SELECT DISTINCT col1 * 15 AS col2 FROM tab1 AS cor0
----
210
705
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT + SUM( CAST( + 91 AS SIGNED ) ) * + 76 FROM tab2 AS cor0
----
20748

skipif mysql # not compatible
query I rowsort label-801
SELECT + SUM ( CAST ( + 91 AS INTEGER ) ) * + 76 FROM tab2 AS cor0
----
20748

query II rowsort
SELECT DISTINCT - 76 AS col2, + ( - + col2 ) FROM tab0
----
-76
-10
-76
-47
-76
-99

query I rowsort
SELECT DISTINCT - col2 * + ( - 61 ) FROM tab2
----
1403
2440
3538

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

query II rowsort
SELECT DISTINCT ( - 21 ), - col0 + col0 AS col2 FROM tab1
----
-21
0

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

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

query I rowsort
SELECT ALL 74 * col2 AS col0 FROM tab1
----
4366
5032
7104

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT - col2 DIV - col1 AS col0 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-808
SELECT - col2 / - col1 AS col0 FROM tab1 cor0
----
1
11
6

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

query II rowsort
SELECT ALL + col1 AS col2, - ( col2 ) * + - col0 + + 27 FROM tab0 AS cor0
----
1
9630
21
897
81
732

query II rowsort
SELECT + col2, col0 * - col0 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( + 26, 40 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT DISTINCT 39 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT 39 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL + - MIN( + - 5 ) * + 77 AS col0 FROM tab2 AS cor0
----
385

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL + - MIN ( + - 5 ) * + 77 AS col0 FROM tab2 AS cor0
----
385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col0 FROM tab2 AS cor0 WHERE ( NULL ) = - + col0
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE - 59 <= + col0
----
51
67
77

query I rowsort
SELECT ALL - - 91 FROM tab1 AS cor0
----
91
91
91

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-822
SELECT DISTINCT - 49 / col0 * - 86 + col1 + + ( + + ( + 70 ) ) + col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT - 49 / col0 * - 86 + col1 + + ( + + ( + 70 ) ) + col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL col1 * - col2 + - 16 * - - col2, 63 + + 79 AS col2 FROM tab1
----
-1239
142
-2880
142
-4284
142

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL + - 82 - - - SUM( ALL + col1 ) FROM tab0 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL + - 82 - - - SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-185

query I rowsort
SELECT + - 83 + + - col2 FROM tab0 AS cor0
----
-130
-182
-93

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

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

skipif mysql # not compatible
query I rowsort label-830
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + + 4 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab1 WHERE NOT - - 21 IS NULL
----
29

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

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

skipif mysql # not compatible
query I rowsort label-833
SELECT - COUNT ( ALL + - col0 ) / + 25 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT 27 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-834
SELECT 27 / col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 28 * - col1 * + ( - col1 ) * + col0 FROM tab0 AS cor0
----
1074276
2716
2755620

query I rowsort
SELECT col1 * + ( - 11 ) + + col1 FROM tab2 cor0
----
-510
-670
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 24 + + + 20, 46 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT DISTINCT + - col1 * + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT + - col1 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - - col1 * - ( - 1 ) + - 57 + + 7 FROM tab0 cor0
----
-29
-49
31

query II rowsort
SELECT DISTINCT 87 AS col0, col2 FROM tab1
----
87
59
87
68
87
96

query II rowsort
SELECT - 33, - 77 AS col2 FROM tab1
----
-33
-77
-33
-77
-33
-77

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

query I rowsort
SELECT ALL - ( 17 ) AS col1 FROM tab2
----
-17
-17
-17

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

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

query I rowsort
SELECT ALL 37 * + col0 * + 47 FROM tab2 AS cor0
----
111296
130425
79994

query I rowsort
SELECT ALL + + col0 * - - col0 - col2 FROM tab0 AS cor0
----
178
7559
9310

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

query I rowsort
SELECT 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-854
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) * - - 23 + 60 * + - CAST( NULL AS SIGNED ) / - 59 AS col2, 72 FROM tab2 AS cor0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) * - - 23 + 60 * + - CAST ( NULL AS INTEGER ) / - 59 AS col2, 72 FROM tab2 AS cor0
----
NULL
72

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

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

query I rowsort
SELECT DISTINCT + + col0 * + col2 - + col2 * + - ( - col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
-3087
747
9601

query I rowsort
SELECT ALL - col1 - - 47 AS col1 FROM tab2 cor0
----
-20
-30
-4

query I rowsort
SELECT 9 FROM tab2 cor0 WHERE NULL IS NULL
----
9
9
9

query I rowsort
SELECT DISTINCT 69 * - col1 + + col1 FROM tab1 AS cor0
----
-3196
-340
-952

query II rowsort
SELECT - col1 * + col2 AS col0, + 38 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT 75 - - col0 AS col1 FROM tab1
----
126
160
166

query I rowsort
SELECT - 24 * + 36 AS col0 FROM tab0 WHERE NULL IS NULL
----
-864
-864
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT DISTINCT + 67 AS col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
67

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT + 67 AS col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
67

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

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

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

query I rowsort
SELECT ALL col2 + + col1 * col1 AS col0 FROM tab0
----
100
451
6608

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 26 <> + col1
----

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

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

query I rowsort
SELECT DISTINCT 63 * 79 + + - ( + col0 ) AS col1 FROM tab0
----
4880
4890
4962

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 - - col1 + - 61 * col2 * - 13 col1 FROM tab0 AS cor0
----
37345
78501
7944

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

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

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

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT 60 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-876
SELECT col1 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-876
SELECT col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT + 83, col0 AS col0 FROM tab1 AS cor0
----
83
51
83
85
83
91

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

query II rowsort
SELECT ALL - 31 AS col1, - 17 AS col2 FROM tab0 AS cor0
----
-31
-17
-31
-17
-31
-17

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-883
SELECT ALL - - CAST( + SUM( DISTINCT - col2 ) AS SIGNED ) AS col1 FROM tab1 WHERE NOT col1 + - col0 * + 59 * + ( 74 ) IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - - CAST ( + SUM ( DISTINCT - col2 ) AS INTEGER ) AS col1 FROM tab1 WHERE NOT col1 + - col0 * + 59 * + ( 74 ) IS NULL
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT CAST( - + 22 AS SIGNED ) * + - col2 AS col2 FROM tab0 AS cor0
----
1034
2178
220

skipif mysql # not compatible
query I rowsort label-884
SELECT CAST ( - + 22 AS INTEGER ) * + - col2 AS col2 FROM tab0 AS cor0
----
1034
2178
220

query I rowsort
SELECT DISTINCT - 87 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-87

query I rowsort
SELECT - col0 * - + col2 * + 9 + + 14 AS col2 FROM tab1
----
44078
45149
55706

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 60 * + col1 IN ( + + 90 + ( col2 ) + - + 70 * + 12, col1 * + ( col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-890
SELECT DISTINCT - ( MAX( ALL col0 ) ) + 77 DIV 12 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT - ( MAX ( ALL col0 ) ) + 77 / 12 FROM tab2 AS cor0
----
-69

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-893
SELECT ALL - + 31 * + + CAST ( NULL AS INTEGER ) + + - col1 * - + col0 + col2 * + 41 + - col0 * + + col1 + + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 45 FROM tab2 AS cor0
----
-2070
-2880
-3375

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT DISTINCT + col0 DIV + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
4
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL - + 86 + - COUNT( * ) FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL - + 86 + - COUNT ( * ) FROM tab1 AS cor0
----
-89

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

query I rowsort
SELECT ALL + 82 * + col0 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT - col2 - + col1 * 12 FROM tab2
----
-635
-862
-964

onlyif mysql # aggregate syntax: 
query II rowsort label-901
SELECT DISTINCT 53 AS col0, + MAX( ALL + col1 ) col2 FROM tab0
----
53
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-901
SELECT DISTINCT 53 AS col0, + MAX ( ALL + col1 ) col2 FROM tab0
----
53
81

query I rowsort
SELECT DISTINCT 8 * + col1 + - col2 AS col0 FROM tab2
----
385
478
576

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

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT col0 DIV + 80 - + col1 AS col1 FROM tab0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-904
SELECT col0 / + 80 - + col1 AS col1 FROM tab0
----
-20
-81
0

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 AS col2 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT col0 + + 34 FROM tab1
----
119
125
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT DISTINCT + COUNT( * ) + 80 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT + COUNT ( * ) + 80 FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + + ( - col0 ) - + 27 col0 FROM tab0
----
-100
-18
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT + SUM( + 35 ) AS col2 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT + SUM ( + 35 ) AS col2 FROM tab2 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT DISTINCT + SUM( - 55 ) col2 FROM tab1 cor0
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-912
SELECT DISTINCT + SUM ( - 55 ) col2 FROM tab1 cor0
----
-165

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

query II rowsort
SELECT DISTINCT - 14, - col0 FROM tab2 AS cor0 WHERE 97 + + col0 IS NULL
----

query I rowsort
SELECT 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL 22 AS col1 FROM tab2 cor0
----
22
22
22

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

query I rowsort
SELECT ALL 99 AS col0 FROM tab0 WHERE NULL IS NULL
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT DISTINCT + + col1 FROM tab0 WHERE - col0 BETWEEN + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT + + col1 FROM tab0 WHERE - col0 BETWEEN + CAST ( NULL AS INTEGER ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - MIN( - 79 ) AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-921
SELECT - MIN ( - 79 ) AS col2 FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT - SUM( + - 92 ) * + 7 AS col1 FROM tab1 WHERE NOT NULL BETWEEN - col2 * col1 + - - col2 + - + 86 AND 40
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT - SUM ( + - 92 ) * + 7 AS col1 FROM tab1 WHERE NOT NULL BETWEEN - col2 * col1 + - - col2 + - + 86 AND 40
----
NULL

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

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

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

query I rowsort
SELECT 9 + + - col0 FROM tab2
----
-37
-55
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT MIN( DISTINCT + + col2 ) + 68 AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-926
SELECT MIN ( DISTINCT + + col2 ) + 68 AS col0 FROM tab0
----
78

query I rowsort
SELECT - 10 + 2 * + ( + 52 ) + + col1 * + col2 AS col0 FROM tab1
----
1438
3290
389

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 78 * - 86
----

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

query I rowsort
SELECT ALL ( - - 23 ) AS col1 FROM tab0 AS cor0
----
23
23
23

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

query I rowsort
SELECT 73 - + col2 FROM tab0
----
-26
26
63

query I rowsort
SELECT ALL 96 + + col1 FROM tab1
----
101
110
143

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT ALL - col1 DIV 59 + + 4 + + + 79 AS col0 FROM tab0 AS cor0
----
82
83
83

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - col1 / 59 + + 4 + + + 79 AS col0 FROM tab0 AS cor0
----
82
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT + 48 * - 85 + - - MIN( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
-4138

skipif mysql # not compatible
query I rowsort label-935
SELECT + 48 * - 85 + - - MIN ( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
-4138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT 12 * col0 * - col1 + + - CAST( - col0 AS SIGNED ) * - - 41 + - col1 AS col1 FROM tab2 AS cor0
----
-26317
-56589
-57292

skipif mysql # not compatible
query I rowsort label-936
SELECT 12 * col0 * - col1 + + - CAST ( - col0 AS INTEGER ) * - - 41 + - col1 AS col1 FROM tab2 AS cor0
----
-26317
-56589
-57292

query I rowsort
SELECT + 34 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
119
125
85

query I rowsort
SELECT DISTINCT - col0 - col1 + - 74 AS col1 FROM tab1 AS cor0
----
-139
-164
-212

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 82 = - - 29 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT COUNT( * ) * - 87 col1 FROM tab2
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-941
SELECT COUNT ( * ) * - 87 col1 FROM tab2
----
-261

query I rowsort
SELECT DISTINCT + 21 * - col0 AS col1 FROM tab2
----
-1344
-1575
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT 83 DIV + col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-943
SELECT 83 / + col1 FROM tab1
----
1
16
5

query I rowsort
SELECT col0 * 94 * - 4 FROM tab2
----
-17296
-24064
-28200

query I rowsort
SELECT 31 * + col1 FROM tab2
----
1581
2077
2387

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

query I rowsort
SELECT ALL - + ( + 37 ) AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( col1, - 65, - 93 * - - col1 )
----

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

query I rowsort
SELECT ALL 88 * - col1 * col2 FROM tab0
----
-18480
-335016
-8712

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-952
SELECT - COUNT( ALL + col0 ) DIV - 98 + 3 AS col2 FROM tab1 AS cor0
----
3

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

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

skipif mysql # not compatible
query II rowsort label-953
SELECT DISTINCT - COUNT ( * ) AS col1, + 36 AS col0 FROM tab1 AS cor0
----
-3
36

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

onlyif mysql # DIV for integer division: 
query II rowsort label-955
SELECT + 34 AS col2, - 12 DIV - 4 FROM tab2 cor0
----
34
3
34
3
34
3

skipif mysql # not compatible
query II rowsort label-955
SELECT + 34 AS col2, - 12 / - 4 FROM tab2 cor0
----
34
3
34
3
34
3

query I rowsort
SELECT + 34 * col1 AS col2 FROM tab1 AS cor0
----
1598
170
476

query I rowsort
SELECT DISTINCT + + 10 AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-958
SELECT ALL - SUM( - 84 ) * - + 87 FROM tab1 WHERE + col2 + CAST( + col2 AS DECIMAL ) = + 44 / + col0 - + CAST( - - 82 AS SIGNED ) + + ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - SUM ( - 84 ) * - + 87 FROM tab1 WHERE + col2 + CAST ( + col2 AS REAL ) = + 44 / + col0 - + CAST ( - - 82 AS INTEGER ) + + ( - col2 )
----
NULL

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

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

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

query II rowsort
SELECT ALL col0 + + col1, col0 * + ( - - 26 ) AS col1 FROM tab2
----
141
1664
142
1950
97
1196

query I rowsort
SELECT DISTINCT + 93 + + col2 * col1 - - col2 FROM tab1
----
1533
3357
447

query II rowsort
SELECT ALL + + col2 + - col1, ( + + 54 ) AS col0 FROM tab1 AS cor0
----
21
54
54
54
82
54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-964
SELECT ALL - col2 + - 20, - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
-43
NULL
-60
NULL
-78
NULL

skipif mysql # not compatible
query II rowsort label-964
SELECT ALL - col2 + - 20, - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
-43
NULL
-60
NULL
-78
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 37 col0 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT DISTINCT - + 65 * 69 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4485

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-970
SELECT + - col0 * + col2 * + col2, col0 + + + 69 * + col0 * + - col0 FROM tab0 AS cor0 WHERE 71 + + 1 + + CAST( NULL AS SIGNED ) + col2 <> - 85 * - 54 * + - 29
----

skipif mysql # not compatible
query II rowsort label-970
SELECT + - col0 * + col2 * + col2, col0 + + + 69 * + col0 * + - col0 FROM tab0 AS cor0 WHERE 71 + + 1 + + CAST ( NULL AS INTEGER ) + col2 <> - 85 * - 54 * + - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT - + COUNT( * ) - 98 FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-971
SELECT - + COUNT ( * ) - 98 FROM tab1 AS cor0
----
-101

query I rowsort
SELECT + 1 - col0 FROM tab1 AS cor0
----
-50
-84
-90

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

query I rowsort
SELECT ALL col1 * - 95 AS col0 FROM tab1 AS cor0
----
-1330
-4465
-475

query I rowsort
SELECT - col0 - - 93 FROM tab0 cor0
----
-4
6
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-976
SELECT ALL - SUM( ALL - 97 ) AS col1, - 10 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
291
NULL

skipif mysql # not compatible
query II rowsort label-976
SELECT ALL - SUM ( ALL - 97 ) AS col1, - 10 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
291
NULL

query I rowsort
SELECT + col0 + 46 + - col1 AS col0 FROM tab1 WHERE NOT + + 86 IS NULL
----
126
83
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 79 * col1, + col0 * - col2 col0 FROM tab2
----
4029
-1058
5293
-4350
6083
-2560

query I rowsort
SELECT col1 * - - 98 AS col0 FROM tab1
----
1372
4606
490

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

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

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

query II rowsort
SELECT 57 * + col0 AS col1, - ( + col2 ) FROM tab2 AS cor0
----
2622
-23
3648
-40
4275
-58

query I rowsort
SELECT ALL + - 99 * - + 71 AS col0 FROM tab0 AS cor0
----
7029
7029
7029

query I rowsort
SELECT + ( 57 ) FROM tab1 AS cor0 WHERE NOT col1 = NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 10 * + col1 AS col2 FROM tab0 AS cor0
----
-10
-210
-810

query I rowsort
SELECT + + col0 * + + 4 AS col0 FROM tab1 AS cor0
----
204
340
364

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT - - col1 * + col1 * 43 DIV - col1 col1 FROM tab1 AS cor0
----
-2021
-215
-602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-988
SELECT - - col1 * + col1 * 43 / - col1 col1 FROM tab1 AS cor0
----
-2021
-215
-602

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

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

query I rowsort
SELECT 98 + + - col2 AS col2 FROM tab1 AS cor0
----
2
30
39

query II rowsort
SELECT + col1 + + + ( + col2 ) AS col0, - col0 AS col1 FROM tab2 cor0 WHERE col1 <> col1 * ( col2 ) AND NOT NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL 16 * - + COUNT( * ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL 16 * - + COUNT ( * ) FROM tab0
----
-48

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

query I rowsort
SELECT DISTINCT + 59 * + col2 FROM tab2
----
1357
2360
3422

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

query I rowsort
SELECT 2 + col2 AS col0 FROM tab2
----
25
42
60

query I rowsort
SELECT DISTINCT + col1 * - - col1 + + - 15 * + - col0 + - col0 FROM tab0
----
1359
1659
6771

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT + + 87 * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-998
SELECT + + 87 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-261

query I rowsort
SELECT - + col0 * + 84 FROM tab1 AS cor0
----
-4284
-7140
-7644

query I rowsort
SELECT + - 92 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

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

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

query I rowsort
SELECT DISTINCT + ( + col0 ) + 70 FROM tab0 AS cor0
----
157
167
85

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1004
SELECT DISTINCT 90 + + CAST( NULL AS SIGNED ), 46 * - + col2 AS col0 FROM tab1 AS cor0
----
NULL
-2714
NULL
-3128
NULL
-4416

skipif mysql # not compatible
query II rowsort label-1004
SELECT DISTINCT 90 + + CAST ( NULL AS INTEGER ), 46 * - + col2 AS col0 FROM tab1 AS cor0
----
NULL
-2714
NULL
-3128
NULL
-4416

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL COUNT( DISTINCT - CAST( + + col0 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1006
SELECT ALL COUNT ( DISTINCT - CAST ( + + col0 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1007
SELECT ALL CAST( + 12 AS SIGNED ) AS col1 FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL CAST ( + 12 AS INTEGER ) AS col1 FROM tab2
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + 69 * - - COUNT( * ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 69 * - - COUNT ( * ) FROM tab2
----
207

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT - 35 * - + COUNT( * ) col0 FROM tab2
----
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT 8 * + COUNT( * ) col0 FROM tab2
----
24

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT ALL 47 AS col0, + COUNT( DISTINCT 90 ) FROM tab2
----
47
1

skipif mysql # not compatible
query II rowsort label-1013
SELECT ALL 47 AS col0, + COUNT ( DISTINCT 90 ) FROM tab2
----
47
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT + + col2 * + CAST( + 41 AS SIGNED ) FROM tab0 WHERE NOT - - col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-1014
SELECT + + col2 * + CAST ( + 41 AS INTEGER ) FROM tab0 WHERE NOT - - col2 <> NULL
----

query I rowsort
SELECT + col0 * - + 68 FROM tab2 AS cor0
----
-3128
-4352
-5100

query I rowsort
SELECT - col1 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

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

query I rowsort
SELECT 71 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - 77
----

query I rowsort
SELECT ALL - + col0 + + 45 * + 24 FROM tab2 AS cor0
----
1005
1016
1034

query I rowsort
SELECT + 80 + col1 FROM tab2 cor0
----
131
147
157

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 16 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1023
SELECT ALL MIN( + col0 ) DIV - - ( + + 88 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL MIN ( + col0 ) / - - ( + + 88 ) FROM tab0 AS cor0
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT - COUNT( * ) * MAX( + col1 ) * + 56 FROM tab0 AS cor0
----
-13608

skipif mysql # not compatible
query I rowsort label-1027
SELECT - COUNT ( * ) * MAX ( + col1 ) * + 56 FROM tab0 AS cor0
----
-13608

query I rowsort
SELECT ALL ( + col0 ) * - 8 FROM tab2 AS cor0
----
-368
-512
-600

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 ) * - - col0 / - 37 * - - col1 + 84 * col2 * + col0 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT DISTINCT + col2 + col0 DIV - - ( + col0 ) AS col0 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + col2 + col0 / - - ( + col0 ) AS col0 FROM tab1
----
60
69
97

query I rowsort
SELECT ALL - 98 + + col1 * + col1 AS col2 FROM tab0 cor0
----
-97
343
6463

query I rowsort
SELECT - col1 + + + col0 * - 71 FROM tab2 AS cor0
----
-3317
-4621
-5392

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT + COUNT( DISTINCT 37 ) + - ( 66 ) col2 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1034
SELECT + COUNT ( DISTINCT 37 ) + - ( 66 ) col2 FROM tab0 AS cor0
----
-65

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT - MAX( ALL + - col1 ) * 6 * + - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - MAX ( ALL + - col1 ) * 6 * + - COUNT ( * ) FROM tab0 AS cor0
----
-18

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query III rowsort label-1044
SELECT * FROM tab1 WHERE NOT - CAST ( CAST ( col0 AS REAL ) AS INTEGER ) > NULL
----

query I rowsort
SELECT + 52 * - - 41 FROM tab1
----
2132
2132
2132

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col0 ) >= - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT + 88 col1, MAX( - + col2 ) AS col2 FROM tab2
----
88
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1048
SELECT + 88 col1, MAX ( - + col2 ) AS col2 FROM tab2
----
88
-23

query II rowsort
SELECT col2 AS col1, 62 AS col0 FROM tab0 AS cor0
----
10
62
47
62
99
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT - 59 + + - COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 WHERE + col0 + 80 / col0 * - col1 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-1050
SELECT - 59 + + - COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 WHERE + col0 + 80 / col0 * - col1 IS NULL
----
-59

query I rowsort
SELECT - 98 * + 53 + - col2 - - 30 AS col2 FROM tab1 AS cor0
----
-5223
-5232
-5260

query I rowsort
SELECT DISTINCT col1 - + ( + 35 ) + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4
65
93

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

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

query I rowsort
SELECT + 41 * col1 + + col1 AS col2 FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - COUNT( * ) + 50 AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1056
SELECT - COUNT ( * ) + 50 AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL + MIN( ALL - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL + MIN ( ALL - col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1058
SELECT + COUNT( * ) * + + 7 col2, COUNT( + col0 ) FROM tab0
----
21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1058
SELECT + COUNT ( * ) * + + 7 col2, COUNT ( + col0 ) FROM tab0
----
21
3

query I rowsort
SELECT DISTINCT col2 * - col1 * + - col0 + - col1 FROM tab2
----
197043
291383
53907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 7 * + col1 + - col1 + + 67 AS col0, col1 + 63 col1 FROM tab1
----
-309
110
-45
77
27
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 + + col0 col1, + 89 FROM tab1 cor0
----
145
89
179
89
185
89

query I rowsort
SELECT + 93 - - - col2 + + - 53 AS col0 FROM tab2 AS cor0
----
-18
0
17

query II rowsort
SELECT col2 AS col2, + ( col2 ) FROM tab0
----
10
10
47
47
99
99

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 19 AND col0
----

query I rowsort
SELECT ALL + 21 AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( + 66 )
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1067
SELECT - + col2 AS col0, CAST( - - ( - + 62 ) AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
-59
-57
-68
-15
-96
-48

skipif mysql # not compatible
query II rowsort label-1067
SELECT - + col2 AS col0, CAST ( - - ( - + 62 ) AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
-59
-57
-68
-15
-96
-48

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

skipif mysql # not compatible
query I rowsort label-1068
SELECT MAX ( 51 ) AS col2 FROM tab1 AS cor0
----
51

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col1 * + col1 AND - 77
----

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

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

query I rowsort
SELECT DISTINCT + col1 * - 28 AS col2 FROM tab2
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT - - MIN( col2 ) + + - 43 + + - SUM( - + 6 ) + + 2 FROM tab2 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT - - MIN ( col2 ) + + - 43 + + - SUM ( - + 6 ) + + 2 FROM tab2 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT COUNT( DISTINCT 6 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1075
SELECT COUNT ( DISTINCT 6 ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 65 >= - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 27 IS NOT NULL
----

query I rowsort
SELECT + col1 * 43 AS col2 FROM tab0 AS cor0
----
3483
43
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1079
SELECT DISTINCT 96 + - COUNT( ALL col1 ), - CAST( - 99 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + + + 96 IS NOT NULL
----
96
99

skipif mysql # not compatible
query II rowsort label-1079
SELECT DISTINCT 96 + - COUNT ( ALL col1 ), - CAST ( - 99 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + + + 96 IS NOT NULL
----
96
99

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

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
13

query I rowsort
SELECT ALL 12 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2 * col0 + - col0 AS col1, 30 * ( + 54 ) * col0 FROM tab0 AS cor0
----
690
24300
783
140940
9506
157140

query II rowsort
SELECT + col1 * + - col2 AS col0, 82 FROM tab0 AS cor0
----
-210
82
-3807
82
-99
82

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT + COUNT( * ) + - 61 * - - MIN( DISTINCT - + col2 ) FROM tab0
----
6042

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT + COUNT ( * ) + - 61 * - - MIN ( DISTINCT - + col2 ) FROM tab0
----
6042

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT col2 + - col2 DIV - 95 AS col1 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-1089
SELECT col2 + - col2 / - 95 AS col1 FROM tab0
----
10
100
47

query I rowsort
SELECT ( + ( - 29 ) ) + + - col0 AS col2 FROM tab1
----
-114
-120
-80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT ALL + col2 DIV col1 FROM tab2 WHERE NOT col0 < col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + col2 / col1 FROM tab2 WHERE NOT col0 < col0
----
0
0
0

query I rowsort
SELECT - 47 + col1 * col2 AS col1 FROM tab2
----
1126
3033
3839

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

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

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

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

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

query I rowsort
SELECT - ( + col0 ) + col0 * + 95 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - 14 - + 55 FROM tab2 WHERE ( 42 * 14 ) NOT BETWEEN 20 AND col0 * ( + 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT DISTINCT col2 + CAST( col2 AS SIGNED ) FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT col2 + CAST ( col2 AS INTEGER ) FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1100
SELECT ALL - CAST( - MIN( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - CAST ( - MIN ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
59

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 85 + + col0 <> ( + 42 + ( 22 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1103
SELECT + CAST ( - 11 AS INTEGER ) AS col0 FROM tab2
----
-11
-11
-11

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 11 * - 65 ) NOT IN ( + col1 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT - SUM( + col1 ) AS col1 FROM tab0 WHERE ( - col2 + 35 ) IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT - SUM ( + col1 ) AS col1 FROM tab0 WHERE ( - col2 + 35 ) IN ( col0 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col1 / - 13 + - col2 > + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT - 89 + - col0 DIV col2 FROM tab1
----
-89
-90
-90

skipif mysql # not compatible
query I rowsort label-1111
SELECT - 89 + - col0 / col2 FROM tab1
----
-89
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT ALL + MAX( - 75 ) col1 FROM tab2 WHERE - col2 >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1112
SELECT ALL + MAX ( - 75 ) col1 FROM tab2 WHERE - col2 >= NULL
----
NULL

query I rowsort
SELECT col1 * 50 AS col1 FROM tab2
----
2550
3350
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + 45 - - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-1114
SELECT + 45 - - COUNT ( * ) FROM tab2
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT COUNT( * ) * 54 + 86 FROM tab2 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-1116
SELECT COUNT ( * ) * 54 + 86 FROM tab2 AS cor0
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ( COUNT( * ) ) + ( - 63 ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1117
SELECT ( COUNT ( * ) ) + ( - 63 ) FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1118
SELECT ALL - 15 DIV + ( COUNT( * ) ) FROM tab1
----
-5

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 - + col1 col0 FROM tab0 AS cor0
----
-2
-62
18

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

query I rowsort
SELECT DISTINCT + 88 - 79 AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + 68 * col1 - 30 AS col0 FROM tab0 AS cor0
----
1398
38
5478

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 68
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 83 + - col1 AS col0 FROM tab1
----
-130
-88
-97

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT col2 DIV + ( col1 ) col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1129
SELECT col2 / + ( col1 ) col1 FROM tab1
----
1
11
6

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

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

query I rowsort
SELECT DISTINCT col0 + + col0 * col0 AS col1 FROM tab2
----
2162
4160
5700

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col2 + 93
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 44 * - col0 + + col1 / col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1134
SELECT * FROM tab2 AS cor0 WHERE ( 26 + col2 ) < 58 - - col0 * + CAST( col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1134
SELECT * FROM tab2 AS cor0 WHERE ( 26 + col2 ) < 58 - - col0 * + CAST ( col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - 68 )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1137
SELECT ALL MIN( 49 ) DIV - 56 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL MIN ( 49 ) / - 56 FROM tab1
----
0

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE + 1 = NULL
----

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

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

query I rowsort
SELECT + col2 / col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT + ( 39 ) + col1 FROM tab1 AS cor0 WHERE NOT 13 * - col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + ( + col1 ) FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + MIN( ALL - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1145
SELECT + MIN ( ALL - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + col1 * col1 + + 83 AS col0 FROM tab2 AS cor0
----
2684
4572
6012

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1148
SELECT 6, + CAST( - col0 AS SIGNED ) + CAST( 56 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
6
2617
6
473
6
5447

skipif mysql # not compatible
query II rowsort label-1148
SELECT 6, + CAST ( - col0 AS INTEGER ) + CAST ( 56 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
6
2617
6
473
6
5447

query I rowsort
SELECT 61 - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 < + 65
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT + + col1 * + - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + + col1 * + - col1 / - col1 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - col2 * + 40 FROM tab1 AS cor0
----
-2360
-2720
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT ALL - - col2 + - col2 / CAST( - col0 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL - - col2 + - col2 / CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT col1 * + ( - CAST( + 49 AS SIGNED ) ) * - col0 col0 FROM tab0
----
4753
59535
89523

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1153
SELECT col1 * + ( - CAST ( + 49 AS INTEGER ) ) * - col0 col0 FROM tab0
----
4753
59535
89523

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

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

query I rowsort
SELECT DISTINCT - 72 + - col2 - 44 + col1 AS col0 FROM tab2
----
-107
-79
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-1157
SELECT DISTINCT + col1 DIV + col0 AS col1, + col1 * 12 AS col0 FROM tab2
----
0
804
1
612
1
924

skipif mysql # not compatible
query II rowsort label-1157
SELECT DISTINCT + col1 / + col0 AS col1, + col1 * 12 AS col0 FROM tab2
----
0
804
1
612
1
924

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

query I rowsort
SELECT DISTINCT col0 / - col2 + 42 + 49 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab1 WHERE ( + col0 ) IN ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1160
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab1 WHERE ( + col0 ) IN ( col1 )
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( + ( + + 5 ) + - col1 * 91 ) AND - col2 + 80
----

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

query I rowsort
SELECT DISTINCT + 59 + + col1 FROM tab0
----
140
60
80

query I rowsort
SELECT col1 + - col1 * - 0 AS col1 FROM tab2 AS cor0
----
51
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL + MIN( 68 ) + + COUNT( * ) AS col2 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + MIN ( 68 ) + + COUNT ( * ) AS col2 FROM tab1
----
71

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT - - MIN( ALL - - 21 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1170
SELECT - - MIN ( ALL - - 21 ) FROM tab0 AS cor0
----
21

query I rowsort
SELECT - col0 * - + 67 AS col0 FROM tab2 AS cor0
----
3082
4288
5025

query II rowsort
SELECT - 94 AS col1, + 20 FROM tab0 AS cor0
----
-94
20
-94
20
-94
20

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

query I rowsort
SELECT ALL - + col0 + + 46 AS col2 FROM tab2 AS cor0
----
-18
-29
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 3 + 4 + + col1 * - col2 * + col0 NOT BETWEEN + 26 AND + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 5 * + - 40 AS col2 FROM tab0 AS cor0
----
17400
19400
3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL + MIN( ALL - col0 ) AS col1 FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) + - CAST( + 37 AS SIGNED ) + + + col0 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + MIN ( ALL - col0 ) AS col1 FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) + - CAST ( + 37 AS INTEGER ) + + + col0 IS NULL
----
-91

query I rowsort
SELECT + 66 - + col2 FROM tab2 cor0
----
26
43
8

query I rowsort
SELECT ALL - col0 - + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT - ( - col0 ) - - col1 AS col0 FROM tab0 cor0
----
108
96
98

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

skipif mysql # not compatible
query III rowsort label-1181
SELECT * FROM tab1 AS cor0 WHERE 16 * - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT 4 - + MIN( 13 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1182
SELECT 4 - + MIN ( 13 ) FROM tab1
----
-9

query I rowsort
SELECT ALL 2 AS col0 FROM tab1 WHERE NOT ( - 50 ) NOT IN ( + 51 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1184
SELECT - 95 DIV + + CAST( - + 85 AS SIGNED ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 95 / + + CAST ( - + 85 AS INTEGER ) AS col1 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT col2 * + col0 DIV - col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1185
SELECT col2 * + col0 / - col0 FROM tab0
----
-10
-47
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - MAX( ALL 50 ) AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-1187
SELECT - MAX ( ALL 50 ) AS col1 FROM tab2
----
-50

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1189
SELECT ALL - 7 AS col1, MAX( - - 74 ) FROM tab1 AS cor0
----
-7
74

skipif mysql # not compatible
query II rowsort label-1189
SELECT ALL - 7 AS col1, MAX ( - - 74 ) FROM tab1 AS cor0
----
-7
74

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

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

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT 33 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1192
SELECT DISTINCT + + col1 * - + CAST( - - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + + col1 * - + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-1344
-295
-3196

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT + COUNT( * ) * MIN( DISTINCT 65 ) AS col2 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-1196
SELECT + COUNT ( * ) * MIN ( DISTINCT 65 ) AS col2 FROM tab0
----
195

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) + - 48 = + 9 AND NOT - 30 IS NOT NULL
----

query I rowsort
SELECT + col0 * - col0 * 57 FROM tab1 AS cor0
----
-148257
-411825
-472017

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1201
SELECT ALL 23 + + col2 AS col1, - col1 * + - col1 / + CAST( - + 98 AS DECIMAL ) - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1201
SELECT ALL 23 + + col2 AS col1, - col1 * + - col1 / + CAST ( - + 98 AS REAL ) - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT + col1 * + + col2 * - col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

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

query I rowsort
SELECT 24 + 5 * + + 29 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
169
169
169

query I rowsort
SELECT DISTINCT - col0 * - 41 * col2 + + - col2 + + col0 AS col1 FROM tab1
----
200691
205641
253731

query I rowsort
SELECT - col0 * - col2 + 91 AS col1 FROM tab0
----
796
961
9694

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

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

query I rowsort
SELECT ALL + col1 + ( - 57 ) FROM tab0
----
-36
-56
24

query I rowsort
SELECT ALL 95 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT - MAX( + - 43 ) * MAX( DISTINCT + + 43 ) + + 41 AS col2 FROM tab1
----
1890

skipif mysql # not compatible
query I rowsort label-1211
SELECT - MAX ( + - 43 ) * MAX ( DISTINCT + + 43 ) + + 41 AS col2 FROM tab1
----
1890

query I rowsort
SELECT + col1 + + 47 + - + 6 FROM tab0
----
122
42
62

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

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

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

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

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 WHERE NOT col1 <> + + 55
----

query II rowsort
SELECT 89 - + col2 AS col2, 66 FROM tab1
----
-7
66
21
66
30
66

query I rowsort
SELECT + col1 - 30 AS col2 FROM tab0
----
-29
-9
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col1 * + + col1 AND NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1222
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 45 NOT BETWEEN - 86 * - col1 * - CAST( - CAST( + + col1 AS SIGNED ) AS SIGNED ) AND ( ( - + 95 ) * - 42 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1222
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 45 NOT BETWEEN - 86 * - col1 * - CAST ( - CAST ( + + col1 AS INTEGER ) AS INTEGER ) AND ( ( - + 95 ) * - 42 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT 73 * + col0 AS col2 FROM tab1
----
3723
6205
6643

onlyif mysql # aggregate syntax: 
query II rowsort label-1225
SELECT DISTINCT + COUNT( * ) AS col1, + 20 col0 FROM tab2
----
3
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1225
SELECT DISTINCT + COUNT ( * ) AS col1, + 20 col0 FROM tab2
----
3
20

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - COUNT ( - 63 ) FROM tab1 cor0
----
-3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1229
SELECT ALL + + COUNT( * ) DIV 14 FROM tab1 AS cor0 WHERE NOT ( NOT ( + ( + CAST( - col2 AS DECIMAL ) ) IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL + + COUNT ( * ) / 14 FROM tab1 AS cor0 WHERE NOT ( NOT ( + ( + CAST ( - col2 AS REAL ) ) IS NOT NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT SUM( - col0 ) AS col1 FROM tab0 WHERE ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT SUM ( - col0 ) AS col1 FROM tab0 WHERE ( - col2 ) IS NULL
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - 89 * + + 8 + + col0 + + ( + col2 ) + col0 * col1 * - 38
----

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

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

query I rowsort
SELECT - 29 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: 
query II rowsort label-1235
SELECT - 37 + - 30 col0, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-67
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1235
SELECT - 37 + - 30 col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-67
-3

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

query I rowsort
SELECT DISTINCT - 74 + col0 + + ( 19 ) + ( - col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
141
242
3767

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT - COUNT( col2 ) * - + SUM( - 81 ) FROM tab2 cor0
----
-729

skipif mysql # not compatible
query I rowsort label-1240
SELECT - COUNT ( col2 ) * - + SUM ( - 81 ) FROM tab2 cor0
----
-729

query II rowsort
SELECT + - col0, col0 * + col0 AS col0 FROM tab0 AS cor0
----
-15
225
-87
7569
-97
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-1242
SELECT DISTINCT MIN( + col2 ) AS col2, COUNT( * ) AS col2 FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-1242
SELECT DISTINCT MIN ( + col2 ) AS col2, COUNT ( * ) AS col2 FROM tab0
----
10
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT - CAST( NULL AS SIGNED ) * - - 90 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT - CAST ( NULL AS INTEGER ) * - - 90 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1246
SELECT + 15 + - COUNT ( DISTINCT - ( + col1 ) ) FROM tab1
----
12

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

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

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

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

query I rowsort
SELECT ALL - col1 + - 79 + - + col1 - - col0 FROM tab1 AS cor0
----
-4
-56
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT CAST( + - col1 AS SIGNED ) + col0 * + ( - col1 ) FROM tab1 AS cor0
----
-430
-4324
-728

skipif mysql # not compatible
query I rowsort label-1250
SELECT CAST ( + - col1 AS INTEGER ) + col0 * + ( - col1 ) FROM tab1 AS cor0
----
-430
-4324
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL - MIN( DISTINCT - 8 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL - MIN ( DISTINCT - 8 ) FROM tab1 AS cor0
----
8

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 16 / - col0 / + col0 IS NOT NULL
----

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

query I rowsort
SELECT col1 - + 79 FROM tab0 AS cor0
----
-58
-78
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1258
SELECT DISTINCT + 15 * + + col1 + + 6 + + CAST( NULL AS SIGNED ) AS col1, col0 * col1 * + 45 FROM tab2 AS cor0
----
NULL
105570
NULL
221760
NULL
226125

skipif mysql # not compatible
query II rowsort label-1258
SELECT DISTINCT + 15 * + + col1 + + 6 + + CAST ( NULL AS INTEGER ) AS col1, col0 * col1 * + 45 FROM tab2 AS cor0
----
NULL
105570
NULL
221760
NULL
226125

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

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

query I rowsort
SELECT ALL + 61 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = + col2
----

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

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

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

query I rowsort
SELECT DISTINCT ( + - 34 ) AS col2 FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL + SUM( + + 77 ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL + SUM ( + + 77 ) FROM tab0 AS cor0
----
231

query I rowsort
SELECT ALL - 42 * - col0 AS col1 FROM tab2 AS cor0
----
1932
2688
3150

query I rowsort
SELECT - 7 * + + 56 FROM tab2 AS cor0
----
-392
-392
-392

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1268
SELECT DISTINCT + col0 * - + col1 * CAST( NULL AS SIGNED ) * - + ( + CAST( NULL AS SIGNED ) ) / + - CAST( col1 AS SIGNED ) + col2 AS col0, 60 * - - col0 * ( - CAST( NULL AS SIGNED ) ) * + - col0 + 74 * col2 FROM tab1 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1268
SELECT DISTINCT + col0 * - + col1 * CAST ( NULL AS INTEGER ) * - + ( + CAST ( NULL AS INTEGER ) ) / + - CAST ( col1 AS INTEGER ) + col2 AS col0, 60 * - - col0 * ( - CAST ( NULL AS INTEGER ) ) * + - col0 + 74 * col2 FROM tab1 cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT ALL + ( + 66 ), - MAX( - ( + + col1 ) ) AS col0 FROM tab2
----
66
51

skipif mysql # not compatible
query II rowsort label-1269
SELECT ALL + ( + 66 ), - MAX ( - ( + + col1 ) ) AS col0 FROM tab2
----
66
51

query III rowsort
SELECT * FROM tab1 WHERE NOT - 54 + + 23 - + 98 * - 68 / - col1 < - col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1271
SELECT MIN ( ALL + col1 ) col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1272
SELECT ALL COUNT( * ) DIV + 64 FROM tab2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT ALL col2 DIV col0 * - col1 AS col1 FROM tab1
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL col2 / col0 * - col1 AS col1 FROM tab1
----
-14
0
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE - + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1275
SELECT + - 99, COUNT( - 63 ) * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-1275
SELECT + - 99, COUNT ( - 63 ) * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-99
NULL

query I rowsort
SELECT ALL + 57 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT - col0 + 82 DIV + col1 AS col1 FROM tab1
----
-46
-69
-90

skipif mysql # not compatible
query I rowsort label-1278
SELECT - col0 + 82 / + col1 AS col1 FROM tab1
----
-46
-69
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT + MAX( - col0 ) * - - COUNT( * ) + MAX( DISTINCT + ( - + 27 ) ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-1280
SELECT + MAX ( - col0 ) * - - COUNT ( * ) + MAX ( DISTINCT + ( - + 27 ) ) FROM tab2
----
-165

query I rowsort
SELECT col0 + 18 FROM tab0
----
105
115
33

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

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT - COUNT ( * ) + - - 92 FROM tab1
----
89

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND + - 29
----

query I rowsort
SELECT DISTINCT col1 + + col1 * - + ( - col0 ) AS col1 FROM tab1
----
430
4324
728

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 * 51 + + col1 col1, col0 col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
2478
15
5050
97
531
87

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

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

query I rowsort
SELECT DISTINCT + + col2 - - 93 - 69 * + + col1 * 53 AS col2 FROM tab0 AS cor0
----
-296077
-3465
-76694

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1291
SELECT * FROM tab2 WHERE NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1291
SELECT * FROM tab2 WHERE NULL <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 30 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT col1 + - - 14 + 8 AS col2 FROM tab2
----
73
89
99

query I rowsort
SELECT + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 54 IN ( - + col1, 69 + col1 * - col2, - - col1 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 66 + 91, + col1, + 94 / - col1, col2 + 72 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1296
SELECT DISTINCT MIN( DISTINCT + 9 ) col0, CAST( 4 AS SIGNED ) + + + 49 FROM tab0 AS cor0
----
9
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1296
SELECT DISTINCT MIN ( DISTINCT + 9 ) col0, CAST ( 4 AS INTEGER ) + + + 49 FROM tab0 AS cor0
----
9
53

query I rowsort
SELECT DISTINCT - 94 * + col2 AS col0 FROM tab2 AS cor0
----
-2162
-3760
-5452

query I rowsort
SELECT ALL 1 * + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - - col0 * - 55 FROM tab0 AS cor0
----
-4785
-5335
-825

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 8 * - ( col2 ) * + col1 * - ( + col1 ) + + 82 col0 FROM tab1 AS cor0 WHERE NOT + col0 <= + + col0
----

query I rowsort
SELECT + col1 * 47 * - 28 FROM tab1
----
-18424
-61852
-6580

query II rowsort
SELECT DISTINCT + col0 * + 75 * + 5 AS col2, + col1 FROM tab1
----
19125
14
31875
5
34125
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1304
SELECT DISTINCT 83 DIV + - SUM( - 77 ) AS col0, 17 + - 78 AS col2 FROM tab1
----
0
-61

skipif mysql # not compatible
query II rowsort label-1304
SELECT DISTINCT 83 / + - SUM ( - 77 ) AS col0, 17 + - 78 AS col2 FROM tab1
----
0
-61

query II rowsort
SELECT ALL + 98 AS col0, col1 + + + 62 AS col2 FROM tab2
----
98
113
98
129
98
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 67, - col0 col1 FROM tab0 WHERE NOT - col2 NOT IN ( col1 * - col2, col1 * + 52, + col0, ( + + 51 ) )
----
67
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT 65 DIV + ( col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1307
SELECT 65 / + ( col2 ) FROM tab2
----
1
1
2

query I rowsort
SELECT ALL col0 * + + ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
425
4277
714

query I rowsort
SELECT DISTINCT - - 60 AS col0 FROM tab2 AS cor0
----
60

query II rowsort
SELECT ALL + col0, 51 FROM tab0 cor0
----
15
51
87
51
97
51

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

query I rowsort
SELECT DISTINCT col0 * col0 + - + 73 FROM tab2 AS cor0
----
2043
4023
5552

query I rowsort
SELECT col0 * col1 * - + col0 FROM tab0
----
-158949
-18225
-9409

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 77 FROM tab1 AS cor0 WHERE NOT + col2 IN ( 96 )
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT SUM( 22 ) AS col0 FROM tab2 cor0
----
66

skipif mysql # not compatible
query I rowsort label-1320
SELECT SUM ( 22 ) AS col0 FROM tab2 cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT + col1 DIV - ( + col2 ) col2 FROM tab2 AS cor0
----
-1
-1
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + - col2 col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1324
SELECT - + 47 DIV COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1324
SELECT - + 47 / COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1325
SELECT ALL + col2 DIV 52 AS col0, 97 FROM tab2 AS cor0
----
0
97
0
97
1
97

skipif mysql # not compatible
query II rowsort label-1325
SELECT ALL + col2 / 52 AS col0, 97 FROM tab2 AS cor0
----
0
97
0
97
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT COUNT( * ) - - ( - 77 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-1326
SELECT COUNT ( * ) - - ( - 77 ) FROM tab0
----
-74

query II rowsort
SELECT 97 * + col0 AS col2, 82 - - col0 FROM tab0 WHERE col2 IS NOT NULL
----
1455
97
8439
169
9409
179

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

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

query I rowsort
SELECT ALL - 46 * + + col2 FROM tab2
----
-1058
-1840
-2668

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col2 + - + 22 AS col2 FROM tab2
----
1
18
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT COUNT( * ) * + COUNT( * ) + + + SUM( 18 ) FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-1333
SELECT COUNT ( * ) * + COUNT ( * ) + + + SUM ( 18 ) FROM tab2 cor0
----
63

query I rowsort
SELECT + col1 + + 43 AS col1 FROM tab1 AS cor0
----
48
57
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1335
SELECT COUNT( * ) + - 95 * - + COUNT( * ) AS col1, + 17 AS col0 FROM tab2 AS cor0
----
288
17

skipif mysql # not compatible
query II rowsort label-1335
SELECT COUNT ( * ) + - 95 * - + COUNT ( * ) AS col1, + 17 AS col0 FROM tab2 AS cor0
----
288
17

query I rowsort
SELECT + col0 * - + 2 * - 72 + 3 AS col0 FROM tab1 AS cor0
----
12243
13107
7347

query II rowsort
SELECT DISTINCT + - col1 * 88 + + + col2 AS col0, - 23 FROM tab0 AS cor0
----
-1838
-23
-7081
-23
11
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT + - ( - + COUNT( * ) ) * + 68 AS col1 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-1338
SELECT + - ( - + COUNT ( * ) ) * + 68 AS col1 FROM tab1 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT ALL - ( - 13 ), - COUNT( * ) * - 51 AS col1 FROM tab1 AS cor0
----
13
153

skipif mysql # not compatible
query II rowsort label-1339
SELECT ALL - ( - 13 ), - COUNT ( * ) * - 51 AS col1 FROM tab1 AS cor0
----
13
153

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

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

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

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

query I rowsort
SELECT ALL - col1 * + 47 AS col0 FROM tab0
----
-3807
-47
-987

query I rowsort
SELECT - col2 * - - col1 * - ( + col0 ) AS col0 FROM tab2
----
197120
291450
53958

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

skipif mysql # not compatible
query I rowsort label-1346
SELECT - CAST ( - col1 AS INTEGER ) * + 92 - + col2 + - + 64 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

query II rowsort
SELECT col2 + + - col0, + col2 AS col1 FROM tab0
----
-77
10
2
99
32
47

query I rowsort
SELECT DISTINCT col1 + col2 + - col2 AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT SUM( ALL + 97 ) AS col0 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT SUM ( ALL + 97 ) AS col0 FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT - 21 AS col2, - SUM( + 31 ) AS col1 FROM tab1
----
-21
-93

skipif mysql # not compatible
query II rowsort label-1351
SELECT - 21 AS col2, - SUM ( + 31 ) AS col1 FROM tab1
----
-21
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT - MAX( DISTINCT 37 ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-1352
SELECT - MAX ( DISTINCT 37 ) FROM tab0
----
-37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IS NULL AND NOT col2 >= col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + + col2 + + + 20 - - 29 AS col2 FROM tab1 AS cor0
----
108
117
145

query I rowsort
SELECT + col1 + 2 FROM tab2 AS cor0
----
53
69
79

query II rowsort
SELECT DISTINCT - col2 + 6 * - col1, col0 FROM tab1 cor0
----
-180
51
-350
91
-89
85

query I rowsort
SELECT DISTINCT + col2 + + 63 AS col0 FROM tab0 cor0
----
110
162
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 86 <= 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT DISTINCT - COUNT( - - 13 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - COUNT ( - - 13 ) FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - ( + - col2 ) + ( 48 ), + col2 * - + 82 + + col1 * + + 60 * + - col2 AS col1 FROM tab1
----
107
-22538
116
-197336
144
-88512

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1362
SELECT * FROM tab2 AS cor0 WHERE 98 * 93 < - - CAST( + col2 AS SIGNED ) / + 89 * col2
----

skipif mysql # not compatible
query III rowsort label-1362
SELECT * FROM tab2 AS cor0 WHERE 98 * 93 < - - CAST ( + col2 AS INTEGER ) / + 89 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT MAX( + ( + col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1363
SELECT MAX ( + ( + col1 ) ) FROM tab0 AS cor0
----
81

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

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

query II rowsort
SELECT + 46, - col1 + + 23 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 12 / - + col2 IS NOT NULL
----

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

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

query II rowsort
SELECT ALL 23, ( - - ( + col0 ) ) AS col0 FROM tab2
----
23
46
23
64
23
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1370
SELECT ALL CAST( NULL AS SIGNED ), - col0 AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-1370
SELECT ALL CAST ( NULL AS INTEGER ), - col0 AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT DISTINCT - COUNT( - 45 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT - COUNT ( - 45 ) FROM tab1
----
-3

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

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

query I rowsort
SELECT col2 * + + col2 * + + col1 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT 3 + + + col0 FROM tab2
----
49
67
78

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - col0 AND - col0 * col0 + - 38 + - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + + COUNT( ALL - col2 ) * + SUM( - col1 ) * + - 41 AS col1 FROM tab2 AS cor0
----
23985

skipif mysql # not compatible
query I rowsort label-1377
SELECT + + COUNT ( ALL - col2 ) * + SUM ( - col1 ) * + - 41 AS col1 FROM tab2 AS cor0
----
23985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT + 2 * + CAST( 7 AS SIGNED ) + - 84 + ( - col1 ) FROM tab1 AS cor0
----
-117
-75
-84

skipif mysql # not compatible
query I rowsort label-1378
SELECT + 2 * + CAST ( 7 AS INTEGER ) + - 84 + ( - col1 ) FROM tab1 AS cor0
----
-117
-75
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT + SUM( + + 59 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1379
SELECT + SUM ( + + 59 ) FROM tab1 AS cor0
----
177

query I rowsort
SELECT ALL + 80 + + col1 FROM tab1 AS cor0
----
127
85
94

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

skipif mysql # not compatible
query II rowsort label-1381
SELECT ALL - - COUNT ( * ) - - ( - COUNT ( * ) ) + COUNT ( DISTINCT + + col1 ) AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
3
NULL

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

skipif mysql # not compatible
query I rowsort label-1382
SELECT + MAX ( ALL col0 ) FROM tab1 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 - col0 * + col2 col1, col2 AS col2 FROM tab0 AS cor0
----
-658
47
-860
10
-9504
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT + SUM( DISTINCT + 87 ) AS col1, - 89 FROM tab1 AS cor0
----
87
-89

skipif mysql # not compatible
query II rowsort label-1384
SELECT + SUM ( DISTINCT + 87 ) AS col1, - 89 FROM tab1 AS cor0
----
87
-89

query I rowsort
SELECT col2 - - - col2 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL COUNT ( DISTINCT + 11 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 99 col0 FROM tab1
----
158
167
195

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1388
SELECT + - CAST( NULL AS SIGNED ) FROM tab0 WHERE 54 / + CAST( NULL AS DECIMAL ) >= 38
----

skipif mysql # not compatible
query I rowsort label-1388
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE 54 / + CAST ( NULL AS REAL ) >= 38
----

query I rowsort
SELECT + col0 + + 62 FROM tab0
----
149
159
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL COUNT( DISTINCT - 46 ) FROM tab0 WHERE NOT col1 IN ( - col1 * - col0, + 40, + - ( + col2 ), - + col0 + col0 )
----
1

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL COUNT ( DISTINCT - 46 ) FROM tab0 WHERE NOT col1 IN ( - col1 * - col0, + 40, + - ( + col2 ), - + col0 + col0 )
----
1

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

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

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE - 48 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + ( + col1 ), + col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT + ( - col2 ) * + 3 + - ( col0 ) * - - ( + + ( col0 ) ) > + + 34 / + col1
----
51
85
91

query I rowsort
SELECT DISTINCT + 79 FROM tab0 AS cor0 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT + col2 * - ( - + 98 ) FROM tab0 AS cor0
----
4606
9702
980

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

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

query I rowsort
SELECT col1 * - 68 + 37 AS col1 FROM tab0 AS cor0
----
-1391
-31
-5471

query I rowsort
SELECT + col0 * + - 31 AS col0 FROM tab1 AS cor0
----
-1581
-2635
-2821

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <> + 12 / col0 - col1
----

query I rowsort
SELECT - + AVG ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT 67 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab2, tab0 AS cor0
----
21

query II rowsort
SELECT col1 + - - ( + - col1 ) - + col0 * + - col2 * + col0 + + col1 + - col1 AS col0, col0 AS col0 FROM tab1
----
249696
51
426275
85
563108
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT - MIN( ALL 74 ) + + + 34 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-1406
SELECT - MIN ( ALL 74 ) + + + 34 FROM tab0
----
-40

query I rowsort
SELECT 26 + + 57 FROM tab1
----
83
83
83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 / + col2 + col2 * + 84 col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ( - - SUM( - col1 ) ) AS col0 FROM tab0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT ( - - SUM ( - col1 ) ) AS col0 FROM tab0 WHERE ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT + col0 * + + col0 - + 66 AS col2 FROM tab0
----
159
7503
9343

query I rowsort
SELECT ALL 49 * + col1 * + + col1 * + - ( - 98 ) + - 84 FROM tab1
----
10607534
119966
941108

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL + + MIN( ALL - 93 ) + + - 9 AS col0 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL + + MIN ( ALL - 93 ) + + - 9 AS col0 FROM tab2 AS cor0
----
-102

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

query I rowsort
SELECT DISTINCT 77 * col1 + col2 FROM tab2 AS cor0
----
3950
5217
5969

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

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL + - ( + + COUNT ( * ) ) / MIN ( + + 78 ) - + 28 AS col0 FROM tab1 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL + MIN( DISTINCT + 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + MIN ( DISTINCT + 22 ) FROM tab2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT DISTINCT 74 * 85 DIV - - 15 FROM tab1
----
419

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT 74 * 85 / - - 15 FROM tab1
----
419

query I rowsort
SELECT + 53 * - 32 FROM tab1
----
-1696
-1696
-1696

onlyif mysql # aggregate syntax: 
query II rowsort label-1425
SELECT COUNT( - - col2 ) AS col1, + 51 * - + COUNT( * ) AS col2 FROM tab2
----
3
-153

skipif mysql # not compatible
query II rowsort label-1425
SELECT COUNT ( - - col2 ) AS col1, + 51 * - + COUNT ( * ) AS col2 FROM tab2
----
3
-153

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN - - ( - 97 ) + + 66 AND + ( + 6 ) * + - col0 / - col2 + + col1
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + 78 * + - col0 AS col1 FROM tab1
----
-3978
-6630
-7098

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

query I rowsort
SELECT ALL - ( - col2 ) * - col0 FROM tab0
----
-705
-870
-9603

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

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

query I rowsort
SELECT DISTINCT col0 * + 51 * - - 2 FROM tab0
----
1530
8874
9894

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT ALL - 84 * ( + - COUNT( * ) ) * 14 FROM tab0
----
3528

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - 84 * ( + - COUNT ( * ) ) * 14 FROM tab0
----
3528

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 < + 79 / + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1435
SELECT ALL CAST( 80 AS SIGNED ) DIV - - col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL CAST ( 80 AS INTEGER ) / - - col1 FROM tab1
----
1
16
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61, 1 col0 FROM tab1
----
61
1
61
1
61
1

query I rowsort
SELECT 2 * 63 AS col0 FROM tab0 AS cor0
----
126
126
126

query I rowsort
SELECT DISTINCT - 59 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-59

query I rowsort
SELECT - - 85 * + + ( ( - + col1 ) ) * col2 FROM tab1 cor0
----
-114240
-25075
-271660

onlyif mysql # DIV for integer division: 
query II rowsort label-1441
SELECT + + 16 * - ( - col2 ) col1, + col2 DIV - 61 FROM tab2 cor0
----
368
0
640
0
928
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1441
SELECT + + 16 * - ( - col2 ) col1, + col2 / - 61 FROM tab2 cor0
----
368
0
640
0
928
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1442
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1442
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - + 23 < NULL
----

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

query I rowsort
SELECT ( - - 18 ) AS col1 FROM tab1
----
18
18
18

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT - 95 + - - ( - ( + COUNT( * ) ) ) DIV + COUNT( * ) col2 FROM tab2
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1449
SELECT DISTINCT - 95 + - - ( - ( + COUNT ( * ) ) ) / + COUNT ( * ) col2 FROM tab2
----
-96

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

query II rowsort
SELECT + 70 + - 0, col0 FROM tab1 AS cor0
----
70
51
70
85
70
91

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

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

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

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

query II rowsort
SELECT + + col2 + col0 AS col0, col0 FROM tab0 AS cor0
----
196
97
62
15
97
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT 97 * - 59 * + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1 cor0
----
-17166

skipif mysql # not compatible
query I rowsort label-1456
SELECT 97 * - 59 * + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1 cor0
----
-17166

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE - col0 NOT IN ( + 46 )
----
-9

skipif mysql # not compatible
query I rowsort label-1457
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 NOT IN ( + 46 )
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT + 7 + - + COUNT( col0 ) - 20 * - COUNT( ( - - col0 ) ) AS col2 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + 7 + - + COUNT ( col0 ) - 20 * - COUNT ( ( - - col0 ) ) AS col2 FROM tab0 AS cor0
----
64

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

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

query I rowsort
SELECT DISTINCT + + 59 - + col2 AS col2 FROM tab2 AS cor0
----
1
19
36

query I rowsort
SELECT - col2 - - col2 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 WHERE NOT ( NOT 78 / - col0 NOT BETWEEN - - col1 AND + 53 )
----
-3

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 WHERE NOT ( NOT 78 / - col0 NOT BETWEEN - - col1 AND + 53 )
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 81 )
----

query I rowsort
SELECT ALL 55 * + - 42 FROM tab1
----
-2310
-2310
-2310

query II rowsort
SELECT DISTINCT col2 AS col0, - col0 * + + 49 * + col1 AS col0 FROM tab2
----
23
-114954
40
-241472
58
-246225

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

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

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

query I rowsort
SELECT - + 62 * + col0 + + - col0 AS col0 FROM tab0 AS cor0
----
-5481
-6111
-945

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT - 84 DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT - 84 / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
28

query I rowsort
SELECT 99 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1474
SELECT COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + col0 * - ( 84 ) FROM tab0 AS cor0
----
-1260
-7308
-8148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL MAX( - 46 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL MAX ( - 46 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT - + COUNT( * ) * - - 85 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-255

skipif mysql # not compatible
query I rowsort label-1479
SELECT - + COUNT ( * ) * - - 85 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-255

query I rowsort
SELECT ALL + 40 * 86 AS col0 FROM tab0 AS cor0
----
3440
3440
3440

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT col2 + + 97 + - col2 DIV - 82 AS col2 FROM tab2
----
120
137
155

skipif mysql # not compatible
query I rowsort label-1481
SELECT col2 + + 97 + - col2 / - 82 AS col2 FROM tab2
----
120
137
155

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT + COUNT( * ) * - 80 + + COUNT( * ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-1484
SELECT + COUNT ( * ) * - 80 + + COUNT ( * ) FROM tab1
----
-237

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT + COUNT( * ) * 64 + + 46 AS col2, - 59 FROM tab1
----
238
-59

skipif mysql # not compatible
query II rowsort label-1486
SELECT + COUNT ( * ) * 64 + + 46 AS col2, - 59 FROM tab1
----
238
-59

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 88 * - col0 FROM tab0 AS cor0
----
1320
7656
8536

query I rowsort
SELECT DISTINCT + col0 - 73 FROM tab1 AS cor0
----
-22
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT COUNT( * ) - - SUM( col0 ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-1492
SELECT COUNT ( * ) - - SUM ( col0 ) FROM tab2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT COUNT( * ) + - + 68 AS col0 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT COUNT ( * ) + - + 68 AS col0 FROM tab2 AS cor0
----
-65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - col2 <= col1
----

query II rowsort
SELECT ALL 20 * + col0 / col2 AS col2, col1 + - + col0 / - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT ALL ( - CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL ( - CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL SUM( + 89 ) AS col0 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL SUM ( + 89 ) AS col0 FROM tab2
----
267

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1501
SELECT DISTINCT - ( - - CAST( - AVG ( ALL 67 ) AS SIGNED ) ) AS col2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT - ( - - CAST ( - AVG ( ALL 67 ) AS INTEGER ) ) AS col2 FROM tab2
----
67

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

query I rowsort
SELECT DISTINCT + 96 * 11 * - 67 FROM tab2
----
-70752

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT + CAST( 66 AS SIGNED ) * - 72 FROM tab0 cor0
----
-4752
-4752
-4752

skipif mysql # not compatible
query I rowsort label-1505
SELECT + CAST ( 66 AS INTEGER ) * - 72 FROM tab0 cor0
----
-4752
-4752
-4752

query I rowsort
SELECT ALL - - col2 * + + ( col0 ) + + col2 FROM tab1 AS cor0
----
4992
5074
6256

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

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

skipif mysql # not compatible
query I rowsort label-1508
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
9

query II rowsort
SELECT ALL col2 AS col1, 57 FROM tab1 AS cor0
----
59
57
68
57
96
57

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 + - 68 IS NOT NULL )
----

query I rowsort
SELECT ALL ( col0 ) + - 34 + col0 * - col1 * + col0 AS col2 FROM tab0
----
-158896
-18244
-9346

query I rowsort
SELECT ALL - 71 + - - 70 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 + - + 55 FROM tab1 AS cor0
----
-41
-50
-8

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1517
SELECT ALL + 67 * - CAST ( COUNT ( * ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) + 2 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, - col0 * col0 * + 64 col0 FROM tab2 AS cor0 WHERE + col1 / - 81 IS NOT NULL
----
-46
-135424
-64
-262144
-75
-360000

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 63 * - 51 - - - 61 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab2 AS cor0 WHERE 7 + + ( - + 83 ) + + col2 / col2 BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL + MAX( ALL - - 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL + MAX ( ALL - - 75 ) FROM tab1 AS cor0
----
75

query II rowsort
SELECT DISTINCT col2 AS col0, 68 * - 12 AS col2 FROM tab0 AS cor0
----
10
-816
47
-816
99
-816

query I rowsort
SELECT + - col0 * - col1 + - col1 FROM tab0 cor0 WHERE NOT col0 - 13 IS NOT NULL
----

query I rowsort
SELECT - col0 * - + col1 * 92 AS col0 FROM tab2
----
215832
453376
462300

query II rowsort
SELECT - col2 * - col2, - col2 AS col0 FROM tab0
----
100
-10
2209
-47
9801
-99

query I rowsort
SELECT 68 * - - col1 * + 19 FROM tab1
----
18088
60724
6460

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT DISTINCT ( col1 ) FROM tab2 AS cor0 WHERE NOT 48 + CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT ( col1 ) FROM tab2 AS cor0 WHERE NOT 48 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

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

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
70

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) + + 83 * + col0 * - - 59 FROM tab0 cor0
----
426049
475108
73502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1539
SELECT + + col1 + + col2 * - col0 + - CAST( - - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-4933
-5095
-6232

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

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

query I rowsort
SELECT DISTINCT - 54 + + 4 * col2 * 2 FROM tab2 cor0
----
130
266
410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1542
SELECT DISTINCT 33 DIV COUNT( * ) + - ( 1 ) + 20, COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
30
9

skipif mysql # not compatible
query II rowsort label-1542
SELECT DISTINCT 33 / COUNT ( * ) + - ( 1 ) + 20, COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
30
9

query I rowsort
SELECT ( + col2 ) + - col2 * - 52 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
36626
45229
499454

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1546
SELECT ALL COUNT( * ), ( + - MIN( - col1 ) ) AS col1 FROM tab0
----
3
81

skipif mysql # not compatible
query II rowsort label-1546
SELECT ALL COUNT ( * ), ( + - MIN ( - col1 ) ) AS col1 FROM tab0
----
3
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1548
SELECT CAST( - col1 AS SIGNED ) AS col2, 88 * - col1 - + ( + col2 ) FROM tab1
----
-14
-1328
-47
-4204
-5
-499

skipif mysql # not compatible
query II rowsort label-1548
SELECT CAST ( - col1 AS INTEGER ) AS col2, 88 * - col1 - + ( + col2 ) FROM tab1
----
-14
-1328
-47
-4204
-5
-499

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL + 13 * - MIN( DISTINCT col0 ) AS col1 FROM tab2
----
-598

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL + 13 * - MIN ( DISTINCT col0 ) AS col1 FROM tab2
----
-598

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT ALL SUM( ALL - - col2 ) + ( + + ( + COUNT( * ) ) ) FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL SUM ( ALL - - col2 ) + ( + + ( + COUNT ( * ) ) ) FROM tab1
----
226

query III rowsort
SELECT * FROM tab0 WHERE + 54 + + 67 = + + ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT + col0 DIV + 36 + - - 26 AS col1 FROM tab1 AS cor0
----
27
28
28

skipif mysql # not compatible
query I rowsort label-1553
SELECT + col0 / + 36 + - - 26 AS col1 FROM tab1 AS cor0
----
27
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT DISTINCT + SUM( ALL + col0 ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT + SUM ( ALL + col0 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
182

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT ALL - 90 DIV - col1 col2 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1557
SELECT ALL - 90 / - col1 col2 FROM tab1 AS cor0
----
1
18
6

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT - 78 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT - MIN( - - 48 ) AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1560
SELECT - MIN ( - - 48 ) AS col2 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1561
SELECT ALL - COUNT( * ) AS col1, + 54 FROM tab2 AS cor0 WHERE NULL <> col0
----
0
54

skipif mysql # not compatible
query II rowsort label-1561
SELECT ALL - COUNT ( * ) AS col1, + 54 FROM tab2 AS cor0 WHERE NULL <> col0
----
0
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1562
SELECT DISTINCT 40 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT 40 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + 34 FROM tab1 WHERE 93 <= NULL
----

query I rowsort
SELECT - 96 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL - + COUNT( * ) col2 FROM tab2 WHERE col2 * - 25 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1565
SELECT ALL - + COUNT ( * ) col2 FROM tab2 WHERE col2 * - 25 < NULL
----
0

query II rowsort
SELECT col2, 59 AS col0 FROM tab0
----
10
59
47
59
99
59

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

query I rowsort
SELECT DISTINCT 63 + col2 FROM tab2 AS cor0
----
103
121
86

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * + 48 col2 FROM tab0
----
-1632
-1632
-1632

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT CAST( + col2 AS SIGNED ) - 30 AS col1 FROM tab2 WHERE NULL <> ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-1572
SELECT CAST ( + col2 AS INTEGER ) - 30 AS col1 FROM tab2 WHERE NULL <> ( + col1 )
----

query I rowsort
SELECT DISTINCT ( + 62 ) + + col2 AS col0 FROM tab2
----
102
120
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ( - 60 ) + ( MAX( + col0 ) + ( + 9 ) ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-1574
SELECT ( - 60 ) + ( MAX ( + col0 ) + ( + 9 ) ) FROM tab0
----
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1576
SELECT DISTINCT - col2 DIV col1 + - col1 AS col2 FROM tab1
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - col2 / col1 + - col1 AS col2 FROM tab1
----
-16
-20
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 18 col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - 19 ) AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT DISTINCT - 83 DIV - col0 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT - 83 / - col0 AS col2 FROM tab2
----
1

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

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

query I rowsort
SELECT DISTINCT 96 - + col0 AS col0 FROM tab2
----
21
32
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT - 7 DIV - COUNT( * ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1583
SELECT - 7 / - COUNT ( * ) AS col1 FROM tab0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1584
SELECT 78 DIV 68 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1584
SELECT 78 / 68 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT - col0 DIV 58 + - col1 DIV - col2 AS col2 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1585
SELECT - col0 / 58 + - col1 / - col2 AS col2 FROM tab2
----
0
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1586
SELECT + COUNT( * ) DIV - 92 + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1586
SELECT + COUNT ( * ) / - 92 + COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT 53 DIV 35 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1587
SELECT 53 / 35 AS col2 FROM tab1
----
1
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT + CAST( col0 AS SIGNED ) + + col1 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-1589
SELECT + CAST ( col0 AS INTEGER ) + + col1 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL - 11 + 70 AS col2 FROM tab1
----
59
59
59

query I rowsort
SELECT 24 - - col1 * + col1 AS col1 FROM tab0 WHERE NOT - col1 + + 54 < NULL
----

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

query I rowsort
SELECT 45 - - col0 AS col0 FROM tab2
----
109
120
91

query I rowsort
SELECT DISTINCT col1 + + 82 FROM tab2 AS cor0
----
133
149
159

query I rowsort
SELECT 1 FROM tab2 AS cor0 WHERE ( - col0 ) NOT IN ( col0 / ( 31 ) )
----
1
1
1

query I rowsort
SELECT ALL + 51 + + 16 AS col1 FROM tab0 cor0
----
67
67
67

query I rowsort
SELECT col0 * 75 FROM tab2 cor0
----
3450
4800
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT - 73 * COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
-648

skipif mysql # not compatible
query I rowsort label-1599
SELECT - 73 * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
-648

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT + ( col1 ) DIV + 48 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1600
SELECT + ( col1 ) / + 48 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 18 * - 51 AS col2 FROM tab1 AS cor0
----
-918
-918
-918

query I rowsort
SELECT + + 85 AS col0 FROM tab1 AS cor0
----
85
85
85

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

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

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

query I rowsort
SELECT ALL 74 * - 54 FROM tab2 cor0
----
-3996
-3996
-3996

query I rowsort
SELECT ALL - 46 * + col1 FROM tab2
----
-2346
-3082
-3542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT ALL - 40 DIV COUNT( ( col2 ) ) AS col1 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL - 40 / COUNT ( ( col2 ) ) AS col1 FROM tab1
----
-13

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT ALL 3 DIV + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL 3 / + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 7 AS col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT 30 + - 20 FROM tab2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT CAST( + col0 AS SIGNED ) + + col2 * 89 FROM tab2
----
2093
3624
5237

skipif mysql # not compatible
query I rowsort label-1612
SELECT CAST ( + col0 AS INTEGER ) + + col2 * 89 FROM tab2
----
2093
3624
5237

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT - col2 + - + ( + ( col1 ) ) + CAST( 15 AS SIGNED ) FROM tab1
----
-100
-49
-95

skipif mysql # not compatible
query I rowsort label-1614
SELECT - col2 + - + ( + ( col1 ) ) + CAST ( 15 AS INTEGER ) FROM tab1
----
-100
-49
-95

query I rowsort
SELECT DISTINCT 31 + - 38 * + 40 AS col0 FROM tab1 AS cor0
----
-1489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL + + col0 * + ( col1 ) * CAST( 86 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
201756
423808
432150

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL + + col0 * + ( col1 ) * CAST ( 86 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
201756
423808
432150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT + 35 * + - COUNT( * ) + + - 16 col1 FROM tab0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1618
SELECT + 35 * + - COUNT ( * ) + + - 16 col1 FROM tab0
----
-121

query I rowsort
SELECT ALL + 31 * + 52 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT col1 * + ( col0 ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1215
1827
97

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

skipif mysql # not compatible
query I rowsort label-1621
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT 29 + - col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-115
-118
-130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
46
64
75

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 54 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1626
SELECT ALL * FROM tab1 AS cor0 WHERE + 88 = - - 69 + col0 * - CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1626
SELECT ALL * FROM tab1 AS cor0 WHERE + 88 = - - 69 + col0 * - CAST ( col2 AS REAL )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1630
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col1 / + CAST( 37 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1630
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col1 / + CAST ( 37 AS INTEGER ) )
----

query I rowsort
SELECT ALL - 63 * + + col0 FROM tab0
----
-5481
-6111
-945

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN NULL AND - + col0 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 33 * + - 33 * + col1 + - + 41 FROM tab1
----
-15287
-51224
-5486

query III rowsort
SELECT * FROM tab0 WHERE + - 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL 88 * ( + MAX( ALL - 92 ) ) AS col0 FROM tab1
----
-8096

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL 88 * ( + MAX ( ALL - 92 ) ) AS col0 FROM tab1
----
-8096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL + col1 + - col0 + - ( CAST( col2 AS SIGNED ) ) + + col2 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + col1 + - col0 + - ( CAST ( col2 AS INTEGER ) ) + + col2 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT COUNT( * ) + 86 AS col0 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT COUNT ( * ) + 86 AS col0 FROM tab0
----
89

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

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

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

query I rowsort
SELECT ALL - 70 / - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL + COUNT( * ) * 89 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + COUNT ( * ) * 89 FROM tab0
----
267

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

query I rowsort
SELECT ALL + ( + 0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL - COUNT( * ) * COUNT( * ) + 70 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL - COUNT ( * ) * COUNT ( * ) + 70 FROM tab2 AS cor0
----
61

query I rowsort
SELECT ALL + - 1 + - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col2 * 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL - MAX( + - 33 ) * + - 16 FROM tab1 AS cor0
----
-528

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - MAX ( + - 33 ) * + - 16 FROM tab1 AS cor0
----
-528

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL MIN( - col1 ) * 3 + - COUNT( * ) FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL MIN ( - col1 ) * 3 + - COUNT ( * ) FROM tab0
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT ALL - col2 DIV + 34 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - col2 / + 34 AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 17 * + col0 FROM tab1
----
-1445
-1547
-867

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

query I rowsort
SELECT ALL - 84 + - + col0 FROM tab0
----
-171
-181
-99

query I rowsort
SELECT ALL col2 + - - 44 AS col2 FROM tab2 WHERE + + col1 BETWEEN - - col1 AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT ALL 14 DIV - - ( 95 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 14 / - - ( 95 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - ( + 36 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT + 62 * - 74 + + COUNT( * ) DIV - - 18 col1 FROM tab1
----
-4588

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1659
SELECT DISTINCT + 62 * - 74 + + COUNT ( * ) / - - 18 col1 FROM tab1
----
-4588

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT - col0 - ( + col2 ) DIV - + col2 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-1661
SELECT - col0 - ( + col2 ) / - + col2 FROM tab0 AS cor0
----
-14
-86
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + + 66 * + col0 * - + 84 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1663
SELECT - CAST( + - 53 AS SIGNED ) - - 11, col2 * - - col2 + + 13 AS col0 FROM tab1 cor0
----
64
3494
64
4637
64
9229

skipif mysql # not compatible
query II rowsort label-1663
SELECT - CAST ( + - 53 AS INTEGER ) - - 11, col2 * - - col2 + + 13 AS col0 FROM tab1 cor0
----
64
3494
64
4637
64
9229

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

query I rowsort
SELECT - - col1 + - - 12 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT 59 * + col2 * - 41 AS col1 FROM tab1
----
-142721
-164492
-232224

query I rowsort
SELECT + ( + 92 ) FROM tab0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT ALL + ( - + ( col0 ) ) * - col2 * - + 71 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( + 8 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + ( - + ( col0 ) ) * - col2 * - + 71 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( + 8 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT + MAX( ALL - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1670
SELECT + MAX ( ALL - col0 ) FROM tab1 cor0
----
-51

query II rowsort
SELECT col2 AS col2, - col1 * - 68 + col1 + - + 92 FROM tab0 AS cor0
----
10
1357
47
5497
99
-23

query II rowsort
SELECT ALL + col0 AS col1, col0 * col2 AS col1 FROM tab0 AS cor0
----
15
705
87
870
97
9603

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

query II rowsort
SELECT - col1 AS col1, 79 AS col1 FROM tab1 AS cor0
----
-14
79
-47
79
-5
79

query I rowsort
SELECT ALL + 16 AS col2 FROM tab1 WHERE NOT - 59 + - col0 * 25 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 41 * col2 NOT IN ( 27, - col2 * - 48 / + - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT DISTINCT 37 * - COUNT( * ) + + 69 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT 37 * - COUNT ( * ) + + 69 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col0 IN ( - 99 + + ( + - col0 ), col0 )
----

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

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

query I rowsort
SELECT ALL + col1 * - + col1 - 53 AS col1 FROM tab2 AS cor0
----
-2654
-4542
-5982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1681
SELECT 6 AS col1, SUM( ALL + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
6
NULL

skipif mysql # not compatible
query II rowsort label-1681
SELECT 6 AS col1, SUM ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
6
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1682
SELECT DISTINCT * FROM tab0 WHERE - col1 < + CAST( + - 63 AS SIGNED )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-1682
SELECT DISTINCT * FROM tab0 WHERE - col1 < + CAST ( + - 63 AS INTEGER )
----
15
81
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1684
SELECT COUNT( ALL - + col0 ) + + - COUNT( * ) DIV 82 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1684
SELECT COUNT ( ALL - + col0 ) + + - COUNT ( * ) / 82 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 77 * - col1 FROM tab0
----
-1617
-6237
-77

query II rowsort
SELECT DISTINCT - ( + - 11 ) + + col1 AS col2, 30 FROM tab2 AS cor0
----
62
30
78
30
88
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1687
SELECT ALL + 45 DIV + + ( col2 ) AS col1, CAST( 63 AS SIGNED ) FROM tab1 AS cor0
----
0
63
0
63
0
63

skipif mysql # not compatible
query II rowsort label-1687
SELECT ALL + 45 / + + ( col2 ) AS col1, CAST ( 63 AS INTEGER ) FROM tab1 AS cor0
----
0
63
0
63
0
63

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col1 BETWEEN col2 - col1 AND NULL
----

query I rowsort
SELECT - 93 AS col1 FROM tab1 AS cor0 WHERE - 70 IS NOT NULL
----
-93
-93
-93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 47 + - + col0 / + + 53 >= + 97
----

query I rowsort
SELECT DISTINCT col0 + col2 + 78 AS col0 FROM tab0 AS cor0
----
140
175
274

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT DISTINCT + - col2 DIV - col0 + - + 5 + - + ( - col2 ) FROM tab1 cor0
----
54
63
92

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT + - col2 / - col0 + - + 5 + - + ( - col2 ) FROM tab1 cor0
----
54
63
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL - 81 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL - 81 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL + col0 - - ( - - col0 ) + - - 62 AS col2 FROM tab1 cor0
----
164
232
244

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 57 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 57 IS NULL
----
0

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

query I rowsort
SELECT ALL + col2 * col1 * col0 AS col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT 49 DIV + COUNT( * ) AS col2 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-1698
SELECT 49 / + COUNT ( * ) AS col2 FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1699
SELECT ALL CAST( + + col0 AS SIGNED ) * col2 * col0 AS col1 FROM tab1
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL CAST ( + + col0 AS INTEGER ) * col2 * col0 AS col1 FROM tab1
----
249696
426275
563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT ALL - CAST( 2 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - col1 NOT IN ( - 34 )
----

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - CAST ( 2 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - col1 NOT IN ( - 34 )
----

query I rowsort
SELECT ALL 66 + + - 22 AS col0 FROM tab2 AS cor0 WHERE - 82 IS NOT NULL
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT - CAST( - 65 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-1702
SELECT - CAST ( - 65 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1703
SELECT ALL ( - - 93 ) AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
93
NULL
93
NULL
93
NULL

skipif mysql # not compatible
query II rowsort label-1703
SELECT ALL ( - - 93 ) AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
93
NULL
93
NULL
93
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - ( - MIN( col1 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1705
SELECT - ( - MIN ( col1 ) ) AS col2 FROM tab0
----
1

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab2 WHERE NOT + - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1707
SELECT ALL 21 * + col0 - + + col1 + - - col0 * ( + + CAST( NULL AS SIGNED ) ) * + 62 - + col2 AS col2, - col1 + - 74 - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 - - 81 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1707
SELECT ALL 21 * + col0 - + + col1 + - - col0 * ( + + CAST ( NULL AS INTEGER ) ) * + 62 - + col2 AS col2, - col1 + - 74 - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 - - 81 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1708
SELECT - + CAST( NULL AS SIGNED ), - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query II rowsort label-1708
SELECT - + CAST ( NULL AS INTEGER ), - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

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

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

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

query I rowsort
SELECT 78 * + ( col2 ) * - - col0 AS col0 FROM tab2 cor0
----
199680
339300
82524

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL MIN( DISTINCT + 36 ) * - + SUM( col2 ) FROM tab1 AS cor0
----
-8028

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL MIN ( DISTINCT + 36 ) * - + SUM ( col2 ) FROM tab1 AS cor0
----
-8028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT ALL + SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1714
SELECT - MIN ( ALL + - col2 ) FROM tab0
----
99

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

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

query I rowsort
SELECT + col0 + + 94 AS col0 FROM tab0 AS cor0
----
109
181
191

query I rowsort
SELECT ALL - col2 * - col1 + + col0 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT DISTINCT 49 + + 73, MIN( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
122
23

skipif mysql # not compatible
query II rowsort label-1719
SELECT DISTINCT 49 + + 73, MIN ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
122
23

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

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

query I rowsort
SELECT + col1 * - col0 + - col1 FROM tab2 cor0
----
-2397
-5005
-5092

query I rowsort
SELECT ALL 89 AS col2 FROM tab1 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + + 24 ) + + col0 * + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 57 + + 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fdbc64d082fd12518b9c868f375d2675

query I rowsort
SELECT + - 98 * + - col0 - - 70 FROM tab0 AS cor0
----
1540
8596
9576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT ALL - - col1 / - ( - - ( CAST( NULL AS SIGNED ) ) ) * 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - - col1 / - ( - - ( CAST ( NULL AS INTEGER ) ) ) * 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1728
SELECT ALL + MAX( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + MAX ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 cor0
----
NULL

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + COUNT( * ) * - 95 + + 7 AS col0 FROM tab2 AS cor0
----
-278

skipif mysql # not compatible
query I rowsort label-1734
SELECT + COUNT ( * ) * - 95 + + 7 AS col0 FROM tab2 AS cor0
----
-278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT ( - 52 ) * - - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT ( - 52 ) * - - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL 40 * + col1 + + CAST( + col1 AS SIGNED ) FROM tab0
----
3321
41
861

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL 40 * + col1 + + CAST ( + col1 AS INTEGER ) FROM tab0
----
3321
41
861

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - MIN( 99 ) * - 75 AS col2 FROM tab1 AS cor0
----
7425

skipif mysql # not compatible
query I rowsort label-1737
SELECT - MIN ( 99 ) * - 75 AS col2 FROM tab1 AS cor0
----
7425

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT COUNT( * ) + - - ( ( + - 87 ) ) FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1739
SELECT COUNT ( * ) + - - ( ( + - 87 ) ) FROM tab0 cor0
----
-84

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

query I rowsort
SELECT + col1 + 24 FROM tab1 AS cor0
----
29
38
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL + 96 + + + COUNT( * ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL + 96 + + + COUNT ( * ) FROM tab2 AS cor0
----
99

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

query I rowsort
SELECT 25 + + col1 AS col0 FROM tab1
----
30
39
72

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT DISTINCT + col0 * - - col1 * col2 FROM tab2 WHERE NOT 39 * - + ( + - col0 ) * col1 * + + 58 + - + CAST( 34 AS SIGNED ) * + + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + col0 * - - col1 * col2 FROM tab2 WHERE NOT 39 * - + ( + - col0 ) * col1 * + + 58 + - + CAST ( 34 AS INTEGER ) * + + col2 < NULL
----

query I rowsort
SELECT ALL 45 + - col1 + - col0 FROM tab1
----
-20
-45
-93

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN ( - - 57 ) AND col1 * + col1
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + + 53 col2 FROM tab0
----
82

query I rowsort
SELECT ALL + 31 + col1 AS col2 FROM tab0
----
112
32
52

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 + - + ( - col0 ) NOT BETWEEN + 53 AND col1
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * + + col1 col1 FROM tab1 AS cor0
----
1078
3619
385

query II rowsort
SELECT - col0 - col1, - 88 * - 68 * + col1 * - 46 AS col1 FROM tab0
----
-108
-5780544
-96
-22296384
-98
-275264

query I rowsort
SELECT ALL 47 FROM tab2 AS cor0 WHERE NULL IS NULL
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT - CAST( COUNT( * ) AS SIGNED ) * - - COUNT( * ) - + ( - - 72 ) * - 98 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 IS NULL )
----
7047

skipif mysql # not compatible
query I rowsort label-1755
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) - + ( - - 72 ) * - 98 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 IS NULL )
----
7047

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT - ( - COUNT( * ) ) * - + SUM( + + col0 ) AS col0 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-1757
SELECT - ( - COUNT ( * ) ) * - + SUM ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-597

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

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

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

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

query II rowsort
SELECT 64, 53 AS col0 FROM tab0
----
64
53
64
53
64
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( col2 ) col2 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / - col2 + - col1 / + col1 >= - col1 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT ALL 36 DIV col0 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL 36 / col0 AS col0 FROM tab0
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1764
SELECT col0 * 73 DIV - col2 FROM tab2
----
-116
-146
-94

skipif mysql # not compatible
query I rowsort label-1764
SELECT col0 * 73 / - col2 FROM tab2
----
-116
-146
-94

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

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

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

query I rowsort
SELECT + - 19 * - col1 FROM tab1 AS cor0
----
266
893
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT 49 + + COUNT( * ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT 49 + + COUNT ( * ) FROM tab2 AS cor0
----
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - 23 * - - 36 col0 FROM tab0 AS cor0
----
17388
67068
828

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT + COUNT( * ) * + + 84 AS col1 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT + COUNT ( * ) * + + 84 AS col1 FROM tab0 AS cor0
----
252

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 >= 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT - 40 - - col0 AS col2 FROM tab1
----
11
45
51

query I rowsort
SELECT DISTINCT - col2 * col1 + col1 * + 54 FROM tab1
----
-25
-588
-658

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1778
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + + col2, 63 AS col2 FROM tab2 AS cor0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-1778
SELECT DISTINCT CAST ( NULL AS REAL ) - + + col2, 63 AS col2 FROM tab2 AS cor0
----
NULL
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col1 col0 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + 3 + - + ( - col2 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT - 45 DIV + ( 7 ) AS col2 FROM tab1 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-1781
SELECT - 45 / + ( 7 ) AS col2 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + + col0 * - 40 FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query II rowsort label-1783
SELECT 58, COUNT( * ) AS col2 FROM tab2 AS cor0
----
58
3

skipif mysql # not compatible
query II rowsort label-1783
SELECT 58, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
58
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT DISTINCT + COUNT( * ) * + 78 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT + COUNT ( * ) * + 78 FROM tab1 AS cor0
----
234

query I rowsort
SELECT ALL - - col1 * + - 78 AS col0 FROM tab1 AS cor0
----
-1092
-3666
-390

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT BETWEEN - col0 AND - + 59
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 43 IS NOT NULL
----

query II rowsort
SELECT col1 * - 99 AS col1, col2 AS col2 FROM tab0
----
-2079
10
-8019
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 * col1 col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT + 1 * - MIN( ALL - - 29 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + 1 * - MIN ( ALL - - 29 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab1 WHERE - - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1791
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 WHERE - - col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT + MAX( ALL + + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1792
SELECT + MAX ( ALL + + col2 ) AS col0 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT + col1 + + 66 + + 99 * + + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT + col1 + + 66 + + 99 * + + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT DISTINCT - 60 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT - 60 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT DISTINCT 96 DIV - col0 + + - 54 FROM tab0 AS cor0
----
-54
-55
-60

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT 96 / - col0 + + - 54 FROM tab0 AS cor0
----
-54
-55
-60

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 BETWEEN col1 AND + col1
----

query I rowsort
SELECT 2 * - col0 + + 13 * + col1 FROM tab0 AS cor0
----
-181
1023
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT DISTINCT + col1 - - + CAST( NULL AS SIGNED ) / - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT + col1 - - + CAST ( NULL AS INTEGER ) / - col0 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col1, col2 + - - 99 FROM tab2
----
51
122
67
157
77
139

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 > - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + - 83
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, + 46 col2 FROM tab2
----
51
46
67
46
77
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1805
SELECT DISTINCT COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) + - 46 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1805
SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) + - 46 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT - 89 * - - COUNT( * ) AS col1 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-1806
SELECT - 89 * - - COUNT ( * ) AS col1 FROM tab2
----
-267

query II rowsort
SELECT ALL - col1, 83 AS col0 FROM tab0
----
-1
83
-21
83
-81
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT + ( + + COUNT( * ) ) * + 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-1808
SELECT + ( + + COUNT ( * ) ) * + 37 FROM tab0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT - CAST( NULL AS SIGNED ) * - AVG ( - col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( - col0 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - ( + + col1 ) FROM tab0 WHERE + - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT ALL - CAST( 15 AS SIGNED ) * + col1 + col1 FROM tab1 AS cor0
----
-196
-658
-70

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - CAST ( 15 AS INTEGER ) * + col1 + col1 FROM tab1 AS cor0
----
-196
-658
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT ALL + - col1 DIV - 12 + + col1 AS col1 FROM tab2 AS cor0
----
55
72
83

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + - col1 / - 12 + + col1 AS col1 FROM tab2 AS cor0
----
55
72
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col1 + - col2 + + 63 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col1 + - col2 + + 63 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + - 66 * - + 82 - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5331

skipif mysql # not compatible
query I rowsort label-1814
SELECT + - 66 * - + 82 - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5331

query I rowsort
SELECT DISTINCT - - 46 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
46

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - 92 AND - col0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT DISTINCT col1 * + - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 35 ) * - - col1 col1 FROM tab0 AS cor0
----
2835
35
735

query I rowsort
SELECT + 11 FROM tab1 AS cor0 WHERE NOT + ( col1 ) IN ( + col2 )
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1821
SELECT col0 * + ( - ( col0 ) ) + + 57 FROM tab2 WHERE NOT + col2 / + ( 93 ) / + CAST( NULL AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1821
SELECT col0 * + ( - ( col0 ) ) + + 57 FROM tab2 WHERE NOT + col2 / + ( 93 ) / + CAST ( NULL AS INTEGER ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT MIN( 65 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-1822
SELECT MIN ( 65 ) FROM tab2
----
65

query II rowsort
SELECT + col1 AS col0, - col1 AS col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT ( + 17 ) AS col0 FROM tab2
----
17
17
17

query II rowsort
SELECT DISTINCT 62, - 26 AS col0 FROM tab2
----
62
-26

query II rowsort
SELECT DISTINCT 74 AS col2, - col0 FROM tab1
----
74
-51
74
-85
74
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT + 3 + 64 * 78 * + + COUNT( * ) + - + 88 AS col0 FROM tab1
----
14891

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT + 3 + 64 * 78 * + + COUNT ( * ) + - + 88 AS col0 FROM tab1
----
14891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col2 + - col2, col0 col0 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - 98 * + col1 * + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT 26 + - col1 + - CAST( + 55 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
-21
-34
-42

skipif mysql # not compatible
query I rowsort label-1829
SELECT 26 + - col1 + - CAST ( + 55 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
-21
-34
-42

query I rowsort
SELECT - - col1 + - + col2 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT ALL - col0 * + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT COUNT( * ) * + 31 * + 63 + + COUNT( * ) FROM tab0 AS cor0
----
5862

skipif mysql # not compatible
query I rowsort label-1832
SELECT COUNT ( * ) * + 31 * + 63 + + COUNT ( * ) FROM tab0 AS cor0
----
5862

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1833
SELECT ALL - 43 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - 43 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 24 ) AS col2 FROM tab1 AS cor0
----
24
24
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 60 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1836
SELECT DISTINCT + col2 + + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT + col2 + + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 82 * + col2 FROM tab2 AS cor0
----
1886
3280
4756

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN col2 AND NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( - 76 ) FROM tab2 AS cor0
----
-76

query I rowsort
SELECT ALL 99 + - col1 + col0 AS col2 FROM tab0 AS cor0
----
165
195
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT - ( col2 ) * - col2 - - CAST( - ( ( col0 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3396
4533
9165

skipif mysql # not compatible
query I rowsort label-1842
SELECT - ( col2 ) * - col2 - - CAST ( - ( ( col0 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3396
4533
9165

query II rowsort
SELECT - - 15 - col0, + col1 * col0 AS col2 FROM tab2 AS cor0
----
-31
2346
-49
4928
-60
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
3

query I rowsort
SELECT 91 * - col0 + col0 FROM tab0
----
-1350
-7830
-8730

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - 13 + 96 + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 4 + + col2 FROM tab1
----
100
63
72

query I rowsort
SELECT ( 29 ) FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT + 4 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 / + ( + + col0 ) BETWEEN 42 AND + 20
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL + COUNT( * ) * + - 20 AS col1 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL + COUNT ( * ) * + - 20 AS col1 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1851
SELECT + COUNT( * ) DIV - 22 * + 13 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1851
SELECT + COUNT ( * ) / - 22 * + 13 col1 FROM tab0
----
0

query III rowsort
SELECT * 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-1853
SELECT - COUNT( + 28 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT - COUNT ( + 28 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + 64 AS col0, col1 FROM tab0 AS cor0
----
64
1
64
21
64
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT col1 * + - col1 + - - col1 * - + 59 AS col2 FROM tab2 AS cor0
----
-10472
-5610
-8442

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + col1 * - col1 + + 87 + - 62 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2576
-4464
-5904

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT MIN( - - col1 ) * + - ( - 91 ) + - + COUNT( col2 ) AS col0 FROM tab1
----
452

skipif mysql # not compatible
query I rowsort label-1859
SELECT MIN ( - - col1 ) * + - ( - 91 ) + - + COUNT ( col2 ) AS col0 FROM tab1
----
452

query I rowsort
SELECT + 12 + - - 31 FROM tab0
----
43
43
43

query III rowsort
SELECT * FROM tab1 WHERE + 2 + 98 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 53 FROM tab1 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1863
SELECT ALL 0 DIV 74 + - 36 * + + COUNT( * ) DIV - + COUNT( col1 ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL 0 / 74 + - 36 * + + COUNT ( * ) / - + COUNT ( col1 ) AS col2 FROM tab0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + + 99 DIV - col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1864
SELECT + + 99 / - col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + COUNT( ALL col2 ) col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1865
SELECT + COUNT ( ALL col2 ) col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 28 IS NULL
----

query I rowsort
SELECT 40 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
40
40
40

query I rowsort
SELECT col0 FROM tab2 WHERE ( + col0 > - col2 * - - ( - + 5 ) )
----

query I rowsort
SELECT - 2 AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT 79 - + col2 AS col2 FROM tab1
----
-17
11
20

query I rowsort
SELECT - 55 * + 62 * + 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cf935a6f0d7bd2dd45e5dc7158ca1e04

query I rowsort
SELECT - col1 * 75 + col1 * col0 FROM tab0
----
-4860
22
252

query I rowsort
SELECT col1 + - + 63 AS col2 FROM tab2
----
-12
14
4

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT - 52 + + - col1 AS col0 FROM tab0 WHERE + ( 53 ) IS NULL
----

query I rowsort
SELECT + - 61 + + 92 FROM tab1 AS cor0
----
31
31
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( ( + - col2 ) * 36, - col1 + + col2 * + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 - + - col2 col2 FROM tab2 AS cor0
----
29
46
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1879
SELECT + ( + - CAST( COUNT( * ) AS SIGNED ) ) + + 29 * COUNT( * ) * + ( - + ( + 66 ) ) AS col2, + MIN( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
-5745
23

skipif mysql # not compatible
query II rowsort label-1879
SELECT + ( + - CAST ( COUNT ( * ) AS INTEGER ) ) + + 29 * COUNT ( * ) * + ( - + ( + 66 ) ) AS col2, + MIN ( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
-5745
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + + ( col0 ) * - col1 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL ( - + ( - + SUM( ALL - col1 ) ) ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1882
SELECT ALL ( - + ( - + SUM ( ALL - col1 ) ) ) col2 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL - 36 * - 14 * + 77 * - COUNT( * ) FROM tab1
----
-116424

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL - 36 * - 14 * + 77 * - COUNT ( * ) FROM tab1
----
-116424

query I rowsort
SELECT DISTINCT + col0 * - - col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT CAST( + 91 AS SIGNED ) * - col1 FROM tab2
----
-4641
-6097
-7007

skipif mysql # not compatible
query I rowsort label-1885
SELECT CAST ( + 91 AS INTEGER ) * - col1 FROM tab2
----
-4641
-6097
-7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 * + 51 col0 FROM tab0
----
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL - COUNT( * ) - - + MIN( col2 ) FROM tab0 WHERE NOT - 24 IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - COUNT ( * ) - - + MIN ( col2 ) FROM tab0 WHERE NOT - 24 IS NULL
----
7

query I rowsort
SELECT 73 * - 88 AS col0 FROM tab0
----
-6424
-6424
-6424

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT + col1 DIV col2 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT + col1 / col2 / + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL + 9 * COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + 9 * COUNT ( * ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL + COUNT( * ) * + 85 FROM tab0 cor0
----
255

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + COUNT ( * ) * + 85 FROM tab0 cor0
----
255

query I rowsort
SELECT DISTINCT + ( - 64 ) AS col2 FROM tab0 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1894
SELECT DISTINCT + 53 DIV - col2 AS col2, - 95 AS col1 FROM tab0 AS cor0
----
-1
-95
-5
-95
0
-95

skipif mysql # not compatible
query II rowsort label-1894
SELECT DISTINCT + 53 / - col2 AS col2, - 95 AS col1 FROM tab0 AS cor0
----
-1
-95
-5
-95
0
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1895
SELECT DISTINCT - 30 DIV + col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - 30 / + col2 FROM tab0
----
-3
0

query I rowsort
SELECT ALL - ( + 37 ) FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT - - col2 * - + 69 FROM tab2 cor0
----
-1587
-2760
-4002

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 IN ( 2, + 26 + + - col1, col0, col2 * + 21, + + col1 )
----

query I rowsort
SELECT DISTINCT + + 83 AS col0 FROM tab1 AS cor0
----
83

query I rowsort
SELECT DISTINCT - + col0 + + - col2 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT ALL + 61 AS col0, ( col1 ) * + + col1 AS col2 FROM tab0 AS cor0
----
61
1
61
441
61
6561

query I rowsort
SELECT DISTINCT + + ( - col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT + SUM( + - CAST( + col0 AS SIGNED ) ) * + 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-1903
SELECT + SUM ( + - CAST ( + col0 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col0, col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1905
SELECT - ( + CAST( NULL AS SIGNED ) ) * + 76 AS col1, col1 - - col1 + + col2 FROM tab0 AS cor0
----
NULL
101
NULL
209
NULL
52

skipif mysql # not compatible
query II rowsort label-1905
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + 76 AS col1, col1 - - col1 + + col2 FROM tab0 AS cor0
----
NULL
101
NULL
209
NULL
52

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 * - 76 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89 AS col0, + col2 * + 57 + 9 col0 FROM tab2
----
-89
1320
-89
2289
-89
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + + COUNT( + col2 ) AS col0 FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT + + COUNT ( + col2 ) AS col0 FROM tab0 WHERE NULL <= NULL
----
0

query II rowsort
SELECT 10 AS col2, + 93 AS col2 FROM tab0
----
10
93
10
93
10
93

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE ( NOT ( NULL ) < NULL )
----

query I rowsort
SELECT col0 + - 44 FROM tab0 cor0
----
-29
43
53

query I rowsort
SELECT DISTINCT + col0 + - + ( - - 15 ) AS col2 FROM tab2 AS cor0
----
31
49
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT DISTINCT + - ( COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1913
SELECT DISTINCT + - ( COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL + 24 + - COUNT( * ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + 24 + - COUNT ( * ) AS col2 FROM tab0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - ( + col0 ) <= - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - ( + col0 ) <= - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT DISTINCT + 30 + - col2 DIV col0 FROM tab0
----
27
29
30

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT + 30 + - col2 / col0 FROM tab0
----
27
29
30

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
14
47
5

query I rowsort
SELECT col1 - - + 70 FROM tab1 cor0
----
117
75
84

query I rowsort
SELECT ALL + col1 - 87 FROM tab2 AS cor0
----
-10
-20
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT + COUNT( * ) - 44 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1920
SELECT + COUNT ( * ) - 44 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL - COUNT( * ) - 32 AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - COUNT ( * ) - 32 AS col2 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL + ( SUM( + - col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL + ( SUM ( + - col2 ) ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + - col2 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT MAX( - + ( col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1924
SELECT MAX ( - + ( col0 ) ) FROM tab0
----
-15

query I rowsort
SELECT ALL col1 * 95 AS col2 FROM tab0
----
1995
7695
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT + 26 * COUNT( - col1 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + 26 * COUNT ( - col1 ) FROM tab2
----
78

query I rowsort
SELECT + col1 / - + 48 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 40 * + col0 + + 67 + + 2 NOT BETWEEN - + col0 AND col0 + + col0
----

query I rowsort
SELECT + 27 * - 91 AS col1 FROM tab1
----
-2457
-2457
-2457

onlyif mysql # aggregate syntax: 
query II rowsort label-1930
SELECT ( - COUNT( * ) ) * - 88 AS col2, 96 * + + COUNT( * ) FROM tab1
----
264
288

skipif mysql # not compatible
query II rowsort label-1930
SELECT ( - COUNT ( * ) ) * - 88 AS col2, 96 * + + COUNT ( * ) FROM tab1
----
264
288

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > 75
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1932
SELECT - + 0, + 73 - + + COUNT( * ) + - COUNT( * ) * MAX( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
0
115

skipif mysql # not compatible
query II rowsort label-1932
SELECT - + 0, + 73 - + + COUNT ( * ) + - COUNT ( * ) * MAX ( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
0
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 14 AS col0, col1 col2 FROM tab0 AS cor0
----
14
1
14
21
14
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 - - + col2 col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT DISTINCT - - col2 * - + 89 FROM tab1 AS cor0
----
-5251
-6052
-8544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT ALL + CAST( - 77 AS SIGNED ) + - 60 AS col1 FROM tab2 AS cor0
----
-137
-137
-137

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL + CAST ( - 77 AS INTEGER ) + - 60 AS col1 FROM tab2 AS cor0
----
-137
-137
-137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 * + col0 col0, col0 * - 9 + - col2 AS col1, + 82 FROM tab1 cor0
----
9 values hashing to 73ec6fd6935e6f5ae1876a52377cedc7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT ALL - COUNT( ALL - 58 ) 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-1939
SELECT ALL - COUNT ( ALL - 58 ) / + - COUNT ( * ) col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1940
SELECT ( + CAST( - - col0 AS SIGNED ) ) + - col1 - - 95 * - + 67 + - col2 DIV + col2 FROM tab2 AS cor0
----
-6358
-6371
-6379

skipif mysql # not compatible
query I rowsort label-1940
SELECT ( + CAST ( - - col0 AS INTEGER ) ) + - col1 - - 95 * - + 67 + - col2 / + col2 FROM tab2 AS cor0
----
-6358
-6371
-6379

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT DISTINCT + 47 DIV + col0 AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT + 47 / + col0 AS col1 FROM tab0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1943
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) * - 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1943
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * - 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 28, - 66 AS col0 FROM tab1 cor0
----
28
-66
28
-66
28
-66

query II rowsort
SELECT DISTINCT - - col2 AS col0, - 18 AS col1 FROM tab1 AS cor0
----
59
-18
68
-18
96
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - - ( + 31 ) - - MAX( DISTINCT + col1 ) + + 49 * - 61 AS col0 FROM tab1 cor0
----
-2911

skipif mysql # not compatible
query I rowsort label-1946
SELECT - - ( + 31 ) - - MAX ( DISTINCT + col1 ) + + 49 * - 61 AS col0 FROM tab1 cor0
----
-2911

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1947
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 7 / + + col0 / + - 11 + CAST( + - col2 AS SIGNED ) <> - - col1
----

skipif mysql # not compatible
query III rowsort label-1947
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 7 / + + col0 / + - 11 + CAST ( + - col2 AS INTEGER ) <> - - col1
----

query I rowsort
SELECT DISTINCT col0 - + - 63 FROM tab0
----
150
160
78

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL COUNT( * ) + COUNT( * ) + + SUM( + + col0 ) AS col2 FROM tab2 AS cor0
----
191

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL COUNT ( * ) + COUNT ( * ) + + SUM ( + + col0 ) AS col2 FROM tab2 AS cor0
----
191

query II rowsort
SELECT ALL + 30 AS col1, + col0 FROM tab0 AS cor0
----
30
15
30
87
30
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT DISTINCT - + MIN( - - 8 ) * + + 1 FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - + MIN ( - - 8 ) * + + 1 FROM tab1 cor0
----
-8

query I rowsort
SELECT DISTINCT + col0 * + - 42 * 84 FROM tab2 cor0
----
-162288
-225792
-264600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, col0 col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + 9 col1 FROM tab0
----
135
783
873

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT + SUM( + col1 ) * + COUNT( * ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-1956
SELECT + SUM ( + col1 ) * + COUNT ( * ) FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT - COUNT( * ) * + 44 AS col0 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-1957
SELECT - COUNT ( * ) * + 44 AS col0 FROM tab0
----
-132

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) <= col0 )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT - col1 = NULL
----

query II rowsort
SELECT ALL + col0 AS col0, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT - 4 + 61 * - - ( - col0 ) * - col2 FROM tab0
----
43001
53066
585779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT ALL - - CAST( - - 36 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL - - CAST ( - - 36 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 28 col1 FROM tab2 AS cor0
----
-1428
-1876
-2156

query I rowsort
SELECT ALL - 74 * 54 AS col0 FROM tab2 AS cor0
----
-3996
-3996
-3996

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT 55 * - 4 * + ( COUNT( * ) ) FROM tab2 AS cor0
----
-660

skipif mysql # not compatible
query I rowsort label-1965
SELECT 55 * - 4 * + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT col2 DIV - + 90 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1967
SELECT col2 / - + 90 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT ALL + col0 DIV - - col0 + col2 FROM tab2 cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + col0 / - - col0 + col2 FROM tab2 cor0
----
24
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT ALL + 35 DIV col1 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + 35 / col1 FROM tab1 AS cor0
----
0
2
7

query I rowsort
SELECT DISTINCT - + ( - - 18 ) * col1 AS col0 FROM tab2 AS cor0
----
-1206
-1386
-918

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1971
SELECT ALL + 65 DIV COUNT( * ) + ( + 66 ) AS col2, 94 AS col0 FROM tab1 AS cor0
----
87
94

skipif mysql # not compatible
query II rowsort label-1971
SELECT ALL + 65 / COUNT ( * ) + ( + 66 ) AS col2, 94 AS col0 FROM tab1 AS cor0
----
87
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT DISTINCT - - MIN( + + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT - - MIN ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col2 * - + col1 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT - SUM( ALL col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1974
SELECT - SUM ( ALL col0 ) AS col0 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - + 79 + - + col2 * - - col1
----

query I rowsort
SELECT - col1 * + col0 + + - 10 AS col2 FROM tab2
----
-2356
-4938
-5035

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) * + 18 + + col2 * - col2 AS col1, col2 col0 FROM tab1 AS cor0
----
-3571
59
-5470
68
-9468
96

query I rowsort
SELECT 79 + - 19 + - col0 AS col0 FROM tab0 AS cor0
----
-27
-37
45

query I rowsort
SELECT - col2 * + 79 * - col1 FROM tab2 AS cor0
----
243320
306994
92667

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT COUNT( * ) * 32 * + 33 AS col2 FROM tab0
----
3168

skipif mysql # not compatible
query I rowsort label-1981
SELECT COUNT ( * ) * 32 * + 33 AS col2 FROM tab0
----
3168

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <= - 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - 52 * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1983
SELECT - 52 * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( - + col1 ) + col0 + + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT MAX( 3 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT MAX ( 3 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 28 col1 FROM tab1 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL - + COUNT( DISTINCT + 91 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - + COUNT ( DISTINCT + 91 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - col2 AS col2, - 13 AS col2 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-10
-13
-47
-13
-99
-13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT DISTINCT + col1 - 14 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col1, col1 * - - col1 col0 FROM tab2
----
2601
2601
4489
4489
5929
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT - - COUNT( * ) * - - 90 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-1992
SELECT - - COUNT ( * ) * - - 90 FROM tab0 AS cor0
----
270

query I rowsort
SELECT + 69 AS col0 FROM tab0 cor0 WHERE NOT 68 <= - + 45
----
69
69
69

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 + + col2 AS col1 FROM tab2 cor0
----
23
74
40
117
58
125

query II rowsort
SELECT DISTINCT - col2, - col1 AS col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT - MIN( DISTINCT + col0 ) * + 31 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1426

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1996
SELECT - MIN ( DISTINCT + col0 ) * + 31 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1426

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL + COUNT( * ) * - ( - + 93 ) * + COUNT( * ) - COUNT( - col0 ) + COUNT( * ) AS col2 FROM tab1 cor0
----
837

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + COUNT ( * ) * - ( - + 93 ) * + COUNT ( * ) - COUNT ( - col0 ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT + COUNT( * ) + 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT + COUNT ( * ) + 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
15

query I rowsort
SELECT - + col1 + - 98 AS col0 FROM tab1 AS cor0
----
-103
-112
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT COUNT( ALL col0 ) - ( + 0 ) FROM tab0 AS cor0 WHERE + col2 + + + 1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2000
SELECT COUNT ( ALL col0 ) - ( + 0 ) FROM tab0 AS cor0 WHERE + col2 + + + 1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2001
SELECT ALL + ( - col0 ), 44 * - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2001
SELECT ALL + ( - col0 ), 44 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + - 42 col0 FROM tab2
----
-100
-65
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT 7 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT 7 / + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL MIN( DISTINCT - 56 ) AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL MIN ( DISTINCT - 56 ) AS col2 FROM tab2
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 33 ) col0 FROM tab0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2007
SELECT DISTINCT + col0 + col1 + col2 DIV + col2 FROM tab1 AS cor0
----
139
66
91

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + col0 + col1 + col2 / + col2 FROM tab1 AS cor0
----
139
66
91

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 62 + - col0 IS NULL
----

query I rowsort
SELECT + 21 + 84 FROM tab0
----
105
105
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT - COUNT( * ) col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2012
SELECT - COUNT ( * ) col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-3

query I rowsort
SELECT ( col0 ) FROM tab0 WHERE NOT - col1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT + ( + SUM( ALL - 52 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT + ( + SUM ( ALL - 52 ) ) FROM tab0
----
-156

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 56 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - col1 AS col1 FROM tab0 WHERE NOT 75 * + col1 IS NULL
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 37 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab1 WHERE NOT ( 51 - + col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT 24 FROM tab0 WHERE NOT col1 >= + col0
----
24

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col1 + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2022
SELECT * FROM tab1 WHERE NOT - ( CAST( col1 AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2022
SELECT * FROM tab1 WHERE NOT - ( CAST ( col1 AS INTEGER ) ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col0 / col2 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT + 5 DIV col1 + col1 FROM tab0
----
21
6
81

skipif mysql # not compatible
query I rowsort label-2024
SELECT + 5 / col1 + col1 FROM tab0
----
21
6
81

query I rowsort
SELECT + col0 + 25 FROM tab0
----
112
122
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + ( - 49 ) col2 FROM tab0
----
0

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - ( - col0 ) < col0 * - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 6 * - COUNT( * ) + COUNT( DISTINCT ( - col1 ) + + col2 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2028
SELECT 6 * - COUNT ( * ) + COUNT ( DISTINCT ( - col1 ) + + col2 ) FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + ( + 0 ) * + 12 AS col2 FROM tab1 WHERE NOT - 74 BETWEEN + col0 AND 36
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT - 84 + - COUNT( * ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-2031
SELECT - 84 + - COUNT ( * ) FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ( COUNT( * ) ) + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2032
SELECT ( COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT + ( COUNT( * ) ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT + ( COUNT ( * ) ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 21 * ( ( - 5 ) ) FROM tab0
----
-105

query I rowsort
SELECT DISTINCT 49 * 22 + + col0 * col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - COUNT( 62 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2036
SELECT - COUNT ( 62 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT CAST( NULL AS SIGNED ) + - 97 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT CAST ( NULL AS INTEGER ) + - 97 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT + CAST( - COUNT( * ) AS SIGNED ) + ( SUM( - col1 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-312

skipif mysql # not compatible
query I rowsort label-2038
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + ( SUM ( - col1 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-312

query I rowsort
SELECT - 82 FROM tab1 WHERE ( - col2 ) > ( - col0 + - col2 )
----
-82
-82
-82

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col2 ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + 91 + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
94

skipif mysql # not compatible
query I rowsort label-2041
SELECT + 91 + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
94

query I rowsort
SELECT + - 69 AS col2 FROM tab0 AS cor0
----
-69
-69
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 / col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL - + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT + MAX( ALL - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2045
SELECT + MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT + CAST( NULL AS SIGNED ) - col2 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT + CAST ( NULL AS INTEGER ) - col2 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE ( col1 * 40 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE ( col1 * 40 ) <> NULL
----
0

query I rowsort
SELECT - 16 - + + col0 AS col0 FROM tab1
----
-101
-107
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 32 col1 FROM tab1
----
1504
160
448

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + - 97 >= ( NULL )
----

query I rowsort
SELECT 77 + + - col1 FROM tab2
----
0
10
26

query I rowsort
SELECT 84 + - col2 FROM tab0
----
-15
37
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + - col2 + - 53 col1 FROM tab1
----
-56
-65
-93

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 52 FROM tab1 AS cor0 WHERE - 66 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - 75 * - + COUNT( + col1 ) AS col2 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-2056
SELECT - 75 * - + COUNT ( + col1 ) AS col2 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT + COUNT( * ) * - SUM( col1 ) AS col2 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2057
SELECT + COUNT ( * ) * - SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - - col0 + - col1 / col0 AND - CAST( + 8 AS SIGNED ) - 38 / + col0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - - col0 + - col1 / col0 AND - CAST ( + 8 AS INTEGER ) - 38 / + col0
----
23
40
58

query II rowsort
SELECT ALL - 59 AS col1, ( + 95 ) AS col2 FROM tab1 AS cor0
----
-59
95
-59
95
-59
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT - MAX( DISTINCT - 10 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2060
SELECT - MAX ( DISTINCT - 10 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - col1 * 67 AS col2 FROM tab1 AS cor0 WHERE NOT col0 = + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT COUNT( * ) DIV 77 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2062
SELECT COUNT ( * ) / 77 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2063
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 1 * + + col1 ) < - CAST( col2 AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-2063
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 1 * + + col1 ) < - CAST ( col2 AS INTEGER ) * col2
----

query I rowsort
SELECT DISTINCT + 82 * - + col2 AS col0 FROM tab2 AS cor0
----
-1886
-3280
-4756

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 46 )
----

query II rowsort
SELECT ALL + col2 AS col1, - ( + + col0 ) FROM tab0 cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT ALL - + 78 * col2 AS col1 FROM tab2 AS cor0
----
-1794
-3120
-4524

query I rowsort
SELECT DISTINCT - ( - + ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL col2 * + - col0 FROM tab2 cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 + - col1 col2 FROM tab1 WHERE NOT + col1 <= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT col1 + col1 DIV + 46 AS col2 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-2073
SELECT col1 + col1 / + 46 AS col2 FROM tab2
----
52
68
78

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( 6 ) AND - col2 + - col2 * col1
----

query I rowsort
SELECT ALL + 3 + - col1 FROM tab1
----
-11
-2
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 cor0 WHERE NOT NULL IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < col1 + + col2
----

query I rowsort
SELECT DISTINCT - col1 + - col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + + col2 col0 FROM tab1
----
144
147
159

query I rowsort
SELECT 62 + - 10 AS col1 FROM tab1
----
52
52
52

query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( 72 ) IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 < ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL - + ( - COUNT( ALL col1 ) ) - MAX( + + col2 ) + COUNT( - ( col0 ) + col0 * - 24 ) AS col2 FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - + ( - COUNT ( ALL col1 ) ) - MAX ( + + col2 ) + COUNT ( - ( col0 ) + col0 * - 24 ) AS col2 FROM tab0 cor0
----
-93

query II rowsort
SELECT DISTINCT - - col2 AS col0, - 4 FROM tab2 AS cor0
----
23
-4
40
-4
58
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col0 * + col1 + 61 - - + col1 + col0 / 3 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2085
SELECT + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col0 * + col1 + 61 - - + col1 + col0 / 3 <> NULL
----

query I rowsort
SELECT ALL + - 40 - - col1 FROM tab1 AS cor0
----
-26
-35
7

query II rowsort
SELECT 52 AS col2, - col2 FROM tab2
----
52
-23
52
-40
52
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + 43 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL + ( + - COUNT( * ) ) * + 77 AS col0 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + ( + - COUNT ( * ) ) * + 77 AS col0 FROM tab2
----
-231

query I rowsort
SELECT ALL col2 * 15 FROM tab1
----
1020
1440
885

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL + COUNT( * ) * ( + COUNT( * ) ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + COUNT ( * ) * ( + COUNT ( * ) ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2092
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT + col1 DIV col2 col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2093
SELECT + col1 / col2 col2 FROM tab2
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - + 35 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT COUNT( ALL 60 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2097
SELECT COUNT ( ALL 60 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT - + ( + COUNT( * ) ) + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 * + 94 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - + ( + COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 * + 94 = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT - SUM( - col0 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT - SUM ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2100
SELECT ALL + COUNT( DISTINCT + col1 ) DIV - 87 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL + COUNT ( DISTINCT + col1 ) / - 87 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 97 / + ( - + 42 ) ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + MAX( - ( - - col0 ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2103
SELECT + MAX ( - ( - - col0 ) ) FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT + COUNT( * ) * + 59 AS col2 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT + COUNT ( * ) * + 59 AS col2 FROM tab0 AS cor0
----
177

query II rowsort
SELECT ( + + ( - - col0 ) ) AS col0, 59 FROM tab1
----
51
59
85
59
91
59

query II rowsort
SELECT - ( - col0 ) * col1, + col0 * + 19 + + + col0 * - 91 AS col1 FROM tab1
----
425
-6120
4277
-6552
714
-3672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 43 col1 FROM tab0
----
3483
43
903

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + - ( col1 )
----

query I rowsort
SELECT DISTINCT 5 * - col0 * - + col0 FROM tab2
----
10580
20480
28125

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 72 + - - 1 AND - col2 + - - ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT ALL + col2 + col1 + + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + col2 + col1 + + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT DISTINCT COUNT( * ) + + ( - + COUNT( * ) ) AS col1, SUM( DISTINCT + col2 ) AS col2 FROM tab0
----
0
156

skipif mysql # not compatible
query II rowsort label-2112
SELECT DISTINCT COUNT ( * ) + + ( - + COUNT ( * ) ) AS col1, SUM ( DISTINCT + col2 ) AS col2 FROM tab0
----
0
156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( ( + + 99 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + COUNT( * ) * - + 67 AS col1 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-2114
SELECT + COUNT ( * ) * - + 67 AS col1 FROM tab1
----
-201

query II rowsort
SELECT - col1 AS col1, 83 + - col0 * - - col1 FROM tab1 WHERE 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT COUNT( * ) + - 49 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT COUNT ( * ) + - 49 FROM tab2
----
-46

query I rowsort
SELECT + + col2 + 24 AS col0 FROM tab0 AS cor0
----
123
34
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT ALL + ( + - 87 ) * 20 + col1 DIV + 6 FROM tab1 AS cor0
----
-1733
-1738
-1740

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + ( + - 87 ) * 20 + col1 / + 6 FROM tab1 AS cor0
----
-1733
-1738
-1740

onlyif mysql # DIV for integer division: 
query II rowsort label-2119
SELECT DISTINCT + col2 DIV + col2, - col1 * + + 32 * - 27 AS col2 FROM tab1
----
1
12096
1
40608
1
4320

skipif mysql # not compatible
query II rowsort label-2119
SELECT DISTINCT + col2 / + col2, - col1 * + + 32 * - 27 AS col2 FROM tab1
----
1
12096
1
40608
1
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL + - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL + - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col0 FROM tab1, tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT - + col1 - - - col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL + - 47 + + 87 AS col1 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2124
SELECT * FROM tab1 AS cor0 WHERE col2 <> - col0 * col0 * + col2 + CAST( ( col0 ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2124
SELECT * FROM tab1 AS cor0 WHERE col2 <> - col0 * col0 * + col2 + CAST ( ( col0 ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT CAST( - col1 AS SIGNED ) - - + 2 AS col2 FROM tab1 AS cor0
----
-12
-3
-45

skipif mysql # not compatible
query I rowsort label-2125
SELECT CAST ( - col1 AS INTEGER ) - - + 2 AS col2 FROM tab1 AS cor0
----
-12
-3
-45

query I rowsort
SELECT DISTINCT + 75 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
3848
5083
5815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + + col0 + col0 + - 17 * 25 * + 36 col2 FROM tab1 AS cor0
----
-15359
-15368
-15396

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT - COUNT( * ) - + 95 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT - COUNT ( * ) - + 95 FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL CAST( - + 53 AS SIGNED ) - + - CAST( + SUM( DISTINCT - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL CAST ( - + 53 AS INTEGER ) - + - CAST ( + SUM ( DISTINCT - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - ( - + col0 ) - - - ( + 97 ) AS col1, - 0 * 96 + + 86 FROM tab2 AS cor0
----
-22
86
-33
86
-51
86

onlyif mysql # DIV for integer division: 
query II rowsort label-2131
SELECT + ( - col1 ) + col1 + col2 + - 60 * col2 * + + col1 AS col1, col2 DIV + 26 FROM tab0 AS cor0
----
-12590
0
-228373
1
-5841
3

skipif mysql # not compatible
query II rowsort label-2131
SELECT + ( - col1 ) + col1 + col2 + - 60 * col2 * + + col1 AS col1, col2 / + 26 FROM tab0 AS cor0
----
-12590
0
-228373
1
-5841
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( - 78, - col1, - col2 + + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * ( + col0 ) - - col1 + - + 58 * + 29 AS col0 FROM tab2
----
3323
3410
715

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2135
SELECT ALL * FROM tab1 WHERE NOT - CAST( - + 23 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2135
SELECT ALL * FROM tab1 WHERE NOT - CAST ( - + 23 AS REAL ) IS NOT NULL
----

query II rowsort
SELECT + 42 AS col2, - col0 FROM tab0
----
42
-15
42
-87
42
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2137
SELECT + 61 DIV COUNT( * ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-2137
SELECT + 61 / COUNT ( * ) AS col0 FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT MIN( + - 75 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT MIN ( + - 75 ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL + - 26 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN + 38 AND - col1
----
-26
-26
-26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND + + 24 + + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query II rowsort
SELECT + col1 AS col2, ( - + col2 ) + + + 9 + 4 * - col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
51
-106
67
-281
77
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT + + CAST( NULL AS SIGNED ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2143
SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - col0 AS col2, - 91 FROM tab0
----
-15
-91
-87
-91
-97
-91

query I rowsort
SELECT DISTINCT - ( 90 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

query I rowsort
SELECT ALL - - ( - ( - - 52 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2147
SELECT DISTINCT - ( + col0 ), - 61 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-2147
SELECT DISTINCT - ( + col0 ), - 61 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT 51 * MAX( - + col1 ) AS col2 FROM tab1 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-2149
SELECT 51 * MAX ( - + col1 ) AS col2 FROM tab1 cor0
----
-255

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 68 + + 95 * + 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( + 46 * - col0 * col0 ) IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 - - 36, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 40 <> + 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT DISTINCT col2 + + col2 DIV - col0 FROM tab0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT col2 + + col2 / - col0 FROM tab0
----
10
44
98

query III rowsort
SELECT * FROM tab1 WHERE - 56 NOT BETWEEN NULL AND - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + 4 <= NULL
----

query I rowsort
SELECT DISTINCT - 3 * + col1 + - + 47 AS col0 FROM tab2 AS cor0
----
-200
-248
-278

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + + COUNT( * ) * SUM( + 73 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5913

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + + COUNT ( * ) * SUM ( + 73 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5913

query I rowsort
SELECT col1 + + col2 + ( - col1 ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT - 32 + + - 30 - - COUNT( * ) AS col2 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-2160
SELECT - 32 + + - 30 - - COUNT ( * ) AS col2 FROM tab0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2161
SELECT * FROM tab2 WHERE ( + + CAST( NULL AS DECIMAL ) ) >= col0
----

skipif mysql # not compatible
query III rowsort label-2161
SELECT * FROM tab2 WHERE ( + + CAST ( NULL AS REAL ) ) >= col0
----

query I rowsort
SELECT DISTINCT - col0 + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col2 FROM tab1 cor0
----
87
87
87

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 80 + + + col1 / + + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 7 * - col1 FROM tab0 AS cor0
----
147
567
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT DISTINCT 28, + MAX( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE 82 * - + col0 IS NOT NULL
----
28
81

skipif mysql # not compatible
query II rowsort label-2168
SELECT DISTINCT 28, + MAX ( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE 82 * - + col0 IS NOT NULL
----
28
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2169
SELECT ALL + SUM( + CAST( + 44 AS SIGNED ) ) AS col1 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + SUM ( + CAST ( + 44 AS INTEGER ) ) AS col1 FROM tab0
----
132

query I rowsort
SELECT + ( + 65 ) FROM tab0
----
65
65
65

query I rowsort
SELECT DISTINCT + ( 43 ) FROM tab2
----
43

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 / - + col1 * + 50 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2173
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT + 15 > + CAST( 88 AS DECIMAL ) + + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT + 15 > + CAST ( 88 AS REAL ) + + col2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT - - col2 DIV + 38 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-28
-36
-8

skipif mysql # not compatible
query I rowsort label-2174
SELECT - - col2 / + 38 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-28
-36
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2, + col0 - col2 + - col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2176
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT + - 24 AS col0 FROM tab2 cor0
----
-24
-24
-24

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 WHERE NOT - 53 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT + + 95, + col0 AS col1 FROM tab0 cor0
----
95
15
95
87
95
97

query I rowsort
SELECT DISTINCT - col1 * + 33 FROM tab1 AS cor0
----
-1551
-165
-462

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - - 45 AS col0 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT - - col1 * - 65 * - + col0 FROM tab0 AS cor0
----
118755
6305
78975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT + 44 DIV COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-2184
SELECT + 44 / COUNT ( * ) FROM tab2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2185
SELECT DISTINCT - SUM( DISTINCT col1 ) col2 FROM tab0 WHERE + ( + - CAST( - col2 AS SIGNED ) ) * 99 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2185
SELECT DISTINCT - SUM ( DISTINCT col1 ) col2 FROM tab0 WHERE + ( + - CAST ( - col2 AS INTEGER ) ) * 99 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 76 * + col0 + + col2 FROM tab2
----
3519
4904
5758

query II rowsort
SELECT ALL - col1 AS col1, - 94 * - col2 FROM tab1 AS cor0
----
-14
9024
-47
6392
-5
5546

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2188
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( + CAST( NULL AS SIGNED ) * - 83 )
----

skipif mysql # not compatible
query IIIIII rowsort label-2188
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( + CAST ( NULL AS INTEGER ) * - 83 )
----

query I rowsort
SELECT ALL - 0 * - col1 * - 36 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + - col1 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + 7 * + - col2 * - 27 + + - col1 * - col2 + 93 IN ( col1 + - col0, 93 + - col1, - ( - - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT - - SUM( - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT - - SUM ( - col2 ) FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col1 FROM tab2 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 77 + col2 + - 73 * 40 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 38 + 92 FROM tab1 cor0
----
-1694
-440
-98

query I rowsort
SELECT ( - - 37 ) FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT + ( 43 ) AS col2 FROM tab0
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT ALL col2 DIV - 71 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL col2 / - 71 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT - - COUNT( DISTINCT - 48 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2200
SELECT - - COUNT ( DISTINCT - 48 ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT 59 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2202
SELECT 59 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
177

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 45 IS NOT NULL
----

query I rowsort
SELECT ( - - ( + - col0 ) ) AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 11 * + 93 * col0 col1 FROM tab2 AS cor0
----
-47035
-65432
-76667

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - ( + COUNT( * ) ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT - ( + COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT ALL + - col2 DIV - 44 - - 76 + + 99 AS col0 FROM tab2 AS cor0 WHERE ( NOT - ( + col2 ) NOT IN ( - 12, - col2 ) )
----
175
175
176

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL + - col2 / - 44 - - 76 + + 99 AS col0 FROM tab2 AS cor0 WHERE ( NOT - ( + col2 ) NOT IN ( - 12, - col2 ) )
----
175
175
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 83 + + col2 col1 FROM tab2 cor0
----
3841
5352
6283

query I rowsort
SELECT DISTINCT - ( - 2 ) FROM tab1 cor0
----
2

query I rowsort
SELECT + + 97 * - col0 + - - col1 + + col0 FROM tab2 AS cor0
----
-4365
-6067
-7133

query II rowsort
SELECT + + 14 + + col2 AS col0, - col0 FROM tab2 AS cor0
----
37
-46
54
-64
72
-75

query I rowsort
SELECT col0 + - + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2214
SELECT DISTINCT col2, col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2214
SELECT DISTINCT col2, col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT 90 * + - col0 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + MIN( ALL 63 ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2216
SELECT + MIN ( ALL 63 ) AS col1 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT COUNT( + 85 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2217
SELECT COUNT ( + 85 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + - 11 + - col0 * - - 4 AS col0 FROM tab2 cor0
----
-195
-267
-311

query I rowsort
SELECT DISTINCT + - 16 + col0 AS col1 FROM tab1 AS cor0
----
35
69
75

query I rowsort
SELECT ALL 68 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT 36 * + col0 AS col0 FROM tab1
----
1836
3060
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = NULL
----
0

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 WHERE NOT NULL NOT IN ( + - 29 )
----

query I rowsort
SELECT - 30 * ( 25 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 13 * + 46 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 58 col2, + 80 FROM tab1 AS cor0
----
-58
80
-58
80
-58
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT + + COUNT( - 89 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2227
SELECT + + COUNT ( - 89 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2228
SELECT - + col1 + col2, col1 DIV - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 7 IS NULL
----
-28
-2
-37
-1
-9
-1

skipif mysql # not compatible
query II rowsort label-2228
SELECT - + col1 + col2, col1 / - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 7 IS NULL
----
-28
-2
-37
-1
-9
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT + ( + COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE NULL <= 14
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2229
SELECT DISTINCT + ( + COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE NULL <= 14
----
0

query I rowsort
SELECT DISTINCT - col0 * + 28 AS col2 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT ALL CAST( NULL AS SIGNED ) / col2 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL CAST ( NULL AS INTEGER ) / col2 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT - col2 * + col0 * col2 DIV - col0 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-2232
SELECT - col2 * + col0 * col2 / - col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT ALL + MIN( DISTINCT - CAST( + 70 AS SIGNED ) ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-70

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL + MIN ( DISTINCT - CAST ( + 70 AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-70

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 17 <> + col0 + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + - col0 + - col0, col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2236
SELECT ALL - 94 DIV - MIN( ALL 21 ) AS col1, - 10 AS col0 FROM tab1 AS cor0
----
4
-10

skipif mysql # not compatible
query II rowsort label-2236
SELECT ALL - 94 / - MIN ( ALL 21 ) AS col1, - 10 AS col0 FROM tab1 AS cor0
----
4
-10

query I rowsort
SELECT DISTINCT + - col1 * - + 36 FROM tab0 AS cor0
----
2916
36
756

query I rowsort
SELECT - 93 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT + col2 + + 33 AS col0 FROM tab1
----
101
129
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT ( + + CAST( NULL AS SIGNED ) ) + + - ( + col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT ( + + CAST ( NULL AS INTEGER ) ) + + - ( + col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL - COUNT( + col2 ) FROM tab2 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - COUNT ( + col2 ) FROM tab2 WHERE - col1 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + - 89 IS NULL
----

query I rowsort
SELECT DISTINCT - 8 * + + 5 * + 94 + + col0 AS col1 FROM tab1 AS cor0
----
-3669
-3675
-3709

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - + COUNT( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2244
SELECT - + COUNT ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - ( + - 49 ) FROM tab1 cor0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2246
SELECT + col0 AS col1, + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-2246
SELECT + col0 AS col1, + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT SUM( + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT SUM ( + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT - MAX( ALL - 81 ) col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2248
SELECT DISTINCT - MAX ( ALL - 81 ) col2 FROM tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT - - col1 * 25 + - 38 FROM tab0 AS cor0
----
-13
1987
487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, + col0 + - col2 + + col2 + - 51 col0 FROM tab2 AS cor0
----
23
-5
40
13
58
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col2 / - col2 IS NULL AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col2 / - col2 IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ( + COUNT( * ) ) + + + 36 AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2252
SELECT ( + COUNT ( * ) ) + + + 36 AS col1 FROM tab0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + - col0 col2 FROM tab0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT ALL 87 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT col1 + col1 AS col1, col0 FROM tab0 AS cor0
----
162
15
2
97
42
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT 96 / - col0 + col2 - + ( - col1 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT 96 / - col0 + col2 - + ( - col1 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + - col2 AS col0 FROM tab1 WHERE NOT - col0 * 78 IS NOT NULL
----

query I rowsort
SELECT + + col1 * col0 * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT + col0 DIV - + col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2259
SELECT + col0 / - + col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT + 46 * + col0 * + ( + 17 ) * 93 AS col2 FROM tab2 cor0
----
3345396
4654464
5454450

query II rowsort
SELECT col0 AS col1, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col2, col1 + col2 + - - col1 - - - col2 FROM tab0 AS cor0
----
-10
42
-47
162
-99
2

query I rowsort
SELECT - 59 * - + col0 * + - 55 AS col2 FROM tab0 AS cor0
----
-282315
-314765
-48675

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - 62 + + - col0
----

query I rowsort
SELECT DISTINCT + + 8 * - - 61 AS col2 FROM tab1 AS cor0
----
488

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2266
SELECT ALL - 89 DIV - + CAST( 22 AS SIGNED ) FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - 89 / - + CAST ( 22 AS INTEGER ) FROM tab2
----
4
4
4

query I rowsort
SELECT - 55 * col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2585
-5445
-550

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * 65 NOT BETWEEN NULL AND - - 68
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2269
SELECT DISTINCT col0, col0 DIV - 90 AS col1 FROM tab0
----
15
0
87
0
97
-1

skipif mysql # not compatible
query II rowsort label-2269
SELECT DISTINCT col0, col0 / - 90 AS col1 FROM tab0
----
15
0
87
0
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2270
SELECT ALL CAST( NULL AS SIGNED ) * 52 * - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL CAST ( NULL AS INTEGER ) * 52 * - COUNT ( * ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT - col1 AS col1, - 42 + + col2 FROM tab0
----
-1
57
-21
-32
-81
5

query I rowsort
SELECT + + 7 * col0 FROM tab1 AS cor0
----
357
595
637

onlyif mysql # aggregate syntax: 
query II rowsort label-2273
SELECT DISTINCT + 52, + 49 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
52
147

skipif mysql # not compatible
query II rowsort label-2273
SELECT DISTINCT + 52, + 49 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
52
147

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( + col2 - - col0 )
----

query II rowsort
SELECT + 14 * - col1 AS col0, 41 FROM tab1
----
-196
41
-658
41
-70
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT - ( + - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT - ( + - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 37 + - col0 + col0 AS col2 FROM tab1
----
105
133
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT + 21 * COUNT( DISTINCT + + col0 ) AS col1 FROM tab0 WHERE col2 * + col0 IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-2278
SELECT + 21 * COUNT ( DISTINCT + + col0 ) AS col1 FROM tab0 WHERE col2 * + col0 IS NOT NULL
----
63

query II rowsort
SELECT col2 + - col2 AS col2, - 17 * - col0 FROM tab2 AS cor0
----
0
1088
0
1275
0
782

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2280
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 22 BETWEEN + CAST( NULL AS SIGNED ) * col0 * col1 * 68 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2280
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 22 BETWEEN + CAST ( NULL AS INTEGER ) * col0 * col1 * 68 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2281
SELECT * FROM tab2 AS cor0 WHERE - 51 * - 13 > - - CAST( col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2281
SELECT * FROM tab2 AS cor0 WHERE - 51 * - 13 > - - CAST ( col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * col0 col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2283
SELECT CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( - col1 ) + + 51 FROM tab0
----
132
52
72

query I rowsort
SELECT 98 * - col2 AS col1 FROM tab2
----
-2254
-3920
-5684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - + col2 + + col0 col0, 92 FROM tab0
----
-10
92
-47
92
-99
92

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) + - col1 + + col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT DISTINCT - SUM( - col2 ) + - CAST( NULL AS SIGNED ) + + SUM( 23 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT - SUM ( - col2 ) + - CAST ( NULL AS INTEGER ) + + SUM ( 23 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2289
SELECT ALL - + col0 DIV + col1 + - 39, col1 AS col0 FROM tab1 AS cor0
----
-40
47
-42
14
-56
5

skipif mysql # not compatible
query II rowsort label-2289
SELECT ALL - + col0 / + col1 + - 39, col1 AS col0 FROM tab1 AS cor0
----
-40
47
-42
14
-56
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2290
SELECT * FROM tab1 AS cor0 WHERE NOT 23 >= + 51 + 97 + + CAST( + col1 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2290
SELECT * FROM tab1 AS cor0 WHERE NOT 23 >= + 51 + 97 + + CAST ( + col1 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col0 FROM tab1 AS cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col1 - - col0 FROM tab2 AS cor0
----
51
97
67
142
77
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL + MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ( MAX( - - col1 ) ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2294
SELECT ( MAX ( - - col1 ) ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL - - COUNT( - 80 ) * + COUNT( * ) + COUNT( * ) + - 73 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN + + 52 AND NULL
----
-73

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - - COUNT ( - 80 ) * + COUNT ( * ) + COUNT ( * ) + - 73 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN + + 52 AND NULL
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2296
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) < - - col1
----

skipif mysql # not compatible
query III rowsort label-2296
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) < - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT + COUNT( ALL + col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT + COUNT ( ALL + col0 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + col1 * 74 + - 60 AS col0 FROM tab0 AS cor0
----
14
1494
5934

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT DISTINCT + - col1 * col2 DIV + col2 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + - col1 * col2 / + col2 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col2
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + 93 * - col1 FROM tab1
----
-1302
-4371
-465

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 - - - col0 - - col1 * - 22 * col1 + + 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col1 FROM tab2 WHERE NULL >= col0
----

query I rowsort
SELECT ALL - 28 * + - col2 FROM tab1
----
1652
1904
2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col2 FROM tab1 WHERE NOT NULL <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 91 >= - ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + 17 - - 50 * + - col0 FROM tab1 AS cor0
----
-2584
-4318
-4624

query I rowsort
SELECT + + col0 + 31 AS col2 FROM tab1 AS cor0
----
116
122
82

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL + COUNT( * ) * - 7 * - - 84 AS col0 FROM tab1 AS cor0
----
-1764

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + COUNT ( * ) * - 7 * - - 84 AS col0 FROM tab1 AS cor0
----
-1764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col2 col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - col1 * - ( + col0 ) * - col0 + - col0 FROM tab1 AS cor0
----
-36210
-36465
-389298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT ALL - col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL - col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - 62 * 63 - - col2 col2 FROM tab1
----
14
-3810
47
-3838
5
-3847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT CAST( + + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2316
SELECT CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + - col2 - - - col2 + - col2 * - + col2 AS col1 FROM tab2 AS cor0
----
1520
3248
483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2318
SELECT - 95, col1 / + 81 / - CAST( NULL AS SIGNED ) * + col2 + + col1 + + + col0 AS col2 FROM tab1 AS cor0
----
-95
NULL
-95
NULL
-95
NULL

skipif mysql # not compatible
query II rowsort label-2318
SELECT - 95, col1 / + 81 / - CAST ( NULL AS INTEGER ) * + col2 + + col1 + + + col0 AS col2 FROM tab1 AS cor0
----
-95
NULL
-95
NULL
-95
NULL

query I rowsort
SELECT DISTINCT + col2 - + + 42 + col2 * - - col1 FROM tab2 AS cor0
----
1154
3078
3902

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT COUNT( * ) * + 58 - - COUNT( * ) col1 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT DISTINCT COUNT ( * ) * + 58 - - COUNT ( * ) col1 FROM tab2 AS cor0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 40 * + col2 + col0 - - 53 * - - 62 col2 FROM tab0 AS cor0
----
395423
7373
91661

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col0 * col0 AS col0, col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 54 IS NULL
----
225
15
7569
87
9409
97

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col1 IN ( + - col2, - col2 + col1, + + 94, col0 )
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( - + col2 ) ) col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 + 45 + + + col1 FROM tab1
----
110
135
183

query I rowsort
SELECT - 97 + + 37 AS col0 FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT ALL CAST( NULL AS SIGNED ) * - ( + - col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + - col2 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT col0 DIV + 35 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2329
SELECT col0 / + 35 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( 69 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL - COUNT( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - COUNT ( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2333
SELECT * FROM tab0 WHERE NOT + col1 * col0 * + col2 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2333
SELECT * FROM tab0 WHERE NOT + col1 * col0 * + col2 = + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT DISTINCT COUNT( DISTINCT 97 ) FROM tab0 AS cor0 WHERE NOT col2 / - CAST( + 26 AS SIGNED ) < - col2 * - 93
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT COUNT ( DISTINCT 97 ) FROM tab0 AS cor0 WHERE NOT col2 / - CAST ( + 26 AS INTEGER ) < - col2 * - 93
----
0

query I rowsort
SELECT + 90 * + 15 FROM tab2 AS cor0
----
1350
1350
1350

query I rowsort
SELECT 42 * - - col0 FROM tab0 AS cor0
----
3654
4074
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - col0 col1 FROM tab1 AS cor0 WHERE NOT - col0 * + + 93 * + 96 > + - 72
----
-102
-170
-182

query I rowsort
SELECT + + col2 AS col0 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
10
47
99

query I rowsort
SELECT + ( + - 24 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + 76 FROM tab0 cor0
----
-76
-76
-76

query I rowsort
SELECT + col1 + 44 FROM tab2
----
111
121
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT ALL CAST( - + ( + COUNT( * ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT - CAST( - col1 AS SIGNED ) + col1 * ( - col1 ) col0 FROM tab0
----
-420
-6480
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2343
SELECT - CAST ( - col1 AS INTEGER ) + col1 * ( - col1 ) col0 FROM tab0
----
-420
-6480
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT ALL col1 + - col1 DIV 62 FROM tab0
----
1
21
80

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL col1 + - col1 / 62 FROM tab0
----
1
21
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT - SUM( ALL col2 ) + + + COUNT( ALL - 26 ) - + 73 - - COUNT( - 57 ) AS col0 FROM tab0
----
-223

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT - SUM ( ALL col2 ) + + + COUNT ( ALL - 26 ) - + 73 - - COUNT ( - 57 ) AS col0 FROM tab0
----
-223

query I rowsort
SELECT ALL + 32 + col0 AS col1 FROM tab2
----
107
78
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT MAX( DISTINCT + ( col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2347
SELECT MAX ( DISTINCT + ( col0 ) ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT ALL - + 79 col2 FROM tab0 AS cor0 WHERE col2 <> - - col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2348
SELECT ALL - + 79 col2 FROM tab0 AS cor0 WHERE col2 <> - - col2 + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT ALL - 22 + + col1 DIV - col1 + - 6 FROM tab1
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - 22 + + col1 / - col1 + - 6 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT ALL + 20 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 - + + 33 AS col2 FROM tab0 AS cor0
----
-12
-32
48

query I rowsort
SELECT DISTINCT 82 - + col0 FROM tab2 AS cor0
----
18
36
7

query I rowsort
SELECT DISTINCT - 61 * + + col0 * col1 FROM tab1
----
-25925
-260897
-43554

query I rowsort
SELECT ALL - 11 * - col1 FROM tab0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + COUNT( * ) * + 45 AS col0 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-2356
SELECT + COUNT ( * ) * + 45 AS col0 FROM tab0
----
135

query I rowsort
SELECT - 87 * + + 20 FROM tab1
----
-1740
-1740
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT + MIN( - - 68 ) AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + MIN ( - - 68 ) AS col0 FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT MIN( + + 21 ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2359
SELECT MIN ( + + 21 ) AS col2 FROM tab0
----
21

query I rowsort
SELECT ALL + ( + 44 ) * col0 * - col1 AS col2 FROM tab1
----
-18700
-188188
-31416

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + 55 * COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
495

skipif mysql # not compatible
query I rowsort label-2361
SELECT + 55 * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
495

query I rowsort
SELECT ALL - col1 * + - 39 AS col0 FROM tab1
----
1833
195
546

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT DISTINCT - - 62 DIV - col1 FROM tab0 AS cor0
----
-2
-62
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - - 62 / - col1 FROM tab0 AS cor0
----
-2
-62
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT - SUM( ALL - + col1 ) AS col1, COUNT( * ) * - 60 AS col1 FROM tab0
----
103
-180

skipif mysql # not compatible
query II rowsort label-2364
SELECT - SUM ( ALL - + col1 ) AS col1, COUNT ( * ) * - 60 AS col1 FROM tab0
----
103
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + 54 * COUNT( * ) AS col1 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2365
SELECT + 54 * COUNT ( * ) AS col1 FROM tab1
----
162

query I rowsort
SELECT + + 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL - 90 FROM tab1 cor0
----
-90
-90
-90

query I rowsort
SELECT + - AVG ( - col2 ) FROM tab2 cor0 WHERE NOT ( NOT - ( - 32 ) BETWEEN + + col2 AND NULL )
----
NULL

query I rowsort
SELECT + + 97 * + - 61 AS col1 FROM tab2 AS cor0
----
-5917
-5917
-5917

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 35 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - - col1 AND ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - 43 * + col1 BETWEEN - + col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2373
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( + col0 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2373
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( + col0 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + ( - col2 ) / - - 24 IS NULL
----

query I rowsort
SELECT ALL col0 * - col1 + col0 + + + 76 + - col2 FROM tab1
----
-323
-4178
-683

query I rowsort
SELECT ALL col0 + - 92 AS col0 FROM tab0
----
-5
-77
5

query I rowsort
SELECT + - col0 - col0 - - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + + 90 - + + col2 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2379
SELECT + 88 DIV + + 21 - + SUM( DISTINCT col2 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-359

skipif mysql # not compatible
query I rowsort label-2379
SELECT + 88 / + + 21 - + SUM ( DISTINCT col2 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-359

query II rowsort
SELECT - + 77 - - col1, col0 AS col2 FROM tab0 AS cor0
----
-56
87
-76
97
4
15

query I rowsort
SELECT ALL + ( 92 ) + + col0 FROM tab2 AS cor0
----
138
156
167

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) >= 12
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT - 51 * col0 FROM tab2
----
-2346
-3264
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL 70 * - - COUNT( * ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL 70 * - - COUNT ( * ) FROM tab1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT MAX( - - 45 ) * - 8 col0 FROM tab2
----
-360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2385
SELECT MAX ( - - 45 ) * - 8 col0 FROM tab2
----
-360

query II rowsort
SELECT DISTINCT col1 * ( - 4 ), + 49 * - ( col1 ) AS col0 FROM tab0
----
-324
-3969
-4
-49
-84
-1029

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT DISTINCT + SUM( - + 1 ) * - 26 AS col2, COUNT( * ) * - 69 col2 FROM tab0
----
78
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2387
SELECT DISTINCT + SUM ( - + 1 ) * - 26 AS col2, COUNT ( * ) * - 69 col2 FROM tab0
----
78
-207

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN + + col1 * - 27 AND NULL
----

query II rowsort
SELECT - col0 AS col2, col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT + col1 DIV col2 * col2 - col0 AS col2 FROM tab2 AS cor0
----
-17
-24
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT + col1 / col2 * col2 - col0 AS col2 FROM tab2 AS cor0
----
-17
-24
0

query I rowsort
SELECT + 5 * - - 44 * col2 * - 82 FROM tab0 AS cor0
----
-1785960
-180400
-847880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL CAST( - 97 AS SIGNED ) col2 FROM tab0 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2392
SELECT ALL CAST ( - 97 AS INTEGER ) col2 FROM tab0 AS cor0
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col0 col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - 98 FROM tab0 cor0
----
-2058
-7938
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT + + SUM( ALL - - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2396
SELECT + + SUM ( ALL - - col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT + + 73 * - 37 AS col0 FROM tab0 AS cor0
----
-2701
-2701
-2701

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 68 >= NULL
----

query I rowsort
SELECT ALL - col0 * - 75 AS col1 FROM tab0 AS cor0
----
1125
6525
7275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT - + CAST( NULL AS SIGNED ) + + + ( 29 ) * + col1 * - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT - + CAST ( NULL AS INTEGER ) + + + ( 29 ) * + col1 * - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT + + col1 DIV col0 + col2 col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2401
SELECT + + col1 / col0 + col2 col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - 40
----

query II rowsort
SELECT ALL + col2 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT - ( + col1 ), col2 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT + CAST( + ( - 0 ) AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT + CAST ( + ( - 0 ) AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL + COUNT( + col0 ) + SUM( - col0 ) AS col1 FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + COUNT ( + col0 ) + SUM ( - col0 ) AS col1 FROM tab2
----
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + ( - - col1 ) ) ) col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ( + + ( + 25 ) ) - COUNT( * ) AS col2 FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-2409
SELECT ( + + ( + 25 ) ) - COUNT ( * ) AS col2 FROM tab1 cor0
----
22

query I rowsort
SELECT ALL + col1 * col2 + col0 - ( - col0 ) FROM tab0 AS cor0
----
293
3837
384

query I rowsort
SELECT col2 + - col1 + + - col0 * + 88 * + + col0 AS col0 FROM tab2
----
-186236
-360485
-495009

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT COUNT( * ) + - ( 54 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-2412
SELECT COUNT ( * ) + - ( 54 ) FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL - MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2414
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + 30 ) + + CAST( NULL AS SIGNED ) AND 10
----

skipif mysql # not compatible
query III rowsort label-2414
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + 30 ) + + CAST ( NULL AS INTEGER ) AND 10
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 39 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT ALL - col0 * 15 DIV + col1 FROM tab1 cor0
----
-255
-29
-54

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL - col0 * 15 / + col1 FROM tab1 cor0
----
-255
-29
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT ALL - - col0 DIV + - col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - - col0 / + - col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT 82 * - COUNT( * ) AS col0 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-2418
SELECT 82 * - COUNT ( * ) AS col0 FROM tab0
----
-246

query I rowsort
SELECT 23 * - col1 AS col2 FROM tab0
----
-1863
-23
-483

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT NULL IS NULL ) ) OR col2 * + 31 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ( - SUM( ALL - 65 ) ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2421
SELECT ( - SUM ( ALL - 65 ) ) FROM tab0 AS cor0
----
195

query I rowsort
SELECT ALL 67 * - - col2 AS col0 FROM tab2
----
1541
2680
3886

query I rowsort
SELECT DISTINCT - - 31 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
31

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE ( NOT ( - 22 ) IS NULL )
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2425
SELECT DISTINCT COUNT( * ) DIV - - 2 col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2425
SELECT DISTINCT COUNT ( * ) / - - 2 col2 FROM tab0
----
1

query I rowsort
SELECT ALL - 93 + - + col0 FROM tab2
----
-139
-157
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT DISTINCT - 0 + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT - 0 + COUNT ( * ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 11 * - - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + ( 44 ) * - col0 + + - col2 AS col0 FROM tab2 AS cor0
----
2001
2776
3242

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 / - - col2 ) >= NULL
----

query I rowsort
SELECT ALL - col2 + - 90 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT ALL + 97 + + 89 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + 97 + + 89 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - col0 + 12 FROM tab0 AS cor0
----
109
1227
1839

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT DISTINCT ( + - ( + 12 ) ) DIV + col0 + + 77 + - + col2 FROM tab2 AS cor0
----
19
37
54

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT ( + - ( + 12 ) ) / + col0 + + 77 + - + col2 FROM tab2 AS cor0
----
19
37
54

query I rowsort
SELECT - 14 * - - 1 AS col2 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT DISTINCT - col2 DIV + ( 84 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT - col2 / + ( 84 ) FROM tab2
----
0

query I rowsort
SELECT 86 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + - + 86 AS col2 FROM tab1
----
-18
-27
10

query II rowsort
SELECT ALL + col0 AS col1, - 16 FROM tab1
----
51
-16
85
-16
91
-16

query I rowsort
SELECT ALL - 56 + + 23 + + col0 - + - col1 * + - col0 AS col1 FROM tab0
----
-1233
-1773
-33

query I rowsort
SELECT DISTINCT col2 + - 69 FROM tab2
----
-11
-29
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT + - col2 + + + col2 DIV - col1 AS col0 FROM tab0 cor0
----
-10
-198
-47

skipif mysql # not compatible
query I rowsort label-2443
SELECT + - col2 + + + col2 / - col1 AS col0 FROM tab0 cor0
----
-10
-198
-47

query I rowsort
SELECT ALL - col2 + - - 32 FROM tab0 AS cor0
----
-15
-67
22

query II rowsort
SELECT - col2, + 97 AS col0 FROM tab0 AS cor0
----
-10
97
-47
97
-99
97

query II rowsort
SELECT col2, - col2 AS col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT COUNT( DISTINCT + 91 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2447
SELECT COUNT ( DISTINCT + 91 ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT ALL - 66 DIV col1 AS col1 FROM tab0
----
-3
-66
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - 66 / col1 AS col1 FROM tab0
----
-3
-66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT COUNT( ALL col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT COUNT ( ALL col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT 99 / + + ( + - col2 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2450
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT 99 / + + ( + - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT 44 DIV 42 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-2451
SELECT 44 / 42 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

query II rowsort
SELECT ALL + col2 AS col0, col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 90 IS NULL
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query II rowsort label-2453
SELECT col0 DIV + - col1 AS col1, - col0 + + - col1 + - col0 FROM tab2 AS cor0
----
-1
-217
0
-143
0
-205

skipif mysql # not compatible
query II rowsort label-2453
SELECT col0 / + - col1 AS col1, - col0 + + - col1 + - col0 FROM tab2 AS cor0
----
-1
-217
0
-143
0
-205

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT - COUNT( * ), ( 69 ) * + - 95 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
-6555

skipif mysql # not compatible
query II rowsort label-2454
SELECT - COUNT ( * ), ( 69 ) * + - 95 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
-6555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2455
SELECT ALL - - ( + CAST( + + 98 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - - ( + CAST ( + + 98 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
98
98
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 + + - 27 * - 57 AND 18 / 25 * - - col0
----

query I rowsort
SELECT 66 FROM tab2, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col0 + col0 - - + ( + 5 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT - COUNT( * ) AS col0, - 89 AS col0 FROM tab1
----
-3
-89

skipif mysql # not compatible
query II rowsort label-2459
SELECT - COUNT ( * ) AS col0, - 89 AS col0 FROM tab1
----
-3
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab0 WHERE col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT CAST( 29 AS SIGNED ) col1 FROM tab1
----
29
29
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2461
SELECT CAST ( 29 AS INTEGER ) col1 FROM tab1
----
29
29
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL + CAST( SUM( DISTINCT + ( - col0 ) ) AS SIGNED ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + CAST ( SUM ( DISTINCT + ( - col0 ) ) AS INTEGER ) AS col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL + SUM( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL + SUM ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT 11 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT - col1 DIV 69 + 93 FROM tab1
----
93
93
93

skipif mysql # not compatible
query I rowsort label-2465
SELECT - col1 / 69 + 93 FROM tab1
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT 46 NOT IN ( + 63 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT 46 NOT IN ( + 63 * + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col2 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 WHERE ( ( - col0 ) ) > ( col1 * col1 )
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL IN ( - 46 )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE + 42 * 78 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - MAX( DISTINCT - col1 ) * - 24 AS col0 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-2471
SELECT - MAX ( DISTINCT - col1 ) * - 24 AS col0 FROM tab1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT SUM( DISTINCT + col2 ) - 34 AS col2 FROM tab0
----
122

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT SUM ( DISTINCT + col2 ) - 34 AS col2 FROM tab0
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2473
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN CAST( NULL AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-2473
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN CAST ( NULL AS INTEGER ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL + SUM( ALL + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL + SUM ( ALL + col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT COUNT( * ) * 29 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2475
SELECT COUNT ( * ) * 29 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT COUNT( * ) * - 31 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT COUNT ( * ) * - 31 FROM tab1
----
-93

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE col2 * 33 BETWEEN col1 - - col0 AND NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col0 IN ( - ( + col2 ) )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) <= ( + col2 + - 88 )
----

query I rowsort
SELECT DISTINCT - col0 * 94 AS col1 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + COUNT( * ) + 71 * MAX( DISTINCT 62 * + col0 ) FROM tab1
----
400585

skipif mysql # not compatible
query I rowsort label-2481
SELECT + COUNT ( * ) + 71 * MAX ( DISTINCT 62 * + col0 ) FROM tab1
----
400585

query I rowsort
SELECT + ( - col0 ) + - 7 AS col1 FROM tab2
----
-53
-71
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT COUNT( ALL 57 ) * - 15 + - 62 FROM tab1
----
-107

skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( ALL 57 ) * - 15 + - 62 FROM tab1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT 62 + COUNT( col2 ) AS col2 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-2484
SELECT 62 + COUNT ( col2 ) AS col2 FROM tab0
----
65

query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL + SUM( ALL + col2 ) AS col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL + SUM ( ALL + col2 ) AS col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL - SUM( ALL - 83 ) AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - SUM ( ALL - 83 ) AS col0 FROM tab1
----
249

query III rowsort
SELECT * FROM tab0 WHERE 91 / col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT 18 DIV - 2 FROM tab0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-2489
SELECT 18 / - 2 FROM tab0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2490
SELECT * FROM tab0 AS cor0 WHERE ( col1 * + ( ( + CAST( NULL AS SIGNED ) ) ) + 70 * 31 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2490
SELECT * FROM tab0 AS cor0 WHERE ( col1 * + ( ( + CAST ( NULL AS INTEGER ) ) ) + 70 * 31 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 + - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT DISTINCT + col1 / 58 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + col1 / 58 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT - CAST( 0 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2494
SELECT - CAST ( 0 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col1 + - col1 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 * 17 AS col1 FROM tab0
----
1377
17
357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2497
SELECT - SUM( ALL - 19 ) DIV 89 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT - SUM ( ALL - 19 ) / 89 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + ( 36 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 cor0 WHERE NOT col2 NOT IN ( 82 * + col2 )
----

query I rowsort
SELECT - col1 * 53 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND + col1 * + 27
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 BETWEEN col1 - 71 AND col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT col2 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 AS cor0 WHERE NOT 82 * - col0 NOT IN ( + col1 * col1 + 42 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL 32 - - ( COUNT( * ) ) * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL 32 - - ( COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT DISTINCT + - col0 DIV 67 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT + - col0 / 67 FROM tab2 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col0 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT - ( - 90 ) FROM tab1 cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + ( + col1 ) + + col1 ) BETWEEN NULL AND ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2510
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 54 DIV + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT 54 / + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 66 * - + col1 AS col2 FROM tab1
----
-3102
-330
-924

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1 WHERE NULL NOT IN ( ( col0 ) )
----

query I rowsort
SELECT + ( - 35 ) * 47 FROM tab1
----
-1645
-1645
-1645

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT MIN( - col2 ) col0 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2515
SELECT MIN ( - col2 ) col0 FROM tab0
----
-99

query I rowsort
SELECT ALL - 94 + + col0 FROM tab0
----
-7
-79
3

query I rowsort
SELECT DISTINCT - 21 + - + col2 - + 60 FROM tab2 AS cor0
----
-104
-121
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL + ( MIN( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL + ( MIN ( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + - col0 + + + col1 FROM tab2 cor0
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col1 ) col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 48 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 27 + + + 37 + 35 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT ALL + 1 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2525
SELECT * FROM tab0 WHERE + CAST( 18 AS SIGNED ) NOT BETWEEN col0 AND + col1
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-2525
SELECT * FROM tab0 WHERE + CAST ( 18 AS INTEGER ) NOT BETWEEN col0 AND + col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + + col0 + ( - - col0 ) FROM tab0 cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT DISTINCT - ( - col0 ) DIV 46 * col2 + 97 AS col2 FROM tab0 cor0
----
107
295
97

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - ( - col0 ) / 46 * col2 + 97 AS col2 FROM tab0 cor0
----
107
295
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT DISTINCT + col1 - - ( ( - col2 ) ) DIV - col0 col1 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2528
SELECT DISTINCT + col1 - - ( ( - col2 ) ) / - col0 col1 FROM tab1 AS cor0
----
15
47
5

query I rowsort
SELECT - ( + 79 ) * - col2 AS col1 FROM tab0 AS cor0 WHERE + 43 IN ( - col0 * + ( + 62 * - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT COUNT( * ) * - + SUM( DISTINCT + 20 ) FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2530
SELECT COUNT ( * ) * - + SUM ( DISTINCT + 20 ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT + col2 * + ( + - col1 ) - 60 FROM tab2 AS cor0
----
-1233
-3140
-3946

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL - COUNT( col2 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - COUNT ( col2 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) = ( col2 * + 12 - + 92 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + - 75 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 94 * + 31 * - col2 FROM tab2
----
-116560
-169012
-67022

query I rowsort
SELECT DISTINCT - 61 + - col1 + col2 AS col0 FROM tab2
----
-70
-89
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ALL + SUM( ALL + 5 ) + + 99 AS col0 FROM tab1 cor0
----
114

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL + SUM ( ALL + 5 ) + + 99 AS col0 FROM tab1 cor0
----
114

query I rowsort
SELECT - - 97 * + + col0 AS col0 FROM tab2 AS cor0
----
4462
6208
7275

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT DISTINCT col1 col1 FROM tab2 AS cor0 WHERE col1 + + col1 >= - ( - CAST( NULL AS SIGNED ) ) * col1 + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2540
SELECT DISTINCT col1 col1 FROM tab2 AS cor0 WHERE col1 + + col1 >= - ( - CAST ( NULL AS INTEGER ) ) * col1 + col0
----

query II rowsort
SELECT ALL col2 AS col0, 53 * + 56 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 35 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
35

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - col0 IN ( - col0 - + col1 * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN ( NULL ) AND ( - 6 + col2 )
----

query I rowsort
SELECT ALL col0 * + 12 AS col2 FROM tab1
----
1020
1092
612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36, col2 col1 FROM tab1
----
36
59
36
68
36
96

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( 22 * + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT 91 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2548
SELECT 91 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
273

query I rowsort
SELECT ALL + ( + 61 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT + col0 DIV - col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2550
SELECT + col0 / - col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - + 96 ) col1 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT - 50 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
2365
5047
587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col1 FROM tab1 AS cor0 WHERE NOT ( + col0 * + col0 / + 57 ) BETWEEN NULL AND + col2
----
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - + SUM( ALL + + 81 ) AS col0 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2554
SELECT - + SUM ( ALL + + 81 ) AS col0 FROM tab1 AS cor0
----
-243

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + ( - col2 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - - 51 ) <> col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2558
SELECT ALL * FROM tab1 AS cor0 WHERE ( - CAST( + col2 AS SIGNED ) + 39 + - 96 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2558
SELECT ALL * FROM tab1 AS cor0 WHERE ( - CAST ( + col2 AS INTEGER ) + 39 + - 96 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - COUNT( * ) + 72 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-2559
SELECT - COUNT ( * ) + 72 FROM tab0
----
69

query I rowsort
SELECT - 30 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2561
SELECT - - 16 / + - COUNT( * ) * ( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT - 36 BETWEEN NULL AND + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT - - 16 / + - COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT - 36 BETWEEN NULL AND + 25
----
NULL

query I rowsort
SELECT DISTINCT + 16 / + 56 + - col0 * + - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT DISTINCT COUNT( * ) + + - 62 * + 18 AS col2 FROM tab2
----
-1113

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT COUNT ( * ) + + - 62 * + 18 AS col2 FROM tab2
----
-1113

query I rowsort
SELECT + 51 + ( col0 ) FROM tab1
----
102
136
142

query I rowsort
SELECT ALL ( - col0 ) + - + col0 + + 70 * + 52 AS col0 FROM tab1
----
3458
3470
3538

query I rowsort
SELECT ALL ( - col2 ) + 59 + - col0 - col2 * - ( 74 ) AS col1 FROM tab0
----
3475
702
7189

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT col1 DIV - col1 + - col0 * - col2 FROM tab2 AS cor0
----
1057
2559
4349

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT col1 / - col1 + - col0 * - col2 FROM tab2 AS cor0
----
1057
2559
4349

onlyif mysql # DIV for integer division: 
query I rowsort label-2568
SELECT ALL - col1 + + - col2 - - 60 * col1 * + col2 DIV + - col2 FROM tab2 AS cor0
----
-3134
-4145
-4737

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - col1 + + - col2 - - 60 * col1 * + col2 / + - col2 FROM tab2 AS cor0
----
-3134
-4145
-4737

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT + - ( + - COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2569
SELECT DISTINCT + - ( + - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 * + col0 + + col2 col2, - 0 FROM tab1
----
3666
0
6009
0
6438
0

query III rowsort
SELECT - 94 * - col1 + - + col0 AS col1, + 59 * - col1 AS col2, + col2 AS col0 FROM tab2
----
9 values hashing to 94820b4f9774a5d0908c81efcaa77986

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2572
SELECT DISTINCT - col2 * - - col2 * 18 AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - col2 * - - col2 * 18 AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT DISTINCT + + COUNT( 23 ) * 67 - - COUNT( ALL + 48 ) col1 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2573
SELECT DISTINCT + + COUNT ( 23 ) * 67 - - COUNT ( ALL + 48 ) col1 FROM tab2 AS cor0
----
204

query I rowsort
SELECT - col1 + + col0 * + col2 * + ( - col2 ) AS col1 FROM tab2 cor0
----
-102477
-24385
-252367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT DISTINCT - ( col1 ) AS col1 FROM tab2 AS cor0 WHERE 16 / + col1 + - CAST( - - col1 AS SIGNED ) BETWEEN - col2 AND ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - ( col1 ) AS col1 FROM tab2 AS cor0 WHERE 16 / + col1 + - CAST ( - - col1 AS INTEGER ) BETWEEN - col2 AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT col1 FROM tab2 AS cor0 WHERE - col0 / - CAST( - 52 AS SIGNED ) * + col1 + - - col1 + 34 + 48 = NULL
----

skipif mysql # not compatible
query I rowsort label-2576
SELECT col1 FROM tab2 AS cor0 WHERE - col0 / - CAST ( - 52 AS INTEGER ) * + col1 + - - col1 + 34 + 48 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - + COUNT( * ) * 15 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2577
SELECT - + COUNT ( * ) * 15 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT ( + 3 ) FROM tab1
----
3
3
3

query II rowsort
SELECT DISTINCT 48, col0 AS col2 FROM tab2
----
48
46
48
64
48
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2580
SELECT 73 AS col2, + 3 + - COUNT( * ) col1 FROM tab2
----
73
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2580
SELECT 73 AS col2, + 3 + - COUNT ( * ) col1 FROM tab2
----
73
0

query I rowsort
SELECT ALL col0 * + 85 * + 17 FROM tab1
----
122825
131495
73695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT ALL + col2 FROM tab0 WHERE NOT - col1 * - - col2 * CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + 88 BETWEEN NULL AND + + ( 92 )
----

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + col2 FROM tab0 WHERE NOT - col1 * - - col2 * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + 88 BETWEEN NULL AND + + ( 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT + col2 * - + CAST( - + 24 AS SIGNED ) - - col0 FROM tab1
----
1501
1723
2355

skipif mysql # not compatible
query I rowsort label-2583
SELECT + col2 * - + CAST ( - + 24 AS INTEGER ) - - col0 FROM tab1
----
1501
1723
2355

query I rowsort
SELECT + 6 + + + col2 * - ( + col2 ) + 71 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2132
-23
-9724

query I rowsort
SELECT DISTINCT - col2 * + 5 AS col0 FROM tab0
----
-235
-495
-50

query I rowsort
SELECT DISTINCT ( + 51 ) FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2 + + col0 - + col0, + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2588
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - + col2 <> NULL
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NULL IN ( + col1, 64 )
----

query I rowsort
SELECT 19 * - + col2 AS col0 FROM tab0
----
-1881
-190
-893

query I rowsort
SELECT ALL + + 65 * - col1 * - - ( - col1 ) FROM tab1 cor0
----
12740
143585
1625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2592
SELECT - 29 DIV + MIN( 33 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT - 29 / + MIN ( 33 ) FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2593
SELECT DISTINCT - col0 DIV - col0, + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-2593
SELECT DISTINCT - col0 / - col0, + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
21
1
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 75 <= NULL
----

query I rowsort
SELECT - ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2596
SELECT CAST( - + col2 AS SIGNED ) AS col0, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-2596
SELECT CAST ( - + col2 AS INTEGER ) AS col0, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT + 28 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2597
SELECT + 28 / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( + - col1 ) * - 11 AS col1 FROM tab2
----
561
737
847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 27 col2 FROM tab2
----
-1377
-1809
-2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT CAST( + - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2600
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2601
SELECT DISTINCT * FROM tab1 WHERE - 56 * + col0 / + - CAST( NULL AS DECIMAL ) + + + ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2601
SELECT DISTINCT * FROM tab1 WHERE - 56 * + col0 / + - CAST ( NULL AS REAL ) + + + ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT 46 * COUNT( * ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-2602
SELECT 46 * COUNT ( * ) FROM tab0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT - COUNT( ALL - - col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2603
SELECT - COUNT ( ALL - - col0 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE + 67 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + COUNT( * ) + - 35 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + COUNT ( * ) + - 35 FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2606
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT DISTINCT COUNT( - 95 ) / - + MIN( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT COUNT ( - 95 ) / - + MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT 15 - + COUNT( * ) + + - COUNT( * ) col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2608
SELECT DISTINCT 15 - + COUNT ( * ) + + - COUNT ( * ) col2 FROM tab1 cor0
----
9

query I rowsort
SELECT ALL col1 + 13 AS col0 FROM tab1 AS cor0
----
18
27
60

query I rowsort
SELECT ALL - col0 - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT 85 - col2 FROM tab2 AS cor0
----
27
45
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2612
SELECT - - CAST( ( + col1 ) AS SIGNED ) - + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT - - CAST ( ( + col1 ) AS INTEGER ) - + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2613
SELECT + 0 - - CAST( NULL AS SIGNED ) - - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT + 0 - - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 1 + - col0 * + col1 FROM tab0 AS cor0
----
-1214
-1826
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 13 + + ( + + col0 ) <= - col2 / + 3 + col0 + 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col0 ) + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * 85 <> + col2 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT - - 57 * - 18 col0 FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2618
SELECT - - 57 * - 18 col0 FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2619
SELECT COUNT( * ) DIV - 88 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT COUNT ( * ) / - 88 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 79 * + + 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 60 col1 FROM tab2 AS cor0
----
60

query II rowsort
SELECT DISTINCT col2 * + col2 AS col0, col1 * + - col1 AS col0 FROM tab0 AS cor0
----
100
-441
2209
-6561
9801
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) * + col0 ) > CAST( + + col0 AS SIGNED ) / - + col1
----
0

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) * + col0 ) > CAST ( + + col0 AS INTEGER ) / - + col1
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT CAST( 53 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
53

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT CAST ( 53 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT ALL + 66 + - CAST( - ( 21 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
87
87
87

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + 66 + - CAST ( - ( 21 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
87
87
87

query I rowsort
SELECT 32 * + + col2 * + col1 * col2 AS col1 FROM tab2 AS cor0
----
3942400
7212416
863328

query I rowsort
SELECT + - col0 + + - col1 AS col1 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - col1 * - + 98 * - col0 + - - col2 FROM tab0 AS cor0
----
-119023
-179036
-9407

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( - - 66, 92, + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 96 * - - 31 FROM tab1 WHERE NULL NOT IN ( + col0 * - 76, 73 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT + col0 * + - col0 + + ( + col0 ) + col1 DIV - - col0 AS col2 FROM tab2
----
-2069
-4031
-5550

skipif mysql # not compatible
query I rowsort label-2632
SELECT + col0 * + - col0 + + ( + col0 ) + col1 / - - col0 AS col2 FROM tab2
----
-2069
-4031
-5550

query I rowsort
SELECT DISTINCT - col2 + - col2 * + col2 AS col2 FROM tab1
----
-3540
-4692
-9312

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT - ( 58 ) DIV - + col2 + + 69 col2 FROM tab2
----
70
70
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2634
SELECT - ( 58 ) / - + col2 + + 69 col2 FROM tab2
----
70
70
71

query I rowsort
SELECT 15 * + - col0 FROM tab1
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2636
SELECT ALL 41 DIV - 90 + + MIN( ALL col2 ) DIV 11 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2636
SELECT ALL 41 / - 90 + + MIN ( ALL col2 ) / 11 col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 55 FROM tab0 WHERE NULL < ( + 89 ) * - ( - + 49 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - AVG ( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) + - + COUNT( * ) * + 19 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - AVG ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) + - + COUNT ( * ) * + 19 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT + COUNT( * ) * - 44 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-2639
SELECT + COUNT ( * ) * - 44 FROM tab2 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT - - 20 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2640
SELECT - - 20 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN + - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2643
SELECT ALL + COUNT( * ) - + 29 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE col1 + - - 66 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + COUNT ( * ) - + 29 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE col1 + - - 66 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 42, + col1 AS col2 FROM tab2
----
42
51
42
67
42
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, - col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

query II rowsort
SELECT - col1 AS col1, - col0 * - col1 FROM tab1
----
-14
714
-47
4277
-5
425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2647
SELECT - col0 * + - col0 AS col1, + col0 - 39 + + ( - + col2 ) - col2 + + CAST( NULL AS SIGNED ) * col1 * ( - ( + + 89 ) ) * - col0 col1 FROM tab0
----
225
NULL
7569
NULL
9409
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2647
SELECT - col0 * + - col0 AS col1, + col0 - 39 + + ( - + col2 ) - col2 + + CAST ( NULL AS INTEGER ) * col1 * ( - ( + + 89 ) ) * - col0 col1 FROM tab0
----
225
NULL
7569
NULL
9409
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT - col1 * col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
308367
4410
99

skipif mysql # not compatible
query I rowsort label-2648
SELECT - col1 * col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
308367
4410
99

query II rowsort
SELECT ALL - col0 AS col0, 93 AS col2 FROM tab2
----
-46
93
-64
93
-75
93

query I rowsort
SELECT ALL + - 59 AS col1 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT ( NOT + + col1 > + - 0 )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT DISTINCT + + COUNT( * ) AS col1, + 46 AS col2 FROM tab0 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-2653
SELECT DISTINCT + + COUNT ( * ) AS col1, + 46 AS col2 FROM tab0 AS cor0
----
3
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT + - MIN( ALL col2 ) col1, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2654
SELECT + - MIN ( ALL col2 ) col1, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-10
3

query I rowsort
SELECT - + 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query II rowsort label-2656
SELECT DISTINCT 82 + 97 col2, SUM( + + 35 ) FROM tab0
----
179
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2656
SELECT DISTINCT 82 + 97 col2, SUM ( + + 35 ) FROM tab0
----
179
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT ALL - - col0 * CAST( col1 AS SIGNED ) - - 57 FROM tab1 AS cor0
----
4334
482
771

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - - col0 * CAST ( col1 AS INTEGER ) - - 57 FROM tab1 AS cor0
----
4334
482
771

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL - ( - ( - - COUNT( * ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - ( - ( - - COUNT ( * ) ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2660
SELECT COUNT( * ) DIV + MIN( ALL 76 ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2660
SELECT COUNT ( * ) / + MIN ( ALL 76 ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 * + col2 * - ( col2 ) + + - col0 + col1 FROM tab0 AS cor0
----
103889
934
970203

query II rowsort
SELECT DISTINCT + 49 * - col2, + col2 AS col2 FROM tab2 AS cor0
----
-1127
23
-1960
40
-2842
58

query I rowsort
SELECT 87 * + + col2 FROM tab1
----
5133
5916
8352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2664
SELECT ALL + COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2664
SELECT ALL + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT 5 * - 76 * + COUNT( DISTINCT - col1 ) * + COUNT( * ) FROM tab2
----
-3420

skipif mysql # not compatible
query I rowsort label-2665
SELECT 5 * - 76 * + COUNT ( DISTINCT - col1 ) * + COUNT ( * ) FROM tab2
----
-3420

query I rowsort
SELECT 95 + + + col1 * + + 53 AS col1 FROM tab2
----
2798
3646
4176

query I rowsort
SELECT ALL - ( + 54 ) + + col0 FROM tab2
----
-8
10
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT SUM( ALL col0 ) + + COUNT( * ) + - - COUNT( * ) FROM tab0
----
205

skipif mysql # not compatible
query I rowsort label-2668
SELECT SUM ( ALL col0 ) + + COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
205

query I rowsort
SELECT ALL 27 * col2 + col0 FROM tab1
----
1678
1927
2643

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT DISTINCT col2 + col0 DIV + + 79 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT col2 + col0 / + + 79 FROM tab1
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1, tab1 cor0
----
9

query I rowsort
SELECT 41 + col2 FROM tab2 AS cor0
----
64
81
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT - col2 * - 46 + + + col2 DIV + 82 + - - col1 AS col1 FROM tab0 AS cor0
----
2243
4556
481

skipif mysql # not compatible
query I rowsort label-2673
SELECT - col2 * - 46 + + + col2 / + 82 + - - col1 AS col1 FROM tab0 AS cor0
----
2243
4556
481

query I rowsort
SELECT DISTINCT - - col0 - 21 FROM tab0 AS cor0
----
-6
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT MAX( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2675
SELECT MAX ( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT - 84 * 39 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - 84 * 39 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - - col2 + + + col2 col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - SUM( DISTINCT - 65 ) / + + COUNT( * ) + - - 30 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT - SUM ( DISTINCT - 65 ) / + + COUNT ( * ) + - - 30 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL - - COUNT( + 50 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - - COUNT ( + 50 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 62 AS col0 FROM tab2 AS cor0
----
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + - col0 * 46 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( col0 * - 9, col1 ) )
----

query II rowsort
SELECT + ( + + 34 ) AS col1, - col0 FROM tab1 AS cor0
----
34
-51
34
-85
34
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 + + + col0 col2 FROM tab1 AS cor0 WHERE - col1 * - col2 BETWEEN 25 AND - - 42
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2687
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + CAST( NULL AS DECIMAL ) <= - 37 + 15
----

skipif mysql # not compatible
query III rowsort label-2687
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + CAST ( NULL AS REAL ) <= - 37 + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT SUM( - col0 ) AS col1 FROM tab1 WHERE NOT NULL <> ( ( - - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT SUM ( - col0 ) AS col1 FROM tab1 WHERE NOT NULL <> ( ( - - col0 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT + CAST( + - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL SUM( DISTINCT + - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL SUM ( DISTINCT + - col0 ) FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 80 / - 96 col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2692
SELECT CAST( - 97 AS SIGNED ) AS col0 FROM tab0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-2692
SELECT CAST ( - 97 AS INTEGER ) AS col0 FROM tab0
----
-97
-97
-97

query II rowsort
SELECT col0 AS col2, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT + ( col1 ) * + ( ( + + col0 ) ) + + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT + ( col1 ) * + ( ( + + col0 ) ) + + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * - - col0 + - col2 col1 FROM tab1 AS cor0
----
-3972
-6519
-6984

query I rowsort
SELECT DISTINCT + + col2 + 96 - - + col1 + 42 + 98 FROM tab0 AS cor0
----
267
336
364

query II rowsort
SELECT ALL + 40 + - - 26 AS col2, + 16 + + col2 + + - col2 AS col0 FROM tab0 AS cor0
----
66
16
66
16
66
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 24, + col0 col1 FROM tab2 AS cor0
----
24
46
24
64
24
75

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE ( - 98 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT + 32 + + col1 AS col1 FROM tab1 AS cor0
----
37
46
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab1 cor0
----
59
68
96

query II rowsort
SELECT ALL col2 AS col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT ALL CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2704
SELECT ALL CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT col1 DIV ( - - 65 ) * + 59 FROM tab2
----
0
59
59

skipif mysql # not compatible
query I rowsort label-2705
SELECT col1 / ( - - 65 ) * + 59 FROM tab2
----
0
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ( SUM( DISTINCT - col1 ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2707
SELECT ( SUM ( DISTINCT - col1 ) ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT ALL - 60 * + + col2 + - col1 FROM tab2
----
-1431
-2477
-3547

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - 98 * - + COUNT( * ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-2709
SELECT - 98 * - + COUNT ( * ) FROM tab1
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT DISTINCT 76 / + col1 * - 91 + - + CAST( NULL AS SIGNED ) * + + col0 + - + 61 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT 76 / + col1 * - 91 + - + CAST ( NULL AS INTEGER ) * + + col0 + - + 61 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + 77 AS col0 FROM tab0 cor0
----
-10
-20
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2714
SELECT DISTINCT + MAX( - - 93 ) FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + MAX ( - - 93 ) FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT + 39 + + 92 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT DISTINCT + 85 DIV - 73 col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2716
SELECT DISTINCT + 85 / - 73 col1 FROM tab1
----
-1

query II rowsort
SELECT col0 * + ( - col1 ), col0 FROM tab0
----
-1215
15
-1827
87
-97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT DISTINCT 4 DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT 4 / col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT 91 * - COUNT( * ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-2719
SELECT 91 * - COUNT ( * ) FROM tab0
----
-273

query II rowsort
SELECT - 89 AS col2, col0 AS col1 FROM tab0
----
-89
15
-89
87
-89
97

query I rowsort
SELECT DISTINCT 84 * - 22 AS col1 FROM tab0
----
-1848

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col1 AS col2, col2 + - - 37 FROM tab0 AS cor0
----
1
136
21
47
81
84

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2725
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col1 * - 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2725
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 * - 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 4, + col2 FROM tab1 cor0
----
4
59
4
68
4
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + 66 + col1 = + col0
----

query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 FROM tab0 WHERE NULL IS NULL
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT COUNT( DISTINCT ( + ( - col1 ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2729
SELECT COUNT ( DISTINCT ( + ( - col1 ) ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 75 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT ALL ( + + col1 ) + CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL ( + + col1 ) + CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2733
SELECT - - 26 * + + 97 + CAST( NULL AS SIGNED ) + + - col2 AS col2, - 42 AS col1 FROM tab2 cor0
----
NULL
-42
NULL
-42
NULL
-42

skipif mysql # not compatible
query II rowsort label-2733
SELECT - - 26 * + + 97 + CAST ( NULL AS INTEGER ) + + - col2 AS col2, - 42 AS col1 FROM tab2 cor0
----
NULL
-42
NULL
-42
NULL
-42

query I rowsort
SELECT + col2 + - col1 + - + 90 FROM tab2 AS cor0
----
-118
-127
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT + + COUNT( + 15 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT + + COUNT ( + 15 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + + 45 + + 23 AS col0, col2 AS col0 FROM tab1 WHERE + + 60 IS NULL
----

query I rowsort
SELECT ALL + + 2 + col1 * col0 - - 62 FROM tab1 AS cor0
----
4341
489
778

query I rowsort
SELECT DISTINCT - 34 + - col1 + + - 88 * + col0 + 10 AS col0 FROM tab0 AS cor0
----
-1425
-7701
-8561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2739
SELECT ALL - COUNT( * ), 86 + CAST( - + 35 AS SIGNED ) * + 69 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
-2332

skipif mysql # not compatible
query II rowsort label-2739
SELECT ALL - COUNT ( * ), 86 + CAST ( - + 35 AS INTEGER ) * + 69 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
-2332

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col2 < - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL - MIN( DISTINCT - - col0 ) col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2741
SELECT ALL - MIN ( DISTINCT - - col0 ) col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT - - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT + - col2 IS NULL
----
10
47
99

query I rowsort
SELECT + 55 + + 28 FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT 87 * - - ( - SUM( ALL - col0 ) ) AS col1 FROM tab2 WHERE NOT + 52 < + col2
----
9570

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT 87 * - - ( - SUM ( ALL - col0 ) ) AS col1 FROM tab2 WHERE NOT + 52 < + col2
----
9570

query III rowsort
SELECT * FROM tab0 WHERE 69 / col0 * - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL - 85 * - COUNT( * ) AS col2 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - 85 * - COUNT ( * ) AS col2 FROM tab1
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 + + + col2 + - col0 * 41 * - col1 col0 FROM tab0
----
3996
49782
74837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + - col2 col1 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT - - col1 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query II rowsort
SELECT DISTINCT + 86 AS col1, col1 AS col2 FROM tab2 AS cor0
----
86
51
86
67
86
77

query II rowsort
SELECT ALL + - 66 AS col1, + 28 FROM tab2 AS cor0
----
-66
28
-66
28
-66
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - COUNT( ALL col2 ) FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT - COUNT ( ALL col2 ) FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2754
SELECT + col1 * + - col2 AS col2, + CAST( NULL AS SIGNED ) * 40 * 44 * - col2 * - col2 / 11 * col1 FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

skipif mysql # not compatible
query II rowsort label-2754
SELECT + col1 * + - col2 AS col2, + CAST ( NULL AS INTEGER ) * 40 * 44 * - col2 * - col2 / 11 * col1 FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

query I rowsort
SELECT ALL + 59 * + + ( - 13 ) AS col2 FROM tab1 AS cor0
----
-767
-767
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT - COUNT( * ) * COUNT( * ) * - COUNT( * ) + + - 13 FROM tab2 cor0
----
14

skipif mysql # not compatible
query I rowsort label-2756
SELECT - COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) + + - 13 FROM tab2 cor0
----
14

query I rowsort
SELECT - col2 * - 77 + + - col0 AS col1 FROM tab0 AS cor0
----
3604
683
7526

query I rowsort
SELECT ALL + col1 * + 72 * + + col1 * + col0 - - + col2 - + 47 AS col2 FROM tab0 AS cor0
----
2762387
7036
7085880

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + + col0 <> + + 58 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 AS col1, col0 col0 FROM tab0 WHERE NOT + col2 - 13 <= + col0
----
47
15

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 - + + col1 + - col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL - 79 * COUNT( * ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - 79 * COUNT ( * ) FROM tab1
----
-237

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= col2 * - 28 - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT DISTINCT - 85 DIV + 10 AS col1 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT - 85 / + 10 AS col1 FROM tab1
----
-8

query I rowsort
SELECT ALL - 52 + - + ( - 52 ) FROM tab0
----
0
0
0

query I rowsort
SELECT 57 * - + 42 FROM tab1
----
-2394
-2394
-2394

query II rowsort
SELECT + col2 AS col0, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT 38 + + 96 FROM tab2 WHERE NOT 48 + - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT - SUM( ALL - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - SUM ( ALL - col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col1 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL + + 37 * + + 83 - 91 - - - SUM( - - 0 ) FROM tab2 AS cor0
----
2980

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL + + 37 * + + 83 - 91 - - - SUM ( - - 0 ) FROM tab2 AS cor0
----
2980

query I rowsort
SELECT + + col1 + + 15 FROM tab1 WHERE + 64 / col2 IS NOT NULL
----
20
29
62

query I rowsort
SELECT ALL + 26 * + 41 + + 30 FROM tab2 AS cor0
----
1096
1096
1096

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT + col1 DIV 6 - - col0 FROM tab1 AS cor0
----
53
85
98

skipif mysql # not compatible
query I rowsort label-2776
SELECT + col1 / 6 - - col0 FROM tab1 AS cor0
----
53
85
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + + 40 ) * - 61 AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2778
SELECT CAST( NULL AS SIGNED ) AS col0, - col1 + + col0 * - + col1 * - 82 + col0 FROM tab1
----
NULL
34930
NULL
350758
NULL
58585

skipif mysql # not compatible
query II rowsort label-2778
SELECT CAST ( NULL AS INTEGER ) AS col0, - col1 + + col0 * - + col1 * - 82 + col0 FROM tab1
----
NULL
34930
NULL
350758
NULL
58585

query I rowsort
SELECT ALL col1 * + 33 + + + col1 FROM tab0
----
2754
34
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2780
SELECT + 58 DIV - - COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2780
SELECT + 58 / - - COUNT ( * ) FROM tab1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT DISTINCT - col0 * + - 96 * - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT - col0 * + - 96 * - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NOT ( NOT NULL IS NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 91 - + col2 + + col0 FROM tab0
----
168
59
89

query II rowsort
SELECT DISTINCT 74, + col1 AS col0 FROM tab0 cor0
----
74
1
74
21
74
81

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
98

query I rowsort
SELECT DISTINCT + 47 * 51 FROM tab0
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - + COUNT( * ) col1 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-2787
SELECT - + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT - col0 AS col0, + 75 * col2 FROM tab1
----
-51
7200
-85
4425
-91
5100

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT + col1 DIV - col2 col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2789
SELECT + col1 / - col2 col1 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT ALL + COUNT( - col2 ) * - + ( + + COUNT( DISTINCT 39 ) ) * - COUNT( * ) - CAST( NULL AS SIGNED ) - + 58 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL + COUNT ( - col2 ) * - + ( + + COUNT ( DISTINCT 39 ) ) * - COUNT ( * ) - CAST ( NULL AS INTEGER ) - + 58 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 68 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( - col1 - - + 3 / + + col2, - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ALL SUM( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT MIN( 90 ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2793
SELECT MIN ( 90 ) FROM tab1 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 34 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL + SUM( DISTINCT + 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL + SUM ( DISTINCT + 50 ) FROM tab0
----
50

query I rowsort
SELECT + col1 * col2 * + - col2 * + + col1 FROM tab2
----
-1375929
-15100996
-9486400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT ALL 41 + COUNT( * ) DIV - MAX( - 64 ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL 41 + COUNT ( * ) / - MAX ( - 64 ) AS col2 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL - 17 + - MAX( + col0 ) * + ( - 3 ) + - + 16 AS col2 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - 17 + - MAX ( + col0 ) * + ( - 3 ) + - + 16 AS col2 FROM tab0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT ALL + CAST( + ( col1 ) AS SIGNED ) * + col1 col2 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT ALL + CAST ( + ( col1 ) AS INTEGER ) * + col1 col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT + col2 + - col1 - + - 0 - - col0 * 76 FROM tab0 AS cor0
----
1106
6601
7470

query I rowsort
SELECT - 65 * + col2 + + col2 + + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1495
-2600
-3770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + 52 col2 FROM tab0
----
151
262
3859

query I rowsort
SELECT ALL + col1 + + 7 + + 74 - + - 75 AS col0 FROM tab1 AS cor0
----
161
170
203

query I rowsort
SELECT DISTINCT 82 - 42 FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT - - ( - COUNT( * ) ) - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2807
SELECT - - ( - COUNT ( * ) ) - + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT MIN( ALL + col1 ) - - 83 AS col0 FROM tab2 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-2808
SELECT MIN ( ALL + col1 ) - - 83 AS col0 FROM tab2 AS cor0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT - + COUNT( * ) - + COUNT( * ) col1 FROM tab1 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2809
SELECT - + COUNT ( * ) - + COUNT ( * ) col1 FROM tab1 cor0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT - 22 <= - col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - 49 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - - 10 * - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2812
SELECT - - 10 * - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT ALL + 80 * 83 AS col0 FROM tab0
----
6640
6640
6640

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 16 * + col0 + - 37 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND - + col2 - + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - - col2 / col1 + ( - - col2 ) + - - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2817
SELECT + ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT + 72 * + - col2 AS col0 FROM tab0 AS cor0
----
-3384
-7128
-720

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE + 35 + - + col1 > + + ( - col2 ) * - col1 + 80
----

query I rowsort
SELECT ALL - ( + col0 ) + + + col2 AS col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL - MAX( DISTINCT 74 ) AS col2 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - MAX ( DISTINCT 74 ) AS col2 FROM tab0
----
-74

query I rowsort
SELECT DISTINCT - 57 + - col2 AS col2 FROM tab2
----
-115
-80
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + 12 + - - col0 FROM tab2
----
46
58
64
76
75
87

query I rowsort
SELECT ALL 68 * + - col0 + col0 AS col2 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-3651
-4806
-9318

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT COUNT( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT COUNT ( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2827
SELECT - - CAST( NULL AS DECIMAL ) - - + col2 - + col1 * + col2 + + 59 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT - - CAST ( NULL AS REAL ) - - + col2 - + col1 * + col2 + + 59 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2828
SELECT ALL + ( + + 61 ) + 28 AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT CAST( - + 25 AS SIGNED ) IS NULL
----
89
3

skipif mysql # not compatible
query II rowsort label-2828
SELECT ALL + ( + + 61 ) + 28 AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( - + 25 AS INTEGER ) IS NULL
----
89
3

query I rowsort
SELECT DISTINCT - col0 - + + col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2830
SELECT * FROM tab2 cor0 WHERE col2 + - 8 NOT IN ( + 97, 52 * - 79, col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2830
SELECT * FROM tab2 cor0 WHERE col2 + - 8 NOT IN ( + 97, 52 * - 79, col0 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + SUM( 14 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2831
SELECT + SUM ( 14 ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL + col2 + + col2 FROM tab0 AS cor0 WHERE - col2 <> + + col2
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + SUM( + ( - 35 ) ) AS col1 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-2833
SELECT + SUM ( + ( - 35 ) ) AS col1 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT DISTINCT - + 41 + - col2 + - col0 * - col1 FROM tab0 cor0
----
-43
1127
1776

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 54 + + col1 * + col1 / - + col0 IN ( + col1 + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2836
SELECT ALL - + SUM( - col2 ) * + 83 + + CAST( - 67 AS SIGNED ) FROM tab1 WHERE - - col1 BETWEEN + + col0 * col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - + SUM ( - col2 ) * + 83 + + CAST ( - 67 AS INTEGER ) FROM tab1 WHERE - - col1 BETWEEN + + col0 * col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2837
SELECT 37 AS col2, MAX( ALL + col2 ) FROM tab0
----
37
99

skipif mysql # not compatible
query II rowsort label-2837
SELECT 37 AS col2, MAX ( ALL + col2 ) FROM tab0
----
37
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2838
SELECT DISTINCT * FROM tab0 WHERE + 8 * 31 * + CAST( + 26 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2838
SELECT DISTINCT * FROM tab0 WHERE + 8 * 31 * + CAST ( + 26 AS INTEGER ) IS NULL
----

query I rowsort
SELECT 48 * col1 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT ALL - 57 * + + col1 AS col1 FROM tab2
----
-2907
-3819
-4389

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT DISTINCT - 74 DIV - 40 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - 74 / - 40 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - - MIN( + 31 ) AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - - MIN ( + 31 ) AS col2 FROM tab2 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 57 col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 78 * + + 46 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * + - col0 IS NULL
----
3639
3655
3665

query I rowsort
SELECT - col2 * - + col1 - + col1 AS col1 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT col2 * 73 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT col2 * 73 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT DISTINCT - - ( + 85 ) AS col1 FROM tab1 AS cor0 WHERE NOT + - col0 IS NOT NULL OR col1 + - 18 / - CAST( NULL AS SIGNED ) IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT - - ( + 85 ) AS col1 FROM tab1 AS cor0 WHERE NOT + - col0 IS NOT NULL OR col1 + - 18 / - CAST ( NULL AS INTEGER ) IS NULL
----
85

query I rowsort
SELECT - 40 * - col1 AS col1 FROM tab0 AS cor0
----
3240
40
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL + MAX( ALL 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + MAX ( ALL 23 ) FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT + MIN( ALL - 99 ) + - 82 FROM tab1
----
-181

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT + MIN ( ALL - 99 ) + - 82 FROM tab1
----
-181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, col2 col1 FROM tab0 WHERE 84 BETWEEN - col1 AND + 91
----
10
10
47
47
99
99

query I rowsort
SELECT - + 10 FROM tab1 WHERE + col1 BETWEEN + col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT DISTINCT MAX( - 57 ) + - COUNT( * ), + 51 AS col0 FROM tab1 AS cor0
----
-60
51

skipif mysql # not compatible
query II rowsort label-2855
SELECT DISTINCT MAX ( - 57 ) + - COUNT ( * ), + 51 AS col0 FROM tab1 AS cor0
----
-60
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - - COUNT( * ) * COUNT( ALL + col2 ) + + COUNT( * ) + - COUNT( - col2 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - - COUNT ( * ) * COUNT ( ALL + col2 ) + + COUNT ( * ) + - COUNT ( - col2 ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - col2
----

query I rowsort
SELECT 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 35 col0, col0 FROM tab1
----
35
51
35
85
35
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT col2 - - + 42 - + 14 * 17 DIV col2 FROM tab2
----
55
77
96

skipif mysql # not compatible
query I rowsort label-2860
SELECT col2 - - + 42 - + 14 * 17 / col2 FROM tab2
----
55
77
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT + MAX( 74 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + MAX ( 74 ) AS col2 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT COUNT( * ) DIV 22 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2863
SELECT COUNT ( * ) / 22 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 76 AS col1, 95 + 23 FROM tab1 AS cor0
----
76
118
76
118
76
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT + COUNT( - col1 ) AS col2, COUNT( * ) col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2865
SELECT + COUNT ( - col1 ) AS col2, COUNT ( * ) col2 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - 33
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 45 / + 39 < + col1
----

query II rowsort
SELECT ALL - 40 * - 45 AS col1, 88 FROM tab1
----
1800
88
1800
88
1800
88

query I rowsort
SELECT ALL 30 - col0 * - col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT - 95 * - CAST( - - col0 AS SIGNED ) col0 FROM tab0
----
1425
8265
9215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2870
SELECT - 95 * - CAST ( - - col0 AS INTEGER ) col0 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT ALL + 13 * - ( col1 ) AS col0 FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
23
40
58

query I rowsort
SELECT DISTINCT + 60 * - + 95 FROM tab1 cor0 WHERE NOT - 92 / - col2 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT + CAST( 12 AS SIGNED ) FROM tab1 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-2874
SELECT + CAST ( 12 AS INTEGER ) FROM tab1 AS cor0
----
12
12
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT ALL - MAX( DISTINCT col2 ) DIV - + 12 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - MAX ( DISTINCT col2 ) / - + 12 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2877
SELECT ALL + - 15 AS col0, + CAST( + + ( - + COUNT( + 28 ) ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15
-9

skipif mysql # not compatible
query II rowsort label-2877
SELECT ALL + - 15 AS col0, + CAST ( + + ( - + COUNT ( + 28 ) ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 46 + - ( 32 ) FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT ALL + col1 * col0 DIV 91 + + - col2 FROM tab2 AS cor0
----
-3
14
2

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + col1 * col0 / 91 + + - col2 FROM tab2 AS cor0
----
-3
14
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL MIN( - - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL MIN ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - col2 + + + 44 AS col2 FROM tab1 AS cor0
----
-15
-24
-52

query II rowsort
SELECT DISTINCT + - 84, + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT 6 <> - 20
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col1 + ( + 81 ) * - - col0 + col0 NOT BETWEEN - 2 AND - + ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT DISTINCT - 72 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT - 72 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 33 * + - 10 FROM tab2 AS cor0
----
-330

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL NOT BETWEEN NULL AND col1 + - + ( + col0 ) ) )
----

query I rowsort
SELECT - - 5 FROM tab1 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 IS NULL OR NOT + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT + 48 DIV + col2 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2891
SELECT + 48 / + col2 AS col0 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT 1 + + col2 FROM tab0
----
100
11
48

query I rowsort
SELECT + col1 + - - 54 - + + col2 AS col2 FROM tab2 WHERE - + 75 / - + col2 * - 69 + - col1 IS NOT NULL
----
63
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2894
SELECT ALL + col2 - + CAST( NULL AS SIGNED ), 85 AS col0 FROM tab0
----
NULL
85
NULL
85
NULL
85

skipif mysql # not compatible
query II rowsort label-2894
SELECT ALL + col2 - + CAST ( NULL AS INTEGER ), 85 AS col0 FROM tab0
----
NULL
85
NULL
85
NULL
85

query I rowsort
SELECT ALL - 7 * - + col1 AS col1 FROM tab2 WHERE - - 1 IS NOT NULL
----
357
469
539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT + + CAST( - - ( - - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2896
SELECT + + CAST ( - - ( - - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 64 col1 FROM tab2 AS cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 69 BETWEEN NULL AND col2 + - - col1 - - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + + col2 - + col1 + - col0 col1 FROM tab0
----
-3
46
96

query I rowsort
SELECT DISTINCT - + 28 FROM tab0 cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2901
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( + + col0 AS SIGNED ) = - - col1
----

skipif mysql # not compatible
query III rowsort label-2901
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( + + col0 AS INTEGER ) = - - col1
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - - col1 + + 39 + 94 < NULL
----

query I rowsort
SELECT ALL ( + - 28 ) * + - col1 + + 7 - + 69 AS col0 FROM tab0
----
-34
2206
526

onlyif mysql # DIV for integer division: 
query II rowsort label-2904
SELECT DISTINCT col0 col2, + 94 DIV + col1 FROM tab2
----
46
1
64
1
75
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2904
SELECT DISTINCT col0 col2, + 94 / + col1 FROM tab2
----
46
1
64
1
75
1

query I rowsort
SELECT ALL col0 * + - 47 FROM tab2
----
-2162
-3008
-3525

query II rowsort
SELECT ALL 72 AS col1, col0 FROM tab0
----
72
15
72
87
72
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2907
SELECT ALL COUNT( * ), COUNT( - col0 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2907
SELECT ALL COUNT ( * ), COUNT ( - col0 ) FROM tab2
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + 40 AND + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 87 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL + + COUNT( * ) * + 97 - + 54 + + - COUNT( * ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL + + COUNT ( * ) * + 97 - + 54 + + - COUNT ( * ) FROM tab0 AS cor0
----
234

query I rowsort
SELECT DISTINCT col0 * - col2 * + - 1 * 14 + 21 FROM tab0 AS cor0
----
12201
134463
9891

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - - COUNT( ALL + - col2 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2913
SELECT - - COUNT ( ALL + - col2 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 10 * - + col0 FROM tab2 AS cor0
----
460
640
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - 10 * + 34 * - 78 AS col0 FROM tab2 AS cor0
----
-1060800
-1538160
-609960

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - 10 * + 34 * - 78 AS col0 FROM tab2 AS cor0
----
-1060800
-1538160
-609960

query II rowsort
SELECT ALL - 78 * 48 AS col1, 48 + + col2 FROM tab0 cor0
----
-3744
147
-3744
58
-3744
95

query I rowsort
SELECT DISTINCT - ( + + col0 ) + + + 30 AS col0 FROM tab0 AS cor0
----
-57
-67
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT DISTINCT - ( - + CAST( - + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT - ( - + CAST ( - + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2919
SELECT ALL 87 / - CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 75 + - col0 - + - col2 * + col0 * CAST( + 71 AS SIGNED ) ) NOT BETWEEN + 12 AND NULL
----

skipif mysql # not compatible
query II rowsort label-2919
SELECT ALL 87 / - CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 75 + - col0 - + - col2 * + col0 * CAST ( + 71 AS INTEGER ) ) NOT BETWEEN + 12 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT + COUNT( ALL col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + COUNT ( ALL col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - col2 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT DISTINCT + col1 DIV + col2 + - 78 AS col2 FROM tab0 AS cor0
----
-76
-77
-78

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + col1 / + col2 + - 78 AS col2 FROM tab0 AS cor0
----
-76
-77
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-2924
SELECT ALL + col0 DIV col0 AS col0, 14 AS col0 FROM tab2 AS cor0
----
1
14
1
14
1
14

skipif mysql # not compatible
query II rowsort label-2924
SELECT ALL + col0 / col0 AS col0, 14 AS col0 FROM tab2 AS cor0
----
1
14
1
14
1
14

onlyif mysql # DIV for integer division: 
query II rowsort label-2925
SELECT DISTINCT - col1 DIV 88, col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-2925
SELECT DISTINCT - col1 / 88, col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT ( - + col1 ) - + col2 * + + col2 FROM tab0 cor0
----
-121
-2290
-9802

query I rowsort
SELECT + col1 + ( - + col1 ) - + col2 * + col0 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT - col1, col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT - MAX( - col2 ) * - + 70 * + - 86 + + - 83 FROM tab0
----
60117

skipif mysql # not compatible
query I rowsort label-2929
SELECT - MAX ( - col2 ) * - + 70 * + - 86 + + - 83 FROM tab0
----
60117

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - + col0 < + + 21
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + 0 + - ( + - 63 ) * + ( 91 ) AND NULL
----

query I rowsort
SELECT DISTINCT + - 8 + + 5 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IN ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT - CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT - CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <= + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 50 - ( + ( - col0 ) ) FROM tab2
----
114
125
96

query III rowsort
SELECT ALL * FROM tab2 WHERE 92 <= + ( + 62 ) + col1 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col2 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - ( - col2 ) FROM tab2 WHERE 82 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT MAX( - 17 ) + + 42 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2940
SELECT MAX ( - 17 ) + + 42 FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT - MIN( col2 ) AS col1 FROM tab2 WHERE NULL IN ( - 1 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT - MIN ( col2 ) AS col1 FROM tab2 WHERE NULL IN ( - 1 + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL col1 + + col2 DIV 59 FROM tab0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL col1 + + col2 / 59 FROM tab0
----
2
21
81

query I rowsort
SELECT ALL 70 * + col0 + + 85 FROM tab2
----
3305
4565
5335

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( 63 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 * + 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT SUM( + 92 ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT SUM ( + 92 ) FROM tab0
----
276

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2947
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT ( + col1 * 61 + 29 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL CAST ( NULL AS REAL ) FROM tab0 WHERE NOT ( + col1 * 61 + 29 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT - col1 = + col2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT BETWEEN - col0 * col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL COUNT( - 29 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL COUNT ( - 29 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 37 + 54 FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 80 AND - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT 88 FROM tab2 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2953
SELECT 88 FROM tab2 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT MAX( - col2 ) col1 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2954
SELECT MAX ( - col2 ) col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL - COUNT( * ) - 76 AS col0 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - COUNT ( * ) - 76 AS col0 FROM tab1
----
-79

query I rowsort
SELECT col0 * 74 + + col1 FROM tab1
----
3788
6295
6781

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 51 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 47 ) + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT + COUNT( * ) * 41 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT + COUNT ( * ) * 41 FROM tab1 AS cor0
----
123

query I rowsort
SELECT ALL + ( - col2 ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT col0 * col1 + 36 FROM tab2 AS cor0 WHERE NOT ( + col2 * - 20 ) IS NULL
----
2382
4964
5061

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL + 91 * + COUNT( * ) FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + 91 * + COUNT ( * ) FROM tab2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT - 8 + COUNT( * ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT - 8 + COUNT ( * ) FROM tab0
----
-5

query I rowsort
SELECT 69 * - col2 + + col2 FROM tab1
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL - COUNT( * ) + + 80 * COUNT( * ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - COUNT ( * ) + + 80 * COUNT ( * ) FROM tab0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + MAX( DISTINCT 38 ) + + COUNT( * ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2966
SELECT + MAX ( DISTINCT 38 ) + + COUNT ( * ) FROM tab0
----
41

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col2 NOT BETWEEN col0 AND + col2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 / col0 = + 32 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT + - SUM( 49 ) + + 3 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT + - SUM ( 49 ) + + 3 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col1 FROM tab0 cor0 WHERE NOT 94 BETWEEN col2 AND NULL
----
-7

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col0 AND + col1
----

query I rowsort
SELECT - col2 + 73 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
15
33
50

query I rowsort
SELECT ALL 78 FROM tab0 cor0 WHERE NOT ( - col2 ) NOT BETWEEN 70 + col1 AND 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT + + MIN( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2975
SELECT + + MIN ( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT + CAST( - AVG ( ( - ( - col2 ) ) ) AS SIGNED ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-2976
SELECT + CAST ( - AVG ( ( - ( - col2 ) ) ) AS INTEGER ) FROM tab2
----
-40

query I rowsort
SELECT col1 - + - 58 FROM tab1
----
105
63
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 col2 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT DISTINCT 93 + + + COUNT( * ) AS col0 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT 93 + + + COUNT ( * ) AS col0 FROM tab0
----
96

query I rowsort
SELECT ALL ( - col0 ) + - 53 AS col1 FROM tab2
----
-117
-128
-99

query I rowsort
SELECT DISTINCT 30 + - 66 + ( col2 ) AS col2 FROM tab2 cor0
----
-13
22
4

query I rowsort
SELECT DISTINCT + 28 + - - col1 AS col2 FROM tab1 AS cor0
----
33
42
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 99 / - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL + MIN( - + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL + MIN ( - + col0 ) AS col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT + SUM( DISTINCT + 71 ) / - CAST( NULL AS SIGNED ) * 89 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + SUM ( DISTINCT + 71 ) / - CAST ( NULL AS INTEGER ) * 89 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT 12 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 * - col2 ) IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-2986
SELECT 12 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 * - col2 ) IS NULL
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2987
SELECT DISTINCT - col1, ( 4 ) * + col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-2987
SELECT DISTINCT - col1, ( 4 ) * + col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT DISTINCT + ( + 55 ) AS col1 FROM tab2 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 50 col0 FROM tab1 AS cor0 WHERE NOT + 86 * + + ( col2 ) IS NULL
----
2550
4250
4550

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * + 54 / + 71 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2992
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2993
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2994
SELECT - - COUNT( * ) DIV - COUNT( 25 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2994
SELECT - - COUNT ( * ) / - COUNT ( 25 ) AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + 24 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL - COUNT( DISTINCT + col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - COUNT ( DISTINCT + col1 ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT ALL - 64 FROM tab1 WHERE ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) / + - 47 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - 64 FROM tab1 WHERE ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) / + - 47 AND NULL
----

query I rowsort
SELECT ALL ( 83 ) FROM tab1
----
83
83
83

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - - col1 > ( - col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT COUNT( * ) * - 40 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-3000
SELECT COUNT ( * ) * - 40 FROM tab0
----
-120

query I rowsort
SELECT ALL + - col2 * + + col0 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT 56 / - CAST( NULL AS SIGNED ) * + 99 + 96 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3003
SELECT 56 / - CAST ( NULL AS INTEGER ) * + 99 + 96 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 4 + + - col0 AS col2 FROM tab0 AS cor0
----
-11
-83
-93

query I rowsort
SELECT ALL + - 27 AS col1 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - col0 + ( + col1 ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + COUNT( + col0 ) + SUM( + col0 ) AS col0 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + COUNT ( + col0 ) + SUM ( + col0 ) AS col0 FROM tab2
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3008
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - ( col1 ) ) * col0 + - CAST( - col1 AS SIGNED ) * col1 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3008
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - ( col1 ) ) * col0 + - CAST ( - col1 AS INTEGER ) * col1 = ( NULL )
----

query I rowsort
SELECT + - col2 AS col2 FROM tab1 AS cor0 WHERE col1 + col0 IS NULL
----

query I rowsort
SELECT ALL + + 9 * - col1 * + - col0 - + col2 + + col1 * 71 FROM tab1 AS cor0
----
4121
41762
7324

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 38 / - - ( - col1 ) * - ( 73 ) * + col1 BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT DISTINCT + - ( 7 ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT + 60 - + col1 FROM tab0 AS cor0
----
-21
39
59

query I rowsort
SELECT ALL - - 46 + + 15 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT - - 29 FROM tab2 cor0 WHERE 26 + col0 IS NULL
----

query II rowsort
SELECT ALL 58 AS col1, - col1 * + col2 AS col1 FROM tab2 AS cor0
----
58
-1173
58
-3080
58
-3886

query I rowsort
SELECT col2 * - col1 - + - 36 AS col2 FROM tab1 cor0
----
-1308
-259
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT - 92 * + + COUNT( * ) FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT - 92 * + + COUNT ( * ) FROM tab1 AS cor0
----
-276

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + 94 / 61 * + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3020
SELECT MAX( DISTINCT - + CAST( NULL AS DECIMAL ) ) * 90 + + - 59 + - 26 / + 2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT MAX ( DISTINCT - + CAST ( NULL AS REAL ) ) * 90 + + - 59 + - 26 / + 2 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( ( NULL ) BETWEEN + 64 AND ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT COUNT( * ) * 14 * 95 AS col1 FROM tab2
----
3990

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT COUNT ( * ) * 14 * 95 AS col1 FROM tab2
----
3990

query II rowsort
SELECT 54 AS col0, col0 AS col2 FROM tab2
----
54
46
54
64
54
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 / + - col1 + col0 - + + col0 * - col2 + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + SUM( 18 ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3025
SELECT + SUM ( 18 ) AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3026
SELECT DISTINCT - + 62 DIV + COUNT( * ) + + COUNT( * ) FROM tab0 cor0 WHERE NOT CAST( col0 AS DECIMAL ) IS NULL
----
-17

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT - + 62 / + COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0 WHERE NOT CAST ( col0 AS REAL ) IS NULL
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT - 60 col1, COUNT( ALL + 91 ) AS col2 FROM tab0 AS cor0
----
-60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3027
SELECT - 60 col1, COUNT ( ALL + 91 ) AS col2 FROM tab0 AS cor0
----
-60
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col1 / col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col2, col1 * col2, col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3030
SELECT - COUNT( * ) DIV 8 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT - COUNT ( * ) / 8 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT + 22 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3032
SELECT + 22 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
66

query I rowsort
SELECT - ( - 88 ) AS col0 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT - 34 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT + col2 DIV + col2 + + + col2 + + col1 FROM tab1 AS cor0
----
111
116
65

skipif mysql # not compatible
query I rowsort label-3035
SELECT + col2 / + col2 + + + col2 + + col1 FROM tab1 AS cor0
----
111
116
65

query II rowsort
SELECT 22, col0 FROM tab1
----
22
51
22
85
22
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3037
SELECT ALL - COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3037
SELECT ALL - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
-3
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - - col2 NOT IN ( 66 + col1 * + - col2 + + + col2 )
----

query II rowsort
SELECT 40 AS col0, col1 - - col2 - - col1 AS col0 FROM tab0
----
40
101
40
209
40
52

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 96 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3041
SELECT col2 AS col1, - col2 DIV + col1 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-3041
SELECT col2 AS col1, - col2 / + col1 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - MAX( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - MAX ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT col2 * - - 83 AS col1 FROM tab0 AS cor0
----
3901
8217
830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT DISTINCT 89 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT 89 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 59, - 84 * col1 AS col1 FROM tab2 AS cor0
----
-59
-4284
-59
-5628
-59
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3046
SELECT - col2 * + + col1 + CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) * + + 46 AS col1, 27 FROM tab2 AS cor0
----
-2231
27
-4920
27
-6554
27

skipif mysql # not compatible
query II rowsort label-3046
SELECT - col2 * + + col1 + CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) * + + 46 AS col1, 27 FROM tab2 AS cor0
----
-2231
27
-4920
27
-6554
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT DISTINCT COUNT( * ) * - 82 FROM tab1, tab2 AS cor0
----
-738

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT COUNT ( * ) * - 82 FROM tab1, tab2 AS cor0
----
-738

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3048
SELECT * FROM tab0 WHERE - + CAST( - + col2 AS SIGNED ) NOT BETWEEN - + col0 * - CAST( NULL AS SIGNED ) + col0 AND + col0
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-3048
SELECT * FROM tab0 WHERE - + CAST ( - + col2 AS INTEGER ) NOT BETWEEN - + col0 * - CAST ( NULL AS INTEGER ) + col0 AND + col0
----
15
81
47
97
1
99

query II rowsort
SELECT + col0 + + col1, col2 + - col2 + + + 17 AS col0 FROM tab0
----
108
17
96
17
98
17

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL > col1 * + col2 / col1 )
----

query I rowsort
SELECT ALL - col2 - - ( + - col1 ) FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT + col2 + + 77 AS col2 FROM tab2 AS cor0
----
100
117
135

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - - col1 + + - ( col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3055
SELECT ALL CAST( - col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL CAST ( - col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 83 - - col0 * col1 + - - col2 FROM tab2 AS cor0
----
2286
4885
5000

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( ( + col2 ) * - col0 * + col0 / col1 - + + col1 )
----

query I rowsort
SELECT - col1 * + + 23 AS col0 FROM tab0 cor0
----
-1863
-23
-483

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 87 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT MAX( ALL - - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3060
SELECT MAX ( ALL - - col0 ) AS col1 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3061
SELECT + MAX( + col2 ) - + 9, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-3061
SELECT + MAX ( + col2 ) - + 9, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT MIN( + col0 ) * 72 FROM tab2
----
3312

skipif mysql # not compatible
query I rowsort label-3062
SELECT MIN ( + col0 ) * 72 FROM tab2
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT MAX( - col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3063
SELECT MAX ( - col0 ) col1 FROM tab1
----
-51

query I rowsort
SELECT ALL + col0 + + - col0 * - + 20 + col0 FROM tab2 WHERE NOT + + col2 + + 35 + ( 6 ) IS NULL
----
1012
1408
1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT + col1 * - + CAST( NULL AS SIGNED ) * col2 / - col2 * + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + col1 * - + CAST ( NULL AS INTEGER ) * col2 / - col2 * + col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT DISTINCT 82 DIV + - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT 82 / + - col0 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - - ( + col1 ) / - + col2 * + 44 + - col1 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 AS col0, - ( col2 ) * + col2 AS col1 FROM tab0
----
10
-100
47
-2209
99
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT + MIN( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 95 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND - col0 + + col1
----

query II rowsort
SELECT DISTINCT + 40, col2 AS col1 FROM tab0 AS cor0
----
40
10
40
47
40
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL COUNT( * ) * - - MAX( ALL col2 ) AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL COUNT ( * ) * - - MAX ( ALL col2 ) AS col2 FROM tab2
----
174

onlyif mysql # DIV for integer division: 
query II rowsort label-3073
SELECT col2 DIV + col1 AS col2, - 83 + col1 + col1 - + col2 AS col1 FROM tab2
----
0
-4
0
-7
0
31

skipif mysql # not compatible
query II rowsort label-3073
SELECT col2 / + col1 AS col2, - 83 + col1 + col1 - + col2 AS col1 FROM tab2
----
0
-4
0
-7
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT + MIN( ALL - col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3074
SELECT + MIN ( ALL - col2 ) col2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT + 15 + + - MIN( DISTINCT + col0 ) col0 FROM tab2
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3075
SELECT DISTINCT + 15 + + - MIN ( DISTINCT + col0 ) col0 FROM tab2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3076
SELECT col1 * - + col2 + - - CAST( NULL AS SIGNED ) AS col2, 9 FROM tab1 WHERE NULL IS NULL
----
NULL
9
NULL
9
NULL
9

skipif mysql # not compatible
query II rowsort label-3076
SELECT col1 * - + col2 + - - CAST ( NULL AS INTEGER ) AS col2, 9 FROM tab1 WHERE NULL IS NULL
----
NULL
9
NULL
9
NULL
9

query I rowsort
SELECT + col0 + + 38 AS col2 FROM tab2 cor0
----
102
113
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT DISTINCT - MIN( DISTINCT + CAST( col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - MIN ( DISTINCT + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + col1 * - - col0 + - col1 AS col0 FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3080
SELECT CAST( col1 AS SIGNED ) DIV col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3080
SELECT CAST ( col1 AS INTEGER ) / col2 FROM tab2
----
1
1
2

query I rowsort
SELECT - + ( - col0 ) * - - 72 + + + col2 - - + 31 + - 4 FROM tab1 cor0
----
3795
6206
6647

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3082
SELECT ALL - + col0 DIV - CAST( + 76 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - + col0 / - CAST ( + 76 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-20
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT + 0 + - COUNT( + ( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3083
SELECT + 0 + - COUNT ( + ( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 65 + - 98 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT col2 * + col0 * + col2 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 92 * 50 AS col2 FROM tab0
----
4600

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL + SUM( + - 47 ) AS col2 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL + SUM ( + - 47 ) AS col2 FROM tab2
----
-141

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3089
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3090
SELECT ALL - COUNT( * ) AS col2, + CAST( - 14 AS SIGNED ) AS col2 FROM tab0 WHERE NOT col2 BETWEEN - 14 / + col1 + col2 AND NULL
----
0
-14

skipif mysql # not compatible
query II rowsort label-3090
SELECT ALL - COUNT ( * ) AS col2, + CAST ( - 14 AS INTEGER ) AS col2 FROM tab0 WHERE NOT col2 BETWEEN - 14 / + col1 + col2 AND NULL
----
0
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT + col1 DIV + - ( + col2 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT + col1 / + - ( + col2 ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT col2 * + 59 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT MIN( ALL + + 74 ) AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3093
SELECT MIN ( ALL + + 74 ) AS col1 FROM tab1 AS cor0
----
74

query I rowsort
SELECT + col2 * col0 * - - 38 FROM tab1 AS cor0
----
186048
190570
235144

query I rowsort
SELECT DISTINCT + + 43 AS col2 FROM tab2 AS cor0
----
43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + 89 IS NOT NULL
----

query I rowsort
SELECT - 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL MIN( DISTINCT 37 ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL MIN ( DISTINCT 37 ) FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT ( - col1 ) + col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - + col2 + col0 * - ( + + col2 ) + col1 AS col2 FROM tab0 AS cor0
----
-671
-859
-9701

query I rowsort
SELECT ALL + - col1 * - 88 * + col0 FROM tab0 AS cor0
----
106920
160776
8536

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3103
SELECT DISTINCT + - CAST( + - 76 AS DECIMAL ) * - 80 col1 FROM tab1 AS cor0 WHERE ( NOT NULL = NULL ) OR NOT + col2 + - col1 + - col1 - col0 * + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3103
SELECT DISTINCT + - CAST ( + - 76 AS REAL ) * - 80 col1 FROM tab1 AS cor0 WHERE ( NOT NULL = NULL ) OR NOT + col2 + - col1 + - col1 - col0 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT + COUNT( * ) DIV + ( - SUM( - col2 ) ) DIV - - 34 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT + COUNT ( * ) / + ( - SUM ( - col2 ) ) / - - 34 FROM tab0
----
0

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE - - col2 + - + 70 * - col2 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - 52 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3107
SELECT ALL 83 DIV - 61 AS col0, + col1 + + col0 AS col1 FROM tab2
----
-1
141
-1
142
-1
97

skipif mysql # not compatible
query II rowsort label-3107
SELECT ALL 83 / - 61 AS col0, + col1 + + col0 AS col1 FROM tab2
----
-1
141
-1
142
-1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT - ( + COUNT( * ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3108
SELECT - ( + COUNT ( * ) ) col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE + 59 - + 61 * + 91 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT ALL + col1 DIV - - 79 + - + col2 FROM tab0
----
-10
-46
-99

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + col1 / - - 79 + - + col2 FROM tab0
----
-10
-46
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL 68 + + COUNT( * ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL 68 + + COUNT ( * ) FROM tab2
----
71

query I rowsort
SELECT DISTINCT + col0 * col2 + - 93 AS col1 FROM tab2 AS cor0
----
2467
4257
965

query I rowsort
SELECT ALL + - 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3114
SELECT col2 DIV col0 AS col1, CAST( - 88 AS SIGNED ) FROM tab1
----
0
-88
0
-88
1
-88

skipif mysql # not compatible
query II rowsort label-3114
SELECT col2 / col0 AS col1, CAST ( - 88 AS INTEGER ) FROM tab1
----
0
-88
0
-88
1
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - COUNT( + col2 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3115
SELECT - COUNT ( + col2 ) col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col1 ) <> + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3118
SELECT ALL SUM( + + col1 ) col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
195
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3118
SELECT ALL SUM ( + + col1 ) col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
195
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT - MIN( + - 54 ) AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3119
SELECT - MIN ( + - 54 ) AS col1 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - COUNT( ALL - - col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3120
SELECT - COUNT ( ALL - - col0 ) FROM tab0
----
-3

query II rowsort
SELECT - col0, + 26 AS col0 FROM tab1
----
-51
26
-85
26
-91
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col1 FROM tab2
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT - SUM( ALL + col0 ) + - - 89 FROM tab0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - SUM ( ALL + col0 ) + - - 89 FROM tab0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT - - 81 AS col1 FROM tab1 WHERE NOT 64 / - - 59 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 21 IN ( + 6, 43, + + 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - MIN( ALL + - col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3126
SELECT - MIN ( ALL + - col0 ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL - MIN( - 27 ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - MIN ( - 27 ) AS col2 FROM tab2
----
27

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col1 IS NULL )
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT MAX( - col0 ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3130
SELECT MAX ( - col0 ) AS col1 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT - COUNT( * ) + 96 + - 32 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT - COUNT ( * ) + 96 + - 32 FROM tab2
----
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 41 * - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 81 + - + 93 * + ( col2 ) > + 90
----

query I rowsort
SELECT + col1 * + - col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - - 29 * - ( - ( - col2 ) ) FROM tab0 AS cor0
----
-1363
-2871
-290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 51 + COUNT( * ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 51 + COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 * + col0 + - col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT DISTINCT col2 DIV - 41 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT col2 / - 41 FROM tab1
----
-1
-2

query I rowsort
SELECT DISTINCT + col0 + - 8 AS col1 FROM tab0
----
7
79
89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3141
SELECT ALL 93 AS col1, AVG ( DISTINCT - 79 ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-3141
SELECT ALL 93 AS col1, AVG ( DISTINCT - 79 ) + - CAST ( NULL AS REAL ) FROM tab1
----
93
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3142
SELECT + COUNT( + - CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT + COUNT ( + - CAST ( NULL AS REAL ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col2 + - - col1 AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE 50 - - 14 + - ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT ALL + COUNT( * ) AS col0, - 98 FROM tab1 WHERE + ( - col0 ) IS NOT NULL
----
3
-98

skipif mysql # not compatible
query II rowsort label-3145
SELECT ALL + COUNT ( * ) AS col0, - 98 FROM tab1 WHERE + ( - col0 ) IS NOT NULL
----
3
-98

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3147
SELECT + CAST( - - 29 AS SIGNED ) * - + ( - col1 ) * + 42 + + + col0 + + ( ( - col2 ) ) AS col0 FROM tab1 cor0
----
17007
57269
6116

skipif mysql # not compatible
query I rowsort label-3147
SELECT + CAST ( - - 29 AS INTEGER ) * - + ( - col1 ) * + 42 + + + col0 + + ( ( - col2 ) ) AS col0 FROM tab1 cor0
----
17007
57269
6116

query I rowsort
SELECT ALL col0 + 80 AS col2 FROM tab2 cor0
----
126
144
155

query I rowsort
SELECT + + ( 81 ) + 74 AS col1 FROM tab1 AS cor0
----
155
155
155

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT ALL + + col1 DIV - 59 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL + + col1 / - 59 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 51 + + + col2 + col2 AS col0 FROM tab1 AS cor0
----
141
67
85

query I rowsort
SELECT + 21 * + 20 * col0 * col0 FROM tab2 AS cor0
----
1720320
2362500
888720

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) <= + col0 * 65
----
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) <= + col0 * 65
----
0

query I rowsort
SELECT - 77 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT + col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT + col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT + 77 DIV + + 97 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3156
SELECT + 77 / + + 97 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT 17 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT ALL - col0 DIV + 60 col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3158
SELECT ALL - col0 / + 60 col2 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 73 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 81, col2 FROM tab0 AS cor0
----
81
10
81
47
81
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3161
SELECT + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3161
SELECT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3163
SELECT * FROM tab2 WHERE NOT NULL = ( + CAST( NULL AS SIGNED ) / + 64 )
----

skipif mysql # not compatible
query III rowsort label-3163
SELECT * FROM tab2 WHERE NOT NULL = ( + CAST ( NULL AS INTEGER ) / + 64 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL CAST( + - ( - COUNT( * ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL CAST ( + - ( - COUNT ( * ) ) AS INTEGER ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * ( - + 85 ) col0 FROM tab1 AS cor0
----
5015
5780
8160

query I rowsort
SELECT 1 * 71 AS col1 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = + - 32 * - col2 + - - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + ( - ( col1 ) ) + - + 66 - 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT col1 + - + col0 DIV + - 54 - - 35 FROM tab2
----
103
113
86

skipif mysql # not compatible
query I rowsort label-3170
SELECT col1 + - + col0 / + - 54 - - 35 FROM tab2
----
103
113
86

query I rowsort
SELECT + 48 + + - 66 * - 88 + col0 FROM tab2 AS cor0
----
5902
5920
5931

query I rowsort
SELECT DISTINCT - + col1 + - ( + 27 ) + col1 AS col0 FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - 31 + col2 AS col2, col2 col1 FROM tab2 AS cor0
----
15
23
49
40
85
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 79 * + col0 <> 12
----

query I rowsort
SELECT ALL - + 58 + - 29 AS col1 FROM tab2 AS cor0
----
-87
-87
-87

query II rowsort
SELECT - 17, - col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT DISTINCT - 83 * - ( COUNT( * ) ) AS col2, + ( + 7 ) * + - ( 50 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + - - col2 IS NULL
----
249
-350

skipif mysql # not compatible
query II rowsort label-3177
SELECT DISTINCT - 83 * - ( COUNT ( * ) ) AS col2, + ( + 7 ) * + - ( 50 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + - - col2 IS NULL
----
249
-350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 20 col0, + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-20
705
-20
870
-20
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab2
----
-46

query I rowsort
SELECT col1 * col0 * + 50 AS col2 FROM tab1
----
21250
213850
35700

query I rowsort
SELECT DISTINCT - ( + 46 ) * col2 AS col2 FROM tab2
----
-1058
-1840
-2668

query I rowsort
SELECT DISTINCT + col2 + + col1 + + col2 + + col1 + col0 * + 17 AS col1 FROM tab1
----
1087
1573
1777

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT 75 - - - COUNT( * ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT 75 - - - COUNT ( * ) AS col2 FROM tab0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * - 68 + - - 23 - 88 * - col2 FROM tab1 AS cor0 WHERE col2 / + col1 IS NOT NULL
----
2811
4875
7519

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT + - COUNT( * ) - 12 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + - COUNT ( * ) - 12 FROM tab2 cor0
----
-15

query I rowsort
SELECT ALL col1 - ( - col2 ) + col0 FROM tab1 cor0
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT + CAST( - col1 AS SIGNED ) + + ( - col2 ) FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-3189
SELECT + CAST ( - col1 AS INTEGER ) + + ( - col2 ) FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL + MIN( ALL 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + MIN ( ALL 8 ) FROM tab0
----
8

query I rowsort
SELECT ALL 94 * col2 AS col1 FROM tab0
----
4418
9306
940

query I rowsort
SELECT ALL + 54 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3194
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) > + + 94
----

skipif mysql # not compatible
query III rowsort label-3194
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > + + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT DISTINCT + - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3196
SELECT SUM( + CAST( + col1 AS SIGNED ) ) FROM tab2 WHERE NOT - - 10 = + 19
----
195

skipif mysql # not compatible
query I rowsort label-3196
SELECT SUM ( + CAST ( + col1 AS INTEGER ) ) FROM tab2 WHERE NOT - - 10 = + 19
----
195

query I rowsort
SELECT DISTINCT - 3 * - 70 FROM tab1
----
210

query I rowsort
SELECT - col2 * - - col0 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + ( 68 ) * - col1 * - col2 FROM tab0
----
14280
258876
6732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 col0 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL + MIN( + + col2 ) col1 FROM tab0 WHERE + 92 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3201
SELECT ALL + MIN ( + + col2 ) col1 FROM tab0 WHERE + 92 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3202
SELECT ALL CAST( NULL AS DECIMAL ) / - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL CAST ( NULL AS REAL ) / - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / + 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 85 + 54 AS col0, ( + - 56 ) AS col0 FROM tab0 AS cor0
----
-31
-56
-31
-56
-31
-56

query I rowsort
SELECT - 52 + + ( - + ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
-57
-66
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 <= - + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3207
SELECT + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT SUM( ALL ( - - col2 ) ) col2 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3208
SELECT SUM ( ALL ( - - col2 ) ) col2 FROM tab2
----
121

query I rowsort
SELECT col2 FROM tab1 WHERE + 29 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL 12 + - col0 AS col2 FROM tab1
----
-39
-73
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3211
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL - + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT MIN( DISTINCT col1 ) + - - 33 AS col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT MIN ( DISTINCT col1 ) + - - 33 AS col2 FROM tab0 AS cor0
----
34

query I rowsort
SELECT + + ( + ( col0 ) ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT 57 - 22 AS col0 FROM tab1 AS cor0
----
35
35
35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 38 / - col1 + - col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col1 col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + COUNT( - col0 ) + + - 51 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3217
SELECT + COUNT ( - col0 ) + + - 51 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT col0 + - 84 AS col0 FROM tab2
----
-20
-38
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT + 43 * + SUM( DISTINCT - - col2 ) FROM tab1
----
9589

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT + 43 * + SUM ( DISTINCT - - col2 ) FROM tab1
----
9589

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3220
SELECT * FROM tab0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) * 39, col0 )
----

skipif mysql # not compatible
query III rowsort label-3220
SELECT * FROM tab0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) * 39, col0 )
----

query I rowsort
SELECT + + col0 FROM tab2 WHERE + 17 * + + col0 + + - col0 IS NULL
----

query II rowsort
SELECT ALL 13, col1 FROM tab0
----
13
1
13
21
13
81

query I rowsort
SELECT ALL 19 + - col2 FROM tab2
----
-21
-39
-4

query II rowsort
SELECT - col1, 19 AS col0 FROM tab0
----
-1
19
-21
19
-81
19

query I rowsort
SELECT + col0 * + + 57 FROM tab1 AS cor0
----
2907
4845
5187

query I rowsort
SELECT 30 * + - ( ( + col1 ) ) FROM tab2 AS cor0
----
-1530
-2010
-2310

query I rowsort
SELECT DISTINCT col2 + - - col0 + ( col1 ) * col0 FROM tab2 WHERE NOT NULL < 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - MAX( DISTINCT - col2 ) AS col0 FROM tab2 WHERE NOT 17 / - col0 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-3228
SELECT - MAX ( DISTINCT - col2 ) AS col0 FROM tab2 WHERE NOT 17 / - col0 IS NULL
----
23

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + 18 * MAX( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3230
SELECT + 18 * MAX ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3231
SELECT - - 12 / SUM( + + 36 ) - - ( CAST( NULL AS SIGNED ) ) * + - SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT - - 12 / SUM ( + + 36 ) - - ( CAST ( NULL AS INTEGER ) ) * + - SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT DISTINCT + COUNT( col1 ) AS col1, MIN( DISTINCT + 29 ) col0 FROM tab2 AS cor0
----
3
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3232
SELECT DISTINCT + COUNT ( col1 ) AS col1, MIN ( DISTINCT + 29 ) col0 FROM tab2 AS cor0
----
3
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL - + 99 * - CAST( + col0 AS SIGNED ) * - 99 AS col0 FROM tab0 AS cor0
----
-147015
-852687
-950697

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - + 99 * - CAST ( + col0 AS INTEGER ) * - 99 AS col0 FROM tab0 AS cor0
----
-147015
-852687
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) * - 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) * - 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - + ( - 15 ) ) * - col2 FROM tab2
----
-345
-600
-870

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 / col2 NOT BETWEEN + col1 / + col1 AND ( - + 55 ) * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT ALL + 10 DIV + + MAX( - + col2 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + 10 / + + MAX ( - + col2 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT DISTINCT col1 + col1 + - - col2 DIV - - 81 AS col1 FROM tab0
----
162
3
42

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT col1 + col1 + - - col2 / - - 81 AS col1 FROM tab0
----
162
3
42

query I rowsort
SELECT DISTINCT - 42 + + col2 AS col0 FROM tab2
----
-19
-2
16

query I rowsort
SELECT ALL + 68 * + col1 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT - + col2 DIV + + 47 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT - + col2 / + + 47 AS col1 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - COUNT( ALL + col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - COUNT ( ALL + col0 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT col2 FROM tab1 WHERE NULL >= + + 20 * - col1
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - 96 + - - col0 AS col2 FROM tab2
----
-21
-32
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - ( + + COUNT( * ) ) + + 40 + + COUNT( - col0 ) + + 24 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3246
SELECT - ( + + COUNT ( * ) ) + + 40 + + COUNT ( - col0 ) + + 24 FROM tab2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT 93 * - col2 + - + col2 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT 93 * - col2 + - + col2 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 26 + - col1 + - + 72 AS col0 FROM tab1
----
-25
36
8

query II rowsort
SELECT - col2 + + + col2, col2 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL ( - col0 ) + + col1 - + col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 * + + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT - + col1 DIV - + 21 + + + 85 FROM tab2 cor0
----
87
88
88

skipif mysql # not compatible
query I rowsort label-3253
SELECT - + col1 / - + 21 + + + 85 FROM tab2 cor0
----
87
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL - + COUNT( ALL + col2 ) - - + COUNT( DISTINCT 55 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL - + COUNT ( ALL + col2 ) - - + COUNT ( DISTINCT 55 ) FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + col2 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + MIN( - - 40 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3256
SELECT + MIN ( - - 40 ) FROM tab2 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ALL col2 DIV col1 * - 83 - + - 3 * + col2 + + col0 FROM tab2 AS cor0
----
115
184
249

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL col2 / col1 * - 83 - + - 3 * + col2 + + col0 FROM tab2 AS cor0
----
115
184
249

onlyif mysql # DIV for integer division: 
query II rowsort label-3258
SELECT DISTINCT + col1, 73 * - col2 + + 67 DIV + col1 col2 FROM tab1 cor0
----
14
-7004
47
-4963
5
-4294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3258
SELECT DISTINCT + col1, 73 * - col2 + + 67 / + col1 col2 FROM tab1 cor0
----
14
-7004
47
-4963
5
-4294

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT COUNT( * ) * + 96 AS col1 FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-3259
SELECT COUNT ( * ) * + 96 AS col1 FROM tab0
----
288

query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT 81 * - + COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT 81 * - + COUNT ( * ) FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT MIN( DISTINCT 64 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT MIN ( DISTINCT 64 ) FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT + MAX( 99 ) + + COUNT( * ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT + MAX ( 99 ) + + COUNT ( * ) FROM tab1
----
102

query I rowsort
SELECT + col2 - - col2 + 56 * - col1 FROM tab0
----
-1156
-4442
142

query I rowsort
SELECT DISTINCT - col0 * + + col0 + + 25 + + col0 * - col0 * col2 FROM tab1
----
-252272
-433475
-571364

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT - COUNT( DISTINCT 27 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3266
SELECT - COUNT ( DISTINCT 27 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 + + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT DISTINCT + + SUM( DISTINCT col1 ), SUM( ALL + col1 ) * - 81 AS col1 FROM tab1 AS cor0
----
66
-5346

skipif mysql # not compatible
query II rowsort label-3268
SELECT DISTINCT + + SUM ( DISTINCT col1 ), SUM ( ALL + col1 ) * - 81 AS col1 FROM tab1 AS cor0
----
66
-5346

query I rowsort
SELECT ALL col1 * + + 8 AS col1 FROM tab2 AS cor0
----
408
536
616

query I rowsort
SELECT ALL + - ( - + 33 ) + - ( + + col2 ) * + + col0 * 4 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-2787
-3447
-38379

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + + col0 / - - 58, col1 )
----

query I rowsort
SELECT + 36 FROM tab1, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT col1 * - 82 FROM tab2
----
-4182
-5494
-6314

query I rowsort
SELECT ALL 77 * + col1 AS col2 FROM tab0 AS cor0
----
1617
6237
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 36 AND NULL
----

query I rowsort
SELECT - - col2 + - col2 FROM tab0 AS cor0 WHERE NOT + col2 <= col0
----
0
0

query I rowsort
SELECT ALL - col2 * 36 FROM tab1 AS cor0
----
-2124
-2448
-3456

query I rowsort
SELECT + col1 * - - col1 * - 5 AS col0 FROM tab2 AS cor0
----
-13005
-22445
-29645

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3279
SELECT + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + COUNT( + 59 ) * + 98 * - - 28 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT + COUNT ( + 59 ) * + 98 * - - 28 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3281
SELECT DISTINCT 88 DIV ( COUNT( * ) ) DIV + - SUM( ALL + + 23 ) + 49 * + 86 col0 FROM tab0
----
4214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3281
SELECT DISTINCT 88 / ( COUNT ( * ) ) / + - SUM ( ALL + + 23 ) + 49 * + 86 col0 FROM tab0
----
4214

query I rowsort
SELECT ALL + col2 + + col0 + col2 AS col0 FROM tab2
----
144
191
92

query I rowsort
SELECT ALL 15 + + - 77 * 55 AS col0 FROM tab2
----
-4220
-4220
-4220

onlyif mysql # DIV for integer division: 
query II rowsort label-3284
SELECT DISTINCT - 50 DIV + + col0 AS col1, ( - 80 ) AS col1 FROM tab0
----
-3
-80
0
-80

skipif mysql # not compatible
query II rowsort label-3284
SELECT DISTINCT - 50 / + + col0 AS col1, ( - 80 ) AS col1 FROM tab0
----
-3
-80
0
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 + 25 col0 FROM tab1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT ALL - 76 + - - 92 AS col0 FROM tab0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3288
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 IS NOT NULL AND 31 IN ( col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3288
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 IS NOT NULL AND 31 IN ( col1, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 1 + - 69 FROM tab0
----
-70
-70
-70

query I rowsort
SELECT ALL 87 AS col2 FROM tab2 WHERE NOT - - ( + 80 ) IS NULL
----
87
87
87

query I rowsort
SELECT + col2 + + + col0 + + 43 AS col0 FROM tab1 AS cor0
----
187
190
202

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - + ( COUNT( * ) ) + 37 AS col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3292
SELECT - + ( COUNT ( * ) ) + 37 AS col1 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT + SUM( DISTINCT - 97 ) + + - 47 AS col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3293
SELECT + SUM ( DISTINCT - 97 ) + + - 47 AS col2 FROM tab2 AS cor0
----
-144

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT 29 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3295
SELECT 29 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * + col0 col1 FROM tab2
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT + 44 * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-396

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT + 44 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-396

query I rowsort
SELECT DISTINCT + 67 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
67

query I rowsort
SELECT DISTINCT - + 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-74

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE + col1 + 93 * - - col2 * - ( ( - col2 ) ) - + 23 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - 22 FROM tab0 cor0
----
-121
-32
-69

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE col2 = + + col2
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT + 17 + COUNT( * ) col0 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3303
SELECT DISTINCT + 17 + COUNT ( * ) col0 FROM tab2 AS cor0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT ALL - COUNT( - - 50 ) - - + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - COUNT ( - - 50 ) - - + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - ( - - MIN( ALL + col2 ) ) + COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3305
SELECT - ( - - MIN ( ALL + col2 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3306
SELECT - COUNT( * ) + ( + COUNT( * ) ) DIV - ( - COUNT( * ) ) col1 FROM tab2 cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3306
SELECT - COUNT ( * ) + ( + COUNT ( * ) ) / - ( - COUNT ( * ) ) col1 FROM tab2 cor0
----
-2

query II rowsort
SELECT DISTINCT + col0 - + col2 * - 32, 85 + - - 6 AS col1 FROM tab0 AS cor0
----
1519
91
3265
91
407
91

query II rowsort
SELECT ALL + + 51, 39 AS col0 FROM tab2 AS cor0
----
51
39
51
39
51
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 * - 41 <> 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL - ( - - COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3310
SELECT ALL - ( - - COUNT ( * ) ) col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3311
SELECT CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col2, 14 AS col1 FROM tab0 AS cor0
----
10
14
47
14
99
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3313
SELECT - CAST( NULL AS SIGNED ) AS col1, col0 * + 14 FROM tab2 AS cor0
----
NULL
1050
NULL
644
NULL
896

skipif mysql # not compatible
query II rowsort label-3313
SELECT - CAST ( NULL AS INTEGER ) AS col1, col0 * + 14 FROM tab2 AS cor0
----
NULL
1050
NULL
644
NULL
896

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 cor0 WHERE + col2 + + 59 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - - MIN( col0 ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-3315
SELECT - - MIN ( col0 ) AS col2 FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3316
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) NOT IN ( + + 28, col2 - + col1, col0 + CAST( - 42 AS DECIMAL ) * - ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-3316
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) NOT IN ( + + 28, col2 - + col1, col0 + CAST ( - 42 AS REAL ) * - ( - col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3317
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3317
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL - + COUNT( - 73 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - + COUNT ( - 73 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT - + ( 44 ) IN ( 26, col0 )
----
-14
-47
-5

query I rowsort
SELECT + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col1
----

query I rowsort
SELECT ALL - col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 > + col0 * - 72
----

query I rowsort
SELECT ALL - col1 + - 81 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col1 - + col1 AND 51 * - 61
----

query I rowsort
SELECT ALL + 16 FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col1 + col2 col2 FROM tab1
----
14
110
47
115
5
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + COUNT( ALL col0 ) + + 70 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + COUNT ( ALL col0 ) + + 70 FROM tab1
----
73

query I rowsort
SELECT DISTINCT + 3 + - 82 AS col0 FROM tab1 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3328
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 92 / - - CAST( - + 8 AS SIGNED ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 92 / - - CAST ( - + 8 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 + + + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + 61 + - col2 FROM tab0 AS cor0
----
-38
14
51

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 - - col0 - - 49 + - + 37 * - col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT DISTINCT + 67 - - - 81 FROM tab0 AS cor0 WHERE NULL > col2 / + - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * 15 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT DISTINCT - + 69 DIV + - 77 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT - + 69 / + - 77 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL + SUM( ALL - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL + SUM ( ALL - col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT ALL + 75 * - COUNT( * ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL + 75 * - COUNT ( * ) FROM tab0
----
-225

query I rowsort
SELECT 88 * + 24 FROM tab1
----
2112
2112
2112

onlyif mysql # DIV for integer division: 
query I rowsort label-3339
SELECT + 56 DIV + + 4 AS col0 FROM tab0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3339
SELECT + 56 / + + 4 AS col0 FROM tab0
----
14
14
14

query II rowsort
SELECT DISTINCT col1 * + col0 * 94 AS col1, 84 AS col0 FROM tab1
----
39950
84
402038
84
67116
84

query I rowsort
SELECT col1 * 40 AS col0 FROM tab2
----
2040
2680
3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + 93 FROM tab2
----
23
93
40
93
58
93

query I rowsort
SELECT 37 * + col1 FROM tab2
----
1887
2479
2849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT ALL + CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( + - col0 ) FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT 10 AS col1, col0 + + 15 FROM tab0
----
10
102
10
112
10
30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3347
SELECT + 76, - 36 / ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
76
NULL
76
NULL
76
NULL

skipif mysql # not compatible
query II rowsort label-3347
SELECT + 76, - 36 / ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
76
NULL
76
NULL
76
NULL

query II rowsort
SELECT col1 AS col2, + 44 FROM tab1
----
14
44
47
44
5
44

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT - MIN( ALL col1 ) + - + 60 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT - MIN ( ALL col1 ) + - + 60 FROM tab1 AS cor0
----
-65

query II rowsort
SELECT ALL + 35, col0 AS col1 FROM tab2 AS cor0
----
35
46
35
64
35
75

query I rowsort
SELECT + + col1 * 41 * - - 35 + - 42 + 28 FROM tab1 AS cor0
----
20076
67431
7161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + 97 col2 FROM tab2 AS cor0
----
2698
4586
6026

query I rowsort
SELECT + + col2 * - - col1 * - + col1 FROM tab2 cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - + ( MIN( ALL - - col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3355
SELECT - + ( MIN ( ALL - - col0 ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT ( - 72 ) AS col0 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT ALL + 2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col1 FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - + 65 * + MIN( - ( + col0 ) ) AS col1 FROM tab1 WHERE + 66 > - - col1 + - - col1 + + 79 + col2 + - col2 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - + 65 * + MIN ( - ( + col0 ) ) AS col1 FROM tab1 WHERE + 66 > - - col1 + - - col1 + + 79 + col2 + - col2 + + col1
----
NULL

query I rowsort
SELECT ALL 68 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( - - col0, 16 * + col1 * col0, - + 19 )
----

query I rowsort
SELECT 77 AS col0 FROM tab0 cor0
----
77
77
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + + col1 NOT BETWEEN - col1 AND - col0 OR NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT + + ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL ( - col0 ) * - 40 FROM tab0
----
3480
3880
600

query I rowsort
SELECT + 93 - 71 FROM tab1
----
22
22
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / + + 99 IS NULL
----

query I rowsort
SELECT - - 8 AS col2 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + ( col2 ) AS col0 FROM tab1 cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col0 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT + - COUNT( DISTINCT + - 11 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3372
SELECT DISTINCT + - COUNT ( DISTINCT + - 11 ) col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - 67 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT MAX( ALL + - col0 ) col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3375
SELECT MAX ( ALL + - col0 ) col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= - 12
----

query I rowsort
SELECT ( + 82 ) * col1 AS col2 FROM tab2
----
4182
5494
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT 65 * - COUNT( * ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-3378
SELECT 65 * - COUNT ( * ) FROM tab0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * - col1 col0 FROM tab2
----
-153
-201
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT + MIN( ALL - CAST( - - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3380
SELECT + MIN ( ALL - CAST ( - - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT ( - - 26 ) AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3382
SELECT - col2 DIV 58 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-3382
SELECT - col2 / 58 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-59

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 IN ( + col0 - + - ( + col1 ), 86 + col2 + + col1 * - col0 * - 32 * + ( + col2 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - 19 * - - 25 / - ( - col2 ) > NULL
----

query I rowsort
SELECT 3 + 66 FROM tab0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT - MAX( + col2 ) + CAST( 6 AS SIGNED ) AS col2 FROM tab2 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3387
SELECT - MAX ( + col2 ) + CAST ( 6 AS INTEGER ) AS col2 FROM tab2 cor0
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > col2
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3390
SELECT ALL CAST( + 95 AS SIGNED ) + + 79 + + - col0 DIV col2 col2 FROM tab1
----
173
173
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3390
SELECT ALL CAST ( + 95 AS INTEGER ) + + 79 + + - col0 / col2 col2 FROM tab1
----
173
173
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT - CAST( NULL AS SIGNED ) * - 58 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT - CAST ( NULL AS INTEGER ) * - 58 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 38 * - - col2 AS col2 FROM tab2
----
-1520
-2204
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT col1 DIV + 2 - col2 FROM tab0
----
-7
-99
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT col1 / + 2 - col2 FROM tab0
----
-7
-99
0

query I rowsort
SELECT DISTINCT - col2 + - ( - 24 ) FROM tab2 AS cor0
----
-16
-34
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3395
SELECT 91 - - CAST( NULL AS SIGNED ) AS col2, - 32 FROM tab2 AS cor0
----
NULL
-32
NULL
-32
NULL
-32

skipif mysql # not compatible
query II rowsort label-3395
SELECT 91 - - CAST ( NULL AS INTEGER ) AS col2, - 32 FROM tab2 AS cor0
----
NULL
-32
NULL
-32
NULL
-32

query I rowsort
SELECT ALL + col2 * + + col0 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 <> + 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 > + col0 + 94 * ( - - col1 ) )
----

query II rowsort
SELECT ALL ( - 25 ) AS col1, 34 FROM tab1
----
-25
34
-25
34
-25
34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3400
SELECT ALL - 16 * - + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - 16 * - + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT SUM( DISTINCT + 1 ) col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3401
SELECT DISTINCT SUM ( DISTINCT + 1 ) col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT MIN( + + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT MIN ( + + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT ALL + col1 * col1 DIV - 96 AS col1 FROM tab0 AS cor0
----
-4
-68
0

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + col1 * col1 / - 96 AS col1 FROM tab0 AS cor0
----
-4
-68
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3404
SELECT + + CAST( + - COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT + + CAST ( + - COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL col1 * - col2 + - - col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3406
SELECT ALL - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT - COUNT( * ) * - 84 AS col1 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-3407
SELECT - COUNT ( * ) * - 84 AS col1 FROM tab1
----
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3408
SELECT ALL COUNT( * ) DIV - 12 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL COUNT ( * ) / - 12 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 86 * - + col2 AS col2 FROM tab1
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT SUM( + + col0 ) * + - COUNT( * ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-3411
SELECT SUM ( + + col0 ) * + - COUNT ( * ) FROM tab2
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + + COUNT( * ) + - 72 col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3412
SELECT + + COUNT ( * ) + - 72 col0 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT col1 + + 97 FROM tab2 cor0
----
148
164
174

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 18 ) NOT BETWEEN 43 AND col0
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( col0 + ( - 93 ) / col2 ) AND col0 - col1
----

query I rowsort
SELECT ALL - 39 AS col0 FROM tab2 WHERE 14 BETWEEN 50 - col1 AND 18
----
-39
-39
-39

query I rowsort
SELECT col2 + 13 * 91 AS col1 FROM tab2
----
1206
1223
1241

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 BETWEEN ( + col0 * - 33 ) AND - col1 + - col2
----

query I rowsort
SELECT DISTINCT ( 99 ) * + col0 FROM tab2
----
4554
6336
7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT ( - col0 ) - + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT ( - col0 ) - + CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 70 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 57 + - COUNT( * ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3425
SELECT 57 + - COUNT ( * ) AS col2 FROM tab0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col0 FROM tab1
----
12

query I rowsort
SELECT + ( - col0 ) + + 74 AS col2 FROM tab0
----
-13
-23
59

query I rowsort
SELECT DISTINCT col2 * - 95 AS col0 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT MIN( - 30 ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT MIN ( - 30 ) AS col1 FROM tab1
----
-30

query I rowsort
SELECT col1 * 51 + 71 * 81 FROM tab0
----
5802
6822
9882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) * 44 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) * 44 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col0 * col0 + col1 FROM tab2
----
-2065
-4019
-5558

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 61 * - col0 col1 FROM tab1
----
-3111
-5185
-5551

query I rowsort
SELECT + col2 * 95 + - ( col0 + - 19 ) * 98 FROM tab0
----
-5714
1761
4857

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT COUNT( * ) + + 29 AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3436
SELECT COUNT ( * ) + + 29 AS col1 FROM tab1
----
32

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= ( col1 )
----
46
51
23
64
77
40

query I rowsort
SELECT - col1 * 51 AS col2 FROM tab2
----
-2601
-3417
-3927

query I rowsort
SELECT + col0 * - ( ( - col2 ) ) AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col2 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 79 + col2 AS col2 FROM tab1
----
138
147
175

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= ( - col0 * 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT COUNT( * ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND 10 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-3443
SELECT COUNT ( * ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND 10 * - col2
----
0

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT ALL CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1 WHERE NOT 1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1 WHERE NOT 1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - ( - MAX( DISTINCT + 18 ) ) AS col2 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3446
SELECT - ( - MAX ( DISTINCT + 18 ) ) AS col2 FROM tab2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT + CAST( - ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3447
SELECT + CAST ( - ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT - col0 FROM tab2 AS cor0 WHERE ( col2 ) <= ( + col1 * 90 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3448
SELECT - col0 FROM tab2 AS cor0 WHERE ( col2 ) <= ( + col1 * 90 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - COUNT( DISTINCT col0 ) * 49 FROM tab1 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3449
SELECT - COUNT ( DISTINCT col0 ) * 49 FROM tab1 cor0
----
-147

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( 18 )
----

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( - 19 - - col1 )
----

query I rowsort
SELECT ALL col1 * - 33 - col2 FROM tab1 AS cor0
----
-1619
-224
-558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col0 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL + MIN( + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL + MIN ( + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN ( col2 * col0 ) AND ( col1 + 37 * + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3456
SELECT COUNT( * ) DIV + 96 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3456
SELECT COUNT ( * ) / + 96 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE col0 + col1 * + 34 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT + col0 DIV + ( - 68 ) AS col0 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT + col0 / + ( - 68 ) AS col0 FROM tab0 cor0
----
-1
-1
0

query I rowsort
SELECT + 69 AS col1 FROM tab0 AS cor0 WHERE NOT 31 >= ( + col1 + col0 )
----
69
69
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 37 ) BETWEEN ( NULL ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col1 * - ( 70 ) FROM tab2 cor0
----
-3570
-4690
-5390

query I rowsort
SELECT ALL + 45 * 81 AS col2 FROM tab1 AS cor0
----
3645
3645
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT 60 * COUNT( * ) AS col1 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT 60 * COUNT ( * ) AS col1 FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + ( 51 ) * COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 + col1 > ( col2 )
----
102

skipif mysql # not compatible
query I rowsort label-3465
SELECT + ( 51 ) * COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 + col1 > ( col2 )
----
102

query I rowsort
SELECT DISTINCT - ( + 47 ) AS col0 FROM tab0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL + 4 * - CAST( NULL AS SIGNED ) + AVG ( col1 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL + 4 * - CAST ( NULL AS INTEGER ) + AVG ( col1 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + ( - 51 ) * 61 AS col2 FROM tab2 AS cor0
----
-3111
-3111
-3111

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT - COUNT( * ) * 75 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT - COUNT ( * ) * 75 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT DISTINCT + 95 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
95

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 16 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT - COUNT( DISTINCT col2 ) * + 10 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT - COUNT ( DISTINCT col2 ) * + 10 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 85 * + 41 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT DISTINCT - 43 DIV col2 + 95 * col1 - col1 FROM tab0 AS cor0
----
1970
7614
94

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - 43 / col2 + 95 * col1 - col1 FROM tab0 AS cor0
----
1970
7614
94

query I rowsort
SELECT DISTINCT + col1 + + 36 - - 63 AS col2 FROM tab2 AS cor0
----
150
166
176

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 7 * col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT ALL + - CAST( NULL AS SIGNED ) * + col0 + - col0 - - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col0 + - col0 - - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT ALL + + 99 DIV col1 + + + col0 * 98 FROM tab1 AS cor0
----
5005
8349
8920

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + + 99 / col1 + + + col0 * 98 FROM tab1 AS cor0
----
5005
8349
8920

query I rowsort
SELECT - 38 AS col2 FROM tab1 WHERE + col2 * - col2 IS NOT NULL
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3480
SELECT DISTINCT * FROM tab1 WHERE NOT - 46 * - col1 * col1 + - 56 * CAST( NULL AS SIGNED ) <> - col2 / ( ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-3480
SELECT DISTINCT * FROM tab1 WHERE NOT - 46 * - col1 * col1 + - 56 * CAST ( NULL AS INTEGER ) <> - col2 / ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL ( - ( + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL ( - ( + COUNT ( * ) ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL col0 + - + col2 + col2 - + 54 * - col2 AS col2 FROM tab1
----
3271
3763
5235

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT + col2 DIV 32 * - + col2 FROM tab0
----
-297
-47
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT + col2 / 32 * - + col2 FROM tab0
----
-297
-47
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT ( - - CAST( NULL AS SIGNED ) ) - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT ( - - CAST ( NULL AS INTEGER ) ) - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 52 + - col0 AS col1 FROM tab0
----
-35
-45
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + - 72 + + 67 + 9 * col0 col2 FROM tab2
----
455
635
745

query I rowsort
SELECT DISTINCT + col2 - + col1 - + - 76 * + col1 AS col2 FROM tab1
----
1146
3593
434

query III rowsort
SELECT * FROM tab2 WHERE - + 42 < ( - col2 )
----
46
51
23
64
77
40

query I rowsort
SELECT ( - 86 ) * col0 FROM tab1 WHERE NOT ( + 33 ) IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON + 13 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT col1 * col1 FROM tab2 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + 48 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * 69 IN ( + - 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL 57 - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - 53 * - 27 * - col1 AND - - 49 + + col1
----
57

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL 57 - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - 53 * - 27 * - col1 AND - - 49 + + col1
----
57

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 * - col0 ) IS NOT NULL
----

query I rowsort
SELECT - + 59 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-59
-59
-59

query II rowsort
SELECT DISTINCT - col1, - 81 + - col0 + - 95 AS col2 FROM tab2
----
-51
-222
-67
-251
-77
-240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3499
SELECT + col2, ( + CAST( - 58 AS SIGNED ) ) + + col0 FROM tab1
----
59
27
68
33
96
-7

skipif mysql # not compatible
query II rowsort label-3499
SELECT + col2, ( + CAST ( - 58 AS INTEGER ) ) + + col0 FROM tab1
----
59
27
68
33
96
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - SUM( ALL - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3500
SELECT - SUM ( ALL - col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE ( + 55 * 67 + col2 * + 17 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE ( + 55 * 67 + col2 * + 17 ) IS NULL
----
0

query II rowsort
SELECT DISTINCT col1 AS col1, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3503
SELECT DISTINCT + COUNT( * ) DIV - 27 + 80 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + COUNT ( * ) / - 27 + 80 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT 65 - + + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT 65 - + + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
56

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 = + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + col0 ) * 90 FROM tab1 WHERE NOT ( ( ( - col1 IS NULL ) ) )
----
4590
7650
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * 58 col0 FROM tab0
----
3944
3944
3944

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 60 * + - 93 / - - 22 IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3509
SELECT ALL COUNT( * ) * + COUNT( DISTINCT + col1 ) + - CAST( + 38 AS SIGNED ) + + + SUM( DISTINCT + col1 ) FROM tab2
----
166

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL COUNT ( * ) * + COUNT ( DISTINCT + col1 ) + - CAST ( + 38 AS INTEGER ) + + + SUM ( DISTINCT + col1 ) FROM tab2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab1 WHERE NULL > NULL
----
0

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE - col0 BETWEEN - 71 * + + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT ALL + col2 DIV - col2 col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3512
SELECT ALL + col2 / - col2 col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT - col1 + - - col0 AS col1 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 93, + 3 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT 23 * col0 - + col1 FROM tab0 AS cor0
----
1980
2230
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT - - 8 + col2 * + - CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1165
-3072
-3878

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3520
SELECT - - 8 + col2 * + - CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1165
-3072
-3878

query I rowsort
SELECT + ( col1 ) + + - ( - - col0 ) FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3522
SELECT DISTINCT SUM( 77 ) FROM tab0 AS cor0 WHERE ( NOT - + CAST( - - col1 AS DECIMAL ) * + ( + col2 ) NOT IN ( 29 + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT SUM ( 77 ) FROM tab0 AS cor0 WHERE ( NOT - + CAST ( - - col1 AS REAL ) * + ( + col2 ) NOT IN ( 29 + col0 ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * + col0 * 54 * + col2 + ( - col1 ) col0 FROM tab2 AS cor0
----
13685683
23255033
5656017

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT ( + MAX( - - 27 ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT ( + MAX ( - - 27 ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT 62 - + col1 - col0 * col1 AS col0 FROM tab1
----
-368
-4262
-666

query III rowsort
SELECT * FROM tab0 WHERE 87 >= + col1 / + col1 * + + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0, + col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL + col0 * - - col0 * + + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + col0 * - - col0 * + + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL + MAX( - + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + MAX ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3531
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * col2 NOT BETWEEN NULL AND ( + + ( + 63 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3533
SELECT ALL + COUNT( * ) DIV - - SUM( - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + COUNT ( * ) / - - SUM ( - col2 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT - - ( + - 17 ) FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL ( - + col1 ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT 13 * + COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT 13 * + COUNT ( * ) FROM tab0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * + - col1 col2 FROM tab2
----
-4080
-5360
-6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3539
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT + - 4 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT + - 4 / + col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + col0 * - + 66 AS col1, + col0 AS col1 FROM tab2 AS cor0
----
-3036
46
-4224
64
-4950
75

query I rowsort
SELECT - 22 * - + col1 * col1 FROM tab0 AS cor0
----
144342
22
9702

query I rowsort
SELECT col0 * 58 + + - 22 FROM tab2 AS cor0
----
2646
3690
4328

query I rowsort
SELECT - col2 + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * + col2 - - 82 - + col2 + - - col0 + + + col0 * 82 - - - 61 * - ( - col1 ) * col2 * + col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 21 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + col0 * + col2 + - col2 * 17 FROM tab2
----
1944
3439
713

query I rowsort
SELECT ALL col2 + col2 + + col2 AS col0 FROM tab1 AS cor0
----
177
204
288

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( + 28 IS NULL ) OR ( + 78 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ( + + COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 70, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT ( + + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 70, col2 )
----
0

query I rowsort
SELECT + - col1 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL < col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < col2 * col0
----
0

query I rowsort
SELECT ALL + 45 + - col1 + 69 AS col0 FROM tab0 AS cor0
----
113
33
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3555
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col2 AND + - CAST( + - col0 AS SIGNED ) / + ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-3555
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col2 AND + - CAST ( + - col0 AS INTEGER ) / + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3556
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col2 * col2, + 82 AS col0 FROM tab0
----
100
82
2209
82
9801
82

query II rowsort
SELECT - col1 * - col1 AS col2, + 88 FROM tab0
----
1
88
441
88
6561
88

query I rowsort
SELECT ALL + 6 * col2 * + 20 AS col0 FROM tab1
----
11520
7080
8160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT ALL ( MAX( DISTINCT + 87 ) ) DIV - 84 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL ( MAX ( DISTINCT + 87 ) ) / - 84 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT col2 DIV + 40 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3561
SELECT col2 / + 40 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL - + col0 FROM tab2 WHERE NOT - + col1 + + 52 - + 87 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - + 41 AS col0 FROM tab2
----
-1640
-2378
-943

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * - col1 = NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT + SUM( DISTINCT - 98 ) AS col2, - COUNT( * ) FROM tab0
----
-98
-3

skipif mysql # not compatible
query II rowsort label-3565
SELECT + SUM ( DISTINCT - 98 ) AS col2, - COUNT ( * ) FROM tab0
----
-98
-3

query I rowsort
SELECT DISTINCT - - 1 * + - 40 * col0 AS col2 FROM tab1 AS cor0
----
-2040
-3400
-3640

query I rowsort
SELECT - - col1 / col2 / - - ( - 36 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT + + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3569
SELECT + + col1 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT - - col2 DIV + + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3570
SELECT - - col2 / + + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT MIN( - 44 ) AS col2 FROM tab1 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3571
SELECT MIN ( - 44 ) AS col2 FROM tab1 cor0
----
-44

query I rowsort
SELECT col1 * col0 * + 25 AS col0 FROM tab2
----
123200
125625
58650

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT COUNT( ALL - 21 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3573
SELECT COUNT ( ALL - 21 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 4 ) col0 FROM tab0
----
4

query I rowsort
SELECT ALL 72 * + col0 + col1 FROM tab2
----
3363
4685
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT + SUM( col1 ) * + 17 + - COUNT( * ) FROM tab2
----
3312

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + SUM ( col1 ) * + 17 + - COUNT ( * ) FROM tab2
----
3312

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT ALL col2 + + - col2 DIV - + col0 FROM tab0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL col2 + + - col2 / - + col0 FROM tab0
----
10
100
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT MIN( 74 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT MIN ( 74 ) FROM tab0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT - col1 * + col2 * + 23 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT - col1 * + col2 * + 23 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + ( + - 47 ) ) FROM tab0 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT + MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT + 23 / + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3583
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, 76 col2 FROM tab1 AS cor0 WHERE - 12 BETWEEN + col1 AND 79
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3583
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 76 col2 FROM tab1 AS cor0 WHERE - 12 BETWEEN + col1 AND 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL - MIN( - 54 ) * + 9 + + AVG ( col2 ) col1 FROM tab1 AS cor0 WHERE NOT - col2 / + 78 / + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3584
SELECT ALL - MIN ( - 54 ) * + 9 + + AVG ( col2 ) col1 FROM tab1 AS cor0 WHERE NOT - col2 / + 78 / + + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + + 11 + + COUNT( * ) + + - 37 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + + 11 + + COUNT ( * ) + + - 37 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col0 + + + 55 FROM tab0 cor0
----
142
152
70

query I rowsort
SELECT ALL + + 16 + - - col1 AS col0 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT + col2 * + + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT COUNT( * ) * - - MAX( - col0 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT COUNT ( * ) * - - MAX ( - col0 ) FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + - COUNT( * ) * - 24 AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + - COUNT ( * ) * - 24 AS col1 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL 1 * + ( + 44 ) AS col1 FROM tab0
----
44
44
44

query II rowsort
SELECT col1, 90 AS col1 FROM tab0
----
1
90
21
90
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT - + 95 * + 3 * - - COUNT( ALL - 58 ) FROM tab0 WHERE NOT + 15 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT - + 95 * + 3 * - - COUNT ( ALL - 58 ) FROM tab0 WHERE NOT + 15 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col2 / + + 46 AND NOT NULL <> 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT MAX( - - 23 ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT MAX ( - - 23 ) FROM tab0
----
23

query I rowsort
SELECT ALL - + 87 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * col0 * - + ( col2 ) * 53 AS col0 FROM tab2
----
1289702
13371900
5427200

query II rowsort
SELECT - col0 AS col1, - 14 FROM tab0
----
-15
-14
-87
-14
-97
-14

query I rowsort
SELECT DISTINCT col2 * col0 * + + col1 AS col1 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL + - ( - + COUNT( * ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3600
SELECT ALL + - ( - + COUNT ( * ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL - 61 + + col1 + - col2 AS col1 FROM tab2
----
-24
-33
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 50 ) col2 FROM tab2
----
-50

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + COUNT( 37 ) AS col0 FROM tab0 WHERE NOT + - col1 * + col0 + - - col2 + + col2 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3604
SELECT + COUNT ( 37 ) AS col0 FROM tab0 WHERE NOT + - col1 * + col0 + - - col2 + + col2 >= ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT + col2 DIV + + 67 + + col0 + + col1 + - - 63 * + + col1 + - col0 + col1 + + 88 AS col0 FROM tab2 AS cor0
----
3403
4443
5093

skipif mysql # not compatible
query I rowsort label-3605
SELECT + col2 / + + 67 + + col0 + + col1 + - - 63 * + + col1 + - col0 + col1 + + 88 AS col0 FROM tab2 AS cor0
----
3403
4443
5093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT - - col0 + - - col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL AND NOT ( NULL ) NOT BETWEEN NULL AND - ( col0 )
----

skipif mysql # not compatible
query I rowsort label-3606
SELECT - - col0 + - - col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL AND NOT ( NULL ) NOT BETWEEN NULL AND - ( col0 )
----

query I rowsort
SELECT ALL + 49 + + 79 FROM tab0 AS cor0
----
128
128
128

query I rowsort
SELECT + - col2 + + + ( - col2 ) + + col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3609
SELECT * FROM tab1 AS cor0 WHERE + ( + - 79 ) + CAST( + col1 AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3609
SELECT * FROM tab1 AS cor0 WHERE + ( + - 79 ) + CAST ( + col1 AS REAL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT DISTINCT + SUM( 11 ) * - - 85 FROM tab1 AS cor0
----
2805

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT + SUM ( 11 ) * - - 85 FROM tab1 AS cor0
----
2805

query I rowsort
SELECT DISTINCT col0 + - 37 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22
50
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + - col0 ) NOT BETWEEN 15 / col0 + - + 79 AND - col0
----

query I rowsort
SELECT ALL - - col2 * col1 * + 42 FROM tab0 cor0
----
159894
4158
8820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT + + AVG ( + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NULL > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT + + AVG ( + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NULL > col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < - + ( - 22 ) * 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col0 col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT col2 + col2 + + col0 * - - col0 AS col1 FROM tab0
----
319
7589
9607

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT col1 DIV + + col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3618
SELECT col1 / + + col0 AS col0 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL ( 47 ) + ( + - COUNT( * ) ) AS col2 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL ( 47 ) + ( + - COUNT ( * ) ) AS col2 FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT 98 * - + COUNT( * ) AS col2 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-3620
SELECT 98 * - + COUNT ( * ) AS col2 FROM tab1
----
-294

query II rowsort
SELECT + col1 AS col2, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT ALL 93 + + - 16 AS col2 FROM tab2
----
77
77
77

query I rowsort
SELECT DISTINCT - col0 + col2 * - 39 AS col0 FROM tab1 cor0
----
-2386
-2743
-3795

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL - 56 * ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - 56 * ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
168

query I rowsort
SELECT DISTINCT + 6 - col1 AS col1 FROM tab2 AS cor0
----
-45
-61
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT - ( ( + COUNT( + col0 ) ) ) AS col2 FROM tab0 WHERE NOT + col0 * - - 14 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - ( ( + COUNT ( + col0 ) ) ) AS col2 FROM tab0 WHERE NOT + col0 * - - 14 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - col1 <= + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab2 cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3630
SELECT - SUM( col0 ), + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-185
3

skipif mysql # not compatible
query II rowsort label-3630
SELECT - SUM ( col0 ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-185
3

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL = col1 * + 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT DISTINCT COUNT( DISTINCT - col0 ), - MIN( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3
-15

skipif mysql # not compatible
query II rowsort label-3632
SELECT DISTINCT COUNT ( DISTINCT - col0 ), - MIN ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - ( + 48 ) AND - col0 - - - col1 + + 3
----

query I rowsort
SELECT ALL - ( + + 62 ) AS col1 FROM tab1
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT - 36, COUNT( * ) AS col1 FROM tab2
----
-36
3

skipif mysql # not compatible
query II rowsort label-3635
SELECT - 36, COUNT ( * ) AS col1 FROM tab2
----
-36
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3636
SELECT * FROM tab2 WHERE NOT 31 + + + CAST( ( + col1 ) AS SIGNED ) + col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3636
SELECT * FROM tab2 WHERE NOT 31 + + + CAST ( ( + col1 ) AS INTEGER ) + col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT - 25 * + + MIN( ( col2 ) ) FROM tab0
----
-250

skipif mysql # not compatible
query I rowsort label-3637
SELECT - 25 * + + MIN ( ( col2 ) ) FROM tab0
----
-250

query I rowsort
SELECT ALL 29 + + - col0 AS col2 FROM tab1 WHERE NOT - + col2 + - - ( + col2 ) >= col1
----
-22
-56
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3639
SELECT - COUNT( * ) DIV - + SUM( col1 ) * + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3639
SELECT - COUNT ( * ) / - + SUM ( col1 ) * + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT col0 * - - col0 * - + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 AND ( + + 2 )
----

query I rowsort
SELECT - - 98 * col1 FROM tab0 AS cor0
----
2058
7938
98

query I rowsort
SELECT DISTINCT + 64 * + 63 FROM tab0 AS cor0
----
4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT - COUNT( * ) AS col0, ( + + COUNT( * ) ) + ( + 2 ) AS col2 FROM tab2
----
-3
5

skipif mysql # not compatible
query II rowsort label-3644
SELECT - COUNT ( * ) AS col0, ( + + COUNT ( * ) ) + ( + 2 ) AS col2 FROM tab2
----
-3
5

query I rowsort
SELECT ALL ( 23 ) FROM tab1
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT ALL - col0 + + - col1 DIV 63 AS col0 FROM tab2 cor0
----
-46
-65
-76

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL - col0 + + - col1 / 63 AS col0 FROM tab2 cor0
----
-46
-65
-76

query I rowsort
SELECT ALL + + 82 * - 6 + + col1 + col0 AS col2 FROM tab0 cor0
----
-384
-394
-396

query I rowsort
SELECT + col1 + - + 46 AS col1 FROM tab2 AS cor0
----
21
31
5

query II rowsort
SELECT ALL - ( - - col0 ) AS col1, - 6 FROM tab0
----
-15
-6
-87
-6
-97
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT 68 * + SUM( + col2 ) FROM tab0 WHERE NULL IS NULL
----
10608

skipif mysql # not compatible
query I rowsort label-3650
SELECT 68 * + SUM ( + col2 ) FROM tab0 WHERE NULL IS NULL
----
10608

query II rowsort
SELECT col1 + - - ( - col0 ) - + - 23 + + + col2, col1 FROM tab2
----
51
51
73
67
76
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT + MAX( - col1 ) * 95 + 48 FROM tab1
----
-427

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + MAX ( - col1 ) * 95 + 48 FROM tab1
----
-427

query I rowsort
SELECT DISTINCT + col1 - - col0 + - + col0 * + col1 * + - col2 * 81 * + + col2 FROM tab0 WHERE col2 <> col0
----
14798808
217398831
77006555

query I rowsort
SELECT ALL - col2 + 89 + + col0 FROM tab0
----
166
57
87

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 > NULL
----

query I rowsort
SELECT DISTINCT - 83 + + - col2 AS col2 FROM tab2 AS cor0
----
-106
-123
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT + MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3657
SELECT + MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - - 77 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 WHERE NOT + 27 NOT BETWEEN 49 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 27 NOT BETWEEN 49 AND col2
----
0

query I rowsort
SELECT col0 - + + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 75 + + col2 AS col0 FROM tab2
----
115
133
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL MIN( + + col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3662
SELECT ALL MIN ( + + col1 ) col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + COUNT( - 73 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3663
SELECT + COUNT ( - 73 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT - col2 * - - 15 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT - col2 * - - 15 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT - 47, COUNT( ALL ( col2 ) ) col2 FROM tab2 AS cor0
----
-47
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3665
SELECT - 47, COUNT ( ALL ( col2 ) ) col2 FROM tab2 AS cor0
----
-47
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT DISTINCT + CAST( + CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS SIGNED ) + + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + CAST ( + CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS INTEGER ) + + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) * - 66 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + col2 / + CAST ( NULL AS INTEGER ) * - 66 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3668
SELECT - CAST( NULL AS SIGNED ) * 9 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT - CAST ( NULL AS INTEGER ) * 9 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + COUNT( - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3669
SELECT + COUNT ( - col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 14 * - ( + - 18 ) + - col1 AS col2 FROM tab1 AS cor0
----
-257
-266
-299

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 33 * + 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 AS col2 FROM tab2 WHERE NOT ( + col0 ) + - 40 - 17 + 88 * + col0 * - col2 + - + col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 / + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3674
SELECT col2 FROM tab1 WHERE NOT ( NULL IN ( - ( - - CAST( NULL AS DECIMAL ) ) / - + col0, col1, - - col0, - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-3674
SELECT col2 FROM tab1 WHERE NOT ( NULL IN ( - ( - - CAST ( NULL AS REAL ) ) / - + col0, col1, - - col0, - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 19 >= + + ( 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 84 AS col1 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT col0 * col2 + + col1 * - + col1 AS col2 FROM tab2 AS cor0
----
-139
-1543
-3369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT CAST( + + col2 AS SIGNED ) FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3678
SELECT CAST ( + + col2 AS INTEGER ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT - - ( + ( 5 ) ) FROM tab1 AS cor0 WHERE NOT 13 IS NOT NULL
----

query I rowsort
SELECT - + 70 * + + col2 FROM tab2 AS cor0
----
-1610
-2800
-4060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT DISTINCT - CAST( + + 19 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT - CAST ( + + 19 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT + + 0 * - CAST( NULL AS SIGNED ) - - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT + + 0 * - CAST ( NULL AS INTEGER ) - - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 65 AS col0 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL + 34 + + 36 AS col1 FROM tab0
----
70
70
70

query II rowsort
SELECT DISTINCT - 23 AS col0, 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-23
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + COUNT( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + COUNT ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * - + 58 IS NOT NULL
----

query II rowsort
SELECT ALL + 17, 44 + + + col2 AS col0 FROM tab0 AS cor0
----
17
143
17
54
17
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3689
SELECT ALL + CAST( NULL AS DECIMAL ) - + 86 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3689
SELECT ALL + CAST ( NULL AS REAL ) - + 86 col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 / + col2 AS col2, - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col2 AS col1, + col1 * col1 AS col0 FROM tab2
----
23
2601
40
5929
58
4489

query I rowsort
SELECT + ( - col1 ) * col2 AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT MIN( + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3693
SELECT MIN ( + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT 12 + - + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT 12 + - + COUNT ( * ) FROM tab0
----
9

query II rowsort
SELECT ALL 47, col1 AS col0 FROM tab0
----
47
1
47
21
47
81

query I rowsort
SELECT - 0 * + 81 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL + col0 / + CAST( NULL AS SIGNED ) + + + 7 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL + col0 / + CAST ( NULL AS INTEGER ) + + + 7 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT + COUNT( * ) - - 63 - 52 * + COUNT( * ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-3698
SELECT + COUNT ( * ) - - 63 - 52 * + COUNT ( * ) FROM tab0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 44 * + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 44 * + col2 FROM tab1
----
NULL

query I rowsort
SELECT 62 - 57 AS col2 FROM tab0
----
5
5
5

query II rowsort
SELECT ALL col0 * 50 * - col1 + col0 * col0 - - col1 AS col2, 42 FROM tab2 cor0
----
-115133
42
-242227
42
-245558
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT DISTINCT + 6 DIV - 67 * + col0 DIV + - 41 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + 6 / - 67 * + col0 / + - 41 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab2 cor0
----
25

query I rowsort
SELECT col1 * - - col1 FROM tab0 AS cor0 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 / - + col0 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT MAX( DISTINCT + 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3707
SELECT MAX ( DISTINCT + 36 ) FROM tab2 AS cor0
----
36

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + - 1 AND + + 30
----

query II rowsort
SELECT 63 AS col0, col2 * - - col0 FROM tab1
----
63
4896
63
5015
63
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col1 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL COUNT( + - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL COUNT ( + - col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + ( - 76 ) * - - col0 + + + col2 AS col2 FROM tab1
----
-3780
-6401
-6848

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + ( ( + - col2 ) ) - - col2 * - 11 / ( - + col1 ) * ( + - col0 ) * + 90 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL - MAX( - col2 ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3715
SELECT ALL - MAX ( - col2 ) col0 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT - col1 DIV col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 > + + col0
----
-1

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - col1 / col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 > + + col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT + MAX( - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + MAX ( - - col2 ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + col0 col2, col1 * - col1 FROM tab0
----
196
-1
62
-6561
97
-441

query I rowsort
SELECT DISTINCT - 54 FROM tab1 WHERE NOT - + ( - - 70 ) IN ( + ( + + col2 ) + - + col1, + col1, 59, 90 )
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3720
SELECT - - AVG ( DISTINCT + 92 ) AS col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT - - AVG ( DISTINCT + 92 ) AS col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE + 9 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT ALL col1 + + CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL col1 + + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT - COUNT( * ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3723
SELECT - COUNT ( * ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 + col0 + - col2 FROM tab0
----
-1
49
98

query I rowsort
SELECT col1 * - - 49 + 24 + col1 AS col2 FROM tab1
----
2374
274
724

query III rowsort
SELECT * FROM tab2 WHERE + col1 + 44 NOT BETWEEN NULL AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 72 * - 65 * + 43 FROM tab2
----
10263240
13483080
15495480

query III rowsort
SELECT * FROM tab0 WHERE - 82 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT - COUNT( * ), 25 + + 64 AS col1 FROM tab2 AS cor0
----
-3
89

skipif mysql # not compatible
query II rowsort label-3730
SELECT - COUNT ( * ), 25 + + 64 AS col1 FROM tab2 AS cor0
----
-3
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3731
SELECT DISTINCT + 78 AS col2, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
78
-3

skipif mysql # not compatible
query II rowsort label-3731
SELECT DISTINCT + 78 AS col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
78
-3

query I rowsort
SELECT ALL + + 42 AS col2 FROM tab0 cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3733
SELECT + + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 col0, - col1 FROM tab1 AS cor0
----
-94
-14
-94
-47
-94
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col2 + - col2
----

query II rowsort
SELECT ALL - - col0 AS col2, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3737
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> - CAST( NULL AS SIGNED ) + + 79 * col0 / + - 76
----

skipif mysql # not compatible
query III rowsort label-3737
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> - CAST ( NULL AS INTEGER ) + + 79 * col0 / + - 76
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT + + COUNT( ALL - ( + 98 ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3739
SELECT DISTINCT + + COUNT ( ALL - ( + 98 ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT ALL - ( + - 51 ) DIV 20 col1 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3740
SELECT ALL - ( + - 51 ) / 20 col1 FROM tab2 AS cor0
----
2
2
2

query II rowsort
SELECT col0 AS col1, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT col0 * + + 9 AS col0 FROM tab2 cor0
----
414
576
675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3743
SELECT CAST( - col0 AS SIGNED ) AS col1, col1 + + col1 AS col1 FROM tab2
----
-46
102
-64
154
-75
134

skipif mysql # not compatible
query II rowsort label-3743
SELECT CAST ( - col0 AS INTEGER ) AS col1, col1 + + col1 AS col1 FROM tab2
----
-46
102
-64
154
-75
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT - 67 + - 85 FROM tab2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT COUNT( + + ( + + col0 ) ) * - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3746
SELECT COUNT ( + + ( + + col0 ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT col0 + - 73 FROM tab1
----
-22
12
18

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab0
----
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3751
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS DECIMAL ) AND + + col0
----

skipif mysql # not compatible
query III rowsort label-3751
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS REAL ) AND + + col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT + MAX( DISTINCT - - col1 ) * + 16 - ( - + COUNT( * ) ) FROM tab1
----
755

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + MAX ( DISTINCT - - col1 ) * + 16 - ( - + COUNT ( * ) ) FROM tab1
----
755

query I rowsort
SELECT ALL - col1 + col1 * 82 AS col1 FROM tab2
----
4131
5427
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + - MIN( DISTINCT + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3756
SELECT + - MIN ( DISTINCT + col2 ) FROM tab0 cor0
----
-10

query II rowsort
SELECT DISTINCT + + 16 / + col0 AS col2, col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 32 <= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT IN ( + - col1, 79 + 90 + - col1, - col2, 24 + col2 - + col0 * 22, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 - col1 - + - ( + + col1 ) AS col1, 60 AS col0 FROM tab0
----
1
60
21
60
81
60

query I rowsort
SELECT 79 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
79
79
79

query I rowsort
SELECT 28 * - - 70 FROM tab1 AS cor0
----
1960
1960
1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT col1 < - CAST( NULL AS SIGNED ) + + - 36 + - + 83
----

skipif mysql # not compatible
query I rowsort label-3762
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT col1 < - CAST ( NULL AS INTEGER ) + + - 36 + - + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - MAX( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3763
SELECT - MAX ( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT - col2 * - + col2 AS col2, + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
100
87
2209
15
9801
97

query I rowsort
SELECT DISTINCT + 62 * col1 AS col2 FROM tab1
----
2914
310
868

query I rowsort
SELECT + ( - + col2 ) * col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT + col2 * - CAST( + col2 AS SIGNED ) FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-3767
SELECT + col2 * - CAST ( + col2 AS INTEGER ) FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + 83 >= + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3769
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IN ( col1, CAST( NULL AS SIGNED ) + - + ( - + 72 ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-3769
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IN ( col1, CAST ( NULL AS INTEGER ) + - + ( - + 72 ) + + col1 )
----

query I rowsort
SELECT AVG ( DISTINCT - 16 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT 6 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT 6 / + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT ALL - 25 DIV col2 AS col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - 25 / col2 AS col2 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + 39 * + 36 AS col0 FROM tab2
----
1404

query I rowsort
SELECT ALL 98 + - 89 FROM tab0
----
9
9
9

query I rowsort
SELECT DISTINCT ( + - col0 ) + + col2 * + col2 + + - ( - ( col0 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - - 31 * + - COUNT( * ) + ( - 26 ) FROM tab1 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-3777
SELECT - - 31 * + - COUNT ( * ) + ( - 26 ) FROM tab1 AS cor0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL 30 * 49 + + + COUNT( * ) AS col0 FROM tab0
----
1473

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL 30 * 49 + + + COUNT ( * ) AS col0 FROM tab0
----
1473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( - col1 ) * - 32 * MIN( DISTINCT + + col0 ) + - 20 + + - SUM( col2 ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( - col1 ) * - 32 * MIN ( DISTINCT + + col0 ) + - 20 + + - SUM ( col2 ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) - - + MAX( + col1 ) FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) - - + MAX ( + col1 ) FROM tab2 AS cor0
----
68

query I rowsort
SELECT - 97 * - 69 + - col0 FROM tab2 AS cor0
----
6618
6629
6647

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3782
SELECT + 87 * - + CAST( - 76 AS DECIMAL ) * - col1, - ( col1 ) col1 FROM tab2 cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3782
SELECT + 87 * - + CAST ( - 76 AS REAL ) * - col1, - ( col1 ) col1 FROM tab2 cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT SUM( DISTINCT - 25 ) + - 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-3783
SELECT SUM ( DISTINCT - 25 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT ALL 39 - - CAST( NULL AS SIGNED ), - col1 + col1 col1 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3784
SELECT ALL 39 - - CAST ( NULL AS INTEGER ), - col1 + col1 col1 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT + - 71 + + 51 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL - - col1 - 79 AS col1 FROM tab0 AS cor0
----
-58
-78
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3787
SELECT DISTINCT + col2 AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3787
SELECT DISTINCT + col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3788
SELECT DISTINCT 27 AS col0, 89 DIV + - col1 FROM tab0
----
27
-1
27
-4
27
-89

skipif mysql # not compatible
query II rowsort label-3788
SELECT DISTINCT 27 AS col0, 89 / + - col1 FROM tab0
----
27
-1
27
-4
27
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT SUM( - - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT SUM ( - - col0 ) FROM tab1
----
227

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3790
SELECT * FROM tab1 WHERE NOT + CAST( + 9 AS DECIMAL ) > + 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3790
SELECT * FROM tab1 WHERE NOT + CAST ( + 9 AS REAL ) > + 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 82 * + + col1 FROM tab1
----
1148
3854
410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * - col1 * - - 38 col0 FROM tab2 cor0
----
117040
147668
44574

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 9 * 66 AS col2 FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT + + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL - COUNT( * ) col2 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3795
SELECT ALL - COUNT ( * ) col2 FROM tab1, tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * - col2 col2 FROM tab1
----
5251
6052
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT - col2 DIV + col1 - + + 1 AS col1 FROM tab0 AS cor0
----
-1
-1
-100

skipif mysql # not compatible
query I rowsort label-3797
SELECT - col2 / + col1 - + + 1 AS col1 FROM tab0 AS cor0
----
-1
-1
-100

query II rowsort
SELECT + 25 + + col1, + col0 FROM tab2 cor0
----
102
64
76
46
92
75

query I rowsort
SELECT DISTINCT - 16 * col1 * - 12 FROM tab1 AS cor0
----
2688
9024
960

query I rowsort
SELECT ALL + - 71 FROM tab2 cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - 33 + + col1 * 6 AS col1 FROM tab1 AS cor0
----
-3
249
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT COUNT( * ) * - + 97 AS col0 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT COUNT ( * ) * - + 97 AS col0 FROM tab2 AS cor0
----
-291

query I rowsort
SELECT DISTINCT + 17 + - - ( 17 ) - + col2 AS col0 FROM tab0
----
-13
-65
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT col2 DIV + CAST( + + col0 AS SIGNED ) + + - 9 + - + col1 FROM tab1
----
-14
-22
-56

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT col2 / + CAST ( + + col0 AS INTEGER ) + + - 9 + - + col1 FROM tab1
----
-14
-22
-56

query I rowsort
SELECT - ( - 34 ) * + col0 * col0 FROM tab1
----
245650
281554
88434

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT ALL + col1 DIV - + col2 + - col2 + + + 45 FROM tab2 AS cor0
----
-14
20
4

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL + col1 / - + col2 + - col2 + + + 45 FROM tab2 AS cor0
----
-14
20
4

query I rowsort
SELECT - + col1 - + 49 FROM tab1 AS cor0
----
-54
-63
-96

query I rowsort
SELECT DISTINCT + - AVG ( ALL + + col2 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3810
SELECT col1 DIV - col0, col2 FROM tab0
----
-5
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-3810
SELECT col1 / - col0, col2 FROM tab0
----
-5
47
0
10
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT ALL - - col1 - - col1 DIV + col2 FROM tab0 AS cor0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL - - col1 - - col1 / + col2 FROM tab0 AS cor0
----
1
23
82

query I rowsort
SELECT DISTINCT + col0 - - - col1 * 77 FROM tab2 AS cor0
----
-3881
-5084
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT + MIN( ALL 76 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3813
SELECT + MIN ( ALL 76 ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL - + 77 + 54 FROM tab2 cor0 WHERE - 90 * 63 IS NOT NULL
----
-23
-23
-23

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT DISTINCT - col1 DIV 42 * col1 FROM tab1 cor0
----
-47
0

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - col1 / 42 * col1 FROM tab1 cor0
----
-47
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT 54 DIV 95 * + - ( + col2 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3817
SELECT 54 / 95 * + - ( + col2 ) AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col0 FROM tab2
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + MAX( + ( + col2 ) ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3819
SELECT + MAX ( + ( + col2 ) ) AS col0 FROM tab1
----
96

query I rowsort
SELECT - 94 * col0 AS col0 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3821
SELECT ALL - 89 DIV + + CAST( + + col1 AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - 89 / + + CAST ( + + col1 AS INTEGER ) FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL 0 * + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL 0 * + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 26 FROM tab0 cor0
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - col1 col0 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT DISTINCT + - col0 + 56 - col1 DIV + col0 + - col2 FROM tab0 cor0
----
-11
-140
-41

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT + - col0 + 56 - col1 / + col0 + - col2 FROM tab0 cor0
----
-11
-140
-41

query I rowsort
SELECT DISTINCT - col1 * col0 + col0 AS col2 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT * FROM tab0 AS cor0 WHERE + col0 * - - col0 BETWEEN - col1 * - CAST( + col0 AS SIGNED ) AND - 99 * + 9 * - col2 + - + col1 + + 56
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-3827
SELECT * FROM tab0 AS cor0 WHERE + col0 * - - col0 BETWEEN - col1 * - CAST ( + col0 AS INTEGER ) AND - 99 * + 9 * - col2 + - + col1 + + 56
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - ( - ( - 56 ) ) * SUM( DISTINCT + 8 ) FROM tab2 AS cor0
----
-448

skipif mysql # not compatible
query I rowsort label-3828
SELECT - ( - ( - 56 ) ) * SUM ( DISTINCT + 8 ) FROM tab2 AS cor0
----
-448

query II rowsort
SELECT DISTINCT - col2, - 45 AS col2 FROM tab1 AS cor0
----
-59
-45
-68
-45
-96
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( + 46 ) + + 76 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - 3 < + col1 - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 4 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT ALL - 98 AS col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-98
-3

skipif mysql # not compatible
query II rowsort label-3834
SELECT ALL - 98 AS col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-98
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL + SUM( DISTINCT 25 ) FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + SUM ( DISTINCT 25 ) FROM tab0 cor0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3836
SELECT - COUNT( * ) AS col2, 10 FROM tab2 cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-3836
SELECT - COUNT ( * ) AS col2, 10 FROM tab2 cor0
----
-3
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT DISTINCT CAST( - ( + col2 ) AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT CAST ( - ( + col2 ) AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab2 WHERE NOT col0 - ( col1 ) * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE NOT col0 - ( col1 ) * + col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN col1 AND + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT ALL + col2 * + 63 + col2 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + col2 * + 63 + col2 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 + + col2 AS col1, - col0 + + 39 AS col1 FROM tab1
----
110
-12
115
-52
64
-46

query I rowsort
SELECT + 97 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 72 * - 17 FROM tab0
----
1224
1224
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL MIN( ALL + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL MIN ( ALL + - col1 ) FROM tab0
----
-81

query I rowsort
SELECT ALL 18 + - col0 AS col2 FROM tab0
----
-69
-79
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT DISTINCT - - col2 DIV - col0 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - - col2 / - col0 AS col2 FROM tab2 cor0
----
0

query II rowsort
SELECT DISTINCT 95, col1 FROM tab1 AS cor0
----
95
14
95
47
95
5

query I rowsort
SELECT DISTINCT col0 * 27 AS col0 FROM tab1 AS cor0
----
1377
2295
2457

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 33 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT SUM( - - 98 ) AS col1 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-3851
SELECT SUM ( - - 98 ) AS col1 FROM tab0 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT + MIN( DISTINCT - + 22 ) AS col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + MIN ( DISTINCT - + 22 ) AS col1 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3853
SELECT - COUNT( * ) AS col1, 36 FROM tab1 AS cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-3853
SELECT - COUNT ( * ) AS col1, 36 FROM tab1 AS cor0
----
-3
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 88 IS NULL
----

query I rowsort
SELECT ALL - col0 * + - 10 AS col1 FROM tab1 AS cor0
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT - COUNT( * ) * + 19 col0 FROM tab0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3856
SELECT DISTINCT - COUNT ( * ) * + 19 col0 FROM tab0
----
-57

query II rowsort
SELECT ALL col2, - 52 * 74 + 9 + 49 AS col1 FROM tab0
----
10
-3790
47
-3790
99
-3790

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT - MIN( - col2 ) * - COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-3858
SELECT - MIN ( - col2 ) * - COUNT ( * ) FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT - 28 * - + COUNT( * ) col0 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3859
SELECT DISTINCT - 28 * - + COUNT ( * ) col0 FROM tab1
----
84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - - col2 - + + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT col0 DIV + col1 + - + 50 AS col2 FROM tab0 AS cor0
----
-46
-50
47

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT col0 / + col1 + - + 50 AS col2 FROM tab0 AS cor0
----
-46
-50
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 AS cor0 WHERE NULL > col2 * - 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 AS col2, + col2 col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - col2 + - + col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

query I rowsort
SELECT DISTINCT 86 + ( + + col1 ) FROM tab0 AS cor0
----
107
167
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3867
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN CAST( NULL AS SIGNED ) AND NULL AND - col0 - + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3867
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN CAST ( NULL AS INTEGER ) AND NULL AND - col0 - + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, col1 * col1 + col2 FROM tab2
----
23
2624
40
5969
58
4547

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT DISTINCT + 27 DIV + - COUNT( * ) + SUM( DISTINCT col0 ) AS col2 FROM tab2
----
176

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + 27 / + - COUNT ( * ) + SUM ( DISTINCT col0 ) AS col2 FROM tab2
----
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 + col2 col1 FROM tab1
----
113
178
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT MAX( ALL col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3871
SELECT MAX ( ALL col1 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 WHERE ( col0 NOT BETWEEN col1 * 71 AND - 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3873
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT col1 - + ( - - col2 ) AS col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT * FROM tab2 WHERE + + 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * col2 + + - 57 * - col0 AS col0 FROM tab0
----
-1354
-4272
4859

query I rowsort
SELECT ALL - col0 - - 77 FROM tab1 AS cor0
----
-14
-8
26

query I rowsort
SELECT ALL 17 - - col2 AS col0 FROM tab0 cor0
----
116
27
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT + MIN( 23 ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + MIN ( 23 ) AS col0 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT COUNT( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3880
SELECT COUNT ( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT DISTINCT + col2 * - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT + col2 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ( + col1 ) + + ( col1 ) * 74 FROM tab1
----
1050
3525
375

query I rowsort
SELECT col1 * - 85 AS col2 FROM tab1 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 6 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 WHERE NOT col1 + col0 BETWEEN - 36 / + col0 AND col1 + col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL 38 - + COUNT( * ) AS col0 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL 38 - + COUNT ( * ) AS col0 FROM tab0
----
35

query I rowsort
SELECT - 93 + - col2 FROM tab2
----
-116
-133
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT - ( col0 ) DIV 22 + col1 AS col0 FROM tab1
----
12
2
43

skipif mysql # not compatible
query I rowsort label-3889
SELECT - ( col0 ) / 22 + col1 AS col0 FROM tab1
----
12
2
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT + 6 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT + 6 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 50 IN ( - 64 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + col2 col1 FROM tab2
----
105
70
87

query I rowsort
SELECT col0 + + col2 * - col1 FROM tab2
----
-1127
-3016
-3811

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 23 * + COUNT( * ) FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-3897
SELECT 23 * + COUNT ( * ) FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
69

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( + col2 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT DISTINCT + 71 * 91 - col0 DIV - 45 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
6461
6462
6463

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + 71 * 91 - col0 / - 45 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
6461
6462
6463

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3901
SELECT MIN( DISTINCT + ( col0 ) ) DIV - COUNT( * ) + 79 * ( - MIN( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
-3649

skipif mysql # not compatible
query I rowsort label-3901
SELECT MIN ( DISTINCT + ( col0 ) ) / - COUNT ( * ) + 79 * ( - MIN ( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
-3649

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - 91 = ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - 91 = ( col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT 41 DIV + 50 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT 41 / + 50 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 78 * 36 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 30 BETWEEN ( NULL ) AND ( ( col0 ) )
----

query I rowsort
SELECT ALL - 56 + col1 * col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 42 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL + COUNT( * ) + 42 AS col0 FROM tab2 cor0
----
45

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + COUNT ( * ) + 42 AS col0 FROM tab2 cor0
----
45

query I rowsort
SELECT ALL col2 + + 90 FROM tab1 AS cor0 WHERE - 76 IS NOT NULL
----
149
158
186

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 11 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT + COUNT( 44 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3910
SELECT + COUNT ( 44 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( col0 ) - + 69 FROM tab0 cor0
----
-156
-166
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT + - col1 + col2 DIV + 63 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3912
SELECT + - col1 + col2 / + 63 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT 38 + - col1 AS col0 FROM tab0 AS cor0
----
-43
17
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT - + 31 + - COUNT( * ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3915
SELECT - + 31 + - COUNT ( * ) FROM tab1 AS cor0
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 - col0 * col1 col2 FROM tab2
----
-2244
-4774
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT 31 * - COUNT( * ) FROM tab0 WHERE + col0 * + col1 + + col0 * - col1 NOT BETWEEN + col2 * ( + col1 ) AND ( - 47 )
----
-93

skipif mysql # not compatible
query I rowsort label-3917
SELECT 31 * - COUNT ( * ) FROM tab0 WHERE + col0 * + col1 + + col0 * - col1 NOT BETWEEN + col2 * ( + col1 ) AND ( - 47 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT - CAST( NULL AS SIGNED ) + - col2 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT - CAST ( NULL AS INTEGER ) + - col2 * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col2 + 62 FROM tab1 WHERE NULL IN ( col0 + 74 )
----

query I rowsort
SELECT - col0 + - 43 FROM tab1 WHERE + 30 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col2 + + 53 AS col2 FROM tab0 AS cor0
----
711
913
9557

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= ( ( col1 ) ) AND ( NULL ) < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3925
SELECT + AVG ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT + AVG ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT MAX( - 34 ) * 22 AS col0 FROM tab0 AS cor0
----
-748

skipif mysql # not compatible
query I rowsort label-3926
SELECT MAX ( - 34 ) * 22 AS col0 FROM tab0 AS cor0
----
-748

query I rowsort
SELECT 25 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3929
SELECT ALL 12 DIV + 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL 12 / + 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - ( - - col2 ) + + 78 FROM tab2
----
-46
55
-64
38
-75
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT 51 AS col1, - COUNT( ALL col0 ) + + 20 FROM tab0 AS cor0
----
51
17

skipif mysql # not compatible
query II rowsort label-3931
SELECT 51 AS col1, - COUNT ( ALL col0 ) + + 20 FROM tab0 AS cor0
----
51
17

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 66 >= + - col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + MAX( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3933
SELECT + MAX ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - 26 * + col0 + - + col1 FROM tab2 AS cor0
----
-1247
-1741
-2017

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3936
SELECT + + 16, COUNT( * ) * + + ( 16 ) col1 FROM tab0 AS cor0
----
16
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3936
SELECT + + 16, COUNT ( * ) * + + ( 16 ) col1 FROM tab0 AS cor0
----
16
48

query II rowsort
SELECT - - col0, 72 AS col0 FROM tab2 AS cor0
----
46
72
64
72
75
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 28 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT AVG ( col2 ) * - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT AVG ( col2 ) * - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
NULL

query I rowsort
SELECT ALL 81 AS col2 FROM tab0 WHERE NOT ( + + 88 ) IS NULL
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( + col2 ) col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT + col2 * + 43 AS col2 FROM tab2 WHERE NOT col2 * + + col2 < 95 + CAST( + col1 AS SIGNED ) * 42
----
2494

skipif mysql # not compatible
query I rowsort label-3942
SELECT + col2 * + 43 AS col2 FROM tab2 WHERE NOT col2 * + + col2 < 95 + CAST ( + col1 AS INTEGER ) * 42
----
2494

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + 22 AS col0 FROM tab2
----
45
62
80

query I rowsort
SELECT ALL + 22 - - 59 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 cor0 WHERE ( NULL ) BETWEEN - col0 AND - 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT DISTINCT - + col1 DIV + col2 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT - + col1 / + col2 FROM tab2 cor0
----
-1
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 57 <> - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + + 56 * - - col1 FROM tab2 AS cor0
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + - COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3950
SELECT + - COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE col0 / + col1 + - col0 + - col1 + col0 > 35
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT + col1 DIV 19 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT + col1 / 19 FROM tab2
----
2
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col0 col2 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT col1 * - col2 * - col0 - + col2 + - col2 DIV - col1 FROM tab1
----
25027
290769
68454

skipif mysql # not compatible
query I rowsort label-3954
SELECT col1 * - col2 * - col0 - + col2 + - col2 / - col1 FROM tab1
----
25027
290769
68454

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL IN ( 99, - col2 )
----

query I rowsort
SELECT 55 - + + col0 FROM tab2
----
-20
-9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3957
SELECT ALL 2 * - - CAST( COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL 2 * - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( 22 + col0, - ( - col0 ) )
----

query I rowsort
SELECT DISTINCT 2 + - 80 + - 65 FROM tab1 WHERE NOT NULL <= - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + 58
----

query I rowsort
SELECT DISTINCT col1 * - + col1 + + col0 FROM tab1 AS cor0
----
-145
-2118
60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + col0 * + - ( 99 ) >= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 * col1 * - + col1 AS col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3966
SELECT - 17 DIV col2 AS col2, + CAST( + 92 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
92
0
92
0
92

skipif mysql # not compatible
query II rowsort label-3966
SELECT - 17 / col2 AS col2, + CAST ( + 92 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
92
0
92
0
92

onlyif mysql # DIV for integer division: 
query II rowsort label-3967
SELECT + 2, - col2 DIV + 35 AS col1 FROM tab1
----
2
-1
2
-1
2
-2

skipif mysql # not compatible
query II rowsort label-3967
SELECT + 2, - col2 / + 35 AS col1 FROM tab1
----
2
-1
2
-1
2
-2

query II rowsort
SELECT + col0 AS col0, col2 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT - col2 AS col1, - 73 AS col1 FROM tab1
----
-59
-73
-68
-73
-96
-73

query II rowsort
SELECT - col1, col2 AS col1 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT - 25 + - 39 FROM tab2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT - col2 * - col0 * - CAST( + col0 AS SIGNED ) + + + col0 AS col2 FROM tab2
----
-163776
-326175
-48622

skipif mysql # not compatible
query I rowsort label-3972
SELECT - col2 * - col0 * - CAST ( + col0 AS INTEGER ) + + + col0 AS col2 FROM tab2
----
-163776
-326175
-48622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT CAST( NULL AS SIGNED ) + + + 39 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3973
SELECT CAST ( NULL AS INTEGER ) + + + 39 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - - col2 * col0 AS col2 FROM tab0 WHERE NOT - col2 + + col1 BETWEEN - 69 AND NULL
----
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 18 * + col0
----

query II rowsort
SELECT ALL - - col2 + - col0 * - + ( - + col2 ), 70 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - 87 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-783

skipif mysql # not compatible
query I rowsort label-3978
SELECT - 87 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-783

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT + col0 + - 7 DIV + 47 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3979
SELECT + col0 + - 7 / + 47 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3980
SELECT ALL SUM( ALL - col2 ) AS col0, 39 FROM tab2 AS cor0
----
-121
39

skipif mysql # not compatible
query II rowsort label-3980
SELECT ALL SUM ( ALL - col2 ) AS col0, 39 FROM tab2 AS cor0
----
-121
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + + 13 col0 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - - 69 * - col1 + - + col1 FROM tab2 AS cor0
----
-3570
-4690
-5390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 * + - 83 * - + col0 col1 FROM tab0
----
129978
144918
22410

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 * - col2 ) NOT BETWEEN ( NULL ) AND - 45
----

query I rowsort
SELECT ( - + col0 ) + - 55 AS col2 FROM tab2
----
-101
-119
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3986
SELECT COUNT( * ) DIV COUNT( * ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3986
SELECT COUNT ( * ) / COUNT ( * ) col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3987
SELECT ALL - CAST( NULL AS DECIMAL ) * + + col0 + - col2 + - + CAST( + col2 AS SIGNED ) * + - col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3987
SELECT ALL - CAST ( NULL AS REAL ) * + + col0 + - col2 + - + CAST ( + col2 AS INTEGER ) * + - col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70, 98 * - col2 col2 FROM tab0 WHERE NOT - + 54 <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3989
SELECT DISTINCT ( - 97 ) * - - CAST( + + MIN( + col2 ) AS SIGNED ) * - - COUNT( * ) * 33 FROM tab2 WHERE NOT ( NULL ) IN ( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT ( - 97 ) * - - CAST ( + + MIN ( + col2 ) AS INTEGER ) * - - COUNT ( * ) * 33 FROM tab2 WHERE NOT ( NULL ) IN ( 72 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + - col0 * - + 26 * + - ( - col1 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT - col2 * - col1 DIV - col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3991
SELECT - col2 * - col1 / - col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + - ( ( - 36 ) ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT ALL COUNT( * ), + 77 AS col0 FROM tab0 cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-3993
SELECT ALL COUNT ( * ), + 77 AS col0 FROM tab0 cor0
----
3
77

query I rowsort
SELECT ( - - col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT 39 + - col1 + - 56 AS col2 FROM tab0 AS cor0
----
-18
-38
-98

query III rowsort
SELECT * FROM tab0 cor0 WHERE + - 38 BETWEEN NULL AND 31 / col2 AND NOT col0 + + + ( + - 34 ) < col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col1 + + col0 + + + col1 col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = col1 * 47 + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT - + 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-3999
SELECT - + CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( 88 * col1 ) AND NULL
----

query I rowsort
SELECT + 15 * + 78 FROM tab2, tab2 AS cor0
----
9 values hashing to 41b6a976f5dabe4c2b106737f95ff661

query III rowsort
SELECT * FROM tab0 WHERE - + col0 IN ( - col0 * - - 70 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT ALL - col0 DIV + - col0 + + + col0 DIV col2 FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL - col0 / + - col0 + + + col0 / col2 FROM tab2
----
2
2
3

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL - - MAX( + col2 ) AS col2 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - - MAX ( + col2 ) AS col2 FROM tab2 cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT 55 DIV col1 + 61 * col2 * + + 6 AS col1 FROM tab1
----
21605
24889
35139

skipif mysql # not compatible
query I rowsort label-4006
SELECT 55 / col1 + 61 * col2 * + + 6 AS col1 FROM tab1
----
21605
24889
35139

query I rowsort
SELECT DISTINCT col0 + - 61 FROM tab0
----
-46
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + MAX( DISTINCT + 94 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4008
SELECT + MAX ( DISTINCT + 94 ) FROM tab1 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT DISTINCT + - col1 - - col0 + 8 DIV - - col0 FROM tab2 cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + - col1 - - col0 + 8 / - - col0 FROM tab2 cor0
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + - 59 - MIN( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + - 59 - MIN ( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT COUNT( + 86 ) * SUM( ALL - - col0 ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT COUNT ( + 86 ) * SUM ( ALL - - col0 ) FROM tab1
----
681

onlyif mysql # DIV for integer division: 
query II rowsort label-4013
SELECT ALL col2 DIV + - col2 AS col2, 71 * - 76 + + 71 FROM tab0
----
-1
-5325
-1
-5325
-1
-5325

skipif mysql # not compatible
query II rowsort label-4013
SELECT ALL col2 / + - col2 AS col2, 71 * - 76 + + 71 FROM tab0
----
-1
-5325
-1
-5325
-1
-5325

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4014
SELECT + CAST( 84 AS SIGNED ) DIV ( col2 ) * 94 * col1 AS col1 FROM tab1
----
0
4418
470

skipif mysql # not compatible
query I rowsort label-4014
SELECT + CAST ( 84 AS INTEGER ) / ( col2 ) * 94 * col1 AS col1 FROM tab1
----
0
4418
470

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT col2 * 3 DIV + col0 AS col2 FROM tab1
----
2
2
5

skipif mysql # not compatible
query I rowsort label-4016
SELECT col2 * 3 / + col0 AS col2 FROM tab1
----
2
2
5

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / + col2 < NULL
----

query I rowsort
SELECT col2 * 50 AS col2 FROM tab2
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT DISTINCT COUNT( * ) * - + 53 * - 87 * + - 56 AS col2, 60 FROM tab0
----
-774648
60

skipif mysql # not compatible
query II rowsort label-4019
SELECT DISTINCT COUNT ( * ) * - + 53 * - 87 * + - 56 AS col2, 60 FROM tab0
----
-774648
60

query I rowsort
SELECT - 58 + - - col2 FROM tab1 WHERE NOT - col1 + + col1 IN ( col0 + - - col2 + - 22 - - col2 )
----
1
10
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT - col0 DIV + 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT - col0 / + 79 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE col1 * + col0 * + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT DISTINCT col1 DIV - 30 AS col2 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT col1 / - 30 AS col2 FROM tab0 AS cor0
----
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT DISTINCT COUNT( DISTINCT col0 ), ( + COUNT( * ) ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4024
SELECT DISTINCT COUNT ( DISTINCT col0 ), ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - COUNT( * ) * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4026
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT MAX( + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4027
SELECT MAX ( + 76 ) FROM tab0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT col2 DIV + 56 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT col2 / + 56 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT + col1 + 35 + + + col0 FROM tab2 cor0
----
132
176
177

query I rowsort
SELECT + - col0 AS col1 FROM tab2 cor0 WHERE NOT 11 * + 32 * + 89 - - col1 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + MAX( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4032
SELECT COUNT( * ) DIV + - 65 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT COUNT ( * ) / + - 65 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4033
SELECT ALL + CAST( NULL AS DECIMAL ) * + 63 FROM tab0 AS cor0 WHERE NOT - col2 + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + CAST ( NULL AS REAL ) * + 63 FROM tab0 AS cor0 WHERE NOT - col2 + col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * - - col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT col1 + ( + - col0 ) * + 69 * + col1 FROM tab1
----
-29320
-295066
-49252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT + CAST( NULL AS SIGNED ) + - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT + CAST ( NULL AS INTEGER ) + - + col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2, ( 93 ) AS col0 FROM tab2
----
23
93
40
93
58
93

query II rowsort
SELECT ALL + col0 + + 72 AS col2, 94 + col1 FROM tab0 cor0
----
159
115
169
95
87
175

query I rowsort
SELECT ALL - 51 * - - 97 * col1 * - col1 * - - 12 + col1 AS col0 FROM tab2 cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL < col0
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - ( + 73 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - + 31 + - COUNT( * ) col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4042
SELECT - + 31 + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT ALL + - 31 * + ( - col1 ) * + - col2 * + 23 - - 34 AS col0 FROM tab2 AS cor0
----
-2196006
-2770684
-836315

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - + col1 * - + ( - 17 ) >= + - 58 - + - 90 * + - col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT MAX( ALL + col0 ) * 17 + COUNT( * ) AS col1 FROM tab1 cor0
----
1550

skipif mysql # not compatible
query I rowsort label-4045
SELECT MAX ( ALL + col0 ) * 17 + COUNT ( * ) AS col1 FROM tab1 cor0
----
1550

query I rowsort
SELECT + + 8 AS col0 FROM tab2 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 40 col1 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT ALL 50 * col0 - - - 5 AS col1 FROM tab0 AS cor0
----
4345
4845
745

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND 45 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 40 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 50, col1 AS col1 FROM tab0
----
50
1
50
21
50
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4052
SELECT - ( + CAST( NULL AS DECIMAL ) ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4052
SELECT - ( + CAST ( NULL AS REAL ) ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
227

query I rowsort
SELECT - 49 FROM tab1 cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT + - col1 DIV - - col2 + ( col0 ) FROM tab0 cor0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-4055
SELECT + - col1 / - - col2 + ( col0 ) FROM tab0 cor0
----
14
85
97

query I rowsort
SELECT ALL + 13 * + col2 AS col1 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT - 46 FROM tab1 AS cor0 WHERE NOT NULL >= ( - col1 * + col1 )
----

query I rowsort
SELECT DISTINCT + 25 * + 83 AS col2 FROM tab1
----
2075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT DISTINCT - CAST( + 73 AS SIGNED ) * - col1 col2 FROM tab0
----
1533
5913
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4059
SELECT DISTINCT - CAST ( + 73 AS INTEGER ) * - col1 col2 FROM tab0
----
1533
5913
73

query I rowsort
SELECT - 43 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 75 + - 37 = 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT + - col1 DIV - 55 * + + col2 + - col2 + - 74 + 42 AS col0 FROM tab1 AS cor0
----
-100
-128
-91

skipif mysql # not compatible
query I rowsort label-4062
SELECT + - col1 / - 55 * + + col2 + - col2 + - 74 + 42 AS col0 FROM tab1 AS cor0
----
-100
-128
-91

query II rowsort
SELECT ALL - 94, - ( col2 ) * - + col2 FROM tab0 AS cor0 WHERE NOT ( NULL < NULL )
----

query I rowsort
SELECT + - 3 + col1 FROM tab1 cor0
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT DISTINCT - + COUNT( * ) * - - 19 * + COUNT( * ) FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - + COUNT ( * ) * - - 19 * + COUNT ( * ) FROM tab1 AS cor0
----
-171

query II rowsort
SELECT + 36 + - col2 * - + ( + col1 ) AS col0, col1 AS col2 FROM tab0 AS cor0
----
135
1
246
21
3843
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL + COUNT( * ) * 41 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL + COUNT ( * ) * 41 FROM tab0 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT DISTINCT - col2 DIV 57 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - col2 / 57 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT - 14 + + col1 AS col2 FROM tab1
----
-9
0
33

query I rowsort
SELECT + ( + 33 ) FROM tab2
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 + 44 col1 FROM tab1
----
56

query I rowsort
SELECT + 51 - + col1 AS col2 FROM tab2
----
-16
-26
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT - + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4075
SELECT - + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - 70 * 78 AS col2 FROM tab0 cor0
----
-5460
-5460
-5460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - + + 24 col2 FROM tab0 AS cor0 WHERE NOT - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4080
SELECT + - MIN( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT + - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT - col2 * - col1 AS col2, - col2 FROM tab1
----
1344
-96
295
-59
3196
-68

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) * + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) * + - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT MIN( + 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4084
SELECT MIN ( + 95 ) FROM tab0
----
95

query III rowsort
SELECT ALL * FROM tab1 WHERE + 57 <> col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT col2 DIV + - 19 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4086
SELECT col2 / + - 19 FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4087
SELECT * FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND - - col2
----

skipif mysql # not compatible
query III rowsort label-4087
SELECT * FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN - CAST ( NULL AS REAL ) AND - - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 NOT IN ( 29, + ( col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4089
SELECT ALL CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL CAST ( NULL AS REAL ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 61 > + col0
----
46
51
23

query I rowsort
SELECT DISTINCT - 65 * + - col1 AS col0 FROM tab0 AS cor0
----
1365
5265
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT ALL 75 * + CAST( ( + 54 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4050
4050
4050

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL 75 * + CAST ( ( + 54 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4050
4050
4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT + ( + col2 ) FROM tab0 cor0 WHERE CAST( 18 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4093
SELECT + ( + col2 ) FROM tab0 cor0 WHERE CAST ( 18 AS INTEGER ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + col1 + col2 + - - col0 * - + 99 / - - col2 * - ( + col2 ) NOT BETWEEN - - col2 * 72 AND - - col2
----

query II rowsort
SELECT - col0 * + + 30 + - 26 AS col0, ( + + col2 ) FROM tab0 AS cor0
----
-2636
10
-2936
99
-476
47

query I rowsort
SELECT DISTINCT - 42 * 64 AS col1 FROM tab1 AS cor0
----
-2688

query I rowsort
SELECT + 13 + - col1 AS col1 FROM tab2 AS cor0
----
-38
-54
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 33 * col0 * + - col0 col1 FROM tab0 AS cor0
----
249777
310497
7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT - ( - col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST( + col2 AS SIGNED ), 55 + + col2 * col0 - + col0, + 9, col2 * - + 70 )
----

skipif mysql # not compatible
query I rowsort label-4099
SELECT - ( - col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - CAST ( + col2 AS INTEGER ), 55 + + col2 * col0 - + col0, + 9, col2 * - + 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT COUNT( * ) + + ( 47 ) + + SUM( - col0 ) FROM tab0 cor0
----
-149

skipif mysql # not compatible
query I rowsort label-4100
SELECT COUNT ( * ) + + ( 47 ) + + SUM ( - col0 ) FROM tab0 cor0
----
-149

query I rowsort
SELECT + col1 * ( + col1 ) + + 34 FROM tab2 AS cor0
----
2635
4523
5963

query I rowsort
SELECT + 40 * col1 + col1 AS col2 FROM tab0
----
3321
41
861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4103
SELECT ALL 95 DIV - COUNT( * ) col1 FROM tab0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4103
SELECT ALL 95 / - COUNT ( * ) col1 FROM tab0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT - + MIN( DISTINCT + col0 ) AS col0 FROM tab2 WHERE NOT 97 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - + MIN ( DISTINCT + col0 ) AS col0 FROM tab2 WHERE NOT 97 IS NULL
----
-46

query I rowsort
SELECT + col0 * col0 + + col0 AS col0 FROM tab2
----
2162
4160
5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4106
SELECT DISTINCT 79 * - 62 * 36 DIV - - COUNT( * ) AS col0 FROM tab1, tab2 cor0
----
-19592

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT 79 * - 62 * 36 / - - COUNT ( * ) AS col0 FROM tab1, tab2 cor0
----
-19592

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4107
SELECT ALL col0 - + col2 AS col1, ( - col2 ) * + col1 + - - col1 + 78 - + col1 + - + 79 - - CAST( NULL AS DECIMAL ), + col0 FROM tab2
----
9 values hashing to 507e13e574c32ddb94ddbec6e8142315

skipif mysql # not compatible
query III rowsort label-4107
SELECT ALL col0 - + col2 AS col1, ( - col2 ) * + col1 + - - col1 + 78 - + col1 + - + 79 - - CAST ( NULL AS REAL ), + col0 FROM tab2
----
9 values hashing to 507e13e574c32ddb94ddbec6e8142315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 41 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 11 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT + 59 DIV - col1 AS col1 FROM tab0
----
-2
-59
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT + 59 / - col1 AS col1 FROM tab0
----
-2
-59
0

query I rowsort
SELECT - 25 * - ( col1 ) FROM tab0
----
2025
25
525

query I rowsort
SELECT ALL 36 - - 89 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2973878398e469d83385e7e06bd5af99

query I rowsort
SELECT + 49 * + + col2 FROM tab0 AS cor0
----
2303
4851
490

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + + - 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT DISTINCT - 37 DIV - + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT - 37 / - + COUNT ( * ) FROM tab1 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-4116
SELECT - 99 DIV + - 26 + + 50, col0 col1 FROM tab1 AS cor0
----
53
51
53
85
53
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4116
SELECT - 99 / + - 26 + + 50, col0 col1 FROM tab1 AS cor0
----
53
51
53
85
53
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT ALL col1 / col1 + CAST( NULL AS SIGNED ) * 43 * - 54 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL col1 / col1 + CAST ( NULL AS INTEGER ) * 43 * - 54 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT + + ( MAX( + col2 ) ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4118
SELECT + + ( MAX ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL - MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
-51

query II rowsort
SELECT + col2 AS col0, + col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query II rowsort
SELECT DISTINCT col1 AS col0, - 68 AS col2 FROM tab2
----
51
-68
67
-68
77
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE NOT NULL > - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + - col2
----

query I rowsort
SELECT col2 * + 81 FROM tab0
----
3807
8019
810

query I rowsort
SELECT + + 32 * - col0 AS col2 FROM tab1 cor0
----
-1632
-2720
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT + MAX( - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4127
SELECT + MAX ( - col0 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - - MAX( col0 ) * + ( - SUM( - - col0 ) ) AS col1 FROM tab1 AS cor0
----
-20657

skipif mysql # not compatible
query I rowsort label-4128
SELECT - - MAX ( col0 ) * + ( - SUM ( - - col0 ) ) AS col1 FROM tab1 AS cor0
----
-20657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT + COUNT( * ) DIV - COUNT( * ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4129
SELECT + COUNT ( * ) / - COUNT ( * ) col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL + - 96 * - MAX( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-4896

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + - 96 * - MAX ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + - 98 col1 FROM tab1 cor0
----
-5782
-6664
-9408

query I rowsort
SELECT 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT CAST( NULL AS SIGNED ) + + 58 + - CAST( NULL AS SIGNED ) - 12 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT CAST ( NULL AS INTEGER ) + + 58 + - CAST ( NULL AS INTEGER ) - 12 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT - + col1 + - 26 DIV - col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4134
SELECT - + col1 + - 26 / - col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT + + MIN( - - col2 ) FROM tab2 AS cor0 WHERE NOT ( - - col1 ) * + 41 / + col0 >= + 96
----
23

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT + + MIN ( - - col2 ) FROM tab2 AS cor0 WHERE NOT ( - - col1 ) * + 41 / + col0 >= + 96
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT - col2 DIV - col2 + col0 AS col1 FROM tab0 cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4136
SELECT - col2 / - col2 + col0 AS col1 FROM tab0 cor0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT 90 * - + COUNT( * ) AS col1 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-4137
SELECT 90 * - + COUNT ( * ) AS col1 FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL MAX( DISTINCT + 53 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL MAX ( DISTINCT + 53 ) FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT + 87 + + + MAX( + col2 ) * + COUNT( * ) AS col1 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + 87 + + + MAX ( + col2 ) * + COUNT ( * ) AS col1 FROM tab2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT COUNT( * ) + - ( MAX( ALL + col1 ) ) * MIN( - col2 ) FROM tab2
----
4469

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT COUNT ( * ) + - ( MAX ( ALL + col1 ) ) * MIN ( - col2 ) FROM tab2
----
4469

onlyif mysql # aggregate syntax: 
query II rowsort label-4141
SELECT DISTINCT 4 + - - MIN( + 25 ) AS col2, 2 FROM tab0
----
29
2

skipif mysql # not compatible
query II rowsort label-4141
SELECT DISTINCT 4 + - - MIN ( + 25 ) AS col2, 2 FROM tab0
----
29
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT 66 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT 66 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL + MAX( ALL - + 86 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL + MAX ( ALL - + 86 ) FROM tab0 AS cor0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT SUM( - + col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT SUM ( - + col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4145
SELECT DISTINCT + + COUNT( * ) DIV 29 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + + COUNT ( * ) / 29 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 * col2 * + + col1 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT DISTINCT - col2 + - + 11 FROM tab0 AS cor0 WHERE - col0 + 8 IS NOT NULL
----
-110
-21
-58

query I rowsort
SELECT + + 37 AS col1 FROM tab2 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT - ( + - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4149
SELECT - ( + - COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + COUNT( * ) * + + 57 col1 FROM tab0
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4150
SELECT + COUNT ( * ) * + + 57 col1 FROM tab0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT DISTINCT + - col1 col1 FROM tab1 WHERE ( NOT ( - 72 * 86 > + - ( - CAST( - 82 AS SIGNED ) ) * + col2 ) )
----
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4151
SELECT DISTINCT + - col1 col1 FROM tab1 WHERE ( NOT ( - 72 * 86 > + - ( - CAST ( - 82 AS INTEGER ) ) * + col2 ) )
----
-47
-5

query II rowsort
SELECT col1, + col0 AS col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT CAST( col2 AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL <> + 64
----

skipif mysql # not compatible
query I rowsort label-4153
SELECT CAST ( col2 AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL <> + 64
----

query II rowsort
SELECT - col1, + 70 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + - COUNT( * ) * + ( 13 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4155
SELECT + - COUNT ( * ) * + ( 13 ) FROM tab0 AS cor0
----
-39

query I rowsort
SELECT + 89 - ( + - 97 ) FROM tab0 AS cor0
----
186
186
186

query II rowsort
SELECT - col2 * + 4 + - + 48 * + + 94, col0 FROM tab0 AS cor0
----
-4552
87
-4700
15
-4908
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col2 * - + ( col0 ) + - - ( + 89 ) + 58 - col2 FROM tab1 AS cor0
----
-4845
-4927
-6109

query I rowsort
SELECT DISTINCT - + 74 AS col1 FROM tab0 AS cor0
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4161
SELECT - + CAST( NULL AS DECIMAL ) + + - col1 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT - + CAST ( NULL AS REAL ) + + - col1 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT 10 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT 10 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT col0 + - - ( + CAST( - - col1 AS SIGNED ) ) FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-4163
SELECT col0 + - - ( + CAST ( - - col1 AS INTEGER ) ) FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * + col1 - ( + 42 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4165
SELECT * FROM tab0 WHERE CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4165
SELECT * FROM tab0 WHERE CAST ( col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + col0 + - + col0 AS col0 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + - col0 + + - col0 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - 75 + + + col0 + + + col2 FROM tab1
----
-3678
-6231
-6666

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + ( COUNT( col0 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4169
SELECT + ( COUNT ( col0 ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL - COUNT( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - COUNT ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col2 * + col1 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
18270
57105
9603

query I rowsort
SELECT DISTINCT + 66 FROM tab1 AS cor0 WHERE + 44 >= NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
29

query II rowsort
SELECT col2, - col1 + + - col1 AS col0 FROM tab2 AS cor0
----
23
-102
40
-154
58
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT + MIN( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4176
SELECT + MIN ( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - ( - 87 ) FROM tab1 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 80 * + 5 col0 FROM tab1 cor0
----
18800
2000
5600

query II rowsort
SELECT ALL - col1 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - 51 * - ( - col0 ) FROM tab1
----
-2601
-4335
-4641

query I rowsort
SELECT DISTINCT 5 * + col2 FROM tab0
----
235
495
50

query I rowsort
SELECT DISTINCT ( - - col1 ) + - ( - - 11 ) + - 73 * col2 * - col1 FROM tab2
----
224906
283734
85669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col1 col0, - col2 FROM tab1
----
10
-59
28
-96
94
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT + 98 + - 63 * COUNT( * ) - + 8 AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + 98 + - 63 * COUNT ( * ) - + 8 AS col2 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col2 FROM tab2 cor0 WHERE + col1 + col2 * + 44 + - + col0 + - 59 * - col0 IS NULL
----

query II rowsort
SELECT - - col0 * + - col0 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

query I rowsort
SELECT ALL - 79 * + - 26 * + 83 AS col2 FROM tab1 AS cor0
----
170482
170482
170482

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT - + COUNT( * ) + MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4188
SELECT - + COUNT ( * ) + MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
44

query I rowsort
SELECT 44 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4190
SELECT 93 + - 87 * - CAST( - + 83 AS SIGNED ) col0, - 49 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to dd22b3cd10cc3a1febf8296d2bf4aa24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4190
SELECT 93 + - 87 * - CAST ( - + 83 AS INTEGER ) col0, - 49 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to dd22b3cd10cc3a1febf8296d2bf4aa24

query I rowsort
SELECT ( + + 0 ) * - 27 + + 18 FROM tab2
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT DISTINCT SUM( + col2 ) FROM tab1 AS cor0 WHERE 42 IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT SUM ( + col2 ) FROM tab1 AS cor0 WHERE 42 IS NOT NULL
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL COUNT( * ) + 64 AS col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL COUNT ( * ) + 64 AS col1 FROM tab1 AS cor0
----
67

query I rowsort
SELECT ALL 43 * col2 FROM tab1 AS cor0
----
2537
2924
4128

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < 52
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL BETWEEN NULL AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + MAX( - 98 ) AS col0 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-4197
SELECT + MAX ( - 98 ) AS col0 FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4198
SELECT + 58 AS col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
58
NULL
58
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4198
SELECT + 58 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
58
NULL
58
NULL
58
NULL

query I rowsort
SELECT DISTINCT - ( - 25 ) FROM tab1
----
25

query I rowsort
SELECT ALL ( - 44 ) AS col2 FROM tab0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT + ( SUM( DISTINCT col2 ) ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + ( SUM ( DISTINCT col2 ) ) AS col1 FROM tab0 cor0
----
156

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4203
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

query II rowsort
SELECT DISTINCT - 56 * - 18, col2 AS col2 FROM tab1 AS cor0
----
1008
59
1008
68
1008
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT MIN( 11 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4205
SELECT MIN ( 11 ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT ALL + + 25 AS col1 FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT - COUNT( * ) FROM tab1 WHERE NOT + col2 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + col2 * + col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT col1 + - - 82 + + 20 / - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT col1 + - - 82 + + 20 / - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 57 + + + col2 AS col0 FROM tab0
----
104
156
67

query I rowsort
SELECT - col0 * + col1 * + + 32 + col1 FROM tab0
----
-3103
-38799
-58443

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * - col0 - + col2 + 70 FROM tab2 cor0
----
-2069
-4066
-5613

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT - col1 * 10 DIV col0 FROM tab1 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-4215
SELECT - col1 * 10 / col0 FROM tab1 AS cor0
----
-2
-5
0

query I rowsort
SELECT ALL ( - + col1 ) * + col0 AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-4217
SELECT DISTINCT - - COUNT( * ) AS col1, + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4217
SELECT DISTINCT - - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL 88 + + - ( col2 ) * + - col0 * + col1 FROM tab1
----
25163
290924
68632

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT COUNT( * ) + + - MIN( DISTINCT - col0 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-4219
SELECT COUNT ( * ) + + - MIN ( DISTINCT - col0 ) FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + COUNT( * ) + + + 41 AS col0 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4220
SELECT + COUNT ( * ) + + + 41 AS col0 FROM tab2 AS cor0
----
44

query I rowsort
SELECT - + 2 + 24 AS col2 FROM tab1 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col2 col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT + 28 + - 34 FROM tab2 WHERE NOT + - col1 IS NULL
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col0 col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL - MAX( DISTINCT - 96 ) AS col0 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL - MAX ( DISTINCT - 96 ) AS col0 FROM tab2 cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4226
SELECT 58, + COUNT( * ) AS col1 FROM tab2
----
58
3

skipif mysql # not compatible
query II rowsort label-4226
SELECT 58, + COUNT ( * ) AS col1 FROM tab2
----
58
3

query II rowsort
SELECT DISTINCT col2, + col2 - - - col2 FROM tab1
----
59
0
68
0
96
0

query II rowsort
SELECT DISTINCT - col1 + - col0 AS col0, col0 FROM tab2
----
-141
64
-142
75
-97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + COUNT( ALL - col0 ) + COUNT( * ) + 82 FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-4229
SELECT + COUNT ( ALL - col0 ) + COUNT ( * ) + 82 FROM tab1 cor0
----
88

query I rowsort
SELECT ALL - - ( 21 ) * + + 56 * 78 + + 44 AS col1 FROM tab1 AS cor0
----
91772
91772
91772

query I rowsort
SELECT DISTINCT + col1 * - + ( + + 74 ) FROM tab0 AS cor0
----
-1554
-5994
-74

query I rowsort
SELECT 28 * + col1 + + - col0 AS col0 FROM tab1 AS cor0
----
1225
341
55

query II rowsort
SELECT - col1 * - - col1, col2 FROM tab2 AS cor0
----
-2601
23
-4489
58
-5929
40

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 + + - ( + 40 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE 45 IS NULL
----

query I rowsort
SELECT ALL col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT col2 DIV + + col1 AS col2 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-4238
SELECT col2 / + + col1 AS col2 FROM tab0
----
0
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 + 73 col1 FROM tab0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT ALL - col0 + + 38 + 80 DIV col2 + + + col2 * col1 DIV + - 17 AS col0 FROM tab2 AS cor0
----
-205
-264
-74

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - col0 + + 38 + 80 / col2 + + + col2 * col1 / + - 17 AS col0 FROM tab2 AS cor0
----
-205
-264
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT MIN( ALL + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT MIN ( ALL + - col1 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + - 43 AS col1 FROM tab0 cor0
----
-33
4
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - MIN( ALL - + 15 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4245
SELECT - MIN ( ALL - + 15 ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4246
SELECT - CAST( NULL AS SIGNED ), col2 + - 4 col2 FROM tab1 AS cor0
----
NULL
55
NULL
64
NULL
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4246
SELECT - CAST ( NULL AS INTEGER ), col2 + - 4 col2 FROM tab1 AS cor0
----
NULL
55
NULL
64
NULL
92

query I rowsort
SELECT ALL + col1 - - 37 FROM tab2 AS cor0
----
104
114
88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4248
SELECT DISTINCT col0 / CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - col0 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT col0 / CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - col0 AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL + MAX( - + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + MAX ( - + col0 ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 16 ) * - col0 * + 41 * + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 / + 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL - ( + CAST( ( + col2 ) AS SIGNED ) ) / 22 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - ( + CAST ( ( + col2 ) AS INTEGER ) ) / 22 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT ALL - COUNT( * ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4253
SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT - MIN( - 48 ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - MIN ( - 48 ) AS col1 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT MAX( + - 34 ) * + - 95 FROM tab1
----
3230

skipif mysql # not compatible
query I rowsort label-4255
SELECT MAX ( + - 34 ) * + - 95 FROM tab1
----
3230

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT col1 * CAST( + col1 AS SIGNED ) FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-4257
SELECT col1 * CAST ( + col1 AS INTEGER ) FROM tab1
----
196
2209
25

query I rowsort
SELECT + col0 * + 46 AS col2 FROM tab0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT COUNT( * ) * + 26 * - 74 * - 29 AS col2 FROM tab0
----
167388

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT COUNT ( * ) * + 26 * - 74 * - 29 AS col2 FROM tab0
----
167388

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT DISTINCT + 14 DIV + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT + 14 / + col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT DISTINCT + AVG ( - ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT + AVG ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( + 24 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT - 92 + - + 66 + col0 + + col1 FROM tab1
----
-20
-68
-93

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 95 BETWEEN NULL AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT DISTINCT - COUNT( * ) AS col2, - 51 FROM tab1 AS cor0
----
-3
-51

skipif mysql # not compatible
query II rowsort label-4265
SELECT DISTINCT - COUNT ( * ) AS col2, - 51 FROM tab1 AS cor0
----
-3
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 52 * col0 col2 FROM tab2 AS cor0
----
2392
3328
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT - MIN( DISTINCT - + col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT - MIN ( DISTINCT - + col0 ) AS col0 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT MIN( ALL - + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT MIN ( ALL - + col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - col0 + + - 81 FROM tab0
----
-168
-178
-96

query I rowsort
SELECT col1 + col0 + 37 AS col0 FROM tab2
----
134
178
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + col1 + - 66 + 95 AS col2, + 69 col1 FROM tab0
----
129
69
157
69
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT SUM( + + 34 ) + - COUNT( + col0 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4273
SELECT SUM ( + + 34 ) + - COUNT ( + col0 ) col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4274
SELECT + ( - 45 ) DIV - 21 - 48 + - 95 * + + 84 * - + COUNT( + col2 ) FROM tab0
----
23894

skipif mysql # not compatible
query I rowsort label-4274
SELECT + ( - 45 ) / - 21 - 48 + - 95 * + + 84 * - + COUNT ( + col2 ) FROM tab0
----
23894

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4275
SELECT 42 + + col1 + + col1 / + col1 * + col0 / - CAST( NULL AS DECIMAL ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4275
SELECT 42 + + col1 + + col1 / + col1 * + col0 / - CAST ( NULL AS REAL ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * 23 + - 88 + 96 / - col1 * - col0 <= NULL
----

query I rowsort
SELECT ALL - col0 * 9 + + col0 AS col0 FROM tab1
----
-408
-680
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL + COUNT( * ) FROM tab1 WHERE + - 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL + COUNT ( * ) FROM tab1 WHERE + - 27 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL - + MIN( DISTINCT + col0 ) * - 78 - + 22 AS col0 FROM tab0 AS cor0
----
1148

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - + MIN ( DISTINCT + col0 ) * - 78 - + 22 AS col0 FROM tab0 AS cor0
----
1148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT ALL - col2 - - col0 * + CAST( 59 AS SIGNED ) + col1 FROM tab1 AS cor0
----
2927
4961
5348

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - col2 - - col0 * + CAST ( 59 AS INTEGER ) + col1 FROM tab1 AS cor0
----
2927
4961
5348

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4281
SELECT DISTINCT - col2, CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

skipif mysql # not compatible
query II rowsort label-4281
SELECT DISTINCT - col2, CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT + - 11 AS col1 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4283
SELECT - 8 - 22 DIV + ( MAX( ALL + 56 ) ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-4283
SELECT - 8 - 22 / + ( MAX ( ALL + 56 ) ) FROM tab1
----
-8

query I rowsort
SELECT DISTINCT 67 * - col2 FROM tab1
----
-3953
-4556
-6432

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + SUM( ALL - 14 ) AS col2 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4285
SELECT + SUM ( ALL - 14 ) AS col2 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 64 IS NOT NULL
----

query I rowsort
SELECT - ( - ( - col1 ) ) AS col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + - MAX( + + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4288
SELECT + - MAX ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT + 40 - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
40

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + 40 - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4291
SELECT DISTINCT + ( + + COUNT( * ) ) AS col1, MIN( ALL - 64 ) + 10 + - CAST( + SUM( DISTINCT - col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-4291
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col1, MIN ( ALL - 64 ) + 10 + - CAST ( + SUM ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3
67

query I rowsort
SELECT 69 * - + col2 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT MAX( ALL 57 ) AS col2 FROM tab2 WHERE NOT ( NULL >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT MAX ( ALL 57 ) AS col2 FROM tab2 WHERE NOT ( NULL >= NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT 1 DIV - col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT 1 / - col0 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT ALL + col2 DIV + + 63 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + col2 / + + 63 FROM tab0
----
0
0
1

query II rowsort
SELECT DISTINCT + 48 AS col2, - col1 - col2 FROM tab0
----
48
-100
48
-128
48
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT - MAX( ALL + col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - MAX ( ALL + col0 ) AS col0 FROM tab2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT - - 69 DIV - - col1 col1 FROM tab0 AS cor0
----
0
3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4299
SELECT - - 69 / - - col1 col1 FROM tab0 AS cor0
----
0
3
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL + 40 * + + COUNT( * ) FROM tab2 cor0
----
120

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + 40 * + + COUNT ( * ) FROM tab2 cor0
----
120

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 71 >= NULL
----

query I rowsort
SELECT DISTINCT col0 * 56 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT - 60 * + col2 + + col0 FROM tab1 WHERE NOT 9 <> col0 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE - 34 * col0 NOT BETWEEN NULL AND 72
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND + 98 / - col1 + col1 * col1
----
85
5
59

query I rowsort
SELECT col0 FROM tab0 WHERE + 97 + + col0 / col1 < ( - 27 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT ( CAST( NULL AS SIGNED ) ) + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT ( CAST ( NULL AS INTEGER ) ) + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 * col0 col1 FROM tab2
----
1012
2496
4275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4309
SELECT DISTINCT 18 * 74 AS col1 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT 18 * 74 AS col1 FROM tab2 WHERE - CAST ( NULL AS REAL ) NOT IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT 55 + - 12 DIV col2 col0 FROM tab1
----
55
55
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4310
SELECT 55 + - 12 / col2 col0 FROM tab1
----
55
55
55

query I rowsort
SELECT 61 * 69 FROM tab0
----
4209
4209
4209

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > ( col2 * - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT - 94 * + MIN( DISTINCT col0 ) FROM tab1
----
-4794

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - 94 * + MIN ( DISTINCT col0 ) FROM tab1
----
-4794

query I rowsort
SELECT - 38 + col2 * 39 AS col1 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
1795
352
3823

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT 41 + MAX( ALL + col0 ) * - COUNT( col1 ) FROM tab0
----
-250

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT 41 + MAX ( ALL + col0 ) * - COUNT ( col1 ) FROM tab0
----
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT + 54 + - col1 FROM tab0 WHERE NOT - col1 + col2 * 84 IN ( ( 82 ) * col2 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 54 + - col1 FROM tab0 WHERE NOT - col1 + col2 * 84 IN ( ( 82 ) * col2 - - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 30 col0 FROM tab2
----
-1200
-1740
-690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 * + 3 col0 FROM tab0 WHERE ( NULL ) BETWEEN - 51 AND NULL
----

query I rowsort
SELECT DISTINCT ( ( ( 65 ) ) ) * - col0 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT COUNT( + 85 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT COUNT ( + 85 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 + 26 col0 FROM tab1
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( 1 * 57 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( 1 * 57 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT + 33 * - col1 + - 26 * + ( col2 ) = + col1
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT ALL COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT + MAX( - col0 ) AS col2 FROM tab0 WHERE NOT col1 >= col0
----
-87

skipif mysql # not compatible
query I rowsort label-4326
SELECT + MAX ( - col0 ) AS col2 FROM tab0 WHERE NOT col1 >= col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT - col0 - - CAST( CAST( col0 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4327
SELECT - col0 - - CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT + col0 DIV - 13 AS col2 FROM tab0
----
-1
-6
-7

skipif mysql # not compatible
query I rowsort label-4328
SELECT + col0 / - 13 AS col2 FROM tab0
----
-1
-6
-7

query I rowsort
SELECT ALL + 52 - col1 FROM tab0 AS cor0
----
-29
31
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT ALL 93 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL 93 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL - COUNT( * ) - - SUM( - col0 + + col1 * 58 ) AS col1 FROM tab2 cor0
----
11122

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - COUNT ( * ) - - SUM ( - col0 + + col1 * 58 ) AS col1 FROM tab2 cor0
----
11122

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT DISTINCT col2 - 48 DIV 90 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT col2 - 48 / 90 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - col0 * col0 AND 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT - MAX( 76 ) FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - MAX ( 76 ) FROM tab1
----
-76

query I rowsort
SELECT DISTINCT 15 FROM tab0 AS cor0 CROSS JOIN tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + + COUNT( + 9 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4337
SELECT + + COUNT ( + 9 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - ( + COUNT( DISTINCT - col1 ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - ( + COUNT ( DISTINCT - col1 ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT 67 * 12 AS col0 FROM tab0 AS cor0
----
804

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = - ( ( ( - 38 ) ) ) * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + CAST( NULL AS SIGNED ) ) AND - col1
----

skipif mysql # not compatible
query I rowsort label-4342
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND - col1
----

query I rowsort
SELECT - 5 AS col1 FROM tab2 WHERE NOT ( - col2 + - col1 ) BETWEEN - ( - 9 ) + col1 AND ( NULL )
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 11 * + col2 AS col0 FROM tab1
----
1056
649
748

query I rowsort
SELECT ALL - col1 * ( + col2 ) AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT + 25 * + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT + 25 * + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-75

query I rowsort
SELECT ALL 62 FROM tab1 WHERE ( - 75 ) IN ( - 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL COUNT( - + col0 ) * - 55 AS col1 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL COUNT ( - + col0 ) * - 55 AS col1 FROM tab0
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT + col0 DIV col2 * + ( + 52 ) FROM tab2
----
104
52

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT + col0 / col2 * + ( + 52 ) FROM tab2
----
104
52

query I rowsort
SELECT - 10 * - col2 FROM tab1
----
590
680
960

query I rowsort
SELECT ALL + ( + + ( - col1 ) ) AS col1 FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE col2 <= + 56 AND NOT ( col2 / + col0 ) IS NULL
----
15
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT 79 DIV - COUNT( col1 ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4353
SELECT 79 / - COUNT ( col1 ) FROM tab1 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4354
SELECT * FROM tab0 WHERE - col1 + + col1 NOT BETWEEN CAST( col0 AS SIGNED ) AND + col2 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4354
SELECT * FROM tab0 WHERE - col1 + + col1 NOT BETWEEN CAST ( col0 AS INTEGER ) AND + col2 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 40 ) AS col0 FROM tab2
----
-40
-40
-40

query III rowsort
SELECT * FROM tab0 WHERE ( + + ( + 84 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + 10 IS NULL
----

query I rowsort
SELECT ALL + col2 * + + col0 + + - col1 + 67 FROM tab1 AS cor0
----
4949
5077
6208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT + COUNT( * ) * + - COUNT( * ) + + COUNT( * ) + COUNT( * ) - + MIN( + col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT + COUNT ( * ) * + - COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) - + MIN ( + col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 - - - col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - COUNT( * ) + + 75 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4361
SELECT - COUNT ( * ) + + 75 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
222

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 85 < - col2 + 95 OR NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT ALL - SUM( DISTINCT + col0 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL - SUM ( DISTINCT + col0 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT col0 * - col2 FROM tab0 AS cor0 WHERE + col1 + + + CAST( NULL AS SIGNED ) * col2 < col0 * 53 - 10
----

skipif mysql # not compatible
query I rowsort label-4364
SELECT col0 * - col2 FROM tab0 AS cor0 WHERE + col1 + + + CAST ( NULL AS INTEGER ) * col2 < col0 * 53 - 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT - 14 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT - 14 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 - + - col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT col1 + + col1 * + col0 DIV col0 + + ( col2 ) FROM tab2
----
125
192
194

skipif mysql # not compatible
query I rowsort label-4367
SELECT col1 + + col1 * + col0 / col0 + + ( col2 ) FROM tab2
----
125
192
194

query I rowsort
SELECT + col1 + + - col0 - col1 * 57 FROM tab2
----
-2902
-3827
-4376

query I rowsort
SELECT col1 + + ( + col0 ) FROM tab0
----
108
96
98

query I rowsort
SELECT + ( - 49 ) + - - col0 FROM tab1
----
2
36
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0, - 8 * - 86 AS col0 FROM tab1
----
0
688

skipif mysql # not compatible
query II rowsort label-4371
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, - 8 * - 86 AS col0 FROM tab1
----
0
688

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT ALL col0 + + col1 DIV + col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL col0 + + col1 / + col2 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE - 65 * + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - + 35 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 29 * col0 + 87 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
40
40
40

query I rowsort
SELECT DISTINCT - 29 * col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + 55 * 62 + + 16 - - col2 + + 79 * - 77 AS col1 FROM tab0 AS cor0
----
-2558
-2610
-2647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT + 80 - CAST( - col0 AS SIGNED ) * + 64 FROM tab0 AS cor0
----
1040
5648
6288

skipif mysql # not compatible
query I rowsort label-4380
SELECT + 80 - CAST ( - col0 AS INTEGER ) * + 64 FROM tab0 AS cor0
----
1040
5648
6288

query I rowsort
SELECT 30 AS col2 FROM tab0 cor0
----
30
30
30

query II rowsort
SELECT - 94 * col0, col2 AS col0 FROM tab1 AS cor0
----
-4794
96
-7990
59
-8554
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 22 > NULL
----

query I rowsort
SELECT + 63 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + 97 BETWEEN NULL AND + - col0 / - col0 + - col2
----
59
68
96

query I rowsort
SELECT DISTINCT + 98 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + 85 + col1 AND NULL
----
98

query I rowsort
SELECT DISTINCT col2 * - col1 * + - 20 FROM tab2 AS cor0
----
23460
61600
77720

query I rowsort
SELECT 34 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - - COUNT( - - 16 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT - - COUNT ( - - 16 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + SUM( ALL + col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4390
SELECT + SUM ( ALL + col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-4391
SELECT + 53 AS col0, COUNT( * ) FROM tab1 AS cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-4391
SELECT + 53 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
53
3

query II rowsort
SELECT ALL 96, - 51 AS col0 FROM tab1 AS cor0
----
96
-51
96
-51
96
-51

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= + col2 - + 43 * + 19 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT + MIN( ALL + - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + MIN ( ALL + - col1 ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 73 + + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + ( ( + - col1 ) ) FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT col0 + - 74 + - col0 * col0, col0 FROM tab1
----
-2624
51
-7214
85
-8264
91

query I rowsort
SELECT DISTINCT + col1 * + - col1 + + col1 AS col1 FROM tab0
----
-420
-6480
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT - MAX( 97 ) FROM tab0, tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4399
SELECT - MAX ( 97 ) FROM tab0, tab2 AS cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT + CAST( NULL AS SIGNED ) * - + COUNT( ( + + col2 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( ( + + col2 ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 19 - - ( col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT 14 * + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT 14 * + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
42

query I rowsort
SELECT - ( + col0 ) / - 56 * + ( + col2 ) + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT COUNT( * ), - 14 AS col1 FROM tab1 AS cor0
----
3
-14

skipif mysql # not compatible
query II rowsort label-4404
SELECT COUNT ( * ), - 14 AS col1 FROM tab1 AS cor0
----
3
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4405
SELECT * FROM tab0 cor0 WHERE NULL IN ( CAST( 17 AS SIGNED ), 29 )
----

skipif mysql # not compatible
query III rowsort label-4405
SELECT * FROM tab0 cor0 WHERE NULL IN ( CAST ( 17 AS INTEGER ), 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL MAX( ALL 93 ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL MAX ( ALL 93 ) FROM tab1 AS cor0
----
93

query I rowsort
SELECT DISTINCT ( ( - + 44 ) ) + 55 AS col1 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT MAX( - col2 ) - - COUNT( DISTINCT - 7 ) col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4408
SELECT DISTINCT MAX ( - col2 ) - - COUNT ( DISTINCT - 7 ) col0 FROM tab1 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + + col2 * + col2 + 52 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - 31 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 31 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + COUNT( DISTINCT + - col1 ) + 92 AS col2 FROM tab1 cor0
----
95

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + COUNT ( DISTINCT + - col1 ) + 92 AS col2 FROM tab1 cor0
----
95

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + - col2 IS NOT NULL )
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - 52 * + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - col1 * ( + col0 ) NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - 64 * - 83 - COUNT( * ) AS col1 FROM tab2
----
5309

skipif mysql # not compatible
query I rowsort label-4417
SELECT - 64 * - 83 - COUNT ( * ) AS col1 FROM tab2
----
5309

query I rowsort
SELECT DISTINCT - ( + - 62 ) AS col2 FROM tab2
----
62

query I rowsort
SELECT DISTINCT 12 - - col2 * + col1 AS col2 FROM tab1
----
1356
307
3208

onlyif mysql # DIV for integer division: 
query I rowsort label-4420
SELECT - col2 + - + col0 + + 10 DIV - col2 FROM tab0
----
-196
-62
-98

skipif mysql # not compatible
query I rowsort label-4420
SELECT - col2 + - + col0 + + 10 / - col2 FROM tab0
----
-196
-62
-98

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col0 * + col1 + - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - 90 AS col1 FROM tab1
----
14
-90
47
-90
5
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT DISTINCT - - CAST( + 15 AS SIGNED ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - - CAST ( + 15 AS INTEGER ) FROM tab1 cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 80
----

query I rowsort
SELECT - 86 * col2 FROM tab0
----
-4042
-8514
-860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT 21 * - COUNT( * ) * 74 DIV + 43 AS col2 FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT 21 * - COUNT ( * ) * 74 / + 43 AS col2 FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT + 79 DIV - 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4427
SELECT + 79 / - 95 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT + MIN( + + ( - 90 ) ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + MIN ( + + ( - 90 ) ) FROM tab2
----
-90

query I rowsort
SELECT DISTINCT + 11 * - + 21 FROM tab1 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT + MIN( - col0 ) * + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
675

skipif mysql # not compatible
query I rowsort label-4430
SELECT + MIN ( - col0 ) * + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
675

query I rowsort
SELECT DISTINCT - 17 + col0 FROM tab0 WHERE NULL IS NULL
----
-2
70
80

query II rowsort
SELECT - 69, + col0 FROM tab1
----
-69
51
-69
85
-69
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT + 83 + + ( + + MIN( col1 ) ) AS col1 FROM tab2
----
134

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT + 83 + + ( + + MIN ( col1 ) ) AS col1 FROM tab2
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4434
SELECT DISTINCT * FROM tab2 WHERE - + 92 IN ( - + col1, col1, ( CAST( + col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4434
SELECT DISTINCT * FROM tab2 WHERE - + 92 IN ( - + col1, col1, ( CAST ( + col1 AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( - 1 ) * col2 * + col0 col2 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT ALL col1 + + 24 AS col1 FROM tab1
----
29
38
71

query I rowsort
SELECT DISTINCT - 99 FROM tab1 AS cor0 WHERE NOT col1 + + 91 IS NULL
----
-99

query I rowsort
SELECT DISTINCT + + col0 + + - 81 FROM tab2 AS cor0
----
-17
-35
-6

query I rowsort
SELECT + 85 * - ( - + ( - col2 ) ) AS col0 FROM tab0
----
-3995
-8415
-850

query II rowsort
SELECT + 42 AS col1, ( col0 ) FROM tab1
----
42
51
42
85
42
91

query I rowsort
SELECT DISTINCT - ( - col0 ) + + 33 AS col0 FROM tab2
----
108
79
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 95 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-146
-180
-186

query I rowsort
SELECT DISTINCT col1 - + ( - + 8 ) FROM tab2 AS cor0
----
59
75
85

query I rowsort
SELECT - - 54 + - + col1 FROM tab1 AS cor0
----
40
49
7

query I rowsort
SELECT - + 39 + col2 FROM tab0 AS cor0
----
-29
60
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT col2 + + col1 DIV + - col1 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4447
SELECT col2 + + col1 / + - col1 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT 76 + + 70 AS col1 FROM tab1 AS cor0
----
146
146
146

query I rowsort
SELECT DISTINCT + 55 - - ( + col2 ) + + col1 FROM tab0
----
155
183
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) ) AS col0 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 * - - col2 NOT IN ( + 88, 62, - col1, + + 75 )
----

query I rowsort
SELECT ALL 91 * 77 FROM tab0
----
7007
7007
7007

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col2 * - - 37 AND 97
----

query I rowsort
SELECT + + 81 AS col0 FROM tab0 cor0
----
81
81
81

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND + 45
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4456
SELECT - + COUNT( * ), + ( - 64 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-64

skipif mysql # not compatible
query II rowsort label-4456
SELECT - + COUNT ( * ), + ( - 64 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-64

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col1 * + - 85 * + + col2 - - col0 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + + COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4458
SELECT + + COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT ALL + ( 28 ) DIV + 16 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + ( 28 ) / + 16 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT - SUM( DISTINCT - + 24 ) AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT - SUM ( DISTINCT - + 24 ) AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT + + CAST( NULL AS SIGNED ) + + ( col2 ) * + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4462
SELECT + + CAST ( NULL AS INTEGER ) + + ( col2 ) * + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT + col0 DIV - 78 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT + col0 / - 78 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT DISTINCT COUNT( * ) - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE - col1 - col0 BETWEEN + col1 * + col1 * - col2 / - col2 AND ( 72 * col2 * + + CAST( - 83 AS SIGNED ) + + col1 + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT COUNT ( * ) - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE - col1 - col0 BETWEEN + col1 * + col1 * - col2 / - col2 AND ( 72 * col2 * + + CAST ( - 83 AS INTEGER ) + + col1 + 3 )
----
0

query I rowsort
SELECT - col0 + - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - col1 NOT IN ( - - col2 * - col1 + 94, col1 + col0, + - col0 ) )
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE 62 BETWEEN ( 25 ) / - col1 * - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab1 WHERE NULL NOT BETWEEN + col0 AND - - col1 OR NOT - 10 / + - col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + + MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4468
SELECT + + MAX ( col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - col0 * + - col2 + - - col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT - 25 + - - col2 FROM tab2 AS cor0
----
-2
15
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL COUNT( * ) + 92 AS col0 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL COUNT ( * ) + 92 AS col0 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ( + ( - ( COUNT( * ) ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4472
SELECT ( + ( - ( COUNT ( * ) ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - SUM( ALL - + col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4473
SELECT - SUM ( ALL - + col1 ) AS col1 FROM tab2 cor0
----
195

query I rowsort
SELECT + col2 * - - col2 + + col2 AS col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
110
2256
9900

query II rowsort
SELECT + col2, col2 * - col0 - + - col2 FROM tab0 AS cor0
----
10
-860
47
-658
99
-9504

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) = col0
----

query I rowsort
SELECT + col2 - ( - - col0 ) + col0 + 58 AS col0 FROM tab1 AS cor0
----
117
126
154

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 11 NOT IN ( - 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT - 74 * CAST( + col0 AS SIGNED ) col1 FROM tab0
----
-1110
-6438
-7178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4479
SELECT - 74 * CAST ( + col0 AS INTEGER ) col1 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4480
SELECT ALL - col0 AS col2, ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL - col0 AS col2, ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT + MAX( ( 58 ) ) * + ( - + 10 ) col0 FROM tab0
----
-580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4481
SELECT DISTINCT + MAX ( ( 58 ) ) * + ( - + 10 ) col0 FROM tab0
----
-580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4482
SELECT ALL col0 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4482
SELECT ALL col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT + 21 * COUNT( * ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + 21 * COUNT ( * ) AS col1 FROM tab2
----
63

query I rowsort
SELECT 62 * + col0 FROM tab1
----
3162
5270
5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col1 col1, col0 AS col0 FROM tab2
----
1173
46
3080
64
3886
75

query I rowsort
SELECT - col1 * - 6 AS col0 FROM tab2
----
306
402
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4487
SELECT DISTINCT 73 DIV - ( + COUNT( * ) ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT 73 / - ( + COUNT ( * ) ) FROM tab1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT 3 DIV + 19 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT 3 / + 19 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT DISTINCT + 94 DIV 19 * + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT + 94 / 19 * + COUNT ( * ) FROM tab1
----
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL <> col1 * - ( 16 ) * - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * col1 < - - 98 + - - 52
----

query II rowsort
SELECT DISTINCT + + col0, - 60 AS col2 FROM tab2 AS cor0
----
46
-60
64
-60
75
-60

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 59 * 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 40 AS col0 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT - ( - + ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 53 * - col2 AS col1 FROM tab0 AS cor0
----
-2491
-5247
-530

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT - 58 * + col1 + col1 DIV - col2 FROM tab0 AS cor0
----
-1220
-4699
-58

skipif mysql # not compatible
query I rowsort label-4498
SELECT - 58 * + col1 + col1 / - col2 FROM tab0 AS cor0
----
-1220
-4699
-58

query I rowsort
SELECT + col0 + col2 * - + ( - - 71 ) * + 67 + col0 FROM tab0
----
-223549
-470749
-47396

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT + col1 + + col1 DIV + 15 AS col2 FROM tab1
----
14
5
50

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + col1 + + col1 / + 15 AS col2 FROM tab1
----
14
5
50

query II rowsort
SELECT col2 + - col1 - col2, + col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - COUNT( * ) FROM tab2 WHERE + col0 * 2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT - COUNT ( * ) FROM tab2 WHERE + col0 * 2 IS NULL
----
0

query I rowsort
SELECT ALL + col0 + + 39 FROM tab0
----
126
136
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT - - MIN( - col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4504
SELECT DISTINCT - - MIN ( - col2 ) col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4505
SELECT DISTINCT CAST( - col0 AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT - 84 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT CAST ( - col0 AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT - 84 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT - CAST( - + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4506
SELECT - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4507
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4507
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT - - COUNT( * ) * - 15 AS col1 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4508
SELECT - - COUNT ( * ) * - 15 AS col1 FROM tab1 AS cor0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4509
SELECT 64 * + + 64 * + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-12288

skipif mysql # not compatible
query I rowsort label-4509
SELECT 64 * + + 64 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-12288

query I rowsort
SELECT - - col1 * 74 AS col1 FROM tab2 AS cor0
----
3774
4958
5698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4511
SELECT + COUNT( * ) - + 32 DIV - - MIN( DISTINCT + col1 ) AS col2 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-4511
SELECT + COUNT ( * ) - + 32 / - - MIN ( DISTINCT + col1 ) AS col2 FROM tab0
----
-29

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN 85 + + col2 AND NULL AND ( ( - 84 ) IS NULL )
----

query I rowsort
SELECT 84 FROM tab0 cor0 WHERE ( 47 ) IS NOT NULL
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + - MAX( ALL - 85 ) AS col1 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4514
SELECT + - MAX ( ALL - 85 ) AS col1 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + MIN( + col1 ) * + 25 AS col1 FROM tab1 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + MIN ( + col1 ) * + 25 AS col1 FROM tab1 AS cor0
----
125

query II rowsort
SELECT - ( - 54 ) AS col2, + 64 AS col1 FROM tab1 AS cor0
----
54
64
54
64
54
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT + 40 * 20 / - SUM( DISTINCT + ( - - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT + 40 * 20 / - SUM ( DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + 7 * ( 61 ) + 65 < col0 * col1 + - + 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 8 col0 FROM tab2
----
184
320
464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 12 col0 FROM tab1
----
1020
1092
612

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL SUM( - 35 ) AS col0 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL SUM ( - 35 ) AS col0 FROM tab0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 * col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4524
SELECT DISTINCT + col1 DIV ( + + 52 ) AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + col1 / ( + + 52 ) AS col1 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT col2 DIV - 63 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT col2 / - 63 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT DISTINCT ( col0 ) DIV - col0 + 15 * col1 AS col2 FROM tab0
----
1214
14
314

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT ( col0 ) / - col0 + 15 * col1 AS col2 FROM tab0
----
1214
14
314

query II rowsort
SELECT DISTINCT + col1 + + + col2, - col2 + - col0 AS col1 FROM tab2 AS cor0
----
117
-104
125
-133
74
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4529
SELECT DISTINCT + + 19 AS col2, COUNT( ALL - col0 ) FROM tab1 AS cor0
----
19
3

skipif mysql # not compatible
query II rowsort label-4529
SELECT DISTINCT + + 19 AS col2, COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
19
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT - + col0 DIV + col0 + - col1 * + + 81 col1 FROM tab2 AS cor0
----
-4132
-5428
-6238

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4530
SELECT - + col0 / + col0 + - col1 * + + 81 col1 FROM tab2 AS cor0
----
-4132
-5428
-6238

query II rowsort
SELECT ALL 42, + 2 AS col2 FROM tab1 AS cor0
----
42
2
42
2
42
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + + ( - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 + 4 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT ALL - col0 * - 25 + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
1201
1677
1942

query I rowsort
SELECT DISTINCT + - col2 * ( + col1 ) * - - 52 - - - col2 FROM tab2 cor0
----
-160200
-202130
-61019

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + MAX( DISTINCT + col2 ) * - 98 AS col0 FROM tab0 AS cor0
----
-9702

skipif mysql # not compatible
query I rowsort label-4537
SELECT + MAX ( DISTINCT + col2 ) * - 98 AS col0 FROM tab0 AS cor0
----
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL 1 + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 1 + COUNT ( * ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL - COUNT( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL - COUNT ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT ALL - 93 FROM tab0 WHERE ( col0 + - col1 ) >= - col0 + + - 65 + + + col0
----
-93
-93

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE - - col1 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + col2 ) * + - col2 IS NULL
----

query I rowsort
SELECT - ( + ( - 56 ) ) FROM tab2
----
56
56
56

query I rowsort
SELECT DISTINCT - - 49 + - col0 FROM tab0 WHERE NOT + 52 <= + col0 * - 56 AND NOT 68 >= + col0
----
-38
-48

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NULL AND ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT + 50 + + ( + COUNT( ALL - col2 ) ) * 4 AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT + 50 + + ( + COUNT ( ALL - col2 ) ) * 4 AS col0 FROM tab0 AS cor0
----
62

query I rowsort
SELECT ALL + + col1 + col2 + + col0 + col0 FROM tab0 AS cor0
----
158
205
294

query I rowsort
SELECT DISTINCT - col0 - + col1 * 51 AS col0 FROM tab2 AS cor0
----
-2647
-3492
-3991

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col2 IS NOT NULL )
----

query I rowsort
SELECT 83 * - - col1 FROM tab2
----
4233
5561
6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT - COUNT( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4551
SELECT - COUNT ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) col0 FROM tab1
----
0

query I rowsort
SELECT 32 * - col1 FROM tab0
----
-2592
-32
-672

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * - col2 BETWEEN NULL AND - 5
----

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT - 86 + + col2 * + - col0 * + + col0 + + 77 >= NULL
----

query I rowsort
SELECT ALL - 72 * - - 30 * + + col2 * - + col1 + - 36 AS col2 FROM tab0 AS cor0
----
213804
453564
8223084

query I rowsort
SELECT - ( 20 ) FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL + - COUNT( - 17 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL + - COUNT ( - 17 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4558
SELECT DISTINCT col0, col1 * - CAST( NULL AS SIGNED ) * - 32 - - col1 * 15 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4558
SELECT DISTINCT col0, col1 * - CAST ( NULL AS INTEGER ) * - 32 - - col1 * 15 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT 12 - - - col0 IN ( col0 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * - 51 col1 FROM tab2
----
-130560
-221850
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4563
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col1 + - - 86 * - CAST( + CAST( - 62 AS SIGNED ) AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4563
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col1 + - - 86 * - CAST ( + CAST ( - 62 AS INTEGER ) AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 94 * - col1 * - col0 FROM tab0
----
114210
171738
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT + ( - - ( - COUNT( * ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT + ( - - ( - COUNT ( * ) ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 49 >= 73 + - + 39
----

query I rowsort
SELECT col2 - - col2 AS col1 FROM tab2 WHERE NOT - 86 + + 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 25 * - col0 * col2 FROM tab2
----
-108750
-26450
-64000

query I rowsort
SELECT ALL - 18 * - ( - 78 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 919d3ee7e400cdcc3f970465dacc83b9

query I rowsort
SELECT 59 + - 59 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT - 27 DIV - + col2 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4571
SELECT - 27 / - + col2 AS col2 FROM tab0
----
0
0
2

query I rowsort
SELECT + + 12 + - col2 * + - 22 AS col0 FROM tab1 AS cor0
----
1310
1508
2124

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 1 * - 16 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT + + 79 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
3
79

skipif mysql # not compatible
query I rowsort label-4574
SELECT + + 79 / + col1 AS col0 FROM tab0 AS cor0
----
0
3
79

query I rowsort
SELECT ALL col2 + + - col2 * + 80 AS col1 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT DISTINCT + 52 + + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
151
62
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4578
SELECT ALL + CAST( NULL AS DECIMAL ) / col0 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL + CAST ( NULL AS REAL ) / col0 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + 35 AS col0 FROM tab2 AS cor0
----
-1610
-2240
-2625

query I rowsort
SELECT DISTINCT - 73 * + 98 FROM tab2 cor0
----
-7154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4581
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL CAST ( NULL AS REAL ) * + col1 + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - 48 FROM tab1 AS cor0
----
2256
240
672

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT DISTINCT col2 DIV 26 col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4584
SELECT DISTINCT col2 / 26 col2 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT COUNT( * ) + - + 42 * - COUNT( * ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-4585
SELECT COUNT ( * ) + - + 42 * - COUNT ( * ) FROM tab0
----
129

query I rowsort
SELECT + col2 + + 16 AS col2 FROM tab2
----
39
56
74

query II rowsort
SELECT 31 * - col1 + 93 * + col2, col1 + + col1 * - - col1 * - - col1 * + - col0 AS col2 FROM tab2
----
1333
-29218035
3317
-22557158
558
-6101895

query I rowsort
SELECT DISTINCT 1 * - col1 + + col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT col1 + - 40 * - + col1 FROM tab0 WHERE NOT + 1 * + col1 + - col1 * + 76 * col2 * col2 <= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - ( + ( - COUNT( * ) ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT - ( + ( - COUNT ( * ) ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - 35 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT - col1 * + ( + CAST( - - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4593
SELECT - col1 * + ( + CAST ( - - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + 86 * - SUM( - col2 ) FROM tab1 cor0
----
19178

skipif mysql # not compatible
query I rowsort label-4594
SELECT + 86 * - SUM ( - col2 ) FROM tab1 cor0
----
19178

query I rowsort
SELECT DISTINCT - 84 * + 71 FROM tab1
----
-5964

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - MIN( ALL + + 95 ) col2 FROM tab0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT ALL - MIN ( ALL + + 95 ) col2 FROM tab0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col0 * 99 col0 FROM tab2
----
4600
6400
7500

query II rowsort
SELECT DISTINCT col1 AS col2, col1 + ( + - col1 ) AS col1 FROM tab0
----
1
0
21
0
81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4599
SELECT DISTINCT - 0 * + col2 DIV + + 74 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT - 0 * + col2 / + + 74 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4600
SELECT - - 81 DIV + col0 - - + col1, 60 AS col2 FROM tab2 cor0
----
52
60
68
60
78
60

skipif mysql # not compatible
query II rowsort label-4600
SELECT - - 81 / + col0 - - + col1, 60 AS col2 FROM tab2 cor0
----
52
60
68
60
78
60

query I rowsort
SELECT ALL ( - 28 ) AS col1 FROM tab0 AS cor0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 * col1 col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT + 5 + - 90 AS col1 FROM tab1 AS cor0
----
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 - 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - 81 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT DISTINCT ( MAX( ALL ( - ( + + CAST( + - col1 AS SIGNED ) ) ) ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT ( MAX ( ALL ( - ( + + CAST ( + - col1 AS INTEGER ) ) ) ) ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 WHERE - 86 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT + COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 + + + 64 col1 FROM tab2
----
161
205
206

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT MAX( DISTINCT + 38 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT MAX ( DISTINCT + 38 ) FROM tab2
----
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL - SUM( + - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - SUM ( + - col0 ) FROM tab1
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT ALL 41 DIV 98 + col0 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL 41 / 98 + col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT CAST( + + col2 AS SIGNED ) + col2 + col2 AS col2 FROM tab0
----
141
297
30

skipif mysql # not compatible
query I rowsort label-4614
SELECT CAST ( + + col2 AS INTEGER ) + col2 + col2 AS col2 FROM tab0
----
141
297
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT 55 * MIN( DISTINCT - + col1 ) * + 84 + - COUNT( * ) DIV + + COUNT( * ) FROM tab2
----
-355741

skipif mysql # not compatible
query I rowsort label-4615
SELECT 55 * MIN ( DISTINCT - + col1 ) * + 84 + - COUNT ( * ) / + + COUNT ( * ) FROM tab2
----
-355741

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - 66 ) < + 95 * 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL - SUM( DISTINCT + + 10 ) AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - SUM ( DISTINCT + + 10 ) AS col0 FROM tab1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4618
SELECT + - ( - - MAX( ALL + + CAST( NULL AS SIGNED ) ) ) - + + 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + - ( - - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) ) - + + 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + col0 IS NULL )
----

query I rowsort
SELECT - col2 * - - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT ALL col2 + + col2 + + 28 AS col1, + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT ALL col1 DIV + - col0 + + col2 + - 21 DIV - col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL col1 / + - col0 + + col2 + - 21 / - col0 FROM tab1
----
59
68
96

query I rowsort
SELECT 8 + - 83 FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL - MAX( - 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - MAX ( - 5 ) FROM tab2
----
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 58 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT - CAST( NULL AS SIGNED ) / - ( COUNT( * ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - CAST ( NULL AS INTEGER ) / - ( COUNT ( * ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT 72 DIV - + COUNT( * ) FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4628
SELECT 72 / - + COUNT ( * ) FROM tab0 cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT 82 * - 46 * 94 * - - COUNT( - col0 ) col2 FROM tab2
----
-1063704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4629
SELECT 82 * - 46 * 94 * - - COUNT ( - col0 ) col2 FROM tab2
----
-1063704

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4630
SELECT * FROM tab1 WHERE - + col1 * - + ( + CAST( NULL AS SIGNED ) ) + - - col2 + + col0 / col2 * - 99 = NULL
----

skipif mysql # not compatible
query III rowsort label-4630
SELECT * FROM tab1 WHERE - + col1 * - + ( + CAST ( NULL AS INTEGER ) ) + - - col2 + + col0 / col2 * - 99 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + - COUNT( * ) + COUNT( - 97 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + - COUNT ( * ) + COUNT ( - 97 ) FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + 50 - - + col0 AS col2 FROM tab1 AS cor0
----
101
135
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - COUNT( * ) + + 79 AS col0 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4634
SELECT - COUNT ( * ) + + 79 AS col0 FROM tab1 AS cor0
----
76

query I rowsort
SELECT DISTINCT + + col0 - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT MAX( - col0 ) AS col0 FROM tab1 WHERE NOT + + 72 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT MAX ( - col0 ) AS col0 FROM tab1 WHERE NOT + + 72 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4637
SELECT + col1 DIV - - CAST( - CAST( + + 90 AS SIGNED ) AS SIGNED ) * 67 - + + col0 * + 91 AS col2 FROM tab0
----
-1365
-7917
-8827

skipif mysql # not compatible
query I rowsort label-4637
SELECT + col1 / - - CAST ( - CAST ( + + 90 AS INTEGER ) AS INTEGER ) * 67 - + + col0 * + 91 AS col2 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT ALL SUM( - - col2 ), - 89 AS col0 FROM tab0
----
156
-89

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL SUM ( - - col2 ), - 89 AS col0 FROM tab0
----
156
-89

query I rowsort
SELECT ALL col0 + 4 FROM tab1
----
55
89
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT DISTINCT col1 DIV + + col2 * + col2 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4640
SELECT DISTINCT col1 / + + col2 * + col2 col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - MAX( DISTINCT + - 62 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4641
SELECT - MAX ( DISTINCT + - 62 ) FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - COUNT( DISTINCT + 89 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4642
SELECT - COUNT ( DISTINCT + 89 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT DISTINCT - 10 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - 10 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col2 FROM tab1 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * + + 52 * - + col1 * + col2 * + col1 col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT - COUNT( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4646
SELECT - COUNT ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT + col0 * col2 * CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT + col0 * col2 * CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + - col0 = + 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - COUNT( ALL ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4649
SELECT - COUNT ( ALL ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL col2 * + ( + + 67 ) AS col0, col2 AS col2 FROM tab1 AS cor0
----
3953
59
4556
68
6432
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT DISTINCT + col2 + + col1 DIV + col1 AS col1 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT + col2 + + col1 / + col1 AS col1 FROM tab2
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT + COUNT( * ) FROM tab2 WHERE - col2 + - col1 * - ( + + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT + COUNT ( * ) FROM tab2 WHERE - col2 + - col1 * - ( + + col1 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL - ( CAST( + col0 AS SIGNED ) ) * - col1 + - + col1 FROM tab1 AS cor0
----
420
4230
700

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - ( CAST ( + col0 AS INTEGER ) ) * - col1 + - + col1 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT + 96 + col2 + + - col1 + + col0 AS col0 FROM tab2 AS cor0
----
114
123
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT DISTINCT - 4 + + 22 - - + 63 + - + 17 + - 80 DIV COUNT( * ) col0 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4655
SELECT DISTINCT - 4 + + 22 - - + 63 + - + 17 + - 80 / COUNT ( * ) col0 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - COUNT( * ) + + COUNT( * ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4656
SELECT ALL - COUNT ( * ) + + COUNT ( * ) col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT DISTINCT col1 * col2 + - + col2 DIV - col1 AS col2 FROM tab1
----
1350
306
3197

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT col1 * col2 + - + col2 / - col1 AS col2 FROM tab1
----
1350
306
3197

query III rowsort
SELECT * FROM tab1 cor0 WHERE 8 IS NULL
----

query I rowsort
SELECT - col2 - + 68 + - col0 AS col1 FROM tab2 cor0
----
-137
-172
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT DISTINCT + 55 - + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT + 55 - + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4661
SELECT DISTINCT + 50 * - CAST( NULL AS SIGNED ) * 23 AS col2, + 85 FROM tab2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4661
SELECT DISTINCT + 50 * - CAST ( NULL AS INTEGER ) * 23 AS col2, + 85 FROM tab2
----
NULL
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT + 8 DIV - + 5 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4662
SELECT + 8 / - + 5 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 39 * 69 + + col2 * - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT + MAX( DISTINCT + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4664
SELECT + MAX ( DISTINCT + col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT ALL col2 * + - 8 AS col1 FROM tab0
----
-376
-792
-80

query II rowsort
SELECT ALL - col1 AS col1, col0 FROM tab0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - 7 + - 51 FROM tab2 WHERE - col0 NOT BETWEEN - - col2 AND NULL
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT + SUM( - - ( - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4668
SELECT + SUM ( - - ( - col2 ) ) FROM tab1
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4669
SELECT DISTINCT - CAST( MAX( ALL + col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT - CAST ( MAX ( ALL + col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT CAST( - 93 AS SIGNED ) * col2 AS col2 FROM tab2
----
-2139
-3720
-5394

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT CAST ( - 93 AS INTEGER ) * col2 AS col2 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT ALL + 40 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL + 38 * 61 AS col1 FROM tab2 cor0
----
2318
2318
2318

query I rowsort
SELECT DISTINCT + - 22 * col0 * 88 FROM tab1 AS cor0
----
-164560
-176176
-98736

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 63 + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col2 * + ( col1 ) AS col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + SUM( ALL 31 ) * + COUNT( ALL col0 ) FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-4676
SELECT + SUM ( ALL 31 ) * + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
279

query I rowsort
SELECT ALL - col0 * - 40 AS col0 FROM tab0 AS cor0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT DISTINCT 6 + - COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT 6 + - COUNT ( * ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT + COUNT( * ) * + 17 AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT + COUNT ( * ) * + 17 AS col0 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4680
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) * + 90 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4680
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * + 90 >= - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 8 + - col0 + + col2 FROM tab1
----
-31
-34
37

query I rowsort
SELECT - col1 * col1 + - - 0 - + col1 FROM tab2
----
-2652
-4556
-6006

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 4 / col1 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT 67 + + + col1 AS col2 FROM tab1
----
114
72
81

query I rowsort
SELECT DISTINCT + 34 * - 43 - + col1 FROM tab1 WHERE - 68 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 + + + col2 col0 FROM tab1
----
103
66
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - + 35 NOT BETWEEN - col0 AND - col2 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - - col1 * - - 79 FROM tab0 AS cor0
----
16590
300753
7821

query I rowsort
SELECT ALL col0 + + col1 * - + col2 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT ALL - 10 - 62 AS col1 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT 83 + - 12 + - col0 AS col0 FROM tab2 AS cor0
----
-4
25
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT - col1 + + + CAST( 88 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
67
7
87

skipif mysql # not compatible
query I rowsort label-4692
SELECT - col1 + + + CAST ( 88 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
67
7
87

query I rowsort
SELECT ALL 6 + + ( + col1 ) - - + col2 * - 12 FROM tab0 AS cor0
----
-1181
-477
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT + SUM( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT + SUM ( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT col0 AS col2, 61 FROM tab0 AS cor0
----
15
61
87
61
97
61

query I rowsort
SELECT - - col0 AS col0 FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 88 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 91 * - ( 42 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 98da8136db01bb8e17149e66ca992655

query I rowsort
SELECT ALL + ( 41 ) AS col1 FROM tab1
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE ( col0 - - col2 = 35 )
----
0

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE ( col0 - - col2 = 35 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT ALL MAX( DISTINCT 91 ) AS col1, 39 AS col1 FROM tab2
----
91
39

skipif mysql # not compatible
query II rowsort label-4701
SELECT ALL MAX ( DISTINCT 91 ) AS col1, 39 AS col1 FROM tab2
----
91
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 + - col2 - - col0 col2 FROM tab1 WHERE NOT + 97 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL + col0 AS col2, - col0 * col1 FROM tab2
----
46
-2346
64
-4928
75
-5025

query I rowsort
SELECT + col1 + + ( - - col0 ) * + 84 FROM tab2 AS cor0
----
3915
5453
6367

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( ( - col1 + col2 <= + 85 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT - - 41 + - + ( + + MIN( 47 ) ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4708
SELECT - - 41 + - + ( + + MIN ( 47 ) ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= + + ( - col1 ) + - col2 * - - 33 + - 34
----

query I rowsort
SELECT DISTINCT 77 * - - 75 * + col2 * + + 61 + - col2 + - - col1 + + + 5 * + - col2 FROM tab1 AS cor0
----
20783876
23954339
33817838

query I rowsort
SELECT col0 * + 48 AS col1 FROM tab0 AS cor0
----
4176
4656
720

onlyif mysql # aggregate syntax: 
query III rowsort label-4712
SELECT COUNT( * ), SUM( ALL - + col2 ) * + 77 AS col0, COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3
-9317
3

skipif mysql # not compatible
query III rowsort label-4712
SELECT COUNT ( * ), SUM ( ALL - + col2 ) * + 77 AS col0, COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3
-9317
3

query II rowsort
SELECT + col0, 40 FROM tab2 cor0
----
46
40
64
40
75
40

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + COUNT( * ) FROM tab0 WHERE + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4715
SELECT + COUNT ( * ) FROM tab0 WHERE + - col1 IS NOT NULL
----
3

query I rowsort
SELECT - 68 + + 44 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT + 71 + - 51 * COUNT( * ) DIV 11 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4717
SELECT + 71 + - 51 * COUNT ( * ) / 11 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL + - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT COUNT( * ) + 10 AS col0 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT COUNT ( * ) + 10 AS col0 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4720
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT CAST( col0 AS SIGNED ) - + col1 AS col0 FROM tab0 cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-4721
SELECT CAST ( col0 AS INTEGER ) - + col1 AS col0 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT ALL - col0 * - + 94 AS col0 FROM tab0 AS cor0
----
1410
8178
9118

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4723
SELECT ALL + 42 DIV + + col1 * - CAST( col2 AS SIGNED ) + - + col0 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

skipif mysql # not compatible
query II rowsort label-4723
SELECT ALL + 42 / + + col1 * - CAST ( col2 AS INTEGER ) + - + col0 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query II rowsort
SELECT DISTINCT - 97 * - col0, - ( col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> 44
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4725
SELECT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 58 * - + col2 + 35 FROM tab2 AS cor0
----
1369
2355
3399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 75 col1, - 68 AS col0 FROM tab1 AS cor0
----
75
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT + - MAX( ALL 17 ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + - MAX ( ALL 17 ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * 5 col1 FROM tab2
----
-480
-480
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4730
SELECT - MAX( - CAST( col1 AS SIGNED ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4730
SELECT - MAX ( - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2
----
51

query II rowsort
SELECT + 58 AS col0, col0 + - - col1 FROM tab1
----
58
138
58
65
58
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4732
SELECT MAX( - CAST( + + 62 AS SIGNED ) ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-4732
SELECT MAX ( - CAST ( + + 62 AS INTEGER ) ) FROM tab1
----
-62

query II rowsort
SELECT ALL - col1 AS col0, + col2 AS col1 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) - - col0 FROM tab0 AS cor0 WHERE NOT - col0 > 15
----
196
62
97

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) - - col0 FROM tab0 AS cor0 WHERE NOT - col0 > 15
----
196
62
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4735
SELECT ALL + + 17 AS col0, col1 FROM tab1 AS cor0 WHERE - 85 - - - col0 + + - CAST( NULL AS DECIMAL ) + + + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4735
SELECT ALL + + 17 AS col0, col1 FROM tab1 AS cor0 WHERE - 85 - - - col0 + + - CAST ( NULL AS REAL ) + + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( ( - 37 ) ) AS col1 FROM tab1 AS cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 27 ) col2, 29 AS col0 FROM tab2 AS cor0
----
-27
29
-27
29
-27
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT DISTINCT ( - + 57 ) * + + MAX( DISTINCT - col1 ) + - MIN( ALL + col1 ) AS col1 FROM tab1
----
280

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT ( - + 57 ) * + + MAX ( DISTINCT - col1 ) + - MIN ( ALL + col1 ) AS col1 FROM tab1
----
280

query I rowsort
SELECT ALL + col2 * - ( - - col0 ) + + + 28 AS col2 FROM tab0
----
-677
-842
-9575

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 * col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 * - 90 col2 FROM tab0 AS cor0
----
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT ( + + col1 ) DIV 43 + - 25 - + col1 FROM tab1
----
-30
-39
-71

skipif mysql # not compatible
query I rowsort label-4742
SELECT ( + + col1 ) / 43 + - 25 - + col1 FROM tab1
----
-30
-39
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - 80 ) col2 FROM tab2
----
-22
-40
-57

query I rowsort
SELECT DISTINCT col2 + + ( + ( col2 ) ) FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL + COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT - COUNT( * ) + - 74 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-4746
SELECT - COUNT ( * ) + - 74 FROM tab1
----
-77

query I rowsort
SELECT col2 FROM tab1 WHERE ( NOT NULL <= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 * col1 AND NULL
----

query I rowsort
SELECT ALL 20 - col2 AS col2 FROM tab1 AS cor0
----
-39
-48
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT - col2 * + col0 - - ( - CAST( NULL AS SIGNED ) ) + - col0 - col2 * + + col1 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT - col2 * + col0 - - ( - CAST ( NULL AS INTEGER ) ) + - col0 - col2 * + + col1 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 30 + col2 FROM tab2
----
53
70
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( col0 ) col1 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL col2 AS col1 FROM tab1 WHERE - col1 IN ( - 15 + 68 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL col2 AS col1 FROM tab1 WHERE - col1 IN ( - 15 + 68 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4754
SELECT - CAST( NULL AS DECIMAL ) / COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT - CAST ( NULL AS REAL ) / COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT DISTINCT + ( - col2 ) * + col2 - + CAST( col0 + 34 AS SIGNED ) col1 FROM tab1
----
-3600
-4749
-9301

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4755
SELECT DISTINCT + ( - col2 ) * + col2 - + CAST ( col0 + 34 AS INTEGER ) col1 FROM tab1
----
-3600
-4749
-9301

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT COUNT( * ) + + 93 * - 14 AS col0 FROM tab2
----
-1299

skipif mysql # not compatible
query I rowsort label-4756
SELECT COUNT ( * ) + + 93 * - 14 AS col0 FROM tab2
----
-1299

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT - COUNT( * ) / - SUM( DISTINCT + col1 / 34 ) AS col0 FROM tab2 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - COUNT ( * ) / - SUM ( DISTINCT + col1 / 34 ) AS col0 FROM tab2 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL - COUNT( * ) * + 54 + COUNT( * ) AS col0 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - COUNT ( * ) * + 54 + COUNT ( * ) AS col0 FROM tab2
----
-159

query I rowsort
SELECT DISTINCT col2 * - 59 FROM tab2 WHERE ( NULL ) < ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT ( MIN( + 73 ) ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT ( MIN ( + 73 ) ) FROM tab2
----
73

query I rowsort
SELECT col1 + - 25 FROM tab0
----
-24
-4
56

query I rowsort
SELECT 19 FROM tab0 WHERE ( + ( 84 ) * col1 - - col0 * + col1 ) BETWEEN ( col2 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4763
SELECT * FROM tab1 WHERE ( col2 ) NOT BETWEEN ( - ( ( CAST( NULL AS SIGNED ) ) ) / + 64 ) AND ( col0 )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-4763
SELECT * FROM tab1 WHERE ( col2 ) NOT BETWEEN ( - ( ( CAST ( NULL AS INTEGER ) ) ) / + 64 ) AND ( col0 )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT - SUM( ALL + col2 ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4764
SELECT DISTINCT - SUM ( ALL + col2 ) col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT + COUNT( * ) FROM tab1 WHERE - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT + COUNT ( * ) FROM tab1 WHERE - col0 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) / 79 ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4766
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) / 79 ) <= ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( 29 ) col2 FROM tab2 WHERE NULL = 20 + + col2
----

query I rowsort
SELECT - col1 + + 90 * - 58 AS col2 FROM tab2
----
-5271
-5287
-5297

query I rowsort
SELECT - col2 * - 59 FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 * - col2 AND NULL
----

query I rowsort
SELECT - 10 AS col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col0 * 84 FROM tab2
----
-3841
-5336
-6242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT CAST( - ( MIN( DISTINCT - col2 ) ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4772
SELECT CAST ( - ( MIN ( DISTINCT - col2 ) ) AS INTEGER ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT 88 + - COUNT( 41 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-4773
SELECT 88 + - COUNT ( 41 ) FROM tab0
----
85

query I rowsort
SELECT + 72 + 6 * - col2 FROM tab0 WHERE NOT NULL BETWEEN ( 44 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT 25 + + COUNT( - col1 ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-4775
SELECT 25 + + COUNT ( - col1 ) FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL SUM( 14 ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL SUM ( 14 ) AS col1 FROM tab2
----
42

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - ( col1 ) * col2 - + 1 / + 83 ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 AS col0 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT ALL - col1 + + 53 AS col1 FROM tab1 WHERE col0 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4781
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4781
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4782
SELECT ALL * FROM tab2 WHERE ( NULL ) <> - 52 * - CAST( + col0 AS SIGNED ) + + ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-4782
SELECT ALL * FROM tab2 WHERE ( NULL ) <> - 52 * - CAST ( + col0 AS INTEGER ) + + ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4783
SELECT 55 DIV + 99 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4783
SELECT 55 / + 99 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 99
----

query I rowsort
SELECT - col2 + - 36 FROM tab0 cor0
----
-135
-46
-83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 68 ) NOT BETWEEN NULL AND 63 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + COUNT( * ) * + 19 AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4787
SELECT + COUNT ( * ) * + 19 AS col1 FROM tab2 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 NOT IN ( col1 + 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 42 * 25 FROM tab0 AS cor0
----
-1050
-1050
-1050

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 - + col1 NOT BETWEEN ( col0 + col2 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab1 WHERE col2 >= + col1 + - col0
----
14
47
5

query I rowsort
SELECT + 49 - col1 - - col0 * - col0 AS col1 FROM tab1
----
-2566
-7181
-8279

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT ALL col1 DIV + col0 + - col1 FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL col1 / + col0 + - col1 FROM tab0
----
-1
-21
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4794
SELECT col1 - - + 45 DIV + 13 AS col2 FROM tab2
----
54
70
80

skipif mysql # not compatible
query I rowsort label-4794
SELECT col1 - - + 45 / + 13 AS col2 FROM tab2
----
54
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT - SUM( - - 59 ) * 27 - + 63 FROM tab2
----
-4842

skipif mysql # not compatible
query I rowsort label-4795
SELECT - SUM ( - - 59 ) * 27 - + 63 FROM tab2
----
-4842

query I rowsort
SELECT DISTINCT - col0 * 75 FROM tab2
----
-3450
-4800
-5625

query I rowsort
SELECT ( + 0 ) + - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT + CAST( - - 6 AS SIGNED ) + + ( - col1 ) AS col0 FROM tab2
----
-45
-61
-71

skipif mysql # not compatible
query I rowsort label-4798
SELECT + CAST ( - - 6 AS INTEGER ) + + ( - col1 ) AS col0 FROM tab2
----
-45
-61
-71

query I rowsort
SELECT 28 + - 42 + + 35 * col2 FROM tab1
----
2051
2366
3346

query I rowsort
SELECT + + col1 * + col0 + - col0 * + col0 + 42 AS col0 FROM tab0 AS cor0
----
-5700
-9270
1032

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 88 + 95 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 54 * col2 >= - col1 * col1
----
3

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 54 * col2 >= - col1 * col1
----
3

query I rowsort
SELECT DISTINCT 89 - col0 - col1 FROM tab2 cor0
----
-52
-53
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT ALL - - COUNT( * ) * + + 9 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - - COUNT ( * ) * + + 9 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 78 + col2 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT 25 * + - col2 * col2 * - col0 FROM tab2
----
2560000
608350
6307500

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT + 11 * - COUNT( * ) AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT + 11 * - COUNT ( * ) AS col0 FROM tab1
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, + col0 col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT + col2 DIV - 80 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT + col2 / - 80 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4811
SELECT ALL + col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND 94 - - col0 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL col2 AS col0 FROM tab0 WHERE ( - col2 ) NOT IN ( + 82 + ( CAST( - col0 AS SIGNED ) ) * + col0 )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL col2 AS col0 FROM tab0 WHERE ( - col2 ) NOT IN ( + 82 + ( CAST ( - col0 AS INTEGER ) ) * + col0 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4814
SELECT 11 * CAST( NULL AS SIGNED ) AS col0, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4814
SELECT 11 * CAST ( NULL AS INTEGER ) AS col0, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT col1 * - col2 * col1 + + col1 - col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT DISTINCT - col1 * col2 + + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT - ( + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - col1 * col2 + + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT - ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN ( NULL ) AND + ( + 58 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL + 6 * + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( col2 ) AND + col1
----
21

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + 6 * + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( col2 ) AND + col1
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col2 FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT + 55 DIV - MAX( ALL + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT + 55 / - MAX ( ALL + col2 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4821
SELECT DISTINCT * FROM tab1 WHERE 52 * + 21 * + ( 97 ) + - 92 - + CAST( 99 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-4821
SELECT DISTINCT * FROM tab1 WHERE 52 * + 21 * + ( 97 ) + - 92 - + CAST ( 99 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE ( + col1 ) <= + 19 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE ( + col1 ) <= + 19 / - col1
----
0

query II rowsort
SELECT + 89 AS col1, col0 FROM tab0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 17 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col1 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT + 15 + col1 FROM tab2 AS cor0
----
66
82
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + col2 * - 58
----

query I rowsort
SELECT - 20 + + 39 AS col1 FROM tab2 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT + - COUNT( 39 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT + - COUNT ( 39 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL ( + 74 ) * - 39 FROM tab2
----
-2886
-2886
-2886

query I rowsort
SELECT + + col1 FROM tab0 WHERE + + ( - - 55 ) IS NULL
----

query I rowsort
SELECT ( + col1 ) * col1 FROM tab1 WHERE NULL NOT IN ( + col1 + col2 * + - col0 * col1 * col1 + + col1 * + 73 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - - col1 ) * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4836
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0, + 78 AS col2 FROM tab2 AS cor0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0, + 78 AS col2 FROM tab2 AS cor0
----
NULL
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col2 FROM tab0 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT + MIN( col0 ) * + - COUNT( * ) col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4838
SELECT DISTINCT + MIN ( col0 ) * + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-138

query III rowsort
SELECT * FROM tab1 WHERE NOT 11 IS NOT NULL
----

query I rowsort
SELECT - 29 * + + col1 + 22 AS col1 FROM tab1 WHERE NOT - col1 * + - 50 * - 63 IS NULL
----
-123
-1341
-384

query II rowsort
SELECT - ( + - 30 ) AS col2, 26 - - - col2 FROM tab2
----
30
-14
30
-32
30
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 43 * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 58 * + col1 * + - 14 FROM tab0 AS cor0
----
-17052
-65772
-812

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT ALL + 28 * MAX( DISTINCT - col2 ) col1, MIN( - col0 ) FROM tab2 AS cor0
----
-644
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4844
SELECT ALL + 28 * MAX ( DISTINCT - col2 ) col1, MIN ( - col0 ) FROM tab2 AS cor0
----
-644
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT - ( col0 ) DIV + col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - ( col0 ) / + col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + col1 * 29 * 84 AS col0 FROM tab2
----
124236
163212
187572

query II rowsort
SELECT col2 AS col2, - 18 AS col0 FROM tab0
----
10
-18
47
-18
99
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT ALL - 44 AS col2 FROM tab1 WHERE NOT NULL IN ( + 59 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - 44 AS col2 FROM tab1 WHERE NOT NULL IN ( + 59 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT COUNT( * ) * COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4849
SELECT COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0
----
27

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT + + 45 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 12 AS col1 FROM tab0
----
-12
-252
-972

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4852
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) - 71 * + ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4852
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) - 71 * + ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT - COUNT( * ) + COUNT( ALL col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - COUNT ( * ) + COUNT ( ALL col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT + + MAX( ALL + ( + col0 ) ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4854
SELECT + + MAX ( ALL + ( + col0 ) ) FROM tab1 cor0
----
91

query I rowsort
SELECT - col1 + + ( 1 ) AS col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN ( + + col0 * 44 ) AND 1
----
-20
-80
0

query I rowsort
SELECT DISTINCT + + col2 * 61 FROM tab0 AS cor0
----
2867
6039
610

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT - + 38 DIV - + col1 AS col2 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-4857
SELECT - + 38 / - + col1 AS col2 FROM tab1 AS cor0
----
0
2
7

query I rowsort
SELECT col1 * + ( + 31 ) + - 14 FROM tab1
----
141
1443
420

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT ALL col0 DIV - + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL col0 / - + col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT ALL + CAST( - - col2 AS SIGNED ) + - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + CAST ( - - col2 AS INTEGER ) + - col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ( + CAST( + - col0 AS SIGNED ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4861
SELECT ( + CAST ( + - col0 AS INTEGER ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4862
SELECT + + ( + COUNT( * ) ), + SUM( DISTINCT - + 57 ) DIV + 4 AS col0 FROM tab2 AS cor0
----
3
-14

skipif mysql # not compatible
query II rowsort label-4862
SELECT + + ( + COUNT ( * ) ), + SUM ( DISTINCT - + 57 ) / + 4 AS col0 FROM tab2 AS cor0
----
3
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4863
SELECT DISTINCT + + col2 / - - ( + CAST( NULL AS DECIMAL ) ) + col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + + col2 / - - ( + CAST ( NULL AS REAL ) ) + col2 AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col1 * + col0 AS col0, 34 FROM tab2 AS cor0
----
2346
34
4928
34
5025
34

query I rowsort
SELECT ALL + - col1 - ( - - col0 ) + 36 + - ( col2 ) * 85 * + 7 - col0 AS col0 FROM tab0 AS cor0
----
-28040
-59064
-6109

query I rowsort
SELECT ( col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 * - + col0 * col0 / - + 67 BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 * - + col0 * col0 / - + 67 BETWEEN NULL AND + col1
----
0

query I rowsort
SELECT DISTINCT - 44 - - 45 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - col0 + + 71 AS col1 FROM tab0 AS cor0 WHERE + ( - ( + ( - - col2 ) ) ) NOT IN ( + col1, col1 )
----
-16
-26
56

query I rowsort
SELECT col2 * - - col1 - + + 14 FROM tab1
----
1330
281
3182

query III rowsort
SELECT * FROM tab0 WHERE - - 47 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT - 12 * COUNT( * ) FROM tab0 WHERE NOT NULL <= - CAST( + col0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT - 12 * COUNT ( * ) FROM tab0 WHERE NOT NULL <= - CAST ( + col0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - - ( MAX( - col0 ) ) col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4874
SELECT - - ( MAX ( - col0 ) ) col0 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4875
SELECT DISTINCT ( - - 80 ) * - COUNT( * ) DIV COUNT( * ) * - 82 FROM tab1 AS cor0
----
6560

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT ( - - 80 ) * - COUNT ( * ) / COUNT ( * ) * - 82 FROM tab1 AS cor0
----
6560

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 99 AS col0 FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT col2 * + 57 AS col1 FROM tab2
----
1311
2280
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT + SUM( ALL col1 ) FROM tab0 WHERE NOT - + col0 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + SUM ( ALL col1 ) FROM tab0 WHERE NOT - + col0 IS NULL
----
103

query I rowsort
SELECT DISTINCT + col2 * - col0 FROM tab1 WHERE + ( ( + col1 ) ) IS NOT NULL
----
-4896
-5015
-6188

query II rowsort
SELECT DISTINCT + 28 AS col2, 85 AS col1 FROM tab1 AS cor0
----
28
85

query II rowsort
SELECT ALL ( col0 ) AS col1, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL - col0 + - 62 AS col1 FROM tab2 AS cor0 WHERE - 38 * ( + - 78 ) + + + ( + + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT DISTINCT + 49 * 19 + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
934

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT + 49 * 19 + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
934

query II rowsort
SELECT + col2 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL - col2 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT - 90 DIV + col2 FROM tab0 cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT - 90 / + col2 FROM tab0 cor0
----
-1
-9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT ALL 91 * + col2 + col0 + col0 DIV col1 * - + col0 - + 68 + col0 * col0 FROM tab2
----
10835
4187
7732

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL 91 * + col2 + col0 + col0 / col1 * - + col0 - + 68 + col0 * col0 FROM tab2
----
10835
4187
7732

query I rowsort
SELECT 93 + col2 * - 9 * - col1 FROM tab0
----
1983
34356
984

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - - col2 IN ( + 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 * - - 29 * + col0 + + - col1 - + col2 col1 FROM tab0 WHERE NULL > + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL - 54 - COUNT( - 96 ) col0 FROM tab0, tab2 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4892
SELECT ALL - 54 - COUNT ( - 96 ) col0 FROM tab0, tab2 AS cor0
----
-63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 99 + - + col1 AND NULL
----

query II rowsort
SELECT - - 76 * + 11 AS col1, col1 AS col0 FROM tab0 cor0
----
836
1
836
21
836
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 26 AS col2 FROM tab2 cor0
----
-26
-26
-26

query I rowsort
SELECT ALL AVG ( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL + col0 + 52 * + col0 AS col2 FROM tab0 AS cor0
----
4611
5141
795

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL 69 * COUNT( * ) - - 35 AS col2 FROM tab2 AS cor0
----
242

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL 69 * COUNT ( * ) - - 35 AS col2 FROM tab2 AS cor0
----
242

query I rowsort
SELECT DISTINCT + + col2 + - 88 FROM tab2 AS cor0
----
-30
-48
-65

query I rowsort
SELECT ALL 65 + + + 10 AS col0 FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col1, 55 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN col2 * col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4904
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( + - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4904
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 57 * + 84 + 81 + + col2 AS col1 FROM tab0 AS cor0
----
-4608
-4660
-4697

query I rowsort
SELECT DISTINCT + col0 * 16 - col2 AS col1 FROM tab2
----
1142
713
984

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL + COUNT( 72 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + COUNT ( 72 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT COUNT( * ) * - - 11 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT COUNT ( * ) * - - 11 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 77 AS col1 FROM tab1 WHERE NOT + col1 > col0
----
77
77
77

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col1 > NULL
----

query I rowsort
SELECT + col1 * + col1 + + + 91 AS col0 FROM tab2 AS cor0
----
2692
4580
6020

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - - SUM( DISTINCT + - 18 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4913
SELECT - - SUM ( DISTINCT + - 18 ) AS col2 FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT 76 * - MIN( - - col0 ) FROM tab0 AS cor0
----
-1140

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT 76 * - MIN ( - - col0 ) FROM tab0 AS cor0
----
-1140

query I rowsort
SELECT DISTINCT - col2 + - - ( - - col0 ) FROM tab0
----
-2
-32
77

query I rowsort
SELECT + 9 + col1 + + 36 FROM tab2 WHERE + col1 <= 25 * - 9
----

query I rowsort
SELECT ALL col2 + - 88 * - col1 FROM tab2
----
4511
5954
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 + - col0 col0 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT - - 52 + + 66 + + + 39 FROM tab2 AS cor0
----
157
157
157

query I rowsort
SELECT - 88 + - 51 + + ( col0 ) AS col1 FROM tab0 AS cor0
----
-124
-42
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT 49 DIV + 26 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4922
SELECT 49 / + 26 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT DISTINCT + COUNT( ALL - 83 ) - - 82 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT + COUNT ( ALL - 83 ) - - 82 FROM tab1 AS cor0
----
85

query I rowsort
SELECT - col1 - - 96 AS col0 FROM tab1 AS cor0
----
49
82
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT - 29 - + 82 DIV + col2 AS col2 FROM tab1 AS cor0
----
-29
-30
-30

skipif mysql # not compatible
query I rowsort label-4925
SELECT - 29 - + 82 / + col2 AS col2 FROM tab1 AS cor0
----
-29
-30
-30

query II rowsort
SELECT DISTINCT - - 1 + 1, col2 FROM tab0 AS cor0
----
2
10
2
47
2
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4927
SELECT + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 78 * + - col2, col1 FROM tab2 AS cor0
----
-1794
51
-3120
77
-4524
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col1 + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 34 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 79 * + - ( - - col1 ) * + col0 AS col1 FROM tab0
----
-144333
-7663
-95985

query I rowsort
SELECT DISTINCT col2 * + - ( - col2 ) FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL - COUNT( ALL - col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL - COUNT ( ALL - col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT DISTINCT + 69, - COUNT( * ) + - 17 AS col0 FROM tab1
----
69
-20

skipif mysql # not compatible
query II rowsort label-4934
SELECT DISTINCT + 69, - COUNT ( * ) + - 17 AS col0 FROM tab1
----
69
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL - COUNT( * ) * - - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 58 * + - col1 * - 46 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 58 * + - col1 * - 46 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT ALL + col1 DIV + + 73 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + col1 / + + 73 AS col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT 65, col2 + col0 AS col1 FROM tab0 AS cor0
----
65
196
65
62
65
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col2, 59 col0 FROM tab2 cor0
----
23
59
40
59
58
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + 5 * - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4941
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT + ( + COUNT( * ) ) + - 80 AS col1 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + ( + COUNT ( * ) ) + - 80 AS col1 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + + 55 AS col0 FROM tab0 AS cor0
----
55

query I rowsort
SELECT 12 FROM tab2 AS cor0 WHERE NOT + 16 + + col0 - - - col1 IS NULL
----
12
12
12

query II rowsort
SELECT DISTINCT - ( - col2 ), + 73 AS col2 FROM tab2 AS cor0
----
23
73
40
73
58
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4946
SELECT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE 48 * + 95 + + col2 * - col1 BETWEEN col2 AND + + 60 + + col0
----

query I rowsort
SELECT + 50 + - col0 * 80 * + col2 - - 26 AS col1 FROM tab1
----
-391604
-401124
-494964

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT MIN( ALL + - col0 ) + COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4949
SELECT MIN ( ALL + - col0 ) + COUNT ( * ) FROM tab2
----
-72

query I rowsort
SELECT + col2 + 16 FROM tab0
----
115
26
63

query I rowsort
SELECT - col0 + 61 FROM tab1
----
-24
-30
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col1 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + COUNT( * ) + + + 39 AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-4953
SELECT + COUNT ( * ) + + + 39 AS col2 FROM tab1
----
42

query I rowsort
SELECT ALL col0 + 25 AS col0 FROM tab0
----
112
122
40

query I rowsort
SELECT ALL + - 8 + - + 24 AS col2 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL - + 26 - - 87 + col1 * + 23 FROM tab2 cor0
----
1234
1602
1832

query I rowsort
SELECT DISTINCT + col2 - + - col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4958
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-3

query I rowsort
SELECT - - col0 FROM tab0 WHERE - ( + 24 ) - - col2 > - 29
----
15
87
97

query I rowsort
SELECT ALL 35 + - col2 + col2 FROM tab2
----
35
35
35

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-58

query II rowsort
SELECT ALL col1, ( + - 21 ) AS col2 FROM tab2 AS cor0
----
51
-21
67
-21
77
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT - + ( MIN( ( - + 25 ) ) ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
25
-3

skipif mysql # not compatible
query II rowsort label-4963
SELECT - + ( MIN ( ( - + 25 ) ) ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
25
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 36 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - - MAX( ALL - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4965
SELECT - - MAX ( ALL - col2 ) FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2, + col0 col0 FROM tab1 cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT + + ( - col0 ) * 78 FROM tab2 AS cor0
----
-3588
-4992
-5850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 65 col1, col1 FROM tab0 AS cor0
----
-65
1
-65
21
-65
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 20 * + - col0 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT DISTINCT - col2 * - + col0 * - 33 FROM tab1
----
-161568
-165495
-204204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4972
SELECT DISTINCT COUNT( * ) DIV - + 82 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT COUNT ( * ) / - + 82 AS col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 <= + + col1
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4974
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0 + 69, CAST( NULL AS SIGNED ) * - 34 * - + CAST( NULL AS DECIMAL ) ) AND ( NOT NULL NOT BETWEEN NULL AND col1 / + col2 )
----

skipif mysql # not compatible
query III rowsort label-4974
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0 + 69, CAST ( NULL AS INTEGER ) * - 34 * - + CAST ( NULL AS REAL ) ) AND ( NOT NULL NOT BETWEEN NULL AND col1 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL 93 * - + SUM( + - 8 ) FROM tab2
----
2232

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL 93 * - + SUM ( + - 8 ) FROM tab2
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - 82 + - 52 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - 82 + - 52 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 39 * + ( + 87 ) FROM tab2
----
-3393

query I rowsort
SELECT ALL + ( 86 ) * + col0 FROM tab2
----
3956
5504
6450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT MIN( + col2 ) col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4980
SELECT DISTINCT MIN ( + col2 ) col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT + COUNT( DISTINCT + 12 ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4981
SELECT + COUNT ( DISTINCT + 12 ) AS col1 FROM tab2 cor0
----
1

query I rowsort
SELECT ALL + 3 * 24 AS col1 FROM tab0 AS cor0
----
72
72
72

query II rowsort
SELECT DISTINCT 29, col1 AS col0 FROM tab0 AS cor0
----
29
1
29
21
29
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT ALL - 64 DIV col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL - 64 / col0 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT - ( ( - - COUNT( * ) ) ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - ( ( - - COUNT ( * ) ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - 70 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 88 FROM tab0 cor0 WHERE - ( - col1 ) BETWEEN - col1 + - + 43 AND + col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 79 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 79 IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - 99
----

query III rowsort
SELECT * FROM tab1 WHERE + 96 IS NULL
----

query I rowsort
SELECT ALL ( col1 ) + + 55 FROM tab2
----
106
122
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL - COUNT( * ) FROM tab2 WHERE - 22 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - 22 * + col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT ALL - col2 DIV 52 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - col2 / 52 AS col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT col0 - 80 * + col1 FROM tab1
----
-1069
-315
-3669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) * + MIN( DISTINCT col1 ) * + COUNT( * ) + MAX( CAST( col0 AS SIGNED ) ) FROM tab2
----
-1302

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) * + MIN ( DISTINCT col1 ) * + COUNT ( * ) + MAX ( CAST ( col0 AS INTEGER ) ) FROM tab2
----
-1302

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT + 33 + + col1 DIV + + col2 FROM tab0
----
33
34
35

skipif mysql # not compatible
query I rowsort label-4996
SELECT + 33 + + col1 / + + col2 FROM tab0
----
33
34
35

query I rowsort
SELECT col1 * col2 + - - col2 AS col1 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT ALL - col1 + - + col2 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab0 WHERE 43 - - + col1 IS NULL
----

query I rowsort
SELECT + 65 * - 86 FROM tab0
----
-5590
-5590
-5590

query I rowsort
SELECT ALL - ( 31 ) AS col1 FROM tab1
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5002
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT + + ( + ( - col2 ) ), col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT col0 DIV - + col2 AS col0 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5004
SELECT col0 / - + col2 AS col0 FROM tab2 cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE - ( - + 97 ) + CAST( - col1 AS SIGNED ) * + 56 * - 3 * 89 + 52 * + ( + 9 ) * - col1 * + ( + col0 ) + + CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT ALL - - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE - ( - + 97 ) + CAST ( - col1 AS INTEGER ) * + 56 * - 3 * 89 + 52 * + ( + 9 ) * - col1 * + ( + col0 ) + + CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5006
SELECT ALL - - ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - - ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - COUNT( + + col1 ) * 15 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-5008
SELECT - COUNT ( + + col1 ) * 15 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - MIN( ALL - 94 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-5009
SELECT - MIN ( ALL - 94 ) FROM tab0
----
94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <= 85
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5011
SELECT + 70 col0, - COUNT( col0 ) AS col1 FROM tab2
----
70
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5011
SELECT + 70 col0, - COUNT ( col0 ) AS col1 FROM tab2
----
70
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5012
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ( MIN( + 4 ) ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5013
SELECT ( MIN ( + 4 ) ) AS col1 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL + MIN( - col2 ) * 4 * 60 FROM tab2 cor0
----
-13920

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL + MIN ( - col2 ) * 4 * 60 FROM tab2 cor0
----
-13920

query I rowsort
SELECT DISTINCT - col2 * + + 80 * col0 + col1 + + 46 AS col1 FROM tab0 AS cor0
----
-56273
-69533
-768193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 * - + col2 + 29 col1 FROM tab1 AS cor0
----
-295856
-420755
-469987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col2 * - col1 / + col2 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 * - col1 AS col1 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT - 8 * + 76 + + col1 * - - 72 * + 54 * - - col1 + - col2 FROM tab0
----
1713990
25508513
3181

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - + COUNT( DISTINCT col2 ) + + - 62 * - - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT - + COUNT ( DISTINCT col2 ) + + - 62 * - - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 97 * + col2 >= col0
----

query II rowsort
SELECT + 16, 96 * - 86 AS col0 FROM tab0
----
16
-8256
16
-8256
16
-8256

query I rowsort
SELECT ALL col0 * 73 - - col1 FROM tab0
----
1176
6372
7082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT ALL col2 - ( + + col1 ) * - CAST( - col2 AS SIGNED ) * 51 FROM tab0 AS cor0
----
-10700
-194110
-4950

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL col2 - ( + + col1 ) * - CAST ( - col2 AS INTEGER ) * 51 FROM tab0 AS cor0
----
-10700
-194110
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5025
SELECT + ( col0 ) * + 95 AS col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 = CAST( + + col2 AS SIGNED ) + - 79
----

skipif mysql # not compatible
query II rowsort label-5025
SELECT + ( col0 ) * + 95 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 = CAST ( + + col2 AS INTEGER ) + - 79
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5026
SELECT + CAST( 98 AS SIGNED ) DIV - + col1 FROM tab0
----
-1
-4
-98

skipif mysql # not compatible
query I rowsort label-5026
SELECT + CAST ( 98 AS INTEGER ) / - + col1 FROM tab0
----
-1
-4
-98

query I rowsort
SELECT ALL 82 * + col2 AS col0 FROM tab2
----
1886
3280
4756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT + CAST( NULL AS SIGNED ) + + 0 * - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 < + col0 * col1 * + 20
----

skipif mysql # not compatible
query I rowsort label-5028
SELECT + CAST ( NULL AS INTEGER ) + + 0 * - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 < + col0 * col1 * + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5029
SELECT ( 89 ) AS col2, - col2 * - col0 + + + col1 - + CAST( + col2 AS SIGNED ) * + ( + + col2 ) FROM tab1 AS cor0
----
89
-4306
89
1539
89
1611

skipif mysql # not compatible
query II rowsort label-5029
SELECT ( 89 ) AS col2, - col2 * - col0 + + + col1 - + CAST ( + col2 AS INTEGER ) * + ( + + col2 ) FROM tab1 AS cor0
----
89
-4306
89
1539
89
1611

query I rowsort
SELECT + 72 * - - col0 * - - 41 FROM tab2 cor0
----
135792
188928
221400

query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 37 * - - 51 FROM tab2 AS cor0
----
-1887

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 30 IS NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-5034
SELECT ALL - 64 AS col0, 67 DIV col0, - col1 AS col1 FROM tab1
----
9 values hashing to 53f4599eb9e4c6225dc60d8641ffb126

skipif mysql # not compatible
query III rowsort label-5034
SELECT ALL - 64 AS col0, 67 / col0, - col1 AS col1 FROM tab1
----
9 values hashing to 53f4599eb9e4c6225dc60d8641ffb126

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5035
SELECT - MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL + COUNT( - col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5036
SELECT ALL + COUNT ( - col1 ) col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 8 * + col2 FROM tab0
----
376
792
80

query I rowsort
SELECT DISTINCT - 63 * - col2 - + 99 FROM tab0 AS cor0
----
2862
531
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT - 39 * + - COUNT( * ) col1 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5039
SELECT DISTINCT - 39 * + - COUNT ( * ) col1 FROM tab1 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - - ( + + col0 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - - ( + + col0 ) >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT ALL col2 DIV - + col0 + col1 AS col1 FROM tab0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL col2 / - + col0 + col1 AS col1 FROM tab0
----
0
21
78

query II rowsort
SELECT + col1 AS col1, - col0 AS col1 FROM tab0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT DISTINCT + COUNT( * ) + - MAX( + col1 ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT + COUNT ( * ) + - MAX ( + col1 ) AS col1 FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT MIN( - - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5045
SELECT MIN ( - - col0 ) FROM tab1 cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5046
SELECT DISTINCT + - ( + ( + CAST( NULL AS SIGNED ) ) ) * - MAX( col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + - ( + ( + CAST ( NULL AS INTEGER ) ) ) * - MAX ( col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5047
SELECT 70 * + col1 + - CAST( col2 AS SIGNED ) - - col0 * + col2 col2, - 97 FROM tab1 AS cor0
----
5306
-97
5780
-97
9410
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5047
SELECT 70 * + col1 + - CAST ( col2 AS INTEGER ) - - col0 * + col2 col2, - 97 FROM tab1 AS cor0
----
5306
-97
5780
-97
9410
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT col2 + - col1 - col1 >= NULL )
----

query I rowsort
SELECT DISTINCT + col0 - col2 * - 32 * - col0 AS col0 FROM tab2 AS cor0
----
-139125
-33810
-81856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT ( + 89 ) * + CAST( NULL AS SIGNED ) - - 38 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ( + 89 ) * + CAST ( NULL AS INTEGER ) - - 38 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 + - col2 + - col2 * + - 15 * col2 - 9 FROM tab0
----
146913
1487
33085

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT 60 DIV col0 + - col1 * + 90 FROM tab2
----
-4589
-6030
-6930

skipif mysql # not compatible
query I rowsort label-5052
SELECT 60 / col0 + - col1 * + 90 FROM tab2
----
-4589
-6030
-6930

query I rowsort
SELECT ALL 72 * - + col2 FROM tab0
----
-3384
-7128
-720

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 - col0 + col2 / - col1 IS NULL
----

query I rowsort
SELECT ALL 38 + - 93 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE + col2 = col0
----

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab1 AS cor0 WHERE NOT 58 IS NULL
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT COUNT( * ) * + 21 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-5058
SELECT COUNT ( * ) * + 21 FROM tab2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL - MIN( + + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - MIN ( + + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + 43 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - COUNT( DISTINCT - + col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5062
SELECT - COUNT ( DISTINCT - + col1 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT + 76 + - 34 * + + ( - col1 ) FROM tab1
----
1674
246
552

query I rowsort
SELECT ALL 24 * - col2 AS col2 FROM tab2
----
-1392
-552
-960

query I rowsort
SELECT 92 + + col0 * - col1 AS col0 FROM tab0
----
-1123
-1735
-5

query I rowsort
SELECT ALL 63 + col2 - - 43 AS col1 FROM tab2
----
129
146
164

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
15

query I rowsort
SELECT DISTINCT col1 + 74 + + col2 * 25 AS col1 FROM tab1
----
1554
1821
2488

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT DISTINCT - col0 * col1 DIV - col0 + - + 16 + col1 AS col1 FROM tab2 AS cor0
----
118
138
86

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - col0 * col1 / - col0 + - + 16 + col1 AS col1 FROM tab2 AS cor0
----
118
138
86

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col2 * 95 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL 36 - - - 17 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT col0 + - 45 + col1 * col2 FROM tab1 AS cor0
----
1350
3242
335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5073
SELECT ALL MIN( DISTINCT - + col1 ) DIV + 82 - + COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5073
SELECT ALL MIN ( DISTINCT - + col1 ) / + 82 - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT + COUNT( * ) - 8 AS col1 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + COUNT ( * ) - 8 AS col1 FROM tab2 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 38 col2, - col1 AS col1 FROM tab1 AS cor0
----
-38
-14
-38
-47
-38
-5

query I rowsort
SELECT col1 * + 21 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1071
1407
1617

query I rowsort
SELECT + col0 * + + 96 FROM tab1 AS cor0
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT - MAX( DISTINCT - ( - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT - MAX ( DISTINCT - ( - col1 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - COUNT( * ) * - + 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5079
SELECT - COUNT ( * ) * - + 65 FROM tab1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT 83 * - 13 * + col1 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
104663
1310985
1971333

skipif mysql # not compatible
query I rowsort label-5080
SELECT 83 * - 13 * + col1 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
104663
1310985
1971333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT DISTINCT + COUNT( DISTINCT + + col2 ) DIV - + 7 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT + COUNT ( DISTINCT + + col2 ) / - + 7 AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + 77 ) * - col0 * + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 54 * + col2 <= + + 15
----

query II rowsort
SELECT - col1, ( + col0 ) AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT ALL + CAST( + 41 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + CAST ( + 41 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
41
41
41

query II rowsort
SELECT + col1, - col1 FROM tab1 cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT + 97 * + - ( + col0 ) FROM tab2 AS cor0
----
-4462
-6208
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - + MAX( - + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5088
SELECT - + MAX ( - + col2 ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + + col0 BETWEEN NULL AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - - 30 ) AS col2 FROM tab1 AS cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-5092
SELECT + 17 DIV - col1, 0 + col0 + 60 AS col1 FROM tab1 AS cor0
----
-1
111
-3
145
0
151

skipif mysql # not compatible
query II rowsort label-5092
SELECT + 17 / - col1, 0 + col0 + 60 AS col1 FROM tab1 AS cor0
----
-1
111
-3
145
0
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + + MAX( ALL - ( + col0 ) ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5093
SELECT + + MAX ( ALL - ( + col0 ) ) AS col2 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5094
SELECT ALL + CAST( NULL AS DECIMAL ) col0 FROM tab2 WHERE - - col2 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5094
SELECT ALL + CAST ( NULL AS REAL ) col0 FROM tab2 WHERE - - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5095
SELECT * FROM tab0 WHERE NOT - col1 * CAST( NULL AS SIGNED ) = + 38 * + col0
----

skipif mysql # not compatible
query III rowsort label-5095
SELECT * FROM tab0 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) = + 38 * + col0
----

query III rowsort
SELECT * FROM tab0 WHERE - - 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50, - col0 * - - col1 col1 FROM tab1
----
50
-425
50
-4277
50
-714

query I rowsort
SELECT DISTINCT col2 + 92 FROM tab1
----
151
160
188

query I rowsort
SELECT 45 * + col2 AS col1 FROM tab0
----
2115
4455
450

query I rowsort
SELECT DISTINCT - 45 + + - col2 FROM tab0
----
-144
-55
-92

query I rowsort
SELECT + col0 + - 54 FROM tab1 cor0
----
-3
31
37

query I rowsort
SELECT - col2 * + 5 + 84 + 87 AS col0 FROM tab2 AS cor0
----
-119
-29
56

query I rowsort
SELECT + ( + + ( + col0 ) ) + col2 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 66 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5104
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 66 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ( + COUNT( * ) ) * 40 + - 9 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
351

skipif mysql # not compatible
query I rowsort label-5105
SELECT ( + COUNT ( * ) ) * 40 + - 9 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
351

query I rowsort
SELECT + 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL - 2 + - ( - + COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - 2 + - ( - + COUNT ( * ) ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 93 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT - COUNT( * ) + - 19 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - COUNT ( * ) + - 19 FROM tab0
----
-22

query I rowsort
SELECT + ( + - ( + 36 ) ) AS col1 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT ALL - 74 - - col0 AS col2 FROM tab2 AS cor0
----
-10
-28
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL 78 * MAX( - col0 ) + 50 AS col2 FROM tab0 AS cor0
----
-1120

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL 78 * MAX ( - col0 ) + 50 AS col2 FROM tab0 AS cor0
----
-1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT - 85 * - col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT - 85 * - col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT - - CAST( + 60 AS SIGNED ) - + col2 FROM tab0 cor0
----
-39
13
50

skipif mysql # not compatible
query I rowsort label-5115
SELECT - - CAST ( + 60 AS INTEGER ) - + col2 FROM tab0 cor0
----
-39
13
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT DISTINCT + col0 - ( - col0 ) + col0 + - col1 DIV col1 DIV - + 10 * + col0 FROM tab1 AS cor0
----
153
255
273

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT + col0 - ( - col0 ) + col0 + - col1 / col1 / - + 10 * + col0 FROM tab1 AS cor0
----
153
255
273

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - + 1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * + col0 * + + col0 * col1 + 73 - - col2 = 42 / - 62 - - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - 75 FROM tab1
----
-3825
-6375
-6825

query I rowsort
SELECT DISTINCT - col2 * - 74 FROM tab1
----
4366
5032
7104

query II rowsort
SELECT col0 AS col2, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL 99 * COUNT( * ) AS col0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL 99 * COUNT ( * ) AS col0 FROM tab0
----
297

query III rowsort
SELECT * FROM tab1 WHERE NOT 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT - 13 * + ( - col1 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - 13 * + ( - col1 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT - ( COUNT( * ) ) * - + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - ( COUNT ( * ) ) * - + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT + MIN( - 77 ) col0 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5126
SELECT DISTINCT + MIN ( - 77 ) col0 FROM tab0 AS cor0
----
-77

query I rowsort
SELECT DISTINCT 98 * - - col2 * + + col2 FROM tab2
----
156800
329672
51842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - col0 col1 FROM tab0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 / + - 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 28 * - - 55 AS col2 FROM tab0 AS cor0
----
1540
1540
1540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5131
SELECT DISTINCT col0, 32 + col2 * - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5131
SELECT DISTINCT col0, 32 + col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT 96 + 45 IS NOT NULL
----

query I rowsort
SELECT ALL - + 48 * + col2 * + - 87 FROM tab0 AS cor0
----
196272
413424
41760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5134
SELECT DISTINCT - + CAST( - - ( + + col2 ) AS SIGNED ) * + - 73 FROM tab2 AS cor0
----
1679
2920
4234

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT - + CAST ( - - ( + + col2 ) AS INTEGER ) * + - 73 FROM tab2 AS cor0
----
1679
2920
4234

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> + 20 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5136
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN 99 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 + - col0 + - col2 * + 75 * + + col2 col0 FROM tab0 AS cor0
----
-165603
-735085
-7500

onlyif mysql # aggregate syntax: 
query II rowsort label-5139
SELECT DISTINCT - 79 * 66, COUNT( * ) AS col2 FROM tab0
----
-5214
3

skipif mysql # not compatible
query II rowsort label-5139
SELECT DISTINCT - 79 * 66, COUNT ( * ) AS col2 FROM tab0
----
-5214
3

query I rowsort
SELECT + 50 + col0 FROM tab0
----
137
147
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT + COUNT( * ) + - 55 col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5141
SELECT + COUNT ( * ) + - 55 col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
-52

query I rowsort
SELECT ALL - col0 * - - col1 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - + col0 * - - 32 * 89 * - 59 + - col2 / - 75 IS NULL
----

query I rowsort
SELECT - 32 * + + col0 AS col1 FROM tab0 cor0
----
-2784
-3104
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT ALL + col2 DIV 74 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + col2 / 74 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * 73 AS col1 FROM tab1 AS cor0
----
-4307
-4964
-7008

query I rowsort
SELECT col0 - + + 79 AS col0 FROM tab0 AS cor0
----
-64
18
8

query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT - - COUNT( * ) + 96 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT - - COUNT ( * ) + 96 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col0 - - 24 AS col0 FROM tab0 AS cor0
----
111
121
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 < + col1 - - col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT col1 * col1 + - CAST( NULL AS SIGNED ) + + 6 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT col1 * col1 + - CAST ( NULL AS INTEGER ) + + 6 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL - COUNT( ALL + 8 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - COUNT ( ALL + 8 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT + COUNT( DISTINCT + col0 ) * 25 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5154
SELECT + COUNT ( DISTINCT + col0 ) * 25 FROM tab0 AS cor0
----
75

query II rowsort
SELECT 21, + 59 AS col0 FROM tab0 cor0
----
21
59
21
59
21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL COUNT( + ( - + col2 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL COUNT ( + ( - + col2 ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT - col1 * col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5158
SELECT ( + 10 ) AS col0, - COUNT( * ) AS col1 FROM tab0
----
10
-3

skipif mysql # not compatible
query II rowsort label-5158
SELECT ( + 10 ) AS col0, - COUNT ( * ) AS col1 FROM tab0
----
10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL - MIN( + + 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - MIN ( + + 8 ) FROM tab2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5160
SELECT col2 * + 12 AS col0, CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
1188
NULL
120
NULL
564
NULL

skipif mysql # not compatible
query II rowsort label-5160
SELECT col2 * + 12 AS col0, CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
1188
NULL
120
NULL
564
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT + 67 * ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - 48 / - - CAST( 39 AS SIGNED ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + 67 * ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - 48 / - - CAST ( 39 AS INTEGER ) BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT - - MIN( - - col2 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - - MIN ( - - col2 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < + - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL - - MAX( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - - MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT ALL col1 * - + 20 + + col1, 29 * - - col0 * + 68 * + - 55 * + + col1 AS col2 FROM tab1 AS cor0
----
-266
-77440440
-893
-463883420
-95
-46095500

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( - + col0 ) / 95 / - col2 <> col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 87 * + col1 AS col1 FROM tab2 AS cor0
----
4437
5829
6699

query I rowsort
SELECT - - col2 * + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + + col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ( MIN( DISTINCT 78 ) ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5169
SELECT ( MIN ( DISTINCT 78 ) ) FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + ( + col2 ) * - col1 + - col2 * col1 OR NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT ALL - + 80 DIV - - col1 FROM tab0 AS cor0
----
-3
-80
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - + 80 / - - col1 FROM tab0 AS cor0
----
-3
-80
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5172
SELECT DISTINCT + - CAST( + 21 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + - CAST ( + 21 AS INTEGER ) / col1 FROM tab1 AS cor0
----
-1
-4
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 + col2 * - - 38 BETWEEN - col2 * - - ( col2 ) AND + - ( - 48 ) + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT DISTINCT - col2 DIV + + col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT - col2 / + + col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT ALL col2 + + 43 FROM tab0
----
142
53
90

query I rowsort
SELECT 38 - col1 + col1 AS col2 FROM tab0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - col0 ) + col1 col2 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT ALL - col2 * - col2 + 60 + col0 AS col0 FROM tab2
----
1724
3499
635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL CAST( + col0 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL CAST ( + col0 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 - 52 col1 FROM tab2 AS cor0
----
-147

query I rowsort
SELECT + col0 * + + 19 AS col0 FROM tab1
----
1615
1729
969

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT DISTINCT - - 95 DIV + col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT - - 95 / + col0 FROM tab2 AS cor0
----
1
2

query II rowsort
SELECT DISTINCT + 62 AS col0, 19 FROM tab1
----
62
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT MAX( 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-5184
SELECT MAX ( 88 ) FROM tab0
----
88

query II rowsort
SELECT DISTINCT 91 AS col0, - 33 FROM tab0
----
91
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5186
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 55 / + + CAST( NULL AS SIGNED ) * - 67 < + - col0 )
----

skipif mysql # not compatible
query III rowsort label-5186
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 55 / + + CAST ( NULL AS INTEGER ) * - 67 < + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT ALL CAST( + - 25 AS SIGNED ) AS col0 FROM tab1
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL CAST ( + - 25 AS INTEGER ) AS col0 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT - 95 + 10 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT + 85 + col0 FROM tab1
----
136
170
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL + 15 * COUNT( * ) col0 FROM tab1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5190
SELECT ALL + 15 * COUNT ( * ) col0 FROM tab1
----
45

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NULL BETWEEN - 71 * ( + col0 * - 81 ) AND NULL
----

query I rowsort
SELECT - col2 * - col1 + + 24 AS col1 FROM tab1 WHERE NULL IS NULL
----
1368
319
3220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5193
SELECT ALL * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5193
SELECT ALL * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT ALL col1 * + CAST( NULL AS SIGNED ) - + col2 FROM tab1 WHERE NOT 19 NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) - + col2 FROM tab1 WHERE NOT 19 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL 64 * COUNT( ALL col1 ) AS col1 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL 64 * COUNT ( ALL col1 ) AS col1 FROM tab0
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col1 FROM tab2
----
90
90
90

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col0 - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL + 64 * COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + 64 * COUNT ( * ) FROM tab2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL + COUNT( + col2 ) * SUM( - col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL + COUNT ( + col2 ) * SUM ( - col2 ) FROM tab1
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT COUNT( * ) + - COUNT( * ) FROM tab1 WHERE - col0 - 11 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5200
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE - col0 - 11 * + col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 WHERE NOT col2 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5201
SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 WHERE NOT col2 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 51 + col2 FROM tab0
----
-4
-41
48

query I rowsort
SELECT 38 * 40 AS col2 FROM tab2
----
1520
1520
1520

query I rowsort
SELECT DISTINCT - 85 * 52 + col0 AS col0 FROM tab1
----
-4329
-4335
-4369

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - COUNT( * ) + 56 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - COUNT ( * ) + 56 FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT - 39 * - COUNT( * ) FROM tab1 WHERE ( NULL ) >= - col2 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT - 39 * - COUNT ( * ) FROM tab1 WHERE ( NULL ) >= - col2 * - col0
----
0

query I rowsort
SELECT 12 * + 39 AS col0 FROM tab2
----
468
468
468

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT DISTINCT col1 + 60 DIV - col0 AS col1 FROM tab2
----
50
67
77

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT col1 + 60 / - col0 AS col1 FROM tab2
----
50
67
77

query I rowsort
SELECT - col2 - 85 * 65 FROM tab2
----
-5548
-5565
-5583

query I rowsort
SELECT + col1 * 73 FROM tab1
----
1022
3431
365

query I rowsort
SELECT 25 AS col1 FROM tab1 WHERE NOT NULL > col2
----

query I rowsort
SELECT DISTINCT - 25 + + col2 FROM tab1
----
34
43
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT - 81 + + CAST( NULL AS SIGNED ) * - col1 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5213
SELECT - 81 + + CAST ( NULL AS INTEGER ) * - col1 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT - COUNT( * ) - COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) FROM tab2 cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( - 94 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 - - col1 col2 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT - col2 DIV ( + 11 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-5
-6
-8

skipif mysql # not compatible
query I rowsort label-5218
SELECT - col2 / ( + 11 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-5
-6
-8

query I rowsort
SELECT ALL + col0 - col1 * - 5 FROM tab0 AS cor0
----
102
192
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + 76 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5220
SELECT + 76 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
79

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab1 WHERE NOT col0 * col1 IS NULL
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL + ( SUM( ALL - CAST( col2 AS SIGNED ) ) ) col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5222
SELECT ALL + ( SUM ( ALL - CAST ( col2 AS INTEGER ) ) ) col0 FROM tab1 cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT COUNT( * ) * AVG ( - 88 * col0 ) AS col0 FROM tab2 cor0 WHERE NOT ( col0 ) NOT BETWEEN col1 * - ( 35 ) AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT COUNT ( * ) * AVG ( - 88 * col0 ) AS col0 FROM tab2 cor0 WHERE NOT ( col0 ) NOT BETWEEN col1 * - ( 35 ) AND ( - col1 )
----
NULL

query I rowsort
SELECT 21 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT ALL + col0 DIV 69 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + col0 / 69 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL ( - 27 ) * col1 AS col2 FROM tab0 AS cor0
----
-2187
-27
-567

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN 84 - 16 AND NULL
----

query I rowsort
SELECT + 95 AS col2 FROM tab1 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT - ( + COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5231
SELECT DISTINCT - ( + COUNT ( * ) ) col0 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 * 96 ) NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT ALL + 74 DIV + + col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + 74 / + + col1 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * 37 + + 59 col0 FROM tab0 cor0
----
1798
3722
429

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( 10 )
----

query I rowsort
SELECT + 77 * + 87 + 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64954a512ae021ffd7ffafd70a548932

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5237
SELECT + 13 AS col0, COUNT( * ) DIV + 77 * 54 AS col2 FROM tab1 AS cor0
----
13
0

skipif mysql # not compatible
query II rowsort label-5237
SELECT + 13 AS col0, COUNT ( * ) / + 77 * 54 AS col2 FROM tab1 AS cor0
----
13
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT ALL COUNT( * ) * - 68 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL COUNT ( * ) * - 68 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT - + COUNT( ALL col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5239
SELECT - + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT - - COUNT( DISTINCT + + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5240
SELECT - - COUNT ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE - col2 / - - 88 <> + 65
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL MAX( col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL MAX ( col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5243
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) * COUNT( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, + ( - col0 ) FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 90 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 73 * - - ( col2 ) <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE 37 IS NOT NULL AND 72 + - 98 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT + COUNT( * ) + 37 * + - 22 FROM tab1
----
-811

skipif mysql # not compatible
query I rowsort label-5248
SELECT + COUNT ( * ) + 37 * + - 22 FROM tab1
----
-811

query I rowsort
SELECT ALL 22 + - col1 FROM tab2
----
-29
-45
-55

query III rowsort
SELECT * FROM tab2 WHERE + - 68 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( - 95 ) * + col1 IS NULL
----

query I rowsort
SELECT - col1 + - col2 + col1 AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col2 ) > NULL
----

query II rowsort
SELECT ALL - + col2 + - col2, - 3 - + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-118
-5018
-136
-6191
-192
-4899

onlyif mysql # DIV for integer division: 
query I rowsort label-5255
SELECT DISTINCT col2 DIV + - 81 - - ( col2 ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT col2 / + - 81 - - ( col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5256
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= ( col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5256
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= ( col0 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL IN ( + - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT 80 DIV + 37 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5258
SELECT 80 / + 37 FROM tab1
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT CAST( + ( + - col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT CAST ( + ( + - col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 98 + + col1 - + col2 + 54 * - 19 <= ( NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE 97 * + col1 IS NULL
----

query I rowsort
SELECT + + 68 * + - 10 FROM tab0 AS cor0
----
-680
-680
-680

query I rowsort
SELECT ALL 26 / - col2 * + col2 AS col0 FROM tab0 WHERE + 86 IS NULL
----

query I rowsort
SELECT col2 + + 34 / + 86 FROM tab1 WHERE NOT + col0 / col2 * + col0 + + 83 + col0 * col0 NOT IN ( 59 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 13 * 3 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) * + 66 FROM tab2
----
-3366
-4422
-5082

query I rowsort
SELECT ALL + 21 AS col2 FROM tab2 WHERE ( NOT ( NULL ) = + 76 - - 81 - + 59 )
----

query I rowsort
SELECT 59 + - - 96 * + - 14 AS col1 FROM tab0
----
-1285
-1285
-1285

onlyif mysql # DIV for integer division: 
query II rowsort label-5270
SELECT DISTINCT - col2 + + col1 + + - 14 DIV + 76, col1 AS col2 FROM tab1
----
-21
47
-54
5
-82
14

skipif mysql # not compatible
query II rowsort label-5270
SELECT DISTINCT - col2 + + col1 + + - 14 / + 76, col1 AS col2 FROM tab1
----
-21
47
-54
5
-82
14

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + - col2 * - + col1 * + - col2 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 38 + + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
51
85
91

query I rowsort
SELECT - 92 + + + col2 FROM tab2
----
-34
-52
-69

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT col0 + - col0 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5277
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - + col0 NOT IN ( + 53 * - + col0 + - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5277
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - + col0 NOT IN ( + 53 * - + col0 + - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5278
SELECT * FROM tab2 AS cor0 WHERE CAST( + 51 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5278
SELECT * FROM tab2 AS cor0 WHERE CAST ( + 51 AS REAL ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT + 63 AS col1, + COUNT( * ) FROM tab0 cor0
----
63
3

skipif mysql # not compatible
query II rowsort label-5279
SELECT + 63 AS col1, + COUNT ( * ) FROM tab0 cor0
----
63
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col1 FROM tab0 WHERE + col2 * + - col0 + col1 IS NOT NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL - SUM( ALL - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - SUM ( ALL - col2 ) FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 + col0, col0 col1 FROM tab1
----
103
91
63
51
97
85

query II rowsort
SELECT 89 AS col2, - col0 FROM tab0 cor0 WHERE - 37 * - ( + 29 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT - ( - + COUNT( * ) ) - - + COUNT( * ) - + 83 AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - ( - + COUNT ( * ) ) - - + COUNT ( * ) - + 83 AS col2 FROM tab0 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 3 col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - col0 - - - col2 FROM tab2 cor0 WHERE + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT - 86 + ( - - col0 ) + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5287
SELECT - 86 + ( - - col0 ) + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 96 AS col0 FROM tab2 AS cor0
----
142
160
171

query I rowsort
SELECT + ( - col1 ) + - 85 + - - 2 AS col2 FROM tab0
----
-104
-164
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 28 * + + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) <> - col0 + + 11
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 < + - 49
----

query III rowsort
SELECT * FROM tab0 WHERE - - 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL - ( - + ( - COUNT( DISTINCT + 89 ) ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - ( - + ( - COUNT ( DISTINCT + 89 ) ) ) FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 * + 11 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col2 FROM tab0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT + col1 DIV - col2 AS col2 FROM tab0 WHERE 36 + - 68 * - 99 + + - col0 * - 94 * - col2 IS NOT NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5298
SELECT + col1 / - col2 AS col2 FROM tab0 WHERE 36 + - 68 * - 99 + + - col0 * - 94 * - col2 IS NOT NULL
----
-1
-2
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 IS NULL AND NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 + - col1 + col2 + - 84 FROM tab0 AS cor0
----
-195
-2327
-9787

query II rowsort
SELECT ALL + + col0 AS col1, 33 AS col0 FROM tab0 cor0
----
15
33
87
33
97
33

query I rowsort
SELECT ( + 42 ) FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT ( + col2 ) * - 10 AS col2 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT MAX( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5304
SELECT MAX ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - + SUM( - - 84 ) * + 80 AS col2 FROM tab0 AS cor0
----
-20160

skipif mysql # not compatible
query I rowsort label-5306
SELECT - + SUM ( - - 84 ) * + 80 AS col2 FROM tab0 AS cor0
----
-20160

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT DISTINCT 36 DIV - + col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT 36 / - + col2 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT col1 * + 81 FROM tab1
----
1134
3807
405

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT MAX( - + col0 ) AS col0 FROM tab2 WHERE NOT + + col0 / col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT MAX ( - + col0 ) AS col0 FROM tab2 WHERE NOT + + col0 / col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - 77 * - col2 NOT BETWEEN ( + col2 ) + - col1 * col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT 0 + 45 + 81 / - 40 * + - MIN( DISTINCT + 71 ) AS col2 FROM tab2 WHERE NOT + 64 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT 0 + 45 + 81 / - 40 * + - MIN ( DISTINCT + 71 ) AS col2 FROM tab2 WHERE NOT + 64 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT DISTINCT COUNT( - col2 ) + + - ( - COUNT( * ) ) + + SUM( + col1 ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT COUNT ( - col2 ) + + - ( - COUNT ( * ) ) + + SUM ( + col1 ) AS col0 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT - COUNT( DISTINCT - col2 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5313
SELECT - COUNT ( DISTINCT - col2 ) col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - col2 + - ( - col0 ) FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 * + col2 + + ( - + 69 ) AS col1 FROM tab0 AS cor0
----
636
801
9534

query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab2 WHERE NULL >= - col1
----

query I rowsort
SELECT ALL + - 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 * + + col0 + - ( + 20 ) = + col0
----

query I rowsort
SELECT 58 * - - col1 FROM tab2 AS cor0
----
2958
3886
4466

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 79 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5322
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / + col1 * + - col0 > col1
----

skipif mysql # not compatible
query III rowsort label-5322
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + col1 * + - col0 > col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT DISTINCT 41 DIV - - col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT 41 / - - col0 FROM tab0
----
0
2

query I rowsort
SELECT + col1 + + + col2 AS col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT 9 + + COUNT( * ) * MIN( col0 ) AS col0 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-5325
SELECT 9 + + COUNT ( * ) * MIN ( col0 ) AS col0 FROM tab1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT - ( COUNT( + col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - ( COUNT ( + col2 ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - - col2 ) NOT IN ( + col1, + col2 )
----

query I rowsort
SELECT 24 * + col1 FROM tab0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - MAX( DISTINCT + - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5329
SELECT - MAX ( DISTINCT + - col0 ) FROM tab2
----
46

query I rowsort
SELECT - ( + 79 ) FROM tab0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + col0 + - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5331
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col0 + - col2 >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + 85 AS col0 FROM tab0 AS cor0
----
-15
85
-87
85
-97
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 79 BETWEEN ( + col0 * + col1 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 92 * + 34 AS col0 FROM tab2 AS cor0
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT - - 85 * ( - ( - COUNT( * ) ) ) * - + 90 FROM tab2 AS cor0
----
-22950

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - - 85 * ( - ( - COUNT ( * ) ) ) * - + 90 FROM tab2 AS cor0
----
-22950

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL = - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT col1 DIV - col1 + - - ( + col0 ) FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-5338
SELECT col1 / - col1 + - - ( + col0 ) FROM tab1
----
50
84
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5339
SELECT DISTINCT COUNT( * ) + - 53, + COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
-50
3

skipif mysql # not compatible
query II rowsort label-5339
SELECT DISTINCT COUNT ( * ) + - 53, + COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
-50
3

query I rowsort
SELECT col2 + - col0 + col2 + col2 AS col1 FROM tab1
----
113
237
92

query I rowsort
SELECT - col2 + - - ( ( 91 ) ) * + col2 AS col1 FROM tab2
----
2070
3600
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - COUNT( * ) + - 31 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-5342
SELECT - COUNT ( * ) + - 31 FROM tab0
----
-34

query I rowsort
SELECT col2 + - 17 FROM tab2
----
23
41
6

query I rowsort
SELECT - col0 * - - ( - - col2 ) * col2 + - - col0 FROM tab2
----
-102336
-24288
-252225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT col1 FROM tab1 WHERE + - CAST( - 1 AS SIGNED ) - col2 * - - 58 - + - col0 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5345
SELECT col1 FROM tab1 WHERE + - CAST ( - 1 AS INTEGER ) - col2 * - - 58 - + - col0 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE + ( col1 ) + + + 38 >= NULL
----

query I rowsort
SELECT + col2 + 40 * col2 FROM tab1
----
2419
2788
3936

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 82 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 67 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + 52 * - - SUM( DISTINCT + col0 ) col1 FROM tab2
----
9620

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5350
SELECT + 52 * - - SUM ( DISTINCT + col0 ) col1 FROM tab2
----
9620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL - 8 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - 8 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 61 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 - - + ( + col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + 75 AS col0 FROM tab1 AS cor0
----
-21
16
7

query I rowsort
SELECT DISTINCT - + 45 - col0 FROM tab1 cor0
----
-130
-136
-96

query III rowsort
SELECT * FROM tab0 cor0 WHERE 59 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL + - COUNT( * ) + + 64 + - 70 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - 47 ) AND 21
----
-6

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + - COUNT ( * ) + + 64 + - 70 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - 47 ) AND 21
----
-6

query I rowsort
SELECT ALL - + ( - col2 ) - - 14 FROM tab0 AS cor0
----
113
24
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT col1 DIV 74 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT col1 / 74 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <= - 74 + - + 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT DISTINCT 90 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT 90 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT - COUNT( - + col2 ) * - 9 col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5364
SELECT - COUNT ( - + col2 ) * - 9 col1 FROM tab0 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 67 col1 FROM tab1 AS cor0
----
-51
67
-85
67
-91
67

query I rowsort
SELECT DISTINCT + ( - ( + col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + 58 * + col1 + + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 55 * col0 + - 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( - ( + 44 ) ) ) col0 FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT - MAX( DISTINCT + 17 ) FROM tab2 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5369
SELECT - MAX ( DISTINCT + 17 ) FROM tab2 cor0
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-5370
SELECT DISTINCT + col2 * 86 AS col0, col1 DIV + 23 FROM tab1 AS cor0
----
5074
0
5848
2
8256
0

skipif mysql # not compatible
query II rowsort label-5370
SELECT DISTINCT + col2 * 86 AS col0, col1 / + 23 FROM tab1 AS cor0
----
5074
0
5848
2
8256
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5371
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) NOT IN ( CAST( NULL AS SIGNED ) + + col2 + - - 71 + + + col1 )
----

skipif mysql # not compatible
query III rowsort label-5371
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) NOT IN ( CAST ( NULL AS INTEGER ) + + col2 + - - 71 + + + col1 )
----

query I rowsort
SELECT - 18 - - col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 74 + + 2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT MAX( + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT MAX ( + col2 ) AS col2 FROM tab0
----
99

query III rowsort
SELECT * FROM tab2 WHERE + - 89 IS NULL
----

query I rowsort
SELECT DISTINCT + 10 + + 81 * - col1 FROM tab2
----
-4121
-5417
-6227

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT + COUNT( * ) * 6 FROM tab1, tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT + COUNT ( * ) * 6 FROM tab1, tab0 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 * + - col0 + - 36 col1 FROM tab1
----
-25111
-290872
-68580

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - 30 + MAX( ALL col0 ) - - 83 AS col2 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-5379
SELECT - 30 + MAX ( ALL col0 ) - - 83 AS col2 FROM tab1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT DISTINCT col2 + + + col1 * - col0 + - CAST( col2 AS SIGNED ) * + col1 AS col0 FROM tab0
----
-2027
-4975
-97

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT col2 + + + col1 * - col0 + - CAST ( col2 AS INTEGER ) * + col1 AS col0 FROM tab0
----
-2027
-4975
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT - ( + CAST( NULL AS SIGNED ) ) + col1 * col0 / - 55 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT - ( + CAST ( NULL AS INTEGER ) ) + col1 * col0 / - 55 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( - col0 * + col1, + ( col1 ) + + + col2 + + 81 * - - 7 * - col2, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5383
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) / + 98 + - 85 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5383
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) / + 98 + - 85 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT ALL - col1 + + 6 DIV col0 * - + col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL - col1 + + 6 / col0 * - + col0 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE + 73 = - - ( + col0 ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + 35 * COUNT( + col0 ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-5386
SELECT + 35 * COUNT ( + col0 ) FROM tab1
----
105

query II rowsort
SELECT + col2 - - - col2, ( - 57 ) AS col0 FROM tab0 cor0
----
0
-57
0
-57
0
-57

query II rowsort
SELECT - + col0 - col1, + col0 AS col2 FROM tab0 AS cor0
----
-108
87
-96
15
-98
97

query I rowsort
SELECT DISTINCT - col0 * 61 AS col2 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NULL = 25 * col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 40 / + 28
----

query I rowsort
SELECT DISTINCT + 4 * + 48 FROM tab2
----
192

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 > - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT 68 DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5394
SELECT 68 / + col2 FROM tab2
----
1
1
2

query I rowsort
SELECT ALL col1 * - col0 * 96 FROM tab2
----
-225216
-473088
-482400

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - 21 < - + col0 * col2 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN - - 77 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT - COUNT( * ) * 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-5398
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + - 56 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > + col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT + col1 * - col2 DIV + + col2 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5401
SELECT + col1 * - col2 / + + col2 AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT SUM( 27 ) DIV + COUNT( DISTINCT + col2 ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5402
SELECT SUM ( 27 ) / + COUNT ( DISTINCT + col2 ) AS col2 FROM tab1
----
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - 44 + - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5404
SELECT * FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5404
SELECT * FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT + + 88 AS col1, COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
88
0

skipif mysql # not compatible
query II rowsort label-5406
SELECT + + 88 AS col1, COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
88
0

query I rowsort
SELECT DISTINCT + - ( - - 42 ) FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT + 16 AS col1, COUNT( * ) * 51 AS col1 FROM tab1 AS cor0
----
16
153

skipif mysql # not compatible
query II rowsort label-5408
SELECT + 16 AS col1, COUNT ( * ) * 51 AS col1 FROM tab1 AS cor0
----
16
153

onlyif mysql # aggregate syntax: 
query II rowsort label-5409
SELECT COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5409
SELECT COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab0
----
3
-3

query I rowsort
SELECT - col2 * + 78 FROM tab0
----
-3666
-7722
-780

query I rowsort
SELECT 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query II rowsort label-5412
SELECT ALL - + COUNT( * ) AS col1, 65 AS col2 FROM tab2 AS cor0
----
-3
65

skipif mysql # not compatible
query II rowsort label-5412
SELECT ALL - + COUNT ( * ) AS col1, 65 AS col2 FROM tab2 AS cor0
----
-3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL MAX( + - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL MAX ( + - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - 72 - - - col0 * + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5414
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - 72 - - - col0 * + - col1 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT - - CAST( - CAST( - 67 AS SIGNED ) AS SIGNED ) * + - col0 - + 6 + - col1 * + col2 + 83 FROM tab0 AS cor0
----
-4735
-5962
-6521

skipif mysql # not compatible
query I rowsort label-5416
SELECT - - CAST ( - CAST ( - 67 AS INTEGER ) AS INTEGER ) * + - col0 - + 6 + - col1 * + col2 + 83 FROM tab0 AS cor0
----
-4735
-5962
-6521

query II rowsort
SELECT ALL - + col2, - col2 AS col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT ALL - 8 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + + col2 > + 81
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - + 90 + 73 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT col1 + + col1 + + 34 FROM tab2 AS cor0
----
136
168
188

query II rowsort
SELECT DISTINCT - 31, col1 AS col1 FROM tab2 AS cor0
----
-31
51
-31
67
-31
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5422
SELECT + 12 + + ( - - COUNT( * ) ) DIV - 88 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 12 + + ( - - COUNT ( * ) ) / - 88 FROM tab0
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5423
SELECT - CAST( NULL AS DECIMAL ) + + 5, COUNT( * ) AS col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5423
SELECT - CAST ( NULL AS REAL ) + + 5, COUNT ( * ) AS col2 FROM tab1
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT MIN( DISTINCT - ( col1 ) ) + + + 23 * + MAX( + + 52 ) FROM tab1
----
1149

skipif mysql # not compatible
query I rowsort label-5424
SELECT MIN ( DISTINCT - ( col1 ) ) + + + 23 * + MAX ( + + 52 ) FROM tab1
----
1149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + + ( + col2 ) col2 FROM tab0
----
107
18
55

query I rowsort
SELECT DISTINCT - 2 + + 88 FROM tab0
----
86

query III rowsort
SELECT * FROM tab0 WHERE + col0 - + - col1 > + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - 67 = NULL
----

query I rowsort
SELECT ALL 12 + + 84 AS col2 FROM tab2
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) - col1 * + col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) - col1 * + col2 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5433
SELECT DISTINCT - + CAST( + CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) - 67 FROM tab2 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT - + CAST ( + CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) - 67 FROM tab2 cor0
----
-64

query I rowsort
SELECT + 34 - - 55 + col1 FROM tab2 cor0
----
140
156
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) - 59 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - 59 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col2 - + + col0 FROM tab0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT col1 DIV + - 97 * + - col0 + 82 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-5437
SELECT col1 / + - 97 * + - col0 + 82 FROM tab0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL + 98 + + COUNT( - + 52 ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + 98 + + COUNT ( - + 52 ) FROM tab1
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 + + - 98 + + col1 col2 FROM tab0
----
-142
-162
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL - + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5441
SELECT DISTINCT - - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * + 83 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5441
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * + 83 FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL - + SUM( + + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - + SUM ( + + col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT - CAST( - AVG ( DISTINCT + 86 ) AS SIGNED ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5443
SELECT - CAST ( - AVG ( DISTINCT + 86 ) AS INTEGER ) FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT + + MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5444
SELECT + + MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT 85 * - col2 * + - 74 FROM tab2
----
144670
251600
364820

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT + MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5446
SELECT + MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT - + col2 * + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT - + col2 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT + col1 DIV + 64 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5448
SELECT + col1 / + 64 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 + col0 * - 55 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5452
SELECT + 12 * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5452
SELECT + 12 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - 27 * + + col2 + col0 + + - col2 * + col1 FROM tab2 WHERE ( col1 ) > - col0 + + 72 + + 34
----
-4096
-5377

query I rowsort
SELECT DISTINCT col2 * + col0 * + col2 + 85 AS col2 FROM tab2
----
102485
24419
252385

query I rowsort
SELECT ALL - 41 * - ( + 11 ) FROM tab0
----
451
451
451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT + 42 + + col0 FROM tab1 WHERE - + col0 + + 5 + - - ( - - 18 ) NOT IN ( + + 16 - CAST( + col0 AS SIGNED ) )
----
127
133
93

skipif mysql # not compatible
query I rowsort label-5456
SELECT + 42 + + col0 FROM tab1 WHERE - + col0 + + 5 + - - ( - - 18 ) NOT IN ( + + 16 - CAST ( + col0 AS INTEGER ) )
----
127
133
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col0 AND + 90 * + 87 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT - 86 + 14 * - - COUNT( * ) AS col2 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT - 86 + 14 * - - COUNT ( * ) AS col2 FROM tab0
----
-44

query I rowsort
SELECT + col1 FROM tab2 WHERE + col2 BETWEEN - ( - 1 ) AND - col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + MIN( - col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT + MIN ( - col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT DISTINCT + 65 + + - CAST( - col2 AS SIGNED ) - + col2 + - CAST( + - CAST( - col2 AS SIGNED ) AS SIGNED ) * - - 85 + - col2 AS col1 FROM tab0
----
-3977
-795
-8449

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT + 65 + + - CAST ( - col2 AS INTEGER ) - + col2 + - CAST ( + - CAST ( - col2 AS INTEGER ) AS INTEGER ) * - - 85 + - col2 AS col1 FROM tab0
----
-3977
-795
-8449

query I rowsort
SELECT ALL - col0 * + col0 - - + col0 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT - col2 * + - 60 + ( + col2 ) FROM tab1
----
3599
4148
5856

query I rowsort
SELECT ALL - col1 + + 66 FROM tab2 AS cor0
----
-1
-11
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL COUNT( * ) + - + 34 AS col2 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL COUNT ( * ) + - + 34 AS col2 FROM tab2 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT - COUNT( * ) * COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5466
SELECT - COUNT ( * ) * COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 49 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 97 * + + col1 * 75 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5468
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 97 * + + col1 * 75 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT ( col0 ) DIV + col1 AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5469
SELECT ( col0 ) / + col1 AS col0 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT ALL ( - 64 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT col2 * - + 96 + + 9 DIV + col1 FROM tab2 AS cor0
----
-2208
-3840
-5568

skipif mysql # not compatible
query I rowsort label-5471
SELECT col2 * - + 96 + + 9 / + col1 FROM tab2 AS cor0
----
-2208
-3840
-5568

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col1 * + - 89 * + col2 + col0 FROM tab1 AS cor0
----
-131190
-13368777
-1674573

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5474
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 76 + - 64 + + - col1 / CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5474
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 76 + - 64 + + - col1 / CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT MIN( ALL + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5475
SELECT MIN ( ALL + col0 ) AS col1 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 / col0 + col0 * - col1 + col0 <> - ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 * - 93 col1 FROM tab2
----
744
744
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 62 col1, - col2 * - col2 FROM tab1
----
-62
3481
-62
4624
-62
9216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + 34 + col2 + col0 - + - col1 < NULL
----

query II rowsort
SELECT ALL col0, 55 FROM tab1
----
51
55
85
55
91
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT COUNT( + - 30 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5481
SELECT COUNT ( + - 30 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 78 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 26 * - col1 AS col2 FROM tab1
----
-1222
-130
-364

query I rowsort
SELECT - ( + 67 ) AS col0 FROM tab0
----
-67
-67
-67

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 54 IS NOT NULL )
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5486
SELECT ALL + col0 * + - 19 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
-1653
-1843
-285

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + col0 * + - 19 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT - COUNT( - - col0 ) * + 79 AS col2 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5487
SELECT - COUNT ( - - col0 ) * + 79 AS col2 FROM tab1 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query II rowsort label-5488
SELECT COUNT( * ) col0, 76 col1 FROM tab1 AS cor0
----
3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5488
SELECT COUNT ( * ) col0, 76 col1 FROM tab1 AS cor0
----
3
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col0 col0 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT + MAX( ALL + CAST( 45 AS SIGNED ) ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5490
SELECT + MAX ( ALL + CAST ( 45 AS INTEGER ) ) AS col1 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL - COUNT( * ) + + + MIN( + - col0 ) AS col2 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - COUNT ( * ) + + + MIN ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT + + col0 + + 80 FROM tab2 cor0
----
126
144
155

query I rowsort
SELECT DISTINCT + + ( - col1 ) FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT - 77 + - col0 FROM tab0 AS cor0
----
-164
-174
-92

query I rowsort
SELECT ALL + col2 - + col2 * - col2 FROM tab0 AS cor0
----
110
2256
9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT DISTINCT - - 96 + col0 + CAST( NULL AS SIGNED ) / + 72 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT - - 96 + col0 + CAST ( NULL AS INTEGER ) / + 72 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 15 + col0 * col2 AS col0 FROM tab1 AS cor0
----
4881
5000
6173

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT - ( + col1 ) + + col0 DIV + - col1 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-5498
SELECT - ( + col1 ) + + col0 / + - col1 FROM tab2
----
-51
-68
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col1 FROM tab0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT - CAST( + + col2 AS SIGNED ) col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5500
SELECT - CAST ( + + col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab1, tab1 AS cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 16 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 51 >= + + col2 + + + col1
----
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5504
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT DISTINCT CAST( col0 AS SIGNED ) - col0 + - - col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT CAST ( col0 AS INTEGER ) - col0 + - - col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT ALL - - ( 76 ) / + + CAST( NULL AS SIGNED ) + 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - - ( 76 ) / + + CAST ( NULL AS INTEGER ) + 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5507
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5508
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( + 34 AS SIGNED ) + - + ( + 17 ) + - col1 + col2 * - col1 BETWEEN - + col2 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5508
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( + 34 AS INTEGER ) + - + ( + 17 ) + - col1 + col2 * - col1 BETWEEN - + col2 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT + MIN( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT + MIN ( - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT DISTINCT MIN( DISTINCT - 31 ) AS col1, COUNT( * ) * + - 36 AS col1 FROM tab1 AS cor0
----
-31
-108

skipif mysql # not compatible
query II rowsort label-5511
SELECT DISTINCT MIN ( DISTINCT - 31 ) AS col1, COUNT ( * ) * + - 36 AS col1 FROM tab1 AS cor0
----
-31
-108

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 53 * + - ( - col0 ) + + col0 = - - col0 * ( + - col0 ) - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 68 * - 29 AS col1 FROM tab2 AS cor0
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL - ( + ( COUNT( DISTINCT - ( - 44 ) ) ) ) * + + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL - ( + ( COUNT ( DISTINCT - ( - 44 ) ) ) ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5515
SELECT 53, - col0 DIV col2 + + col2 + 46 AS col1 FROM tab2 AS cor0
----
53
103
53
67
53
85

skipif mysql # not compatible
query II rowsort label-5515
SELECT 53, - col0 / col2 + + col2 + 46 AS col1 FROM tab2 AS cor0
----
53
103
53
67
53
85

query II rowsort
SELECT DISTINCT + - col2, + 2 AS col1 FROM tab2 cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
-23
2
-40
2
-58
2

query II rowsort
SELECT - col1, - col0 AS col2 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

query II rowsort
SELECT + col2, - col2 + + 28 FROM tab0 cor0
----
10
18
47
-19
99
-71

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 67 * + col1 * + 61 IS NULL
----
51
67
77

query II rowsort
SELECT DISTINCT + 98 * + col0 AS col0, 25 + 74 FROM tab0
----
1470
99
8526
99
9506
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT DISTINCT SUM( + + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT SUM ( + + col2 ) FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab2
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 + - - col0 col2 FROM tab2
----
115
168
208

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT - MIN( ALL + 68 ) AS col1 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT - MIN ( ALL + 68 ) AS col1 FROM tab0
----
-68

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL col1 * col2 * - + 12 FROM tab1 AS cor0
----
-16128
-3540
-38352

query I rowsort
SELECT DISTINCT - 81 * - + col1 AS col0 FROM tab0 AS cor0
----
1701
6561
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT 24 + + + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT 24 + + + COUNT ( * ) FROM tab0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
52

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 10 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT MAX( ALL - 67 ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-5533
SELECT MAX ( ALL - 67 ) FROM tab2
----
-67

query II rowsort
SELECT col2, 41 FROM tab2 cor0
----
23
41
40
41
58
41

query II rowsort
SELECT + 68, 16 AS col0 FROM tab0 AS cor0
----
68
16
68
16
68
16

query I rowsort
SELECT DISTINCT col1 + + 74 AS col2 FROM tab0 AS cor0
----
155
75
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT COUNT( * ) DIV + - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT COUNT ( * ) / + - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE - col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col1 / ( + - 23 ), - 31 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 8 > NULL
----

query II rowsort
SELECT col2, 55 AS col1 FROM tab1 AS cor0
----
59
55
68
55
96
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 12 AND + col2 + 97 + col2 * col1
----

query I rowsort
SELECT + 49 - + + col0 FROM tab2 cor0
----
-15
-26
3

query I rowsort
SELECT DISTINCT 20 - + 70 AS col1 FROM tab1 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 9 AS col2, + col1 col0 FROM tab2 AS cor0
----
-9
51
-9
67
-9
77

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + 33 IS NULL
----

query I rowsort
SELECT + 51 * - 70 + + + 59 FROM tab0
----
-3511
-3511
-3511

query I rowsort
SELECT col0 * + + col2 + - + 52 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT col1 + 53 AS col2 FROM tab2
----
104
120
130

query I rowsort
SELECT col2 + + - 56 FROM tab0
----
-46
-9
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT DISTINCT + col2 DIV col2 + - col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + col2 / col2 + - col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * col2 IS NULL
----

query I rowsort
SELECT - + 95 + 0 FROM tab1 AS cor0 WHERE NOT + col1 * - - 16 * + col0 IS NULL
----
-95
-95
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 40 IN ( - col1, col0 * - col1, + - col1, + - 8 )
----

query I rowsort
SELECT DISTINCT ( + + 71 ) AS col1 FROM tab0
----
71

query I rowsort
SELECT + col1 * + + ( + col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5557
SELECT DISTINCT 31 DIV + 58 + - COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5557
SELECT DISTINCT 31 / + 58 + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT + 84, + COUNT( * ) AS col0 FROM tab2
----
84
3

skipif mysql # not compatible
query II rowsort label-5558
SELECT + 84, + COUNT ( * ) AS col0 FROM tab2
----
84
3

query II rowsort
SELECT col2 + - col2, 26 AS col0 FROM tab1
----
0
26
0
26
0
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col1 col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT ALL 55 + MIN( - col2 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL 55 + MIN ( - col2 ) FROM tab0
----
-44

query I rowsort
SELECT - ( + col1 ) + - 2 + - col2 FROM tab0
----
-102
-130
-33

query I rowsort
SELECT col0 + - 19 AS col2 FROM tab2
----
27
45
56

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - 16 + col0 <= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5565
SELECT CAST( NULL AS SIGNED ) + - SUM( + col1 ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5565
SELECT CAST ( NULL AS INTEGER ) + - SUM ( + col1 ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 37 + + + ( - col2 ) AS col1 FROM tab1
----
-22
-31
-59

query I rowsort
SELECT ALL + col0 + + + col0 + + - col1 AS col2 FROM tab1 AS cor0
----
135
165
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5568
SELECT DISTINCT - - CAST( NULL AS DECIMAL ), 8 + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5568
SELECT DISTINCT - - CAST ( NULL AS REAL ), 8 + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
NULL

query I rowsort
SELECT + ( + + 99 ) - + col1 AS col0 FROM tab0
----
18
78
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT 79 DIV col2 + - col2 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-5570
SELECT 79 / col2 + - col2 FROM tab1
----
-58
-67
-96

query I rowsort
SELECT + 86 + - col1 FROM tab2
----
19
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT - - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - MAX( - - 91 ) - - 34 AS col1 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - MAX ( - - 91 ) - - 34 AS col1 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT - col1 * - + col1 * col2 + col1 + col2 * - col0 AS col2 FROM tab2 AS cor0
----
234677
256079
58816

query I rowsort
SELECT - + ( - - col0 ) AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 61 - + col1 col2, - col1 FROM tab2 AS cor0
----
-16
-77
-6
-67
10
-51

query I rowsort
SELECT ALL - 37 * + - 72 AS col1 FROM tab1
----
2664
2664
2664

query I rowsort
SELECT + 72 * col2 - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3303
699
7127

query I rowsort
SELECT ALL + + col0 * - 24 AS col1 FROM tab0 AS cor0
----
-2088
-2328
-360

query I rowsort
SELECT DISTINCT ( 96 ) AS col1 FROM tab1 cor0
----
96

query II rowsort
SELECT + - col2 AS col1, col2 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-10
100
-47
2209
-99
9801

query I rowsort
SELECT DISTINCT - 20 * - col0 FROM tab1
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5584
SELECT - + col0 DIV - + col1, col2 * CAST( + - 65 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1
-4420
17
-3835
3
-6240

skipif mysql # not compatible
query II rowsort label-5584
SELECT - + col0 / - + col1, col2 * CAST ( + - 65 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1
-4420
17
-3835
3
-6240

query I rowsort
SELECT - 33 * - 35 + + 65 AS col2 FROM tab2 AS cor0
----
1220
1220
1220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5586
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * ) * + MAX( DISTINCT - 50 ) * + + COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5586
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + MAX ( DISTINCT - 50 ) * + + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - - SUM( ( - ( col2 ) ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5587
SELECT - - SUM ( ( - ( col2 ) ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5588
SELECT - SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT + + COUNT( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT + + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT DISTINCT - + col0 + + - col2 * - CAST( + col0 AS SIGNED ) - - 31 FROM tab2 AS cor0
----
1043
2527
4306

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT - + col0 + + - col2 * - CAST ( + col0 AS INTEGER ) - - 31 FROM tab2 AS cor0
----
1043
2527
4306

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT + col1 = + - ( - col0 )
----
15
87
97

query I rowsort
SELECT DISTINCT - 97 + - col2 AS col2 FROM tab1
----
-156
-165
-193

query I rowsort
SELECT ALL ( 61 ) * col0 + - col2 AS col2 FROM tab2
----
2783
3864
4517

query I rowsort
SELECT DISTINCT 99 + - col2 FROM tab1
----
3
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT + SUM( + - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT + SUM ( + - col1 ) AS col0 FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col0 FROM tab0
----
-57
-57
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 32 + - col0 + + col1 - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT - MIN( + 78 ) * - COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5598
SELECT - MIN ( + 78 ) * - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5600
SELECT DISTINCT + col1 - 73, col0 + 47 + + col2 * + + CAST( NULL AS SIGNED ) * + 48 AS col1 FROM tab2 AS cor0
----
-22
NULL
-6
NULL
4
NULL

skipif mysql # not compatible
query II rowsort label-5600
SELECT DISTINCT + col1 - 73, col0 + 47 + + col2 * + + CAST ( NULL AS INTEGER ) * + 48 AS col1 FROM tab2 AS cor0
----
-22
NULL
-6
NULL
4
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 69 + - + col2 >= + - col1
----
51
14
96

query II rowsort
SELECT ALL 17 * + col2, + 27 AS col2 FROM tab2
----
391
27
680
27
986
27

query I rowsort
SELECT ALL + col2 - - col1 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 * - 86 FROM tab0
----
-1806
-6966
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( + 28 ) BETWEEN - col1 AND NULL
----
51
14
96
85
5
59

query I rowsort
SELECT 89 * 45 * - 41 FROM tab0
----
-164205
-164205
-164205

query I rowsort
SELECT DISTINCT - 64 + - - 83 AS col0 FROM tab0
----
19

query I rowsort
SELECT 37 * col1 AS col2 FROM tab1
----
1739
185
518

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5610
SELECT DISTINCT 73 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
73
3

skipif mysql # not compatible
query II rowsort label-5610
SELECT DISTINCT 73 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
73
3

query II rowsort
SELECT DISTINCT + col2 AS col1, + 45 FROM tab1 AS cor0
----
59
45
68
45
96
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - MAX( col1 ) + - - 85 AS col2 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5612
SELECT - MAX ( col1 ) + - - 85 AS col2 FROM tab2 AS cor0
----
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + + col2 / - - col0 BETWEEN 45 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT COUNT( * ) + - - MAX( - col0 ) + 35 AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-5614
SELECT COUNT ( * ) + - - MAX ( - col0 ) + 35 AS col2 FROM tab0
----
23

query I rowsort
SELECT ALL + 37 * + col2 AS col0 FROM tab0
----
1739
3663
370

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT MIN( DISTINCT + - col0 ) AS col1 FROM tab0 WHERE - - ( - ( - col0 ) ) * + col0 + + - col2 + - + col2 * + 18 IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 WHERE - - ( - ( - col0 ) ) * + col0 + + - col2 + - + col2 * + 18 IS NOT NULL
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5617
SELECT - col0 + - CAST( NULL AS SIGNED ) AS col1, col2 col2 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-5617
SELECT - col0 + - CAST ( NULL AS INTEGER ) AS col1, col2 col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - 7 + - + col1 + + 52 FROM tab2
----
-22
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT + 55 + + + SUM( 62 ) FROM tab0
----
241

skipif mysql # not compatible
query I rowsort label-5619
SELECT + 55 + + + SUM ( 62 ) FROM tab0
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT SUM( + 29 ) + - COUNT( * ) * ( 88 ) * - COUNT( * ) FROM tab0
----
879

skipif mysql # not compatible
query I rowsort label-5620
SELECT SUM ( + 29 ) + - COUNT ( * ) * ( 88 ) * - COUNT ( * ) FROM tab0
----
879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5621
SELECT DISTINCT + COUNT( * ) DIV + 65 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT + COUNT ( * ) / + 65 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * col0 col2 FROM tab1 WHERE - - col0 IN ( + 30 )
----

query I rowsort
SELECT DISTINCT col2 + + + col0 + - 99 + + + col1 + col2 AS col2 FROM tab0
----
197
29
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + MAX( col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5624
SELECT + MAX ( col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT + ( col1 ) * 37 + + 34 * + + col0 FROM tab0 AS cor0
----
3335
3507
3735

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT - col1 - - col2 DIV col1 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-5626
SELECT - col1 - - col2 / col1 FROM tab0 AS cor0
----
-21
-81
98

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL >= 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5628
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL - col1 * ( - + col2 ) FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + 62 * ( + 15 ) + + + 75 AS col1, + 4 col1 FROM tab1 AS cor0
----
1056
4
1090
4
1096
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT DISTINCT + 45 + - 86 DIV - + 31 AS col0 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + 45 + - 86 / - + 31 AS col0 FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT 12 AS col2, SUM( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
12
66

skipif mysql # not compatible
query II rowsort label-5632
SELECT 12 AS col2, SUM ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
12
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT ALL + COUNT( * ) AS col2, 41 + COUNT( * ) col2 FROM tab2 AS cor0 WHERE + 0 IS NOT NULL
----
3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5633
SELECT ALL + COUNT ( * ) AS col2, 41 + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + 0 IS NOT NULL
----
3
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5634
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <> + col0 * col0 * 89 + + 12 + - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 0, col0 * - + col0 - + col1 + - - col1 - + + col1 * + - col0 col1 FROM tab2
----
0
-600
0
230
0
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( + 23 ) ) col0 FROM tab2
----
23
23
23

query I rowsort
SELECT ALL col0 * - + col2 * + col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab0 WHERE NULL = NULL AND NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - ( + 7 ) FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5641
SELECT ALL * FROM tab2 WHERE NOT - - CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5641
SELECT ALL * FROM tab2 WHERE NOT - - CAST ( - col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5642
SELECT ALL ( + - 48 ) AS col0, CAST( + + 87 AS SIGNED ) + - - col1 * + col0 * + col1 * - col1 col2 FROM tab2
----
-48
-22557138
-48
-29218025
-48
-6101859

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5642
SELECT ALL ( + - 48 ) AS col0, CAST ( + + 87 AS INTEGER ) + - - col1 * + col0 * + col1 * - col1 col2 FROM tab2
----
-48
-22557138
-48
-29218025
-48
-6101859

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT - MIN( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5643
SELECT - MIN ( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + ( 17 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
17

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL - 98 + 57 AS col0 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT - col0 * + 25 + + + 77 + 91 AS col1 FROM tab1
----
-1107
-1957
-2107

query I rowsort
SELECT DISTINCT - - col0 * + 94 FROM tab2 AS cor0
----
4324
6016
7050

query I rowsort
SELECT 50 * - + 31 FROM tab2 AS cor0
----
-1550
-1550
-1550

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5650
SELECT + col1 * + ( col2 ) * CAST( NULL AS DECIMAL ) + + - col0, - col0 + + 63 AS col0 FROM tab1 AS cor0
----
NULL
-22
NULL
-28
NULL
12

skipif mysql # not compatible
query II rowsort label-5650
SELECT + col1 * + ( col2 ) * CAST ( NULL AS REAL ) + + - col0, - col0 + + 63 AS col0 FROM tab1 AS cor0
----
NULL
-22
NULL
-28
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + SUM( + - 6 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5651
SELECT + SUM ( + - 6 ) FROM tab1 AS cor0
----
-18

query II rowsort
SELECT 1 * - col1, + col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT 54 * col0 * - col0 FROM tab2 AS cor0
----
-114264
-221184
-303750

query I rowsort
SELECT - col0 FROM tab1 WHERE - + col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT DISTINCT + + COUNT( * ) FROM tab0, tab1 AS cor0 WHERE NOT NULL <= - + 42 / - 48
----
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT + + COUNT ( * ) FROM tab0, tab1 AS cor0 WHERE NOT NULL <= - + 42 / - 48
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT col2 + + ( col2 ) - - ( CAST( NULL AS SIGNED ) ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT col2 + + ( col2 ) - - ( CAST ( NULL AS INTEGER ) ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 26 + col2 FROM tab2 AS cor0
----
-3
14
32

query I rowsort
SELECT - + 30 * - ( col0 ) AS col2 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - col2
----
1530
2550
2730

query I rowsort
SELECT ALL 71 * - col1 FROM tab2
----
-3621
-4757
-5467

query I rowsort
SELECT - 82 + 95 FROM tab2
----
13
13
13

query I rowsort
SELECT 46 + - col1 * col0 AS col0 FROM tab1
----
-379
-4231
-668

query I rowsort
SELECT DISTINCT 61 * col2 AS col0 FROM tab1
----
3599
4148
5856

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 21 FROM tab0
----
-66
-76
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL SUM( col1 ) * 11 AS col0 FROM tab0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL SUM ( col1 ) * 11 AS col0 FROM tab0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT 20 + - col2 AS col1 FROM tab1
----
-39
-48
-76

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( col2 ) >= 42
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT - 22 * - COUNT( * ) + - 34 AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-5669
SELECT - 22 * - COUNT ( * ) + - 34 AS col2 FROM tab1
----
32

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col1 - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 15 * 57
----

query I rowsort
SELECT + col0 + + 41 FROM tab0
----
128
138
56

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 AS col1 FROM tab1 WHERE NOT + col1 >= 65 + 59
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL 65 + COUNT( * ) AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL 65 + COUNT ( * ) AS col0 FROM tab2
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col2 FROM tab1 WHERE NOT + 17 IS NOT NULL
----

query I rowsort
SELECT + col0 + + 18 * col1 FROM tab0
----
115
1473
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5678
SELECT + 38 AS col0 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5678
SELECT + 38 AS col0 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
38
38
38

query I rowsort
SELECT col2 + + col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 31 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - col1 ) / + col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5682
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND + ( ( + ( CAST( NULL AS SIGNED ) ) ) ) + col2
----

skipif mysql # not compatible
query III rowsort label-5682
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND + ( ( + ( CAST ( NULL AS INTEGER ) ) ) ) + col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 * 25 ) IN ( + 2 )
----

query I rowsort
SELECT ALL 99 FROM tab0 WHERE NOT NULL NOT IN ( + col1 * ( - ( col0 ) ) )
----

query I rowsort
SELECT - col2 + 37 FROM tab1
----
-22
-31
-59

query I rowsort
SELECT ALL + 83 + - col1 AS col0 FROM tab2 WHERE NOT col0 < col1 * + col2 + - col1
----

query I rowsort
SELECT - ( - 38 ) + col1 AS col1 FROM tab1
----
43
52
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5688
SELECT ALL + COUNT( * ) DIV 4 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + COUNT ( * ) / 4 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 92 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 6 AS col2 FROM tab1 WHERE - ( col1 ) + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT COUNT( 46 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5691
SELECT COUNT ( 46 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT COUNT( * ) DIV + MIN( + col0 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT COUNT ( * ) / + MIN ( + col0 ) AS col1 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 / col1 + 72 ) NOT BETWEEN col0 + col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5695
SELECT ALL + CAST( - col2 AS DECIMAL ) FROM tab0 WHERE NOT - 76 + + ( - col2 + + col1 ) * + 27 NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + CAST ( - col2 AS REAL ) FROM tab0 WHERE NOT - 76 + + ( - col2 + + col1 ) * + 27 NOT IN ( col0 )
----

query I rowsort
SELECT ALL + col2 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

query I rowsort
SELECT DISTINCT - 4 * - col1 AS col1 FROM tab0 cor0
----
324
4
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - col1 IS NULL
----

query I rowsort
SELECT - + col2 + + 12 AS col2 FROM tab0 AS cor0
----
-35
-87
2

query I rowsort
SELECT ALL - AVG ( col2 ) AS col2 FROM tab2 AS cor0 WHERE ( 70 * + 73 ) IS NULL
----
NULL

query I rowsort
SELECT + col0 * + 18 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-571
1505
722

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( col0 * 10 ) IS NULL
----

query I rowsort
SELECT ALL 13 * col1 FROM tab1 cor0
----
182
611
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT DISTINCT CAST( - 8 AS SIGNED ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT CAST ( - 8 AS INTEGER ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT + - col0 + - 72 AS col2 FROM tab0 AS cor0
----
-159
-169
-87

query I rowsort
SELECT - + col1 + - 99 * + col1 FROM tab1 AS cor0
----
-1400
-4700
-500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5708
SELECT * FROM tab1 AS cor0 WHERE + col2 / CAST( NULL AS SIGNED ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5708
SELECT * FROM tab1 AS cor0 WHERE + col2 / CAST ( NULL AS INTEGER ) + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 63 FROM tab1
----
3213
5355
5733

query I rowsort
SELECT DISTINCT col2 + ( - 31 ) FROM tab2
----
-8
27
9

query I rowsort
SELECT ( - 20 ) + ( + 92 ) FROM tab1
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT + 82 DIV + col1 AS col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-5712
SELECT + 82 / + col1 AS col1 FROM tab1
----
1
16
5

query I rowsort
SELECT 75 * col0 AS col1 FROM tab2
----
3450
4800
5625

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( 99 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT + 48 DIV COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5715
SELECT + 48 / COUNT ( * ) FROM tab1
----
16

query I rowsort
SELECT ALL - col2 + + - 94 AS col0 FROM tab0
----
-104
-141
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT COUNT( * ) * - + 36 + 41 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT COUNT ( * ) * - + 36 + 41 FROM tab0
----
-67

query I rowsort
SELECT col0 FROM tab1 WHERE col0 * + 76 BETWEEN col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 19 col2 FROM tab2
----
42
59
77

query I rowsort
SELECT ALL 55 - - 92 - 1 FROM tab1
----
146
146
146

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 63 + col1 ) <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 79 + - 64 FROM tab2 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT MAX( ALL - col1 ) - 93 AS col1 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5723
SELECT MAX ( ALL - col1 ) - 93 AS col1 FROM tab2 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT COUNT( * ) * - 89 - + MAX( DISTINCT - col1 - + col0 ) AS col1 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5724
SELECT COUNT ( * ) * - 89 - + MAX ( DISTINCT - col1 - + col0 ) AS col1 FROM tab0 AS cor0
----
-171

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) < ( ( + 90 ) * 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT + SUM( ALL - - ( - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5726
SELECT + SUM ( ALL - - ( - col0 ) ) FROM tab0
----
-199

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 28 = 49 * 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 81 AS col1 FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 71 NOT IN ( - col2 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT ALL + 26 DIV + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + 26 / + col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 97 + + col2 + 42 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT - - 36 DIV + 43 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT - - 36 / + 43 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5733
SELECT - CAST( NULL AS SIGNED ) AS col0, + col2 * 50 col0 FROM tab2 AS cor0
----
NULL
1150
NULL
2000
NULL
2900

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5733
SELECT - CAST ( NULL AS INTEGER ) AS col0, + col2 * 50 col0 FROM tab2 AS cor0
----
NULL
1150
NULL
2000
NULL
2900

query I rowsort
SELECT DISTINCT + ( 54 ) AS col0 FROM tab0 AS cor0
----
54

query II rowsort
SELECT - ( + 37 ) AS col2, - col2 AS col2 FROM tab0
----
-37
-10
-37
-47
-37
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL MIN( + 26 ) AS col0 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL MIN ( + 26 ) AS col0 FROM tab2
----
26

query I rowsort
SELECT col0 * col1 + - 95 AS col2 FROM tab2 WHERE NOT NULL IS NULL AND + - 17 * col2 > - col1
----

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) - col0 col2 FROM tab1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL + col1 * - - 50 * + col1 FROM tab0
----
22050
328050
50

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 21 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( + + col2 ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT - MIN( - + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT - MIN ( - + col1 ) AS col0 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 33 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 17 * + col1 NOT BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5747
SELECT COUNT( * ) DIV + - 66 * + + 43 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT COUNT ( * ) / + - 66 * + + 43 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE ( + - col2 ) <= + col1 + col2
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5749
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) + - 33 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 33 AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT ALL 79 + + col0 DIV + col0 AS col2 FROM tab2
----
80
80
80

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL 79 + + col0 / + col0 AS col2 FROM tab2
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT + ( - col1 ) + col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 48 + + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5751
SELECT + ( - col1 ) + col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 48 + + CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL 19 + 95 + - 53 + + - col1 FROM tab2 AS cor0
----
-16
-6
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5753
SELECT * FROM tab2 AS cor0 WHERE 85 BETWEEN col1 + + + CAST( - col0 AS SIGNED ) * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5753
SELECT * FROM tab2 AS cor0 WHERE 85 BETWEEN col1 + + + CAST ( - col0 AS INTEGER ) * col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5754
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5754
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + - 13 * - col1 AS col1 FROM tab2 AS cor0
----
1001
663
871

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5756
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) - - ( - 88 ) - - col1 - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT + + CAST ( NULL AS REAL ) - - ( - 88 ) - - col1 - col2 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= ( + col0 )
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + + col0 AND - col2
----

query I rowsort
SELECT ALL - - 87 AS col1 FROM tab2 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT COUNT( + + col1 ) * - - 74 * + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT COUNT ( + + col1 ) * - - 74 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL IN ( + col0 * col0 + col1 / col2 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 * - ( - - 73 ) + col0 * col2 <= ( + 87 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + 62 FROM tab1
----
113
147
153

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT + col2 + + col0 * CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5765
SELECT DISTINCT + col2 + + col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * + 93 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5767
SELECT - 38 * - - MAX( DISTINCT - col1 ) * - 97 + 81 + + + 54 DIV - COUNT( * ) FROM tab2 AS cor0
----
-187923

skipif mysql # not compatible
query I rowsort label-5767
SELECT - 38 * - - MAX ( DISTINCT - col1 ) * - 97 + 81 + + + 54 / - COUNT ( * ) FROM tab2 AS cor0
----
-187923

query I rowsort
SELECT ALL - 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 57 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5770
SELECT ALL - 28 DIV - - COUNT( * ) AS col1, + 30 AS col0 FROM tab0
----
-9
30

skipif mysql # not compatible
query II rowsort label-5770
SELECT ALL - 28 / - - COUNT ( * ) AS col1, + 30 AS col0 FROM tab0
----
-9
30

query I rowsort
SELECT + 83 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
83
83
83

query III rowsort
SELECT ALL * FROM tab0 WHERE + 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT DISTINCT + COUNT( * ) col2, MAX( - - 19 ) FROM tab0
----
3
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5773
SELECT DISTINCT + COUNT ( * ) col2, MAX ( - - 19 ) FROM tab0
----
3
19

query II rowsort
SELECT ALL col2, - 46 FROM tab0
----
10
-46
47
-46
99
-46

query I rowsort
SELECT ( - col2 ) * - col1 + + - 37 AS col2 FROM tab2
----
1136
3043
3849

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT ALL col0 DIV + - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL col0 / + - col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - - col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5778
SELECT ALL - SUM( DISTINCT + ( + col2 ) ) * + COUNT( * ) + + MAX( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) - - 17 + - - col0, - col0 - + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL - SUM ( DISTINCT + ( + col2 ) ) * + COUNT ( * ) + + MAX ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) - - 17 + - - col0, - col0 - + + col2 )
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 18 * col1 AS col2 FROM tab0 AS cor0
----
1782
3780
68526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5780
SELECT DISTINCT - COUNT( * ) DIV + 68 + + ( - 59 ) + COUNT( * ) col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5780
SELECT DISTINCT - COUNT ( * ) / + 68 + + ( - 59 ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
-56

query II rowsort
SELECT DISTINCT 18 + - col2 AS col1, 43 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * col0 >= - 91
----
-22
43
-40
43
-5
43

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5782
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-5782
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT + 92 DIV + 63 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5783
SELECT + 92 / + 63 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query II rowsort
SELECT ALL 93 + - col2 AS col1, col1 * + col1 * + 18 + 74 FROM tab0 AS cor0
----
-6
92
46
118172
83
8012

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT + COUNT( * ) - + 48 * + 24 AS col2 FROM tab2 AS cor0
----
-1149

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT + COUNT ( * ) - + 48 * + 24 AS col2 FROM tab2 AS cor0
----
-1149

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT ( 13 ) DIV + + col2 + 6 col2 FROM tab0 AS cor0
----
6
6
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5786
SELECT ( 13 ) / + + col2 + 6 col2 FROM tab0 AS cor0
----
6
6
7

query I rowsort
SELECT ALL - 30 * col2 - - + col2 FROM tab1 AS cor0
----
-1711
-1972
-2784

query I rowsort
SELECT - 88 * + + col1 FROM tab0 AS cor0
----
-1848
-7128
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 23 NOT IN ( + - 4, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT ( + CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5790
SELECT ( + CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col0 * + col1 * - ( - 27 ) * + 87 AS col1 FROM tab1
----
-10046673
-1677186
-998325

query I rowsort
SELECT + 43 * - + 59 FROM tab1
----
-2537
-2537
-2537

query I rowsort
SELECT DISTINCT col0 + 7 + - col2 + col2 FROM tab1
----
58
92
98

query I rowsort
SELECT ALL col0 + - - 49 AS col0 FROM tab0
----
136
146
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - 93 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - 93 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT 65 DIV 53 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5796
SELECT 65 / 53 AS col0 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT - AVG ( ALL + 8 ) AS col1 FROM tab0 WHERE + col2 BETWEEN - + 60 AND + col0 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT - AVG ( ALL + 8 ) AS col1 FROM tab0 WHERE + col2 BETWEEN - + 60 AND + col0 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5798
SELECT DISTINCT - ( + MAX( ALL - ( 95 ) ) ) * - 54 AS col2, MIN( + 20 ) AS col2 FROM tab2
----
-5130
20

skipif mysql # not compatible
query II rowsort label-5798
SELECT DISTINCT - ( + MAX ( ALL - ( 95 ) ) ) * - 54 AS col2, MIN ( + 20 ) AS col2 FROM tab2
----
-5130
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 * - - 61 * - - 46 col0 FROM tab0
----
0
0
0

query II rowsort
SELECT + 61, - 72 * + 14 AS col2 FROM tab2 AS cor0
----
61
-1008
61
-1008
61
-1008

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 5 col2 FROM tab0 AS cor0
----
-10
5
-47
5
-99
5

query I rowsort
SELECT ALL col0 * - - col2 + + + col1 FROM tab0 AS cor0
----
786
891
9604

query II rowsort
SELECT col2 * + col2 * + 43 - - col2, col2 FROM tab0 AS cor0
----
421542
99
4310
10
95034
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT + SUM( DISTINCT + - col1 ) + COUNT( * ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + SUM ( DISTINCT + - col1 ) + COUNT ( * ) FROM tab0
----
-100

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT ALL - 77 AS col0 FROM tab0 WHERE ( col2 * + 75 ) NOT IN ( 86 )
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab0, tab2 AS cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 8 * 43 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 * + 73 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
1022
96
3431
68
365
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 36
----

query I rowsort
SELECT - - 49 + - - col2 AS col0 FROM tab1 AS cor0
----
108
117
145

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 74 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT - MIN( ALL col2 ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5816
SELECT - MIN ( ALL col2 ) col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + ( - - col0 ) + + + ( + 49 ) AS col1 FROM tab0 AS cor0
----
136
146
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 75 - - + 58 * - 91, 72 * + col2 col1 FROM tab2 AS cor0
----
-5203
1656
-5203
2880
-5203
4176

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND - col0 * + ( - 11 )
----

query I rowsort
SELECT ALL 88 AS col1 FROM tab1 cor0 WHERE NOT ( NOT - - col1 >= NULL )
----

query I rowsort
SELECT DISTINCT + 65 - - col0 FROM tab2 cor0
----
111
129
140

query II rowsort
SELECT + col1 * - col0, col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT - MIN( + 65 ) * + 21 + - COUNT( * ) FROM tab2 AS cor0
----
-1368

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT - MIN ( + 65 ) * + 21 + - COUNT ( * ) FROM tab2 AS cor0
----
-1368

query I rowsort
SELECT ALL + col1 * 24 AS col2 FROM tab2 AS cor0
----
1224
1608
1848

query II rowsort
SELECT DISTINCT - col1 AS col1, 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 + + col0 * 89 + - col2 col2 FROM tab0 AS cor0
----
1288
7733
8534

query I rowsort
SELECT 36 + col2 AS col0 FROM tab0 AS cor0
----
135
46
83

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab0 AS cor0 WHERE NOT - 54 BETWEEN + col1 * 30 + - col2 * - + col2 AND NULL
----
27

query I rowsort
SELECT + 92 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND - 85
----

query II rowsort
SELECT ALL + col0, - col2 * col1 - + 5 FROM tab2
----
46
-1178
64
-3085
75
-3891

query I rowsort
SELECT col1 + + 45 * col0 - + col1 FROM tab0
----
3915
4365
675

query I rowsort
SELECT - col0 * + + 99 + - + 72 + - + col1 FROM tab0
----
-1638
-8706
-9676

query I rowsort
SELECT DISTINCT col0 + 98 * - + col2 + 84 FROM tab1
----
-5613
-6489
-9273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT - COUNT( * ) FROM tab0 WHERE - col0 + CAST( NULL AS SIGNED ) - + col2 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5836
SELECT - COUNT ( * ) FROM tab0 WHERE - col0 + CAST ( NULL AS INTEGER ) - + col2 * - col2 IS NOT NULL
----
0

query I rowsort
SELECT + 90 + - ( + col1 ) AS col1 FROM tab1
----
43
76
85

query I rowsort
SELECT ALL - 29 + - 40 FROM tab0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT - SUM( + + ( - col0 ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - SUM ( + + ( - col0 ) ) AS col1 FROM tab2
----
185

query I rowsort
SELECT ALL - 10 AS col2 FROM tab2 WHERE - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5841
SELECT MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - col2 * + + 68 AS col1 FROM tab0 cor0
----
-3196
-6732
-680

query I rowsort
SELECT DISTINCT + - col2 * - 47 * col2 + - col1 AS col2 FROM tab1 AS cor0 WHERE col0 IN ( 14 / - - col1, col2, col1, col1 - + + 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT + CAST( NULL AS SIGNED ) - col1 * + 78 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT + CAST ( NULL AS INTEGER ) - col1 * + 78 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 11 + - col1 + - + col0 * + col2 FROM tab1
----
-4899
-5009
-6224

query I rowsort
SELECT 38 * + 29 + + col0 AS col2 FROM tab0
----
1117
1189
1199

query III rowsort
SELECT * FROM tab2 WHERE ( + - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 AS col2, 83 AS col1 FROM tab1 WHERE NOT + + ( + col0 ) IS NULL
----
-59
83
-68
83
-96
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5849
SELECT DISTINCT COUNT( - col1 ) - - + CAST( - COUNT( + 78 ) AS SIGNED ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT COUNT ( - col1 ) - - + CAST ( - COUNT ( + 78 ) AS INTEGER ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - col2 * - col0 AS col1 FROM tab0 AS cor0 WHERE + col1 = NULL
----

query I rowsort
SELECT ALL - 41 + 95 AS col1 FROM tab2 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 - - + col1 + + 25 * - 81 * - col2 * - col0 - - col0 FROM tab1 cor0
----
-10155200
-12530471
-9914284

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE - col0 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT COUNT( * ) * - 47 + - COUNT( * ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5855
SELECT COUNT ( * ) * - 47 + - COUNT ( * ) FROM tab2 AS cor0
----
-144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 51 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 AS cor0 WHERE NULL <> 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT + + COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT + + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 16 * + 7 AS col2 FROM tab1
----
112
112
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 35, + col1 * + col2 col1 FROM tab1
----
35
1344
35
295
35
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5861
SELECT - col0 DIV + - ( 23 ) FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-5861
SELECT - col0 / + - ( 23 ) FROM tab1
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL + - SUM( DISTINCT + 66 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + - SUM ( DISTINCT + 66 ) FROM tab0 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= + ( + - col2 )
----

query I rowsort
SELECT ALL - col0 * + col1 * 15 FROM tab1
----
-10710
-6375
-64155

query I rowsort
SELECT DISTINCT + 47 * - + col2 FROM tab1 AS cor0
----
-2773
-3196
-4512

query I rowsort
SELECT + + col1 * - 43 FROM tab1 AS cor0
----
-2021
-215
-602

onlyif mysql # DIV for integer division: 
query I rowsort label-5867
SELECT + 34 DIV col1 * 55 + col0 * + 44 FROM tab1 AS cor0
----
2354
4004
4070

skipif mysql # not compatible
query I rowsort label-5867
SELECT + 34 / col1 * 55 + col0 * + 44 FROM tab1 AS cor0
----
2354
4004
4070

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT col1 * - + col2 * + - col2 / - 18 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 * + - ( col1 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + + ( - col1 ) * - 1 * 73 * + col2 FROM tab0 AS cor0
----
15330
277911
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT DISTINCT + MAX( ALL 26 ) * - - 40 FROM tab1 AS cor0
----
1040

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT + MAX ( ALL 26 ) * - - 40 FROM tab1 AS cor0
----
1040

query III rowsort
SELECT * FROM tab2 WHERE ( - - 56 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5873
SELECT DISTINCT col2 * - - CAST( NULL AS DECIMAL ) + 68 * + + 13 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT col2 * - - CAST ( NULL AS REAL ) + 68 * + + 13 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 + - 7 AS col0 FROM tab0
----
3
40
92

query I rowsort
SELECT + col2 * col0 + + col1 + + col0 + + col2 * col0 + + - col2 FROM tab0 cor0
----
1459
1838
19205

query I rowsort
SELECT col1 + + col0 AS col1 FROM tab1 AS cor0 WHERE + 65 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5877
SELECT ALL - - COUNT( * ), 31 AS col2 FROM tab2 cor0
----
3
31

skipif mysql # not compatible
query II rowsort label-5877
SELECT ALL - - COUNT ( * ), 31 AS col2 FROM tab2 cor0
----
3
31

query I rowsort
SELECT DISTINCT - 78 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

query I rowsort
SELECT 54 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + - 35 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT + + col1 * 94 + + 22 AS col1 FROM tab0 AS cor0
----
116
1996
7636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5882
SELECT + 21 - COUNT( * ) DIV + 24 AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5882
SELECT + 21 - COUNT ( * ) / + 24 AS col1 FROM tab0 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT ALL - 19 DIV - - 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL - 19 / - - 89 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT ALL + - col2 DIV col1 DIV 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + - col2 / col1 / 90 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0, col1 * 21 * - col1 col2 FROM tab1 AS cor0
----
-51
-4116
-85
-525
-91
-46389

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT - MAX( + - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5886
SELECT - MAX ( + - col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT + col1 * + 27 * col0 AS col2 FROM tab1
----
11475
115479
19278

onlyif mysql # DIV for integer division: 
query II rowsort label-5888
SELECT col1 DIV - ( - - col0 ), - 18 * 95 * - col2 AS col1 FROM tab1
----
0
100890
0
116280
0
164160

skipif mysql # not compatible
query II rowsort label-5888
SELECT col1 / - ( - - col0 ), - 18 * 95 * - col2 AS col1 FROM tab1
----
0
100890
0
116280
0
164160

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL MAX( DISTINCT - col2 ) * - COUNT( DISTINCT + col2 ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL MAX ( DISTINCT - col2 ) * - COUNT ( DISTINCT + col2 ) AS col0 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL ( 24 ) - - COUNT( * ) FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL ( 24 ) - - COUNT ( * ) FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5891
SELECT CAST( + col2 AS SIGNED ) * + col0 * + col0 - - col0 FROM tab2
----
163904
326325
48714

skipif mysql # not compatible
query I rowsort label-5891
SELECT CAST ( + col2 AS INTEGER ) * + col0 * + col0 - - col0 FROM tab2
----
163904
326325
48714

query I rowsort
SELECT DISTINCT col0 * + + 68 AS col2 FROM tab1
----
3468
5780
6188

query I rowsort
SELECT ALL 35 + col1 FROM tab2 WHERE NOT + + col0 + + col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT COUNT( * ) * + MIN( ALL 53 ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5894
SELECT COUNT ( * ) * + MIN ( ALL 53 ) FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT + COUNT( * ), MIN( DISTINCT + col0 ) AS col0 FROM tab1
----
3
51

skipif mysql # not compatible
query II rowsort label-5895
SELECT + COUNT ( * ), MIN ( DISTINCT + col0 ) AS col0 FROM tab1
----
3
51

query I rowsort
SELECT 61 * - 83 FROM tab2
----
-5063
-5063
-5063

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 3 ) IS NULL
----

query II rowsort
SELECT col2 AS col2, 67 AS col1 FROM tab2
----
23
67
40
67
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 80 AS col1, - 92 col2 FROM tab0 AS cor0
----
80
-92
80
-92
80
-92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 >= 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 67 + 83 col2 FROM tab1 AS cor0
----
16

query I rowsort
SELECT ( + + 37 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query II rowsort
SELECT ( + ( - ( col2 ) ) ) + + + 74 AS col0, + col0 - + + col2 FROM tab1
----
-22
-45
15
26
6
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT SUM( ALL - col0 ) + + 90 FROM tab0
----
-109

skipif mysql # not compatible
query I rowsort label-5904
SELECT SUM ( ALL - col0 ) + + 90 FROM tab0
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT CAST( SUM( col2 ) AS SIGNED ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5905
SELECT CAST ( SUM ( col2 ) AS INTEGER ) AS col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT SUM( ALL - 8 ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5906
SELECT SUM ( ALL - 8 ) AS col0 FROM tab1
----
-24

query I rowsort
SELECT DISTINCT col0 + + col2 * 63 FROM tab0
----
2976
6334
717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL - CAST( NULL AS SIGNED ) - - 68 + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - CAST ( NULL AS INTEGER ) - - 68 + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( - ( + col2 ) ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + ( col2 ) AS col1, ( col0 ) FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT ALL + 81 - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL + 81 - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - + ( + MIN( ALL + col1 ) ) * - 7 + MIN( + + col0 ) * + COUNT( * ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5913
SELECT - + ( + MIN ( ALL + col1 ) ) * - 7 + MIN ( + + col0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
52

query I rowsort
SELECT + ( - 38 ) * + - 20 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 46167e4e06a08c585047a2f1261c1b47

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT DISTINCT 4 * - COUNT( * ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT 4 * - COUNT ( * ) AS col2 FROM tab2
----
-12

query I rowsort
SELECT ALL + - 85 AS col2 FROM tab1 cor0
----
-85
-85
-85

query II rowsort
SELECT DISTINCT col2, + col2 * + + col1 * ( - + 8 ) AS col2 FROM tab0 AS cor0
----
10
-1680
47
-30456
99
-792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT - ( - 4 ) * - col0 / CAST( NULL AS SIGNED ) * 85 - - col1 + + + col0 - + 28 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT - ( - 4 ) * - col0 / CAST ( NULL AS INTEGER ) * 85 - - col1 + + + col0 - + 28 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT - COUNT( * ) * 58 AS col0 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - COUNT ( * ) * 58 AS col0 FROM tab1 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT - MIN( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5920
SELECT - MIN ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT + ( - COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col0 FROM tab0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-46
-64
-75

query II rowsort
SELECT col0, col2 FROM tab0 WHERE NOT 68 NOT IN ( - col1 + - - col1, - col0, + col0 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( - 98 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT 87 DIV col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5927
SELECT 87 / col1 AS col2 FROM tab2
----
1
1
1

query II rowsort
SELECT DISTINCT 72 AS col1, col1 FROM tab0
----
72
1
72
21
72
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col0 FROM tab2 cor0
----
8

query I rowsort
SELECT DISTINCT ( + 10 ) AS col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT - 34 + - + 2 + 92 * - - col1 AS col1 FROM tab0 cor0
----
1896
56
7416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col1, col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - + 18 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT 45 * - SUM( ALL col1 ) FROM tab1 AS cor0
----
-2970

skipif mysql # not compatible
query I rowsort label-5934
SELECT 45 * - SUM ( ALL col1 ) FROM tab1 AS cor0
----
-2970

query I rowsort
SELECT - col0 * 43 AS col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

onlyif mysql # aggregate syntax: 
query II rowsort label-5936
SELECT DISTINCT 76 AS col0, + COUNT( - col0 ) FROM tab0
----
76
3

skipif mysql # not compatible
query II rowsort label-5936
SELECT DISTINCT 76 AS col0, + COUNT ( - col0 ) FROM tab0
----
76
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col1 FROM tab2
----
-20
-20
-20

query II rowsort
SELECT DISTINCT col2 AS col1, + 96 FROM tab2
----
23
96
40
96
58
96

query I rowsort
SELECT ( - + col2 ) + + col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + col0 - - - col2 + - - col2 * + col1 * 0 FROM tab0
----
-17
164
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5941
SELECT DISTINCT * FROM tab0 WHERE ( + col1 * col2 * - 33 ) < NULL AND + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) < - - col2 + + + col1
----

skipif mysql # not compatible
query III rowsort label-5941
SELECT DISTINCT * FROM tab0 WHERE ( + col1 * col2 * - 33 ) < NULL AND + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) < - - col2 + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5942
SELECT ALL CAST( NULL AS SIGNED ) * + - 61 + - col2, col2 DIV + 51 + + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
98

skipif mysql # not compatible
query II rowsort label-5942
SELECT ALL CAST ( NULL AS INTEGER ) * + - 61 + - col2, col2 / + 51 + + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT - 72 DIV 44 + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5943
SELECT - 72 / 44 + col1 FROM tab2
----
50
66
76

query I rowsort
SELECT - 67 + - col0 FROM tab2
----
-113
-131
-142

query III rowsort
SELECT * FROM tab0 WHERE - ( + 42 ) IS NULL
----

query I rowsort
SELECT ALL + col0 * - col0 + 1 * - col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

query II rowsort
SELECT ALL - - col2 AS col0, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT + COUNT( * ) + + - ( 10 ) FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( + - col1 - - 1, col0 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-5948
SELECT + COUNT ( * ) + + - ( 10 ) FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( + - col1 - - 1, col0 ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL AVG ( + col2 ) / + COUNT( * ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL AVG ( + col2 ) / + COUNT ( * ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( + + ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - - col1 * + ( + 70 ) * + 94 + + + 75 * + col0 FROM tab0 AS cor0
----
13855
144705
534105

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - ( - 85 )
----

query I rowsort
SELECT ALL col0 * - + 83 * col0 FROM tab2
----
-175628
-339968
-466875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5954
SELECT ALL * FROM tab1 WHERE ( col1 * col1 * CAST( + col1 AS SIGNED ) NOT IN ( + col1, + col2 + - + col1 * + - 50, - col1 + + col1, col2, - + col0 / + 20 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5954
SELECT ALL * FROM tab1 WHERE ( col1 * col1 * CAST ( + col1 AS INTEGER ) NOT IN ( + col1, + col2 + - + col1 * + - 50, - col1 + + col1, col2, - + col0 / + 20 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 84 * col0 AS col1 FROM tab0
----
-1260
-7308
-8148

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT ALL + col0 DIV 18 FROM tab0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL + col0 / 18 FROM tab0
----
0
4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT - + 84 AS col0 FROM tab2 WHERE NOT - col1 + col1 - - ( + - CAST( + col0 AS SIGNED ) ) + col0 IS NULL
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-5958
SELECT - + 84 AS col0 FROM tab2 WHERE NOT - col1 + col1 - - ( + - CAST ( + col0 AS INTEGER ) ) + col0 IS NULL
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT - CAST( NULL AS SIGNED ) * + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT - CAST ( NULL AS INTEGER ) * + - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 88 * - + col2 AS col2 FROM tab2 cor0
----
2024
3520
5104

query I rowsort
SELECT - + 4 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 14 FROM tab2 cor0 WHERE - ( col0 ) IS NULL
----

query I rowsort
SELECT col0 + + ( + + 80 ) AS col2 FROM tab2 AS cor0
----
126
144
155

query I rowsort
SELECT col0 + 82 FROM tab1 cor0
----
133
167
173

query II rowsort
SELECT + + col1, + 15 AS col0 FROM tab2 AS cor0 WHERE 6 NOT BETWEEN + - 7 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT MIN( - col2 ) + + - ( 78 ) FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-5966
SELECT MIN ( - col2 ) + + - ( 78 ) FROM tab2 AS cor0
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5967
SELECT ALL COUNT( * ) * + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL COUNT ( * ) * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 48 * - col2 * + 45 * - - col1 FROM tab1
----
-2903040
-637200
-6903360

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - ( - 48 ) + - ( - 3 ) FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT + - CAST( NULL AS SIGNED ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT + - CAST ( NULL AS INTEGER ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 32 ) - + 15 AS col2 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5973
SELECT ALL - col0 * - - col1 - + col2 - + 14 DIV 95 col0 FROM tab0 AS cor0
----
-1262
-1837
-196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5973
SELECT ALL - col0 * - - col1 - + col2 - + 14 / 95 col0 FROM tab0 AS cor0
----
-1262
-1837
-196

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 13 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 * col1 * + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT + 33 FROM tab1 WHERE NOT + ( - + col0 ) NOT BETWEEN 62 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5977
SELECT + 33 FROM tab1 WHERE NOT + ( - + col0 ) NOT BETWEEN 62 AND - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 96 + - col1 - + 77 AS col0 FROM tab1
----
-28
14
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col0 FROM tab2
----
5
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5981
SELECT DISTINCT + MAX( DISTINCT 64 ), + CAST( NULL AS SIGNED ) col0 FROM tab2
----
64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5981
SELECT DISTINCT + MAX ( DISTINCT 64 ), + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT col0 DIV + + col1 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5982
SELECT col0 / + + col1 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT ALL + MAX( + col2 ) DIV - + 78 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + MAX ( + col2 ) / - + 78 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL <> - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 68
----

query I rowsort
SELECT col2 + + - 60 FROM tab0
----
-13
-50
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL 60 * + 48 + + COUNT( * ) col1 FROM tab2
----
2883

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5987
SELECT ALL 60 * + 48 + + COUNT ( * ) col1 FROM tab2
----
2883

query I rowsort
SELECT DISTINCT - 24 + - + 49 FROM tab1
----
-73

query I rowsort
SELECT 31 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT - + 56 AS col1, ( - col1 ) AS col2 FROM tab0 AS cor0
----
-56
-1
-56
-21
-56
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL + - MAX( DISTINCT - col2 ) * + 39 FROM tab1 AS cor0
----
2301

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL + - MAX ( DISTINCT - col2 ) * + 39 FROM tab1 AS cor0
----
2301

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5992
SELECT + 7 - + CAST( NULL AS DECIMAL ) + - COUNT( - col2 ) - 50 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 7 - + CAST ( NULL AS REAL ) + - COUNT ( - col2 ) - 50 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( + col2 ) - + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5994
SELECT + 15 - - + col1 DIV + col2 AS col1, CAST( NULL AS SIGNED ) DIV - 32 FROM tab2 cor0
----
16
NULL
16
NULL
17
NULL

skipif mysql # not compatible
query II rowsort label-5994
SELECT + 15 - - + col1 / + col2 AS col1, CAST ( NULL AS INTEGER ) / - 32 FROM tab2 cor0
----
16
NULL
16
NULL
17
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT DISTINCT + 10 DIV + + col1 + + ( col0 ) col0 FROM tab0 AS cor0
----
107
15
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5995
SELECT DISTINCT + 10 / + + col1 + + ( col0 ) col0 FROM tab0 AS cor0
----
107
15
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88 col0, - col2 AS col1 FROM tab2 cor0
----
88
-23
88
-40
88
-58

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5997
SELECT col2 + + + col2 DIV col1 * - + col0 * + - 77, col1 FROM tab1 WHERE + - col1 * - - CAST( NULL AS DECIMAL ) IS NULL
----
23658
14
7075
47
72054
5

skipif mysql # not compatible
query II rowsort label-5997
SELECT col2 + + + col2 / col1 * - + col0 * + - 77, col1 FROM tab1 WHERE + - col1 * - - CAST ( NULL AS REAL ) IS NULL
----
23658
14
7075
47
72054
5

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE col2 * + col2 + - 64 > - col1
----
23
40
58

query I rowsort
SELECT ( 98 ) + col1 + + col1 FROM tab2
----
200
232
252

query II rowsort
SELECT ALL - 71 + + col0 * + col1, col2 + - 4 + - 2 * + col0 AS col1 FROM tab2 WHERE - col2 + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL + MIN( + + 65 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL + MIN ( + + 65 ) FROM tab0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6002
SELECT DISTINCT - 89 DIV 76 * - COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT - 89 / 76 * - COUNT ( * ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT + col0 DIV - + col1 col1 FROM tab0 WHERE NOT - col1 > 83 + + col0 * col2
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6003
SELECT + col0 / - + col1 col1 FROM tab0 WHERE NOT - col1 > 83 + + col0 * col2
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT + 73 * - - COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-6004
SELECT + 73 * - - COUNT ( * ) FROM tab0 AS cor0
----
219

query II rowsort
SELECT ALL + col0, - 80 FROM tab1 cor0
----
51
-80
85
-80
91
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT COUNT( * ) * - - 48 * - 77 FROM tab0
----
-11088

skipif mysql # not compatible
query I rowsort label-6007
SELECT COUNT ( * ) * - - 48 * - 77 FROM tab0
----
-11088

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL - MAX( ALL - - 39 ) * - - 42 FROM tab2
----
-1638

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - MAX ( ALL - - 39 ) * - - 42 FROM tab2
----
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6009
SELECT - COUNT( * ) DIV - 76 + - - 90 - SUM( - col1 ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-6009
SELECT - COUNT ( * ) / - 76 + - - 90 - SUM ( - col1 ) FROM tab2
----
285

query I rowsort
SELECT ALL 78 + - col1 * - col0 AS col1 FROM tab2
----
2424
5006
5103

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT ALL - 80 AS col0, + COUNT( * ) AS col2 FROM tab2 WHERE NOT + col1 IS NULL OR col1 * - col1 * + 76 - - + col2 >= NULL
----
-80
3

skipif mysql # not compatible
query II rowsort label-6011
SELECT ALL - 80 AS col0, + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col1 IS NULL OR col1 * - col1 * + 76 - - + col2 >= NULL
----
-80
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 41, 29 col0 FROM tab0
----
41
29

query III rowsort
SELECT * FROM tab0 WHERE - 13 * col1 NOT BETWEEN + ( col1 ) AND + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + - col0 ) + - + col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT DISTINCT - 12 * - + COUNT( DISTINCT - 51 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT - 12 * - + COUNT ( DISTINCT - 51 ) FROM tab0
----
12

query I rowsort
SELECT ALL + + col1 * + col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT DISTINCT CAST( - - 73 AS SIGNED ) AS col1 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT CAST ( - - 73 AS INTEGER ) AS col1 FROM tab2 cor0
----
73

query I rowsort
SELECT ALL + - 56 FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT CAST( + - col1 AS SIGNED ) + 46 AS col0 FROM tab0
----
-35
25
45

skipif mysql # not compatible
query I rowsort label-6019
SELECT CAST ( + - col1 AS INTEGER ) + 46 AS col0 FROM tab0
----
-35
25
45

query I rowsort
SELECT ALL + col2 * - col0 + - 50 FROM tab2
----
-1108
-2610
-4400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT + COUNT( DISTINCT - col1 ) + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT + COUNT ( DISTINCT - col1 ) + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT DISTINCT + col2 * 78 + - 83 - - 3 + - col2 + + col1 DIV + - col0 + + col2 * 11 FROM tab2 AS cor0
----
1943
3439
5024

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + col2 * 78 + - 83 - - 3 + - col2 + + col1 / + - col0 + + col2 * 11 FROM tab2 AS cor0
----
1943
3439
5024

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT DISTINCT - + COUNT( * ) - - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - + COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 13 * - col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-84
1038
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT + 93 * + SUM( DISTINCT 86 ) FROM tab1 AS cor0
----
7998

skipif mysql # not compatible
query I rowsort label-6025
SELECT + 93 * + SUM ( DISTINCT 86 ) FROM tab1 AS cor0
----
7998

query I rowsort
SELECT 40 AS col1 FROM tab0 WHERE + 81 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL SUM( + 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL SUM ( + 0 ) AS col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - 6 * + - col1 * - col2, + 21 AS col1 FROM tab1
----
-1770
21
-19176
21
-8064
21

query I rowsort
SELECT - col2 * - - col0 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 53 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL <= + CAST( 27 AS SIGNED ) + + col1 + col2 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6031
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL <= + CAST ( 27 AS INTEGER ) + + col1 + col2 * - col2 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( - - 93 / - col0 + + + col0 + - col0 )
----

query I rowsort
SELECT col0 * + + 44 FROM tab0 AS cor0
----
3828
4268
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6034
SELECT col2 FROM tab1 WHERE NOT + + col2 / CAST( NULL AS SIGNED ) > col2 / + col2 * + 35
----

skipif mysql # not compatible
query I rowsort label-6034
SELECT col2 FROM tab1 WHERE NOT + + col2 / CAST ( NULL AS INTEGER ) > col2 / + col2 * + 35
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT DISTINCT + col1 DIV + col2 AS col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + col1 / + col2 AS col2 FROM tab0 cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT - SUM( - + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT - SUM ( - + col1 ) AS col0 FROM tab2 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT ( CAST( NULL AS SIGNED ) ) * + MIN( DISTINCT CAST( + - col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ( CAST ( NULL AS INTEGER ) ) * + MIN ( DISTINCT CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col0 * - 73 * + 16 FROM tab0 AS cor0
----
-101616
-113296
-17520

query II rowsort
SELECT - - col0, - col2 AS col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query II rowsort
SELECT + col1 AS col2, col2 * + - col1 * + 18 * + col0 AS col1 FROM tab0 AS cor0
----
1
-172854
21
-328860
81
-1027890

query II rowsort
SELECT + col2 AS col2, + col2 + - 16 AS col1 FROM tab1 AS cor0
----
59
43
68
52
96
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT - COUNT( * ) AS col0, MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-6044
SELECT - COUNT ( * ) AS col0, MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-3
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 21 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT MIN( DISTINCT + 12 ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT MIN ( DISTINCT + 12 ) AS col0 FROM tab0
----
12

query I rowsort
SELECT DISTINCT + col0 * - col0 + ( + + col1 ) FROM tab1
----
-2587
-7220
-8234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col0 FROM tab1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT ALL + col1 + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 76 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + - col0 * col1 col0 FROM tab1
----
-10465
-5440
-5610

query I rowsort
SELECT + + col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT 22 * 93 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a00f98f2804f87249ffb6b7cc65808ea

query III rowsort
SELECT * FROM tab1 WHERE + 88 IS NULL
----

query I rowsort
SELECT ALL + 94 - 79 AS col0 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT - + 14 - + col2 AS col1 FROM tab2 AS cor0
----
-37
-54
-72

query I rowsort
SELECT DISTINCT - col1 + - + 45 FROM tab2 AS cor0
----
-112
-122
-96

query I rowsort
SELECT - + 24 * - col1 - - 83 AS col2 FROM tab2 AS cor0
----
1307
1691
1931

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT ALL + + 21 + SUM( DISTINCT + - 24 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6059
SELECT ALL + + 21 + SUM ( DISTINCT + - 24 ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT + - ( CAST( + ( - 2 ) AS SIGNED ) ) - 41 AS col0 FROM tab1 cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-6060
SELECT + - ( CAST ( + ( - 2 ) AS INTEGER ) ) - 41 AS col0 FROM tab1 cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT ALL + + MAX( DISTINCT col2 ) * 41 + CAST( COUNT( * ) AS SIGNED ) + + 4 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + + MAX ( DISTINCT col2 ) * 41 + CAST ( COUNT ( * ) AS INTEGER ) + + 4 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

query I rowsort
SELECT - + 25 - - 62 FROM tab2 AS cor0
----
37
37
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + col1 / col2 + - - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT ALL + - CAST( ( + col0 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL + - CAST ( ( + col0 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT - ( + col2 ) * - 52 AS col1 FROM tab1
----
3068
3536
4992

query II rowsort
SELECT ALL - col0 AS col1, - col2 * col0 FROM tab1 WHERE + 45 BETWEEN - col2 * 58 AND + col1
----
-91
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT ALL 93 DIV col0 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL 93 / col0 AS col2 FROM tab2
----
1
1
2

query I rowsort
SELECT + ( + 69 ) * col2 + - col1 FROM tab2
----
1536
2683
3935

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT - 81 * - COUNT( DISTINCT col2 ) col0 FROM tab1
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6069
SELECT - 81 * - COUNT ( DISTINCT col2 ) col0 FROM tab1
----
243

query I rowsort
SELECT DISTINCT - 30 * + + col1 * - 71 FROM tab0 AS cor0
----
172530
2130
44730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6071
SELECT DISTINCT + + 86 * - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT + + 86 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 55 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + 73 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL - ( - 53 ) AS col0 FROM tab2
----
53
53
53

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 79 IS NOT NULL
----

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6078
SELECT - - 88 + col0 + 93, ( - 15 ) DIV col2 AS col0 FROM tab1 AS cor0
----
232
0
266
0
272
0

skipif mysql # not compatible
query II rowsort label-6078
SELECT - - 88 + col0 + 93, ( - 15 ) / col2 AS col0 FROM tab1 AS cor0
----
232
0
266
0
272
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 * - 70 / col1 + + + 35 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - 66 * + COUNT( * ) * - - 4 * - 6 AS col0 FROM tab0 WHERE + - ( 90 ) IS NOT NULL
----
4752

skipif mysql # not compatible
query I rowsort label-6080
SELECT - 66 * + COUNT ( * ) * - - 4 * - 6 AS col0 FROM tab0 WHERE + - ( 90 ) IS NOT NULL
----
4752

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT DISTINCT 85 + + col0 DIV 56 FROM tab1
----
85
86

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT 85 + + col0 / 56 FROM tab1
----
85
86

query II rowsort
SELECT + col1 AS col1, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6083
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE + 79 + - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + 79 + - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 43 AS col2 FROM tab1 cor0 WHERE NULL = - 21
----

query I rowsort
SELECT ALL + col2 - + - col1 + col1 AS col0 FROM tab1 cor0
----
124
162
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - + 83 - - col2 col2 FROM tab0 AS cor0
----
-1733
-6676
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT COUNT( * ) + - 54 AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-6087
SELECT COUNT ( * ) + - 54 AS col0 FROM tab0
----
-51

query I rowsort
SELECT col2 + + + ( + + col1 ) AS col0 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 84 + + + col1 AS col0 FROM tab0
----
105
165
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT - + COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 7 * col0 >= - - 46
----
0

skipif mysql # not compatible
query I rowsort label-6091
SELECT - + COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 7 * col0 >= - - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT DISTINCT + MAX( ALL - + ( - ( + 51 ) ) ) AS col0 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT + MAX ( ALL - + ( - ( + 51 ) ) ) AS col0 FROM tab0 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT DISTINCT COUNT( ALL - 96 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT COUNT ( ALL - 96 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT DISTINCT + MAX( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT + MAX ( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
75

query II rowsort
SELECT 41 * + + col2 AS col1, - col2 * - col2 * - col0 * ( + ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
1927
497025
4059
92217609
410
756900

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6097
SELECT DISTINCT * FROM tab2 WHERE col0 + - 68 + - CAST( NULL AS DECIMAL ) + - col2 >= - 73
----

skipif mysql # not compatible
query III rowsort label-6097
SELECT DISTINCT * FROM tab2 WHERE col0 + - 68 + - CAST ( NULL AS REAL ) + - col2 >= - 73
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT + COUNT( * ) AS col1, + 30 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
30

skipif mysql # not compatible
query II rowsort label-6098
SELECT + COUNT ( * ) AS col1, + 30 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT COUNT( * ) * + 28 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-6099
SELECT COUNT ( * ) * + 28 FROM tab0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT ALL - 25 DIV + col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - 25 / + col0 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 54 * - 54 + + col0 * + 61 >= - + col1 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - 79 / - + ( + col1 ) FROM tab2 WHERE NOT - - col2 IN ( col2, col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT MAX( - - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6104
SELECT MAX ( - - col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6106
SELECT - CAST( NULL AS DECIMAL ) + - - COUNT( - col0 ), MIN( ALL - CAST( NULL AS SIGNED ) ) + + 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6106
SELECT - CAST ( NULL AS REAL ) + - - COUNT ( - col0 ), MIN ( ALL - CAST ( NULL AS INTEGER ) ) + + 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT ALL col0 DIV - 79 + - 24 AS col1 FROM tab0
----
-24
-25
-25

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL col0 / - 79 + - 24 AS col1 FROM tab0
----
-24
-25
-25

query I rowsort
SELECT + 69 * col1 AS col1 FROM tab2
----
3519
4623
5313

query III rowsort
SELECT * FROM tab0 WHERE + 9 * + col2 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6110
SELECT 38 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT 38 + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 11 AS col2 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT DISTINCT - col0 - - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 93 * col2 FROM tab1
----
-5487
-6324
-8928

query III rowsort
SELECT * FROM tab2 WHERE + col1 / 15 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6115
SELECT + col2 + 88 DIV 86 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-6115
SELECT + col2 + 88 / 86 FROM tab1
----
60
69
97

query I rowsort
SELECT DISTINCT - 13 * col0 FROM tab2
----
-598
-832
-975

query I rowsort
SELECT ALL - 23 AS col0 FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 75 FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6119
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col2 + - 6 * col0 AS col0 FROM tab0
----
-43
-483
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT COUNT( * ) + + 48 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6121
SELECT COUNT ( * ) + + 48 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT col0 + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( + col2 ) BETWEEN 8 AND ( ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT col0 + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( + col2 ) BETWEEN 8 AND ( ( col0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL - 69 - + COUNT( * ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - 69 - + COUNT ( * ) AS col2 FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE col1 >= NULL
----
0

query I rowsort
SELECT - ( col0 ) * - col1 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - 79 + + col1 AS col1 FROM tab2
----
-12
-2
-28

query I rowsort
SELECT - col1 * + 34 FROM tab1
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL - SUM( 24 ) AS col1 FROM tab2 WHERE col0 NOT BETWEEN col2 * 29 AND NULL
----
-72

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - SUM ( 24 ) AS col1 FROM tab2 WHERE col0 NOT BETWEEN col2 * 29 AND NULL
----
-72

query I rowsort
SELECT + 55 * col0 AS col1 FROM tab0
----
4785
5335
825

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 72 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT - COUNT( * ) + 36 AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-6132
SELECT - COUNT ( * ) + 36 AS col2 FROM tab2
----
33

query I rowsort
SELECT ALL - col0 * 12 FROM tab1
----
-1020
-1092
-612

query I rowsort
SELECT + col2 * - 61 AS col2 FROM tab2 AS cor0
----
-1403
-2440
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT 45 - + COUNT( * ) AS col2 FROM tab2 cor0 WHERE + ( - 28 ) * col0 NOT BETWEEN - col0 AND - 13
----
42

skipif mysql # not compatible
query I rowsort label-6135
SELECT 45 - + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE + ( - 28 ) * col0 NOT BETWEEN - col0 AND - 13
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ALL + COUNT( * ) - 75 col1 FROM tab1 cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6136
SELECT ALL + COUNT ( * ) - 75 col1 FROM tab1 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6137
SELECT ALL * FROM tab2 WHERE + ( col1 ) / CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6137
SELECT ALL * FROM tab2 WHERE + ( col1 ) / CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT 45 DIV COUNT( * ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-6138
SELECT 45 / COUNT ( * ) AS col0 FROM tab2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT 74 DIV col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-6139
SELECT 74 / col2 FROM tab2 AS cor0
----
1
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT ALL - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6141
SELECT - COUNT( + col0 ) * MAX( col1 * col1 ) col1 FROM tab0 AS cor0 WHERE NOT - 80 NOT BETWEEN col0 * - CAST( col1 AS SIGNED ) AND + col1 / 46
----
-19683

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6141
SELECT - COUNT ( + col0 ) * MAX ( col1 * col1 ) col1 FROM tab0 AS cor0 WHERE NOT - 80 NOT BETWEEN col0 * - CAST ( col1 AS INTEGER ) AND + col1 / 46
----
-19683

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT DISTINCT - ( + SUM( col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - ( + SUM ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 79 * 84 ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col1 NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6146
SELECT + COUNT( * ) DIV 53 FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) DIV 89 )
----
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT + COUNT ( * ) / 53 FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) / 89 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE NOT 43 + ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 WHERE NOT col0 IN ( - 43 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT col0 IN ( - 43 )
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 77 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT + CAST( - 30 AS SIGNED ) FROM tab1 cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-6151
SELECT + CAST ( - 30 AS INTEGER ) FROM tab1 cor0
----
-30
-30
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE + 97 * - col2 <> col0 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6153
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE + ( CAST( + 77 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6153
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE + ( CAST ( + 77 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6154
SELECT DISTINCT col1 * CAST( col2 AS SIGNED ) + + 4 AS col1 FROM tab1
----
1348
299
3200

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT col1 * CAST ( col2 AS INTEGER ) + + 4 AS col1 FROM tab1
----
1348
299
3200

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6156
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6156
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 + - - col0 + - - 48 * + ( col0 ) FROM tab2 cor0
----
2305
3213
3742

query I rowsort
SELECT col2 + + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 81 )
----

query I rowsort
SELECT 73 + - ( + + 26 ) FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ( - col2 ) FROM tab0 AS cor0 WHERE 93 BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT ALL 18 * + ( + col0 ) FROM tab1 AS cor0
----
1530
1638
918

query I rowsort
SELECT col2 * + 15 * - + 81 FROM tab2
----
-27945
-48600
-70470

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 40 NOT BETWEEN NULL AND ( - col2 + 10 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT + 40 DIV + ( + 61 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6165
SELECT + 40 / + ( + 61 ) FROM tab2
----
0
0
0

query I rowsort
SELECT 74 * col2 AS col0 FROM tab0
----
3478
7326
740

query I rowsort
SELECT ALL + col0 * + 6 + + 22 * col2 + + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT + SUM( + 36 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT + SUM ( + 36 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 * + - 36 + - 3 - ( - 67 ) * 88 * col2 FROM tab2
----
133769
233065
339553

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL MIN( ALL + col2 ) + 19 col0 FROM tab2
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6170
SELECT ALL MIN ( ALL + col2 ) + 19 col0 FROM tab2
----
42

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 / 18 * - col0 ) IS NULL
----

query I rowsort
SELECT ALL - col0 * - col2 - ( - - col2 ) AS col1 FROM tab1
----
4800
4956
6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT ALL + ( - COUNT( * ) ) DIV 47 + + + 97 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL + ( - COUNT ( * ) ) / 47 + + + 97 FROM tab2 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6175
SELECT - + CAST( - - col2 AS SIGNED ) * + col0 * + ( - 89 ) - col0 AS col0 FROM tab1 AS cor0
----
435693
446250
550641

skipif mysql # not compatible
query I rowsort label-6175
SELECT - + CAST ( - - col2 AS INTEGER ) * + col0 * + ( - 89 ) - col0 AS col0 FROM tab1 AS cor0
----
435693
446250
550641

query I rowsort
SELECT - - 43 - col2 FROM tab2 AS cor0
----
-15
20
3

query I rowsort
SELECT DISTINCT - + 60 AS col1 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT + + 89 + 56 AS col1 FROM tab2 AS cor0
----
145
145
145

onlyif mysql # aggregate syntax: 
query II rowsort label-6179
SELECT DISTINCT 24, COUNT( * ) AS col1 FROM tab2
----
24
3

skipif mysql # not compatible
query II rowsort label-6179
SELECT DISTINCT 24, COUNT ( * ) AS col1 FROM tab2
----
24
3

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col0 + - col2 + 43 + col2 <= col2 * + 72 + ( + col1 - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + - ( + col2 ) * + - col1 + - - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + - ( + col2 ) * + - col1 + - - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT DISTINCT + + col1 * + - 39 * + col0 DIV col0 * - col0 FROM tab2 AS cor0
----
192192
195975
91494

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT + + col1 * + - 39 * + col0 / col0 * - col0 FROM tab2 AS cor0
----
192192
195975
91494

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT 51 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT 28 * col0 + + - col2 - - + col1 + - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT 51 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 28 * col0 + + - col2 - - + col1 + - col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT - + ( + COUNT( * ) ) - 41 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 * col1
----
-41

skipif mysql # not compatible
query I rowsort label-6184
SELECT - + ( + COUNT ( * ) ) - 41 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 * col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT MIN( ALL + + col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6185
SELECT MIN ( ALL + + col1 ) col0 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col2 FROM tab1 AS cor0 WHERE NOT + 92 * - - 92 = NULL
----

query I rowsort
SELECT ( + 3 ) AS col1 FROM tab0 cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT - - MIN( + 37 ) AS col2 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6188
SELECT - - MIN ( + 37 ) AS col2 FROM tab2 AS cor0
----
37

query I rowsort
SELECT + - col0 + + col0 + col0 FROM tab0 AS cor0 WHERE NOT col0 + + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 81, + 83 AS col1 FROM tab1 AS cor0
----
81
83

query I rowsort
SELECT 36 FROM tab1 WHERE NOT 92 * - col1 + - col2 + + col2 + - 54 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 AS col0 FROM tab2 WHERE NOT + col0 + + + 68 NOT BETWEEN NULL AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 55 ) col0 FROM tab1
----
-55
-55
-55

query I rowsort
SELECT DISTINCT + col0 * - col0 - - - 40 FROM tab0 cor0
----
-265
-7609
-9449

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 * + ( 94 ) / col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 65 col2 FROM tab0 WHERE NOT + 46 + + 96 + - 96 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT - 84 DIV + - col1 + + 28 * - col0 col2 FROM tab2
----
-1287
-1791
-2099

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6197
SELECT - 84 / + - col1 + + 28 * - col0 col2 FROM tab2
----
-1287
-1791
-2099

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE NULL > NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 > - col2 * - col2 + + - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( col2 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 + + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6203
SELECT * FROM tab1 AS cor0 WHERE + col0 + - col0 IN ( - CAST( - - 88 AS SIGNED ) + - 25 )
----

skipif mysql # not compatible
query III rowsort label-6203
SELECT * FROM tab1 AS cor0 WHERE + col0 + - col0 IN ( - CAST ( - - 88 AS INTEGER ) + - 25 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( 51 * - 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

query I rowsort
SELECT ( col1 ) + col2 + + + 68 AS col2 FROM tab2
----
142
185
193

query III rowsort
SELECT * FROM tab0 WHERE + + col0 <> NULL
----

query I rowsort
SELECT 59 + + 25 - + col2 FROM tab0
----
-15
37
74

query I rowsort
SELECT - col2 + + 49 + + 45 + + col1 FROM tab2
----
103
122
131

query I rowsort
SELECT ALL - col0 + + + 38 FROM tab0 AS cor0
----
-49
-59
23

query I rowsort
SELECT ALL - col2 * - + 54 AS col2 FROM tab2 AS cor0
----
1242
2160
3132

query II rowsort
SELECT ALL - 81, + col0 FROM tab1 AS cor0
----
-81
51
-81
85
-81
91

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NULL IS NULL OR NOT NULL > NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + COUNT( * ) col2 FROM tab0 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-6215
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - 35 AS col1 FROM tab2 WHERE NOT + + 14 BETWEEN - col2 * + 78 AND NULL
----

query I rowsort
SELECT - 20 * - - col1 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT - + 71 DIV + + col1 FROM tab1 cor0
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-6218
SELECT - + 71 / + + col1 FROM tab1 cor0
----
-1
-14
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL - MIN( - + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL - MIN ( - + col1 ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 BETWEEN 62 AND col0
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-6221
SELECT - col0 DIV + col2, col0 FROM tab1 AS cor0
----
-1
85
-1
91
0
51

skipif mysql # not compatible
query II rowsort label-6221
SELECT - col0 / + col2, col0 FROM tab1 AS cor0
----
-1
85
-1
91
0
51

query I rowsort
SELECT ALL + + 98 AS col2 FROM tab0 cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT - - ( - + COUNT( ALL col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6223
SELECT - - ( - + COUNT ( ALL col0 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 / col1 + col1 - + + 24 FROM tab2 WHERE + col0 * + col2 <= + 42
----

query I rowsort
SELECT DISTINCT ( + - col0 ) + col0 FROM tab1
----
0

query I rowsort
SELECT ALL col1 * 70 AS col1 FROM tab2
----
3570
4690
5390

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT BETWEEN + - col2 * + col2 / + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT - SUM( + col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT - SUM ( + col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT 50 + + COUNT( * ) AS col0 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-6229
SELECT 50 + + COUNT ( * ) AS col0 FROM tab0
----
53

query I rowsort
SELECT + 61 * + 88 AS col1 FROM tab1
----
5368
5368
5368

query I rowsort
SELECT - col0 + - + ( - col2 ) FROM tab2 WHERE NOT + 21 / col1 * + - col0 IS NULL
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6232
SELECT - CAST( NULL AS SIGNED ) * + MAX( - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT - CAST ( NULL AS INTEGER ) * + MAX ( - col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT DISTINCT + COUNT( 62 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT + COUNT ( 62 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 AS cor0 WHERE ( NOT col0 + - col1 / - + col0 + 26 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT ALL - col1 + - col1 + - - 91 DIV - col1 col2 FROM tab1 AS cor0
----
-28
-34
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6235
SELECT ALL - col1 + - col1 + - - 91 / - col1 col2 FROM tab1 AS cor0
----
-28
-34
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT CAST( NULL AS SIGNED ) * - + 47 + 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT CAST ( NULL AS INTEGER ) * - + 47 + 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + - col2 col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL + SUM( ALL - col1 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6238
SELECT ALL + SUM ( ALL - col1 ) col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT + SUM( DISTINCT ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + SUM ( DISTINCT ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT + + col2 - - - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query II rowsort label-6241
SELECT 98 AS col1, - 27 + 64 DIV col2 AS col1 FROM tab0 AS cor0
----
98
-21
98
-26
98
-27

skipif mysql # not compatible
query II rowsort label-6241
SELECT 98 AS col1, - 27 + 64 / col2 AS col1 FROM tab0 AS cor0
----
98
-21
98
-26
98
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6242
SELECT ALL - COUNT( * ), 30 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
-90

skipif mysql # not compatible
query II rowsort label-6242
SELECT ALL - COUNT ( * ), 30 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
-90

query III rowsort
SELECT col1 AS col1, col0 * - 12 + - - col2 AS col2, - col1 FROM tab0 AS cor0
----
9 values hashing to 945f6ff1e4ff42761488c6501b3455cc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + ( - col1 ) col0 FROM tab2 AS cor0 WHERE NOT + col2 + + + col0 NOT BETWEEN + col0 * col0 * - col0 - ( - col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6245
SELECT ALL CAST( NULL AS SIGNED ) + - MAX( ALL - ( + col0 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL CAST ( NULL AS INTEGER ) + - MAX ( ALL - ( + col0 ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 70 / + + 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 86 * col1 AS col1, ( + col0 ) AS col0 FROM tab0
----
-1806
87
-6966
15
-86
97

query I rowsort
SELECT ALL col0 + 79 FROM tab2
----
125
143
154

query I rowsort
SELECT + 45 AS col2 FROM tab0 cor0
----
45
45
45

query I rowsort
SELECT ALL ( - - ( + - col2 ) ) - + col2 + - 30 * col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1426
-2000
-2366

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - 0
----

query I rowsort
SELECT ALL + 25 * + + 59 FROM tab0
----
1475
1475
1475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6253
SELECT ALL - COUNT( * ) DIV + 37 * + SUM( ALL col2 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL - COUNT ( * ) / + 37 * + SUM ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT MIN( ALL + col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6254
SELECT MIN ( ALL + col1 ) col0 FROM tab2 AS cor0
----
51

query II rowsort
SELECT - 33 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
-33
-14
-33
-47
-33
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT + + COUNT( ALL col1 ) * - - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + + COUNT ( ALL col1 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT 96 * col0 * - + col1 AS col2 FROM tab2
----
-225216
-473088
-482400

query I rowsort
SELECT DISTINCT - 47 + 91 * col1 * ( + + 73 ) FROM tab0
----
139456
538036
6596

query III rowsort
SELECT * FROM tab0 WHERE NOT + 80 >= col2
----
97
1
99

query I rowsort
SELECT ALL + ( + 58 ) + ( - - col0 ) AS col2 FROM tab2
----
104
122
133

query II rowsort
SELECT DISTINCT + 20 + - 20 * col0 * - - col1, + ( + col1 ) FROM tab1
----
-14260
14
-8480
5
-85520
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT - SUM( ALL + - col0 ) + - + COUNT( * ) FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-6262
SELECT - SUM ( ALL + - col0 ) + - + COUNT ( * ) FROM tab0
----
196

query I rowsort
SELECT + col1 + - + col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( + col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 10 * 85 FROM tab1
----
-850
-850
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT ALL COUNT( * ) - + - 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL COUNT ( * ) - + - 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
51

query I rowsort
SELECT ALL col0 * - - ( - col2 ) - 24 AS col0 FROM tab0
----
-729
-894
-9627

query I rowsort
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE + 34 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + 65 - MIN( + - col2 ) FROM tab1 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-6269
SELECT + 65 - MIN ( + - col2 ) FROM tab1 AS cor0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL + CAST( 9 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + CAST ( 9 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + 55 + 3 * + col1 FROM tab2 cor0
----
208
256
286

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE + col1 * + 13 - col2 * + 57 > col0
----

query I rowsort
SELECT ALL - col0 - - col0 * + col1 FROM tab0
----
0
1200
1740

query I rowsort
SELECT ALL - 13 * + + 95 AS col2 FROM tab2
----
-1235
-1235
-1235

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT DISTINCT - 61 AS col2, MIN( DISTINCT + + 78 ) AS col2 FROM tab2
----
-61
78

skipif mysql # not compatible
query II rowsort label-6275
SELECT DISTINCT - 61 AS col2, MIN ( DISTINCT + + 78 ) AS col2 FROM tab2
----
-61
78

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 46 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT COUNT( * ) DIV + + 61 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT COUNT ( * ) / + + 61 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6278
SELECT + SUM( ALL col2 ) DIV 7 AS col1 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6278
SELECT + SUM ( ALL col2 ) / 7 AS col1 FROM tab1 AS cor0
----
31

query II rowsort
SELECT ALL + col2 AS col2, - 29 FROM tab0 AS cor0
----
10
-29
47
-29
99
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + 39 + - col0 AS col1 FROM tab1 AS cor0
----
14
-12
47
-52
5
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL + MIN( 45 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + MIN ( 45 ) FROM tab0
----
45

query I rowsort
SELECT col1 * 5 + + + 24 FROM tab2 AS cor0 WHERE NOT ( + col1 ) + 5 + - 63 * - 85 * - col2 > 41
----
279
359
409

query I rowsort
SELECT DISTINCT - col1 / - + 43 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 25 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL + COUNT( + col0 ) * + 54 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL + COUNT ( + col0 ) * + 54 FROM tab2 AS cor0
----
162

query I rowsort
SELECT - - 14 + - col2 + - 96 AS col0 FROM tab1 AS cor0
----
-141
-150
-178

query I rowsort
SELECT DISTINCT - + col1 + col1 + + - ( + 86 ) FROM tab2 AS cor0 WHERE + 18 IS NOT NULL
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT DISTINCT - - MIN( ALL + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - - MIN ( ALL + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT - 64 + - + COUNT( * ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - 64 + - + COUNT ( * ) FROM tab2 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + COUNT( * ) FROM tab1 WHERE - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT + COUNT ( * ) FROM tab1 WHERE - - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE + 97 * + + 36 + + - 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 54 + + + col1 AS col1 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT DISTINCT + 12 + - 90 FROM tab0
----
-78

query I rowsort
SELECT ALL - col2 + + 32 AS col1 FROM tab2
----
-26
-8
9

query I rowsort
SELECT DISTINCT 1 + + col1 * + ( col1 ) FROM tab0
----
2
442
6562

query II rowsort
SELECT - col1, + col1 AS col0 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL - col1 + + 63 FROM tab0 cor0
----
-18
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL - ( + - COUNT( * ) ) * - 22 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL - ( + - COUNT ( * ) ) * - 22 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-6299
SELECT ALL - col0 DIV + col0 + - - 97 + + col1 AS col2, 73 + + - 21 + + - col2 FROM tab2 cor0
----
147
29
163
-6
173
12

skipif mysql # not compatible
query II rowsort label-6299
SELECT ALL - col0 / + col0 + - - 97 + + col1 AS col2, 73 + + - 21 + + - col2 FROM tab2 cor0
----
147
29
163
-6
173
12

query I rowsort
SELECT ALL - ( - col0 ) * + col1 + + 2 AS col1 FROM tab2
----
2348
4930
5027

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT col1 + + - col0 DIV + + col1 - col2 AS col1 FROM tab1
----
-22
-71
-85

skipif mysql # not compatible
query I rowsort label-6301
SELECT col1 + + - col0 / + + col1 - col2 AS col1 FROM tab1
----
-22
-71
-85

query I rowsort
SELECT DISTINCT + 30 * - + col1 + + - col0 AS col1 FROM tab1
----
-1501
-235
-471

query I rowsort
SELECT DISTINCT + col2 - + + col1 + + col0 AS col1 FROM tab1 cor0
----
112
133
139

query I rowsort
SELECT ALL - - col1 - + 69 + + - col0 AS col1 FROM tab0 AS cor0
----
-135
-165
-3

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 79 * - + col1 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + 20, - col0 AS col2 FROM tab2
----
20
-46
20
-64
20
-75

query I rowsort
SELECT ( col1 ) * - col1 + col0 FROM tab2
----
-2555
-4414
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 16 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6310
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 16 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6311
SELECT + - col1 AS col2, 50 / - - CAST( NULL AS DECIMAL ) * + 45 AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-6311
SELECT + - col1 AS col2, 50 / - - CAST ( NULL AS REAL ) * + 45 AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ( - COUNT( * ) ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT ( - COUNT ( * ) ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 39 + + col2 < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, - col1 FROM tab0 cor0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6316
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 13 * CAST( NULL AS SIGNED ) - - + col1 > - col2
----

skipif mysql # not compatible
query III rowsort label-6316
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 13 * CAST ( NULL AS INTEGER ) - - + col1 > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT + col1 DIV - + col1 + col2 AS col1 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-6317
SELECT + col1 / - + col1 + col2 AS col1 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL - SUM( + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - SUM ( + col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT - col1 * 3 DIV - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6320
SELECT - col1 * 3 / - col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col2 + 28 AS col2 FROM tab1 AS cor0
----
124
87
96

query I rowsort
SELECT - + ( + 30 ) FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT + 91 * + ( - col2 ) FROM tab1 cor0
----
-5369
-6188
-8736

query I rowsort
SELECT + col1 + + ( - 37 ) * - col2 FROM tab2 AS cor0 WHERE col2 * + + 94 IS NOT NULL
----
1557
2213
902

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT DISTINCT + 70 + COUNT( * ) AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + 70 + COUNT ( * ) AS col2 FROM tab2
----
73

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 * 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col1 * + + col1 + - - 14 FROM tab2
----
-2587
-4475
-5915

query II rowsort
SELECT DISTINCT col1 + + col2 AS col0, ( + + col1 ) * - col0 * col0 - ( col1 ) + col1 AS col2 FROM tab1
----
110
-36414
115
-389207
64
-36125

query I rowsort
SELECT DISTINCT - 24 * 8 + - col1 + - - col1 * - col2 FROM tab1
----
-1550
-3435
-492

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col0 + col1 * + 32 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 5 ) + - col1 col2 FROM tab0
----
-16
-76
4

query I rowsort
SELECT 11 + + col1 AS col0 FROM tab2
----
62
78
88

query I rowsort
SELECT - 71 + - 90 AS col1 FROM tab1 AS cor0
----
-161
-161
-161

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - + col0 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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 col0 + - col1 + ( - col1 ) col1 FROM tab0 AS cor0
----
-147
45
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT 80 - + COUNT( * ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6338
SELECT 80 - + COUNT ( * ) col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6339
SELECT + 69, MAX( ALL + 7 ) AS col2 FROM tab2 AS cor0
----
69
7

skipif mysql # not compatible
query II rowsort label-6339
SELECT + 69, MAX ( ALL + 7 ) AS col2 FROM tab2 AS cor0
----
69
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6340
SELECT + ( - COUNT( * ) ) * - 47, - 48 * + - SUM( ALL - - 88 ) AS col2 FROM tab2 AS cor0
----
141
12672

skipif mysql # not compatible
query II rowsort label-6340
SELECT + ( - COUNT ( * ) ) * - 47, - 48 * + - SUM ( ALL - - 88 ) AS col2 FROM tab2 AS cor0
----
141
12672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT DISTINCT CAST( 23 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT CAST ( 23 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL + + ( + + MIN( ALL col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL + + ( + + MIN ( ALL col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL - COUNT( * ) * 87 col1 FROM tab1 cor0
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6343
SELECT ALL - COUNT ( * ) * 87 col1 FROM tab1 cor0
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6344
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6344
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - + + 70 - + + ( + - col1 ) + col1 AS col2 FROM tab2 WHERE col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT + COUNT( * ) col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6346
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL - 69 * 84 AS col0 FROM tab0
----
-5796
-5796
-5796

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT + + 0 IS NULL
----
-23
-40
-58

query II rowsort
SELECT - col0 * + + col2, col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

query I rowsort
SELECT + 50 * - col1 * + 5 FROM tab2
----
-12750
-16750
-19250

query I rowsort
SELECT DISTINCT + + 27 + - col0 + + 52 AS col2 FROM tab0 AS cor0
----
-18
-8
64

query I rowsort
SELECT ALL - + 16 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 < - col1
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + col1 + + 45 FROM tab2 cor0
----
112
122
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col2 col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + 57 col0 FROM tab1 AS cor0
----
116
125
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 84 col1 FROM tab2 cor0
----
84
84
84

query I rowsort
SELECT - 51 + 54 AS col0 FROM tab0 AS cor0
----
3
3
3

query II rowsort
SELECT ALL - 75 AS col1, col2 FROM tab1
----
-75
59
-75
68
-75
96

query I rowsort
SELECT DISTINCT - 35 + col1 FROM tab2
----
16
32
42

query I rowsort
SELECT DISTINCT 39 * - + 56 + + col1 FROM tab2
----
-2107
-2117
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT 73 * + - COUNT( * ) AS col2 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-6361
SELECT 73 * + - COUNT ( * ) AS col2 FROM tab0
----
-219

query I rowsort
SELECT ( + - 57 ) AS col1 FROM tab1
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT ALL col2 - + - col0 DIV 42 FROM tab0
----
101
12
47

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL col2 - + - col0 / 42 FROM tab0
----
101
12
47

query II rowsort
SELECT DISTINCT col0 + + col1 AS col0, col0 AS col1 FROM tab1
----
138
91
65
51
90
85

query I rowsort
SELECT ALL - - 20 AS col0 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT + 30 - - + 50 FROM tab0 AS cor0
----
80
80
80

query II rowsort
SELECT - 89 AS col1, 22 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-89
22
-89
22
-89
22

query I rowsort
SELECT DISTINCT + + 94 * - 84 FROM tab2 AS cor0
----
-7896

query I rowsort
SELECT - - 98 FROM tab1 AS cor0 WHERE NOT + 91 IS NULL
----
98
98
98

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 <> NULL
----

query I rowsort
SELECT DISTINCT - 8 * - 35 AS col1 FROM tab0
----
280

query II rowsort
SELECT col1, + col0 - - col0 * + 40 AS col0 FROM tab1
----
14
2091
47
3731
5
3485

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6374
SELECT ALL * FROM tab1 WHERE NOT - 59 / + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6374
SELECT ALL * FROM tab1 WHERE NOT - 59 / + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6375
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - CAST( + col1 AS SIGNED ) > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6375
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - CAST ( + col1 AS INTEGER ) > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT + + MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + + MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT - 10 + + 26 FROM tab1 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab0 WHERE NOT + - 34 + + col1 * - col1 + + col1 IS NULL
----
-87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN - ( - col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT - CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 * + - col2, - 94, - 31 * - col0, col2 )
----

skipif mysql # not compatible
query I rowsort label-6380
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 * + - col2, - 94, - 31 * - col0, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col1 FROM tab2 AS cor0
----
99

query I rowsort
SELECT + 35 AS col0 FROM tab1 cor0
----
35
35
35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - col1 - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE - - col2 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 < + col0 * + - col1 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6386
SELECT ALL - CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL col1 + - 71 + 74 AS col0 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6388
SELECT DISTINCT * FROM tab2 WHERE CAST( - + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6388
SELECT DISTINCT * FROM tab2 WHERE CAST ( - + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + ( col1 ) + + - ( 80 ) FROM tab1 AS cor0
----
-33
-66
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT ALL + col0 * 15 - + CAST( - 41 AS SIGNED ) FROM tab0 AS cor0
----
1346
1496
266

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + col0 * 15 - + CAST ( - 41 AS INTEGER ) FROM tab0 AS cor0
----
1346
1496
266

query II rowsort
SELECT DISTINCT + col1, + col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6392
SELECT DISTINCT - - ( + col2 ) AS col1, CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6392
SELECT DISTINCT - - ( + col2 ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT COUNT( * ) * - 20 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-6393
SELECT COUNT ( * ) * - 20 FROM tab0
----
-60

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE NOT + - 11 * + + col1 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT CAST( NULL AS SIGNED ) * col2 - + col2 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT CAST ( NULL AS INTEGER ) * col2 - + col2 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT 68 * SUM( ALL + col2 ) FROM tab2 AS cor0
----
8228

skipif mysql # not compatible
query I rowsort label-6396
SELECT 68 * SUM ( ALL + col2 ) FROM tab2 AS cor0
----
8228

query II rowsort
SELECT DISTINCT col1, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT - col2, col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT + 61 col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1 + - + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6399
SELECT + 61 col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1 + - + CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ( - - SUM( DISTINCT + 54 ) ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6400
SELECT ( - - SUM ( DISTINCT + 54 ) ) FROM tab0
----
54

query I rowsort
SELECT - 26 / - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * col2 + + col1 FROM tab2 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL - COUNT( ALL - col0 ) + 55 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL - COUNT ( ALL - col0 ) + 55 FROM tab2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6404
SELECT COUNT( ALL - - col2 ) * + 2 DIV + 26 * - 85 * - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6404
SELECT COUNT ( ALL - - col2 ) * + 2 / + 26 * - 85 * - COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT DISTINCT ( SUM( DISTINCT - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT ( SUM ( DISTINCT - col1 ) ) FROM tab1
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN ( col1 + + col2 ) AND ( NULL )
----

query I rowsort
SELECT 56 * + col2 AS col2 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL - MIN( + 25 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL - MIN ( + 25 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6410
SELECT - COUNT( * ) AS col1, + ( COUNT( DISTINCT col1 ) ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-6410
SELECT - COUNT ( * ) AS col1, + ( COUNT ( DISTINCT col1 ) ) FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - 9 + - COUNT( * ) + + 29 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-6411
SELECT - 9 + - COUNT ( * ) + + 29 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT + + COUNT( * ) + + - MIN( DISTINCT - - 74 ) AS col1 FROM tab1 WHERE + 65 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT + + COUNT ( * ) + + - MIN ( DISTINCT - - 74 ) AS col1 FROM tab1 WHERE + 65 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6413
SELECT + COUNT( * ) AS col2, - 5 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-5

skipif mysql # not compatible
query II rowsort label-6413
SELECT + COUNT ( * ) AS col2, - 5 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-5

query I rowsort
SELECT DISTINCT - + 12 * + - col0 AS col1 FROM tab1 AS cor0
----
1020
1092
612

query I rowsort
SELECT ALL - + ( + col2 ) * + ( - col2 ) * + 53 AS col2 FROM tab0 cor0
----
117077
519453
5300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 96 * col2 NOT BETWEEN - col2 * 56 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 78 + - col2 + - 46 * - - col2 * - - 94 NOT BETWEEN - col0 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 90 - - col2 FROM tab2 cor0
----
-32
-50
-67

query II rowsort
SELECT col0, + 38 * + col2 + + - 85 * - col1 FROM tab0 AS cor0
----
15
8671
87
2165
97
3847

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + COUNT( * ) * 58 col0 FROM tab1
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6420
SELECT + COUNT ( * ) * 58 col0 FROM tab1
----
174

query I rowsort
SELECT - col2 * + 54 FROM tab2
----
-1242
-2160
-3132

query I rowsort
SELECT - 0 * + + 14 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT - 37 * COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT - 37 * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT 15 + - + 29 * COUNT( * ) AS col2 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT 15 + - + 29 * COUNT ( * ) AS col2 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT SUM( col1 ) - - + 20 AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT SUM ( col1 ) - - + 20 AS col1 FROM tab0
----
123

query I rowsort
SELECT - col2 - - - col2 * + ( + 38 ) AS col1 FROM tab0
----
-1833
-3861
-390

query I rowsort
SELECT + 64 FROM tab0 WHERE + + ( 65 ) IS NULL
----

query I rowsort
SELECT ALL 5 - col1 FROM tab2 AS cor0
----
-46
-62
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 + + - col2 BETWEEN - - 9 AND - 77 / - col2 / + + 90
----
3

skipif mysql # not compatible
query I rowsort label-6429
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 + + - col2 BETWEEN - - 9 AND - 77 / - col2 / + + 90
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
88

query I rowsort
SELECT ALL - col1 * - 8 FROM tab1 AS cor0
----
112
376
40

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 cor0 WHERE - 20 * + - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT MIN( DISTINCT 16 ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6433
SELECT MIN ( DISTINCT 16 ) FROM tab1 AS cor0
----
16

query I rowsort
SELECT ( + + 74 ) AS col2 FROM tab0
----
74
74
74

query I rowsort
SELECT ALL 6 + + 62 FROM tab0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT ALL - ( + + CAST( + - col2 AS SIGNED ) ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL - ( + + CAST ( + - col2 AS INTEGER ) ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT 60 * COUNT( * ) AS col0 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT 60 * COUNT ( * ) AS col0 FROM tab1
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT ALL col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT SUM( ALL + col0 ) + COUNT( * ) + + 91 FROM tab1 AS cor0
----
321

skipif mysql # not compatible
query I rowsort label-6440
SELECT SUM ( ALL + col0 ) + COUNT ( * ) + + 91 FROM tab1 AS cor0
----
321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT + COUNT( * ) + - 15 - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT + COUNT ( * ) + - 15 - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + 86 + + 21 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-6442
SELECT + 86 + + 21 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT DISTINCT + 1 * + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6443
SELECT DISTINCT + 1 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 31 - - col1 AS col2 FROM tab2 AS cor0
----
20
36
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col1 * - 76
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 40 <= - 48
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6447
SELECT ALL 3 DIV - - col1, - col1 AS col0 FROM tab0 AS cor0
----
0
-21
0
-81
3
-1

skipif mysql # not compatible
query II rowsort label-6447
SELECT ALL 3 / - - col1, - col1 AS col0 FROM tab0 AS cor0
----
0
-21
0
-81
3
-1

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0 WHERE - 28 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT - SUM( - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT - SUM ( - col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT DISTINCT 10 AS col0, COUNT( * ) FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-6451
SELECT DISTINCT 10 AS col0, COUNT ( * ) FROM tab0
----
10
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6452
SELECT DISTINCT - col2 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT - col2 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2 WHERE - col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col2 col0 FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT col2 AS col0, col1 * col0 * + col0 - - 60 FROM tab0
----
10
159009
47
18285
99
9469

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = col2 * + + 42
----

query II rowsort
SELECT col0, - col1 AS col2 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * - + 26 + - col1 + + col0 FROM tab0 AS cor0
----
-2172
-480
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT - 46 + + COUNT( * ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - 46 + + COUNT ( * ) FROM tab0
----
-43

query I rowsort
SELECT - 96 FROM tab2 WHERE NOT + col0 IS NULL
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT ( - 76 ) + + + MIN( DISTINCT col2 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-6462
SELECT ( - 76 ) + + + MIN ( DISTINCT col2 ) FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT 54, - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
54
0

skipif mysql # not compatible
query II rowsort label-6463
SELECT 54, - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT + COUNT( * ) + - + 33 AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + COUNT ( * ) + - + 33 AS col2 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT + col1 + - col2 + - + col0 * col2 * - + col2 FROM tab1
----
295831
420763
469934

query I rowsort
SELECT + 41 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
41
41
41

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6467
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6467
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT 98 * ( + COUNT( * ) ) * 67 FROM tab1
----
19698

skipif mysql # not compatible
query I rowsort label-6468
SELECT 98 * ( + COUNT ( * ) ) * 67 FROM tab1
----
19698

query I rowsort
SELECT DISTINCT col1 * col0 * + + 72 AS col1 FROM tab1
----
30600
307944
51408

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col1, col2 + - - 92 * - col2 * col2 col1 FROM tab2
----
-2601
-48645
-4489
-309430
-5929
-147160

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT MIN( ( col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6472
SELECT MIN ( ( col1 ) ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - COUNT( + col0 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6473
SELECT - COUNT ( + col0 ) col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - + ( + col0 ) AS col2, col2 * ( + col0 ) * + - ( col0 ) + - 12 AS col0 FROM tab1 AS cor0
----
-51
-249708
-85
-426287
-91
-563120

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT + 92 * 31 FROM tab2 AS cor0
----
2852
2852
2852

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 < + 71 + - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6479
SELECT - + CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6479
SELECT - + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + 57 * + + 28 AS col1 FROM tab2 AS cor0
----
1596
1596
1596

query II rowsort
SELECT ALL - 85, col1 FROM tab0 AS cor0
----
-85
1
-85
21
-85
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6482
SELECT ALL * FROM tab2 WHERE + 96 - - + 61 / - + col1 + - - 49 + - CAST( NULL AS DECIMAL ) = + CAST( NULL AS SIGNED ) - ( + col1 ) + - col1
----

skipif mysql # not compatible
query III rowsort label-6482
SELECT ALL * FROM tab2 WHERE + 96 - - + 61 / - + col1 + - - 49 + - CAST ( NULL AS REAL ) = + CAST ( NULL AS INTEGER ) - ( + col1 ) + - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - + 55 * + - ( - - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 + col2 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT col2 + 39 AS col0 FROM tab0
----
138
49
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT col0 * + - col0 + - + col2 + col0 * + CAST( col2 AS SIGNED ) * - - 85 FROM tab1
----
413463
418991
517631

skipif mysql # not compatible
query I rowsort label-6486
SELECT col0 * + - col0 + - + col2 + col0 * + CAST ( col2 AS INTEGER ) * - - 85 FROM tab1
----
413463
418991
517631

query I rowsort
SELECT DISTINCT + col1 + - 42 FROM tab1 cor0
----
-28
-37
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT DISTINCT + MIN( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT + MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 47 * - col0 + - col2 FROM tab1 AS cor0
----
-2493
-4054
-4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 62 * + ( - - col0 ) + - - 20 + col0 col1 FROM tab1 AS cor0
----
-3091
-5165
-5531

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT - ( + COUNT( * ) ) * COUNT( * ) - - 47 AS col0 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6491
SELECT - ( + COUNT ( * ) ) * COUNT ( * ) - - 47 AS col0 FROM tab0 AS cor0
----
38

query III rowsort
SELECT * FROM tab1 cor0 WHERE 52 > NULL
----

query I rowsort
SELECT 63 - - - 47 * + col2 FROM tab2
----
-1018
-1817
-2663

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT COUNT( + 31 ) * ( - - 31 ) - + - ( - ( 16 ) ) AS col1 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6494
SELECT COUNT ( + 31 ) * ( - - 31 ) - + - ( - ( 16 ) ) AS col1 FROM tab0
----
77

query I rowsort
SELECT 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > col2 * - - col0 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + 57 - + MAX( ALL - ( - 68 ) ) * - + MIN( 70 ) AS col2 FROM tab2 AS cor0
----
4817

skipif mysql # not compatible
query I rowsort label-6497
SELECT + 57 - + MAX ( ALL - ( - 68 ) ) * - + MIN ( 70 ) AS col2 FROM tab2 AS cor0
----
4817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + col2 - col2 col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

query I rowsort
SELECT - - ( ( + - col0 ) ) - + col0 AS col1 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ( + col2 ) DIV - col2 - 94 - col0 AS col0 FROM tab1 AS cor0
----
-146
-180
-186

skipif mysql # not compatible
query I rowsort label-6500
SELECT ( + col2 ) / - col2 - 94 - col0 AS col0 FROM tab1 AS cor0
----
-146
-180
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT DISTINCT MAX( ALL + + 70 ) AS col2 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT MAX ( ALL + + 70 ) AS col2 FROM tab0 AS cor0
----
70

query II rowsort
SELECT ALL col0 AS col1, 97 FROM tab0 cor0
----
15
97
87
97
97
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 - + ( + + col1 ) * 57 >= + + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL 19 * COUNT( * ) AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL 19 * COUNT ( * ) AS col2 FROM tab2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT DISTINCT + col0 / + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT + col0 / + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 85 * - - col0 FROM tab2
----
3910
5440
6375

query II rowsort
SELECT DISTINCT 89, col1 AS col1 FROM tab2
----
89
51
89
67
89
77

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL COUNT( * ) * + 3 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL COUNT ( * ) * + 3 AS col1 FROM tab0
----
9

query I rowsort
SELECT ALL - 34 * + col0 + + col1 FROM tab0 cor0
----
-2937
-3297
-429

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT - + 4 DIV - 28 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6512
SELECT - + 4 / - 28 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * 38 AS col2 FROM tab2
----
1748
2432
2850

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 * + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-2397
-5005
-5092

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6517
SELECT DISTINCT + col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

skipif mysql # not compatible
query II rowsort label-6517
SELECT DISTINCT + col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT 59 + ( - + MAX( - 92 ) ) FROM tab2 cor0
----
151

skipif mysql # not compatible
query I rowsort label-6518
SELECT 59 + ( - + MAX ( - 92 ) ) FROM tab2 cor0
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT ALL - - SUM( - col2 ) AS col1, + COUNT( * ) FROM tab1 cor0
----
-223
3

skipif mysql # not compatible
query II rowsort label-6519
SELECT ALL - - SUM ( - col2 ) AS col1, + COUNT ( * ) FROM tab1 cor0
----
-223
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT ALL + - col1 * - col1 + - + col1 DIV - col2 + + col1 FROM tab0 AS cor0
----
2
464
6643

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + - col1 * - col1 + - + col1 / - col2 + + col1 FROM tab0 AS cor0
----
2
464
6643

query I rowsort
SELECT 58 + - - col1 AS col1 FROM tab2
----
109
125
135

query I rowsort
SELECT - + col2 / 22 * + 72 * 37 FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6523
SELECT ALL CAST( NULL AS SIGNED ), - col1 AS col0 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-6523
SELECT ALL CAST ( NULL AS INTEGER ), - col1 AS col0 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT - 23 DIV 13 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6524
SELECT - 23 / 13 AS col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT 79 AS col2, col2 FROM tab2
----
79
23
79
40
79
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6526
SELECT MAX( ALL CAST( + - 43 AS SIGNED ) ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-6526
SELECT MAX ( ALL CAST ( + - 43 AS INTEGER ) ) FROM tab1
----
-43

query II rowsort
SELECT - col0 AS col2, + 57 FROM tab0 WHERE NULL IS NULL
----
-15
57
-87
57
-97
57

query I rowsort
SELECT DISTINCT col2 + - - 5 AS col1 FROM tab0
----
104
15
52

query I rowsort
SELECT ALL - col0 - - 23 + - ( - + col1 ) FROM tab2
----
15
28
36

query I rowsort
SELECT + 7 * + col2 AS col2 FROM tab2
----
161
280
406

query I rowsort
SELECT + 80 * ( - col0 * col2 ) FROM tab1
----
-391680
-401200
-495040

query I rowsort
SELECT ALL 24 * + 14 FROM tab1
----
336
336
336

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT - COUNT( * ) * - ( - COUNT( col1 ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT - COUNT ( * ) * - ( - COUNT ( col1 ) ) FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 19 + - col2 / + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * col1 + 41 < 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT - 20 + + COUNT( * ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-6537
SELECT - 20 + + COUNT ( * ) FROM tab1
----
-17

query I rowsort
SELECT - col1 + - 30 FROM tab2
----
-107
-81
-97

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - 1 IN ( - col1 )
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE 39 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + col1 AND 69
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 0 * - col1 <= + col1
----

query III rowsort
SELECT * FROM tab2 WHERE - 83 * + 5 BETWEEN + 22 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT 71 + MIN( DISTINCT col0 + - col0 ) col1 FROM tab0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6545
SELECT 71 + MIN ( DISTINCT col0 + - col0 ) col1 FROM tab0
----
71

query I rowsort
SELECT DISTINCT - col1 * + 21 FROM tab1 WHERE col2 IS NOT NULL
----
-105
-294
-987

query I rowsort
SELECT ( - 98 ) + col0 FROM tab1
----
-13
-47
-7

query I rowsort
SELECT DISTINCT col0 + - 5 FROM tab1
----
46
80
86

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) BETWEEN - col0 + + 28 AND 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 63 FROM tab0 WHERE col1 BETWEEN 72 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT 65 DIV col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6551
SELECT 65 / col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
4

query I rowsort
SELECT - 42 + - 96 AS col0 FROM tab1
----
-138
-138
-138

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 <= col1 * + col0
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT col2 + - 9 * 90 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col0 FROM tab0 AS cor0
----
-76
-76
-76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT + ( + 21 ) AS col2 FROM tab0 AS cor0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col1 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6559
SELECT ALL COUNT( * ) DIV + 95 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL COUNT ( * ) / + 95 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * col0 + - 47 * + ( col1 + 63 / + col2 ) AND - col1 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT 33 + 92 * col0 AS col1 FROM tab1
----
4725
7853
8405

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - ( COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6563
SELECT - ( COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT COUNT( * ) * 70 + 52 AS col2 FROM tab1 WHERE - ( + col2 ) < NULL
----
52

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT COUNT ( * ) * 70 + 52 AS col2 FROM tab1 WHERE - ( + col2 ) < NULL
----
52

query I rowsort
SELECT col0 + - 59 AS col0 FROM tab1
----
-8
26
32

query III rowsort
SELECT ALL * FROM tab1 WHERE + 83 > col0 * + 74 + + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT SUM( ALL + ( + 23 ) ) FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT SUM ( ALL + ( + 23 ) ) FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 51 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 92 * 36 FROM tab1 AS cor0
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL COUNT( * ) + 63 AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL COUNT ( * ) + 63 AS col0 FROM tab1 cor0
----
66

query I rowsort
SELECT + 37 * 42 AS col2 FROM tab2 AS cor0
----
1554
1554
1554

query I rowsort
SELECT DISTINCT - - col1 * 37 AS col2 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT col1 DIV 5 AS col0 FROM tab2 AS cor0
----
10
13
15

skipif mysql # not compatible
query I rowsort label-6573
SELECT col1 / 5 AS col0 FROM tab2 AS cor0
----
10
13
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6574
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT DISTINCT - 83 DIV col1 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT - 83 / col1 AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT COUNT( DISTINCT + col0 ) * 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-6576
SELECT COUNT ( DISTINCT + col0 ) * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 41 * - col2 IS NULL
----

query I rowsort
SELECT - 1 + - ( - col1 ) + + col0 FROM tab2
----
140
141
96

query I rowsort
SELECT + 44 + + 46 FROM tab2 WHERE - col1 IS NOT NULL
----
90
90
90

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL <> col2 * col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT ( + col1 ) / - CAST( NULL AS SIGNED ) + 28 * + 63 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT ( + col1 ) / - CAST ( NULL AS INTEGER ) + 28 * + 63 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab1 WHERE NOT NULL IN ( col2 ) OR NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL 87 + COUNT( * ) col0 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6584
SELECT ALL 87 + COUNT ( * ) col0 FROM tab2
----
90

query I rowsort
SELECT + 98 * + 31 + - col2 FROM tab1
----
2942
2970
2979

query I rowsort
SELECT ALL + col1 - col1 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT MAX( DISTINCT 57 ) FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-6587
SELECT MAX ( DISTINCT 57 ) FROM tab0 cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL - COUNT( DISTINCT + - col2 ) * - 52 AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - COUNT ( DISTINCT + - col2 ) * - 52 AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT COUNT( * ) + + MIN( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT COUNT ( * ) + + MIN ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - ( - + 78 ) FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - + ( - MAX( ALL - 85 ) ) * 33 AS col2 FROM tab1 AS cor0
----
-2805

skipif mysql # not compatible
query I rowsort label-6592
SELECT - + ( - MAX ( ALL - 85 ) ) * 33 AS col2 FROM tab1 AS cor0
----
-2805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT - CAST( NULL AS SIGNED ) / - - col2 * + + col2 * 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT - CAST ( NULL AS INTEGER ) / - - col2 * + + col2 * 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 + + col1 )
----

query I rowsort
SELECT DISTINCT + + 6 * + ( col1 ) AS col2 FROM tab1 cor0
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL MIN( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL MIN ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT + 7 * 96 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col0 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col2 * 36 / 23 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6601
SELECT + 31 DIV - col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT + 31 / - col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 44 * + col2 AS col1 FROM tab0
----
2068
4356
440

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6603
SELECT * FROM tab2 WHERE NOT - ( - - col0 ) < CAST( 6 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6603
SELECT * FROM tab2 WHERE NOT - ( - - col0 ) < CAST ( 6 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 / - col2 - 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 28 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT ALL CAST( NULL AS SIGNED ) * - col2 * - - 93 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 * - - 93 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6607
SELECT ALL col2 * 52 FROM tab2 WHERE - + CAST( NULL AS DECIMAL ) * + + col2 * - col0 > ( + 59 * CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL col2 * 52 FROM tab2 WHERE - + CAST ( NULL AS REAL ) * + + col2 * - col0 > ( + 59 * CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT col0 + + col1 + ( - - col1 ) AS col1 FROM tab0
----
129
177
99

query I rowsort
SELECT ALL + ( col1 ) * + col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT col0 * + + 70 AS col0 FROM tab2 cor0
----
3220
4480
5250

query I rowsort
SELECT ALL - 35 * + - 70 * - - col0 FROM tab2 AS cor0
----
112700
156800
183750

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + 66 - - col0 AS col0 FROM tab1 cor0
----
117
151
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * - col0 col2 FROM tab1 AS cor0
----
-3162
-5270
-5642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT + ( - 1 ) DIV + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT + ( - 1 ) / + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL col0 + - 77 FROM tab2
----
-13
-2
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT COUNT( ALL - col0 ) - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT COUNT ( ALL - col0 ) - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL 51 + - col0 FROM tab0 cor0
----
-36
-46
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col0 * 11 AS col0 FROM tab1 AS cor0
----
1001
561
935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + + 3 IS NOT NULL
----

query I rowsort
SELECT col1 * - ( + 82 ) * - col2 FROM tab2
----
252560
318652
96186

query I rowsort
SELECT ALL + + 97 AS col2 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT + ( col1 ) + - col1 AS col1 FROM tab2 cor0 WHERE NOT col0 + - col0 NOT BETWEEN ( + col2 + - 89 ) AND + col2
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 30 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 47, 85 * - col0 AS col0 FROM tab1
----
47
-4335
47
-7225
47
-7735

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6628
SELECT ALL * FROM tab2 WHERE NOT ( CAST( + ( - col1 ) AS SIGNED ) * - col2 ) NOT BETWEEN ( + col2 + - - col2 ) AND ( - 24 * - col1 )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-6628
SELECT ALL * FROM tab2 WHERE NOT ( CAST ( + ( - col1 ) AS INTEGER ) * - col2 ) NOT BETWEEN ( + col2 + - - col2 ) AND ( - 24 * - col1 )
----
46
51
23

query I rowsort
SELECT DISTINCT + col1 + + + 74 AS col2 FROM tab2
----
125
141
151

query I rowsort
SELECT - col1 + - + 72 AS col0 FROM tab2 WHERE NOT 70 <> 31
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6631
SELECT 11 AS col2, - SUM( ALL - + 42 ) AS col2 FROM tab2
----
11
126

skipif mysql # not compatible
query II rowsort label-6631
SELECT 11 AS col2, - SUM ( ALL - + 42 ) AS col2 FROM tab2
----
11
126

onlyif mysql # DIV for integer division: 
query II rowsort label-6632
SELECT + col1 + - 67 * col0 AS col0, ( + 56 ) DIV col2 AS col0 FROM tab2 AS cor0
----
-3031
2
-4211
1
-4958
0

skipif mysql # not compatible
query II rowsort label-6632
SELECT + col1 + - 67 * col0 AS col0, ( + 56 ) / col2 AS col0 FROM tab2 AS cor0
----
-3031
2
-4211
1
-4958
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT COUNT( * ) - + + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-6633
SELECT COUNT ( * ) - + + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) NOT BETWEEN + col0 AND ( - 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ALL SUM( DISTINCT + 94 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL SUM ( DISTINCT + 94 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col1 FROM tab0 AS cor0 WHERE NOT - col1 + col1 IS NOT NULL
----

query I rowsort
SELECT - 33 AS col2 FROM tab0 cor0
----
-33
-33
-33

query I rowsort
SELECT + col2 - - col2 + col1 AS col0 FROM tab1 AS cor0
----
123
183
206

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL COUNT( col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6639
SELECT ALL COUNT ( col0 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + 61 * - + 58 - - + 35 FROM tab0 AS cor0
----
-3503
-3503
-3503

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL + MIN( ALL + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + MIN ( ALL + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT - - 94 FROM tab2 WHERE + col0 < - - col0 / - col0 + - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT + 48 * col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 48 * col1 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT ALL + 72 + - col2 + + CAST( - 67 AS SIGNED ) AS col2 FROM tab0
----
-42
-5
-94

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL + 72 + - col2 + + CAST ( - 67 AS INTEGER ) AS col2 FROM tab0
----
-42
-5
-94

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 3 AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT + col1 DIV + + 78 * 25 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6646
SELECT + col1 / + + 78 * 25 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6647
SELECT ALL COUNT( * ) AS col1, - 85 AS col1 FROM tab1
----
3
-85

skipif mysql # not compatible
query II rowsort label-6647
SELECT ALL COUNT ( * ) AS col1, - 85 AS col1 FROM tab1
----
3
-85

query II rowsort
SELECT - - col0 AS col0, 19 AS col1 FROM tab1 AS cor0
----
51
19
85
19
91
19

query II rowsort
SELECT DISTINCT col0, + col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT - + col2 / ( - 93 ) + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN - 87 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6650
SELECT - + col2 / ( - 93 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN - 87 AND NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL - + SUM( ( + 50 ) ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - + SUM ( ( + 50 ) ) FROM tab0 AS cor0
----
-150

query II rowsort
SELECT - - 47 AS col1, col1 FROM tab0 AS cor0
----
47
1
47
21
47
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 28 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
-28
64
-28
75
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT ALL CAST( + + ( 47 ) AS SIGNED ) FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL CAST ( + + ( 47 ) AS INTEGER ) FROM tab2
----
47
47
47

query I rowsort
SELECT ALL - 65 + - ( + 4 ) FROM tab1
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 19 col2 FROM tab1
----
104
110
70

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > 71
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT CAST( ( + col0 ) AS SIGNED ) + - + col1 AS col0 FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-6659
SELECT CAST ( ( + col0 ) AS INTEGER ) + - + col1 AS col0 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT DISTINCT col0 + + - col1 * CAST( col2 AS SIGNED ) + - col1 AS col2 FROM tab0
----
-144
-3
-3873

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT col0 + + - col1 * CAST ( col2 AS INTEGER ) + - col1 AS col2 FROM tab0
----
-144
-3
-3873

query I rowsort
SELECT ALL 20 AS col1 FROM tab0 WHERE ( NOT NULL <= NULL )
----

query I rowsort
SELECT ALL + 44 + - col2 AS col0 FROM tab0
----
-3
-55
34

query I rowsort
SELECT ALL - AVG ( DISTINCT - col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT CAST( NULL AS SIGNED ) * - col1 * + 63 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT CAST ( NULL AS INTEGER ) * - col1 * + 63 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT 39 * + + COUNT( * ) AS col1 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-6665
SELECT 39 * + + COUNT ( * ) AS col1 FROM tab0
----
117

query I rowsort
SELECT DISTINCT - ( - 68 ) FROM tab0 cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + MAX( ALL - - 62 ) AS col1 FROM tab2 cor0
----
62

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + MAX ( ALL - - 62 ) AS col1 FROM tab2 cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 68 col1 FROM tab2 AS cor0
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT DISTINCT - col1 * + 1 + CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - col1 * + 1 + CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 + + 67 + col0 - col1 AS col1 FROM tab2
----
133
85
94

query I rowsort
SELECT ALL - 89 * + col2 * - col1 + - + col2 AS col2 FROM tab1
----
119520
26196
284376

query I rowsort
SELECT DISTINCT - 60 - + - col1 AS col1 FROM tab0
----
-39
-59
21

query I rowsort
SELECT DISTINCT 91 + col1 FROM tab0
----
112
172
92

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 13 - - - col0 + - col2 AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL - COUNT( ALL + col1 ) + COUNT( * ) col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6675
SELECT ALL - COUNT ( ALL + col1 ) + COUNT ( * ) col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN + - 52 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN + - 52 AND NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + ( + + 25 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22
11
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT 55 * COUNT( * ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-6678
SELECT 55 * COUNT ( * ) FROM tab0 AS cor0
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT ALL - - col1 - col0 DIV - col2 col0 FROM tab0 AS cor0
----
1
29
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6679
SELECT ALL - - col1 - col0 / - col2 col0 FROM tab0 AS cor0
----
1
29
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6680
SELECT + CAST( - ( + + col1 ) AS SIGNED ) DIV + 39 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6680
SELECT + CAST ( - ( + + col1 ) AS INTEGER ) / + 39 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6681
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - ( 65 ) * - col1 + col1 + - ( + col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + CAST ( NULL AS REAL ) * - ( 65 ) * - col1 + col1 + - ( + col2 ) FROM tab1
----
NULL

query I rowsort
SELECT 89 - - col2 AS col0 FROM tab0
----
136
188
99

query I rowsort
SELECT ALL + 11 * col1 * - 23 FROM tab0
----
-20493
-253
-5313

onlyif mysql # DIV for integer division: 
query I rowsort label-6684
SELECT col1 DIV 20 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6684
SELECT col1 / 20 FROM tab1
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT 37 DIV - - col0 * col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6685
SELECT 37 / - - col0 * col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + 57 * col2, col0 )
----

query I rowsort
SELECT DISTINCT + 15 * + 89 FROM tab2
----
1335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - col2 col0, + 31 * 44 * - - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL + SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT col1 / col0 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT col1 / col0 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT ALL col1 * 23 + + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL col1 * 23 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT 51 DIV + ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT 51 / + ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT MIN( 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6693
SELECT MIN ( 58 ) FROM tab1 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT ALL + col2 + col1 DIV - 19 AS col1 FROM tab0
----
43
9
99

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + col2 + col1 / - 19 AS col1 FROM tab0
----
43
9
99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + - 32 + 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT + 66 * CAST( + col2 AS SIGNED ) FROM tab2 WHERE ( + col0 ) NOT BETWEEN 70 AND - col2 / + CAST( - col0 AS SIGNED ) + col2
----
1518
2640
3828

skipif mysql # not compatible
query I rowsort label-6696
SELECT + 66 * CAST ( + col2 AS INTEGER ) FROM tab2 WHERE ( + col0 ) NOT BETWEEN 70 AND - col2 / + CAST ( - col0 AS INTEGER ) + col2
----
1518
2640
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL - CAST( 35 AS SIGNED ) FROM tab2
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL - CAST ( 35 AS INTEGER ) FROM tab2
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 28 + - col2 + 95 AS col2 FROM tab1
----
27
55
64

query II rowsort
SELECT ALL + 9 + + col1, col2 AS col2 FROM tab0
----
10
99
30
10
90
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT - 82 + + ( + - CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-129
-87
-96

skipif mysql # not compatible
query I rowsort label-6701
SELECT - 82 + + ( + - CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-129
-87
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6702
SELECT ALL - col0 + ( + CAST( + 81 AS SIGNED ) ) FROM tab2 AS cor0
----
17
35
6

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - col0 + ( + CAST ( + 81 AS INTEGER ) ) FROM tab2 AS cor0
----
17
35
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL - ( - - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col2 * 30 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - ( - - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT col2 * 30 < NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + - ( + col2 ) + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT - COUNT( * ) * + - COUNT( * ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6705
SELECT - COUNT ( * ) * + - COUNT ( * ) col2 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6706
SELECT - 84 AS col1 FROM tab1 WHERE col0 BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED ) + + col0 * 76
----

skipif mysql # not compatible
query I rowsort label-6706
SELECT - 84 AS col1 FROM tab1 WHERE col0 BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER ) + + col0 * 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT + + CAST( + 37 AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6707
SELECT + + CAST ( + 37 AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6708
SELECT ALL + - col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6708
SELECT ALL + - col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 79 - + col1 AS col2 FROM tab2 AS cor0
----
-130
-146
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT + COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6710
SELECT + COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - ( + + 97 ) FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL + 81 * - - ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
243

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + 81 * - - ( + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
243

query I rowsort
SELECT DISTINCT + ( - + 49 ) FROM tab0
----
-49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6715
SELECT - 72 DIV - 17 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6715
SELECT - 72 / - 17 FROM tab1
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT - 20 DIV - 8 AS col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6716
SELECT - 20 / - 8 AS col2 FROM tab2
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT + col1 DIV + 18 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-6717
SELECT + col1 / + 18 FROM tab2
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( 82 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( 82 ) < NULL
----
0

query I rowsort
SELECT + col0 * - + 46 FROM tab2
----
-2116
-2944
-3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6720
SELECT DISTINCT - 85 * - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
5015
5780
8160

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT - 85 * - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
5015
5780
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6722
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query III rowsort label-6722
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col0
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 NOT IN ( - 45 * + col0 / + col0 + + ( + + col1 ) + + - col1 * - col2 * - + col0 )
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT 57 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - 48 * + col1 FROM tab0 cor0
----
1008
3888
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT ALL - col2 DIV - - 54 - 96 AS col1 FROM tab1 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - col2 / - - 54 - 96 AS col1 FROM tab1 AS cor0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN - - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE 6 * - col2 IS NULL
----

query I rowsort
SELECT + 59 * col0 AS col2 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT ALL - 10 + - col2 FROM tab1
----
-106
-69
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col2 + + + col0 col1, col1 FROM tab1
----
203
5
227
47
243
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT ALL + col1 + - col1 DIV - col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL + col1 + - col1 / - col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL + - 31 FROM tab2 AS cor0 WHERE NOT + col2 / + 78 / - - col1 + 1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 + + 92 + + 87 * + col0 FROM tab1 AS cor0
----
11205
5873
7782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6735
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col0 = - 49
----

skipif mysql # not compatible
query I rowsort label-6735
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col0 = - 49
----

query I rowsort
SELECT - 70 - + - col0 AS col1 FROM tab2 AS cor0
----
-24
-6
5

query I rowsort
SELECT col0 + + 56 AS col0 FROM tab0 AS cor0
----
143
153
71

query I rowsort
SELECT + 31 + - col1 FROM tab1
----
-16
17
26

query I rowsort
SELECT DISTINCT - 33 + 2 AS col2 FROM tab0
----
-31

query I rowsort
SELECT - col1 * col2 + - col0 * - 2 FROM tab2
----
-1081
-2952
-3736

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL MAX( 54 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL MAX ( 54 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6742
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + CAST( NULL AS SIGNED ) - - col2 AND - + 41
----

skipif mysql # not compatible
query III rowsort label-6742
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + CAST ( NULL AS INTEGER ) - - col2 AND - + 41
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) + + col2 + + 81 AS col2 FROM tab2
----
150
185
214

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND + 76
----

query II rowsort
SELECT DISTINCT 1 + + 46 AS col2, + 18 + + col1 AS col2 FROM tab1 AS cor0
----
47
23
47
32
47
65

query I rowsort
SELECT col2 * - 35 + 10 AS col2 FROM tab0 cor0
----
-1635
-340
-3455

onlyif mysql # aggregate syntax: 
query II rowsort label-6747
SELECT DISTINCT + 85, COUNT( * ) AS col0 FROM tab1 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-6747
SELECT DISTINCT + 85, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
85
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT MAX( ALL - 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6749
SELECT MAX ( ALL - 3 ) FROM tab2
----
-3

query I rowsort
SELECT ALL 42 * - 92 FROM tab2 AS cor0
----
-3864
-3864
-3864

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6752
SELECT 44 * - + CAST( NULL AS SIGNED ) + + + 17 + - + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT 44 * - + CAST ( NULL AS INTEGER ) + + + 17 + - + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6753
SELECT ALL + MAX( ( col1 ) ) AS col0, - 92 AS col0 FROM tab1
----
47
-92

skipif mysql # not compatible
query II rowsort label-6753
SELECT ALL + MAX ( ( col1 ) ) AS col0, - 92 AS col0 FROM tab1
----
47
-92

query I rowsort
SELECT ALL + 17 + - + col0 FROM tab1 cor0
----
-34
-68
-74

query I rowsort
SELECT + + col1 * + + 72 FROM tab2 AS cor0
----
3672
4824
5544

query I rowsort
SELECT ALL - col1 * - 76 AS col0 FROM tab0 AS cor0
----
1596
6156
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + 22 FROM tab0
----
-65
-75
7

query I rowsort
SELECT DISTINCT + col2 + ( + ( + col1 ) ) AS col0 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL + 96 + + COUNT( * ) col0 FROM tab1, tab2 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6760
SELECT ALL + 96 + + COUNT ( * ) col0 FROM tab1, tab2 AS cor0
----
105

query I rowsort
SELECT DISTINCT - - 17 FROM tab0 WHERE + 15 + - - ( + + col2 ) / - col1 < + 91
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6762
SELECT col1 + - + CAST( - 75 AS SIGNED ) FROM tab1
----
122
80
89

skipif mysql # not compatible
query I rowsort label-6762
SELECT col1 + - + CAST ( - 75 AS INTEGER ) FROM tab1
----
122
80
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6763
SELECT + COUNT( * ) + - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT + COUNT ( * ) + - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( ( NOT NULL IS NOT NULL ) ) )
----

query I rowsort
SELECT col0 + + 44 + ( - col0 ) * - col0 + 84 AS col2 FROM tab1
----
2780
7438
8500

query I rowsort
SELECT - col0 + ( 41 ) AS col0 FROM tab0 cor0
----
-46
-56
26

query I rowsort
SELECT - col2 - - 3 FROM tab0
----
-44
-7
-96

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 DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + 50 + col2 * col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
149
260
3857

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT + COUNT( 62 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6771
SELECT + COUNT ( 62 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 cor0 WHERE ( ( ( NOT ( ( + 43 + + col1 = NULL ) ) ) ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6773
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS DECIMAL ) / 58 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6773
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS REAL ) / 58 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT + col2 + - col2 * - 18 - + 83 + col1 IS NULL
----
10
47
99

query II rowsort
SELECT DISTINCT 11 AS col1, col1 FROM tab2
----
11
51
11
67
11
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT MAX( ALL - 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-6778
SELECT MAX ( ALL - 4 ) FROM tab0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT DISTINCT + 81 * CAST( col0 AS SIGNED ) / + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + 81 * CAST ( col0 AS INTEGER ) / + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6780
SELECT 73 DIV + ( - 81 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT 73 / + ( - 81 ) AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 59 + ( + col0 ) * + 93 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL COUNT( * ) * 76 + - MIN( ALL - col1 ) AS col1 FROM tab1
----
275

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL COUNT ( * ) * 76 + - MIN ( ALL - col1 ) AS col1 FROM tab1
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT COUNT( ALL + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6783
SELECT COUNT ( ALL + col2 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT MIN( - 9 ) * 20 + + 2 AS col2 FROM tab0
----
-178

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT MIN ( - 9 ) * 20 + + 2 AS col2 FROM tab0
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT DISTINCT col0 + col1 + - + col0 DIV - - col1 FROM tab0
----
1
104
96

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT col0 + col1 + - + col0 / - - col1 FROM tab0
----
1
104
96

query I rowsort
SELECT DISTINCT - col1 + + + col0 + - 29 * - col0 * 99 * + col1 AS col1 FROM tab2 AS cor0
----
14148275
14426783
6735361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6787
SELECT + 64 + + + CAST( NULL AS SIGNED ) AS col0, COUNT( DISTINCT + + 2 ) AS col0 FROM tab0 AS cor0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6787
SELECT + 64 + + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT + + 2 ) AS col0 FROM tab0 AS cor0
----
NULL
1

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT DISTINCT + - 52 AS col0 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6790
SELECT DISTINCT 50 col1, COUNT( * ) FROM tab0
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6790
SELECT DISTINCT 50 col1, COUNT ( * ) FROM tab0
----
50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT COUNT( * ) * + + 39 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-6791
SELECT COUNT ( * ) * + + 39 FROM tab1
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 78, ( + col1 ) + - + 88 - - + 98 col1 FROM tab0
----
-78
11
-78
31
-78
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 55 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col1 BETWEEN - + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6796
SELECT col2, + col1 DIV + col0 + 21 FROM tab0
----
10
21
47
26
99
21

skipif mysql # not compatible
query II rowsort label-6796
SELECT col2, + col1 / + col0 + 21 FROM tab0
----
10
21
47
26
99
21

query I rowsort
SELECT + + col1 * + col1 FROM tab2 WHERE NULL IS NULL
----
2601
4489
5929

query I rowsort
SELECT ALL - - col1 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * + 62 IS NULL
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE - 77 >= + col0 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 76 / - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 56 AS col1 FROM tab0 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT MIN( ALL 54 ) + - 68 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT MIN ( ALL 54 ) + - 68 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col0 * 67 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT ALL col2 * - col2 * + col2 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT - MIN( ALL + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6806
SELECT - MIN ( ALL + col1 ) FROM tab0
----
-1

query I rowsort
SELECT ALL - ( 27 ) FROM tab2
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - + 71 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT MAX( ALL + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT MAX ( ALL + col2 ) FROM tab1
----
96

query I rowsort
SELECT + col1 * + col1 * - col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT COUNT( * ) * - 61 AS col1 FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-6811
SELECT COUNT ( * ) * - 61 AS col1 FROM tab1 cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - COUNT( * ) * - 1 + - 40 + - SUM( ALL col2 ) * - 32 FROM tab0 AS cor0
----
4955

skipif mysql # not compatible
query I rowsort label-6812
SELECT - COUNT ( * ) * - 1 + - 40 + - SUM ( ALL col2 ) * - 32 FROM tab0 AS cor0
----
4955

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6813
SELECT ( + CAST( NULL AS DECIMAL ) ) * 98 + - 21 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT ( + CAST ( NULL AS REAL ) ) * 98 + - 21 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL - - 72 * - - COUNT( * ) + + - 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
584

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL - - 72 * - - COUNT ( * ) + + - 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 + 89 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-2211
-4775
-4861

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - ( col1 ) )
----

query I rowsort
SELECT + col2 + + + col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL + MIN( + - 74 ) AS col2 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + MIN ( + - 74 ) AS col2 FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT COUNT( * ) + 30 - - - 86 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-6821
SELECT COUNT ( * ) + 30 - - - 86 FROM tab2
----
-53

query I rowsort
SELECT 20 * col1 + + - col1 * + col1 FROM tab2
----
-1581
-3149
-4389

query I rowsort
SELECT ALL col2 + 77 * + col0 * 86 AS col0 FROM tab1
----
337818
562929
602670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6824
SELECT DISTINCT + col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT + col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL + - COUNT( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL + - COUNT ( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL ( + + 6 ) * - MIN( col2 ) AS col0 FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL ( + + 6 ) * - MIN ( col2 ) AS col0 FROM tab2 cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT - - COUNT( * ) * 76 AS col0 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-6827
SELECT - - COUNT ( * ) * 76 AS col0 FROM tab0 AS cor0
----
228

query II rowsort
SELECT ALL - + 29 AS col2, - col1 FROM tab0 AS cor0
----
-29
-1
-29
-21
-29
-81

query II rowsort
SELECT + + col0, + col1 AS col1 FROM tab2 cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT + - COUNT( + 77 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + - COUNT ( + 77 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + 56 AND 11 + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col2 + + col2 / + col0 - 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col2 FROM tab1
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT - COUNT( * ) + + MAX( DISTINCT - 86 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - COUNT ( * ) + + MAX ( DISTINCT - 86 ) FROM tab2
----
-89

query I rowsort
SELECT DISTINCT - col2 + 9 FROM tab1 WHERE - col0 > NULL
----

query I rowsort
SELECT - 0 * - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + 66 * - 42 * - COUNT( * ) FROM tab0
----
8316

skipif mysql # not compatible
query I rowsort label-6837
SELECT + 66 * - 42 * - COUNT ( * ) FROM tab0
----
8316

query I rowsort
SELECT ALL col0 * - + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT COUNT( * ) * + - 57 * - SUM( - + col0 ) FROM tab2 AS cor0
----
-31635

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT COUNT ( * ) * + - 57 * - SUM ( - + col0 ) FROM tab2 AS cor0
----
-31635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT - MIN( DISTINCT - + 10 ) + - - 35 AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - MIN ( DISTINCT - + 10 ) + - - 35 AS col1 FROM tab0
----
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) * col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6843
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED ) + col2 * + 50 * - ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER ) + col2 * + 50 * - ( - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6844
SELECT DISTINCT - CAST( NULL AS DECIMAL ), - 17 * + 20 AS col2 FROM tab1 AS cor0
----
NULL
-340

skipif mysql # not compatible
query II rowsort label-6844
SELECT DISTINCT - CAST ( NULL AS REAL ), - 17 * + 20 AS col2 FROM tab1 AS cor0
----
NULL
-340

query I rowsort
SELECT DISTINCT + 4 * + + col1 * + col2 FROM tab0
----
15228
396
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT ALL + COUNT( ALL - CAST( + col2 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + COUNT ( ALL - CAST ( + col2 AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT + 72 * + col2 AS col2 FROM tab2
----
1656
2880
4176

query I rowsort
SELECT 23 * - 50 FROM tab0
----
-1150
-1150
-1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6849
SELECT + ( + + CAST( NULL AS SIGNED ) ) - - MAX( DISTINCT - 59 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT + ( + + CAST ( NULL AS INTEGER ) ) - - MAX ( DISTINCT - 59 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT - COUNT( * ) - - 19 AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-6850
SELECT - COUNT ( * ) - - 19 AS col2 FROM tab0
----
16

query II rowsort
SELECT ALL - col2 AS col0, ( col0 ) FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT ALL 47 / col0 * + col0 * 9 + - - 89 - - col1 * + col1 * - CAST( NULL AS SIGNED ) + col2 + - col2 * col1 * col0 * + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL 47 / col0 * + col0 * 9 + - - 89 - - col1 * + col1 * - CAST ( NULL AS INTEGER ) + col2 + - col2 * col1 * col0 * + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col1 ) - - + col1 FROM tab2
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, 14 + - - col2 col1 FROM tab1 AS cor0
----
-14
110
-47
82
-5
73

query II rowsort
SELECT DISTINCT + 94, col1 AS col1 FROM tab1 AS cor0
----
94
14
94
47
94
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 6 >= - ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6857
SELECT + 43 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
43
3

skipif mysql # not compatible
query II rowsort label-6857
SELECT + 43 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
43
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT MAX( ALL - 1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6858
SELECT MAX ( ALL - 1 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 82 ) + + col0 <= + 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT COUNT( + col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT COUNT ( + col1 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 3 * ( - 37 ) FROM tab1 AS cor0
----
-111
-111
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT + + 54 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT + + 54 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT - 15 DIV + col0 + + col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6864
SELECT - 15 / + col0 + + col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6865
SELECT + COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT ALL + CAST( - col2 AS SIGNED ) * + ( col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL + CAST ( - col2 AS INTEGER ) * + ( col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL col2 * 90 AS col0 FROM tab2
----
2070
3600
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT DISTINCT COUNT( * ) + - 7 + - COUNT( * ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT COUNT ( * ) + - 7 + - COUNT ( * ) FROM tab2
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 68 col2 FROM tab0
----
-31
21
58

query I rowsort
SELECT + + 14 + col0 FROM tab1 AS cor0
----
105
65
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT - 95 * + COUNT( * ) col1 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6872
SELECT DISTINCT - 95 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL - 55 * ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL - 55 * ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-165

query I rowsort
SELECT DISTINCT - - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + - col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 4 - - col1 FROM tab1 AS cor0
----
1
10
43

query I rowsort
SELECT DISTINCT 99 - - col2 + col2 FROM tab1 AS cor0
----
217
235
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6878
SELECT - MIN( DISTINCT + col1 ) - - 43 * + 85 AS col1, + CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
3604
3

skipif mysql # not compatible
query II rowsort label-6878
SELECT - MIN ( DISTINCT + col1 ) - - 43 * + 85 AS col1, + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
3604
3

query I rowsort
SELECT - + 35 - + col2 + + col0 FROM tab1 cor0
----
-12
-80
-9

query I rowsort
SELECT - 79 + + col1 FROM tab1 AS cor0
----
-32
-65
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + - col1 - - 66 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + - col1 - - 66 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + + col0 * 95 AS col1 FROM tab2 AS cor0
----
4393
6120
7183

query I rowsort
SELECT - + 12 + - col1 * - - col0 FROM tab2 AS cor0
----
-2358
-4940
-5037

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + col1 col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6886
SELECT ALL COUNT( * ) AS col0, - 84 FROM tab0
----
3
-84

skipif mysql # not compatible
query II rowsort label-6886
SELECT ALL COUNT ( * ) AS col0, - 84 FROM tab0
----
3
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 > - ( - - 18 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6889
SELECT DISTINCT + COUNT( * ), COUNT( * ) col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6889
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) col1 FROM tab0
----
3
3

query II rowsort
SELECT col0 AS col1, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT - + COUNT( + 57 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6891
SELECT - + COUNT ( + 57 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 21 col1 FROM tab2 cor0
----
-21
-21
-21

query II rowsort
SELECT ALL ( col0 ), + col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6894
SELECT + col2, col2 * col1 * + - 92 * + col2 * 27 + + 32 DIV + ( col1 ) AS col1 FROM tab1
----
59
-43234014
68
-539842752
96
-320495614

skipif mysql # not compatible
query II rowsort label-6894
SELECT + col2, col2 * col1 * + - 92 * + col2 * 27 + + 32 / + ( col1 ) AS col1 FROM tab1
----
59
-43234014
68
-539842752
96
-320495614

query I rowsort
SELECT - 89 * + ( + col1 ) FROM tab0 cor0
----
-1869
-7209
-89

query II rowsort
SELECT ALL - col0 AS col1, - col1 + col0 FROM tab1 AS cor0
----
-51
37
-85
80
-91
44

query I rowsort
SELECT ALL + ( - col0 ) * - 35 FROM tab2 cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT + SUM( DISTINCT + col1 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT + SUM ( DISTINCT + col1 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-585

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * 44 NOT BETWEEN + - col0 * - 35 AND col0
----

query I rowsort
SELECT ALL ( - - col1 ) * + - col0 + col0 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + 93 * - 13 col1 FROM tab1 cor0 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT COUNT( + + col0 ) FROM tab2 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6902
SELECT COUNT ( + + col0 ) FROM tab2 WHERE - col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( 96 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 53 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL - MAX( + + 88 ) - 84 - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - MAX ( + + 88 ) - 84 - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-175

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE + 37 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + ( + + col2 ) FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT + - MAX( + - col0 ) AS col0 FROM tab1 cor0 WHERE NULL IN ( col1 * - 41 * 34 * + 11 - - col0, + 20 * 95, + CAST( NULL AS SIGNED ), + col1, - - CAST( NULL AS SIGNED ) - + col2, - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT + - MAX ( + - col0 ) AS col0 FROM tab1 cor0 WHERE NULL IN ( col1 * - 41 * 34 * + 11 - - col0, + 20 * 95, + CAST ( NULL AS INTEGER ), + col1, - - CAST ( NULL AS INTEGER ) - + col2, - + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6910
SELECT ALL - CAST( NULL AS SIGNED ) / + col2 - - ( + col2 ) + + + col2 * - - 78 + + col1 * col2, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6910
SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 - - ( + col2 ) + + + col2 * - - 78 + + col1 * col2, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6912
SELECT + 61 * - ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-6912
SELECT + 61 * - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-183

query I rowsort
SELECT + 80 * - + col1 * - 77 FROM tab0
----
129360
498960
6160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT + COUNT( DISTINCT + + 47 ) DIV 44 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT + COUNT ( DISTINCT + + 47 ) / 44 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( - 36 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6916
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL col0 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT col1 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT col1 / + - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col2 FROM tab0
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT + ( - ( - 57 ) ) * - - 50, - 71 + + - 77 + + - MIN( DISTINCT - col1 ) AS col1 FROM tab1
----
2850
-101

skipif mysql # not compatible
query II rowsort label-6921
SELECT + ( - ( - 57 ) ) * - - 50, - 71 + + - 77 + + - MIN ( DISTINCT - col1 ) AS col1 FROM tab1
----
2850
-101

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT DISTINCT - SUM( ALL col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - SUM ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE + 62 + + + ( - col2 ) + - - 98 * + - 50 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL - SUM( DISTINCT + col0 ) * 32 * + COUNT( * ) FROM tab1
----
-21792

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - SUM ( DISTINCT + col0 ) * 32 * + COUNT ( * ) FROM tab1
----
-21792

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT - ( + + COUNT( * ) ) col2 FROM tab1 WHERE NOT NULL > 21 + ( - + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6926
SELECT - ( + + COUNT ( * ) ) col2 FROM tab1 WHERE NOT NULL > 21 + ( - + col2 )
----
0

query II rowsort
SELECT DISTINCT col2, 27 * + ( - - col2 ) * col0 FROM tab1 AS cor0
----
59
135405
68
167076
96
132192

query I rowsort
SELECT 93 * + col2 AS col0 FROM tab0 AS cor0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT DISTINCT - COUNT( 91 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6929
SELECT DISTINCT - COUNT ( 91 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - + COUNT( * ) * COUNT( + col2 ) * + 77 - + 97 FROM tab2 AS cor0 WHERE 85 / - 23 IS NOT NULL
----
-790

skipif mysql # not compatible
query I rowsort label-6930
SELECT - + COUNT ( * ) * COUNT ( + col2 ) * + 77 - + 97 FROM tab2 AS cor0 WHERE 85 / - 23 IS NOT NULL
----
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT DISTINCT + COUNT( - 20 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6931
SELECT DISTINCT + COUNT ( - 20 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT col2 DIV - - 96 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT col2 / - - 96 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + col2 col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - + col0 = - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT + - CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT + - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - col1, col0 + - col0 * - col2 + 3 AS col1 FROM tab1 AS cor0
----
14
4950
47
6282
5
5103

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 22 + + - col1 FROM tab1
----
-25
17
8

query I rowsort
SELECT ALL + col2 * + 51 + + col1 * - - 24 AS col0 FROM tab1 AS cor0
----
3129
4596
5232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6940
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE col0 >= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE col0 >= + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + AVG ( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 54 * col0 * + col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6944
SELECT ALL - col2 * ( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - col2 * ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 IS NOT NULL )
----

query I rowsort
SELECT ( + 81 ) * - 43 AS col0 FROM tab1
----
-3483
-3483
-3483

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 54 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL + MIN( DISTINCT + col0 ) * - MIN( - col2 ) AS col1 FROM tab1
----
4896

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + MIN ( DISTINCT + col0 ) * - MIN ( - col2 ) AS col1 FROM tab1
----
4896

query I rowsort
SELECT - col2 * - 77 FROM tab2
----
1771
3080
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL - - COUNT( * ) * - - MAX( ALL - - col0 ) col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6951
SELECT ALL - - COUNT ( * ) * - - MAX ( ALL - - col0 ) col2 FROM tab0 AS cor0
----
291

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 75 col2 FROM tab2 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - COUNT( * ) FROM tab2 WHERE NOT col1 / - col0 NOT IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6954
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col1 / - col0 NOT IN ( + col1 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( col1 )
----

query I rowsort
SELECT 39 FROM tab2 WHERE NOT + 93 IS NOT NULL
----

query I rowsort
SELECT col2 - + col2 FROM tab0 WHERE col0 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT 10 + - COUNT( * ) * + 27 col1 FROM tab2
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6958
SELECT 10 + - COUNT ( * ) * + 27 col1 FROM tab2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL COUNT( * ) * 54 AS col0 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL COUNT ( * ) * 54 AS col0 FROM tab2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL - ( - COUNT( * ) ) + 6 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6960
SELECT ALL - ( - COUNT ( * ) ) + 6 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT - SUM( DISTINCT - 6 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - SUM ( DISTINCT - 6 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT col2 - 61 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( ( - 87 ) ) AND NULL
----

query I rowsort
SELECT 17 AS col2 FROM tab2 WHERE NOT - col1 + + col1 IS NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL + COUNT( * ) - 14 * COUNT( * ) AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL + COUNT ( * ) - 14 * COUNT ( * ) AS col1 FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT - 91 + COUNT( * ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-6966
SELECT - 91 + COUNT ( * ) FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + COUNT( * ) * 70 AS col1 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-6967
SELECT + COUNT ( * ) * 70 AS col1 FROM tab1
----
210

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 12 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT + 91 * + MAX( + col2 ) AS col2 FROM tab1
----
8736

skipif mysql # not compatible
query I rowsort label-6969
SELECT + 91 * + MAX ( + col2 ) AS col2 FROM tab1
----
8736

query I rowsort
SELECT + col0 * + ( 69 * + 90 ) AS col2 FROM tab2
----
285660
397440
465750

query I rowsort
SELECT - 81 * col2 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT + 97 * - 79 AS col2 FROM tab1
----
-7663
-7663
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT SUM( + col1 ) * SUM( ALL - 0 ) + 7 FROM tab0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT SUM ( + col1 ) * SUM ( ALL - 0 ) + 7 FROM tab0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT + col1 * + col1 + + 69 * + col0 FROM tab0
----
6444
6694
7596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6975
SELECT MIN( ALL ( - col1 ) ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT MIN ( ALL ( - col1 ) ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL ( - COUNT( * ) ) * + COUNT( DISTINCT - 4 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL ( - COUNT ( * ) ) * + COUNT ( DISTINCT - 4 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6977
SELECT col0 * CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col2 BETWEEN col2 AND ( col2 + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT col0 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col2 BETWEEN col2 AND ( col2 + col2 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + ( col0 ) FROM tab1 WHERE NOT col2 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 33 + - ( col0 ) FROM tab0 WHERE NOT col1 * + col0 > NULL
----

query I rowsort
SELECT DISTINCT 51 * + 99 AS col1 FROM tab0
----
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL COUNT( * ) * COUNT( ALL + ( col1 ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL COUNT ( * ) * COUNT ( ALL + ( col1 ) ) FROM tab0
----
9

query I rowsort
SELECT - col0 + + 22 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT col1 - - 5 AS col1 FROM tab0
----
26
6
86

query I rowsort
SELECT DISTINCT + AVG ( col0 ) FROM tab1 WHERE NOT NULL BETWEEN 36 * col2 AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6985
SELECT DISTINCT - col1 DIV ( col1 ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6985
SELECT DISTINCT - col1 / ( col1 ) col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL + MAX( col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + MAX ( col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT col0 * ( 53 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 71 + 27 * + col0 = + 40
----
2438
3392
3975

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( ( col0 ) ) NOT IN ( col2 * - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 26 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL <> col0
----
NULL

query I rowsort
SELECT DISTINCT col2 - 60 AS col2 FROM tab1
----
-1
36
8

query I rowsort
SELECT ALL 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 + col1 AND - 11 * - 82
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 11 * col2 )
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT col2 * 11 >= ( col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT - + COUNT( + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6997
SELECT - + COUNT ( + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT - MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + 22 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - ( + col1 ) )
----

query I rowsort
SELECT + col1 * + col1 FROM tab1 WHERE NOT ( col1 + col0 ) < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 96 ) + col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT 30 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 <= - ( + col2 ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 36 * - col2 FROM tab0
----
-1692
-3564
-360

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT - SUM( ALL + 39 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-117

skipif mysql # not compatible
query I rowsort label-7007
SELECT - SUM ( ALL + 39 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT - ( + + col1 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT - ( + + col1 ) / + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7009
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 BETWEEN ( NULL ) AND CAST( 98 AS DECIMAL ) * col1
----

skipif mysql # not compatible
query III rowsort label-7009
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 BETWEEN ( NULL ) AND CAST ( 98 AS REAL ) * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT - + 5 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT - + 5 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7011
SELECT COUNT( * ) + - COUNT( * ) / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT COUNT ( * ) + - COUNT ( * ) / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7012
SELECT ALL - + CAST( 23 AS DECIMAL ) FROM tab0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - + CAST ( 23 AS REAL ) FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT + CAST( + 29 AS SIGNED ) AS col2 FROM tab2
----
29
29
29

skipif mysql # not compatible
query I rowsort label-7013
SELECT + CAST ( + 29 AS INTEGER ) AS col2 FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT - col2 * + 78 - + 90 AS col0 FROM tab0 AS cor0
----
-3756
-7812
-870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 8 - - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT + + COUNT( * ) AS col0, - 60 AS col0 FROM tab2 cor0
----
3
-60

skipif mysql # not compatible
query II rowsort label-7016
SELECT + + COUNT ( * ) AS col0, - 60 AS col0 FROM tab2 cor0
----
3
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL OR col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 + + + col0 - col1 * - col1 FROM tab0 AS cor0
----
195
2355
7791

query I rowsort
SELECT + + col1 * - 17 FROM tab0 AS cor0
----
-1377
-17
-357

query I rowsort
SELECT - col1 * - col2 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
1480
150259
18830

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( col1 ) IN ( col0 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7022
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - - CAST( NULL AS SIGNED ) ) + - col2 <= ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-7022
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - - CAST ( NULL AS INTEGER ) ) + - col2 <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT - + MIN( col0 ) - + + MAX( - col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT - + MIN ( col0 ) - + + MAX ( - col0 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + + 27
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE ( NULL ) IN ( 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ALL - 11 * + 24 * 38 + + 37 * + MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
-13695

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL - 11 * + 24 * 38 + + 37 * + MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
-13695

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT ALL - MAX( ALL + 17 ) AS col1 FROM tab0 WHERE + - 4 * - 9 + 4 BETWEEN + ( 91 ) + + 70 AND col1 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL - MAX ( ALL + 17 ) AS col1 FROM tab0 WHERE + - 4 * - 9 + 4 BETWEEN + ( 91 ) + + 70 AND col1 * col0
----
NULL

query I rowsort
SELECT ALL - col2 * + col0 + + - 67 FROM tab1
----
-4963
-5082
-6255

query III rowsort
SELECT * FROM tab1 WHERE + - col1 - col1 * - 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 col1 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT COUNT( * ) AS col0 FROM tab0 WHERE ( 26 * + ( - 92 ) + - col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7031
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE ( 26 * + ( - 92 ) + - col1 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 12 + - col1 col2 FROM tab0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL - 23 - col2 AS col2 FROM tab2
----
-46
-63
-81

query I rowsort
SELECT DISTINCT col2 + 20 AS col0 FROM tab0
----
119
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT - ( + ( + - MIN( ( col1 ) ) ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7035
SELECT - ( + ( + - MIN ( ( col1 ) ) ) ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 / + 83 ) NOT BETWEEN 36 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - col0 FROM tab0 AS cor0 WHERE NULL IN ( - 98 + - + col0 )
----

query I rowsort
SELECT + col2 * + col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + SUM( ALL 21 ) col1 FROM tab2
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7039
SELECT + SUM ( ALL 21 ) col1 FROM tab2
----
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 50 + - col1 AND + col2 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT ( + + 13 ) DIV + + col2 - - - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7041
SELECT ( + + 13 ) / + + col2 - - - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT - - COUNT( - + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7042
SELECT - - COUNT ( - + col2 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT COUNT( - 76 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7043
SELECT COUNT ( - 76 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 30 - 89 NOT IN ( + + ( - - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT - MIN( col2 ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT - MIN ( col2 ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT 26 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 28 IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-7046
SELECT 26 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 28 IS NULL
----
78

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT col0 + - + col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT + 36 * - - 89 * + + 62 * - COUNT( * ) AS col0 FROM tab2
----
-595944

skipif mysql # not compatible
query I rowsort label-7048
SELECT + 36 * - - 89 * + + 62 * - COUNT ( * ) AS col0 FROM tab2
----
-595944

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 16, col0 + 70 + col2 AS col2 FROM tab1
----
16
214
16
217
16
229

query I rowsort
SELECT DISTINCT - 90 * + - col0 FROM tab2
----
4140
5760
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT MAX( DISTINCT - col0 ) * - + 68 * - COUNT( * ) FROM tab1
----
-10404

skipif mysql # not compatible
query I rowsort label-7052
SELECT MAX ( DISTINCT - col0 ) * - + 68 * - COUNT ( * ) FROM tab1
----
-10404

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT + 43 AS col0, + MAX( ALL 8 ) col0 FROM tab0 cor0
----
43
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7053
SELECT + 43 AS col0, + MAX ( ALL 8 ) col0 FROM tab0 cor0
----
43
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT - col2 DIV + col0 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7054
SELECT - col2 / + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 58 * + + 57 + + col0 / + col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT col0 DIV - - 79 + - + col1 AS col1 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-7056
SELECT col0 / - - 79 + - + col1 AS col1 FROM tab1
----
-14
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7057
SELECT ALL col2 / + col0 + - + col2 + + + CAST( NULL AS SIGNED ) * - ( - - col1 ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL col2 / + col0 + - + col2 + + + CAST ( NULL AS INTEGER ) * - ( - - col1 ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT ALL + 70 * + 41 + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7058
SELECT ALL + 70 * + 41 + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + COUNT( * ) * + 69 * - 21 FROM tab1 AS cor0
----
-4347

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + COUNT ( * ) * + 69 * - 21 FROM tab1 AS cor0
----
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT - COUNT( - col2 ) * - 9 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT - COUNT ( - col2 ) * - 9 FROM tab0 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT DISTINCT 58 + - 7 + + 18 + + col0 + + col0 DIV - - col0 col0 FROM tab2 AS cor0
----
116
134
145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7061
SELECT DISTINCT 58 + - 7 + + 18 + + col0 + + col0 / - - col0 col0 FROM tab2 AS cor0
----
116
134
145

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - + 5 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 71 * - col2 AS col2 FROM tab1
----
-4104
-4737
-6765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - - + 4 - + - col1 NOT BETWEEN NULL AND 87 * - 31 * - + col0 * 86 + 54
----

query I rowsort
SELECT - col0 * + 46 * - + 95 AS col2 FROM tab0
----
380190
423890
65550

query I rowsort
SELECT DISTINCT 61 + col2 FROM tab1
----
120
129
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT + COUNT( * ) DIV + 90 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT + COUNT ( * ) / + 90 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL - MAX( - 7 ) col0 FROM tab0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7068
SELECT ALL - MAX ( - 7 ) col0 FROM tab0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT DISTINCT col2 DIV + col2 + + col1 * + - 17 AS col2 FROM tab2
----
-1138
-1308
-866

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT col2 / + col2 + + col1 * + - 17 AS col2 FROM tab2
----
-1138
-1308
-866

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT ( - - 70 ) DIV + 65 - - - col1 AS col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-7070
SELECT ( - - 70 ) / + 65 - - - col1 AS col1 FROM tab1
----
-13
-4
-46

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT ( - + ( - + col1 ) ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT MIN( - 99 ) FROM tab1 WHERE NULL IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-7072
SELECT MIN ( - 99 ) FROM tab1 WHERE NULL IS NULL
----
-99

query I rowsort
SELECT - col1 - - ( + col1 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 7 - col2 AS col1 FROM tab0
----
-106
-17
-54

query I rowsort
SELECT ALL - col2 + - - 40 FROM tab1 AS cor0
----
-19
-28
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - 80 * - - COUNT( * ) AS col2 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-7076
SELECT - 80 * - - COUNT ( * ) AS col2 FROM tab1
----
-240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7077
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 * + + 99 AS col1 FROM tab0
----
4653
9801
990

query I rowsort
SELECT DISTINCT - + 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE - col0 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( ( col1 ) AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7082
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( ( col1 ) AS INTEGER ) IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 19 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL CAST( + col1 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0 WHERE ( + 40 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL CAST ( + col1 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0 WHERE ( + 40 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( col0 ) IS NULL
----

query II rowsort
SELECT + 36 AS col0, col0 FROM tab1
----
36
51
36
85
36
91

query I rowsort
SELECT ALL + col1 + + 56 FROM tab1
----
103
61
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL - SUM( ALL - ( - col1 ) ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 / - ( + - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL - SUM ( ALL - ( - col1 ) ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 / - ( + - col2 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7089
SELECT ALL * FROM tab0 WHERE NOT col0 - - CAST( 86 AS SIGNED ) < CAST( + + col1 AS DECIMAL ) * + - CAST( - 82 AS SIGNED ) * - - CAST( NULL AS SIGNED ) + + col0 + col2 * col1
----

skipif mysql # not compatible
query III rowsort label-7089
SELECT ALL * FROM tab0 WHERE NOT col0 - - CAST ( 86 AS INTEGER ) < CAST ( + + col1 AS REAL ) * + - CAST ( - 82 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + + col0 + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + SUM( - col2 ) col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7090
SELECT DISTINCT + SUM ( - col2 ) col2 FROM tab2 cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7091
SELECT * FROM tab1 AS cor0 WHERE + col2 / - + 96 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7091
SELECT * FROM tab1 AS cor0 WHERE + col2 / - + 96 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + - 64 - - 54 FROM tab0 AS cor0
----
0
37
89

query II rowsort
SELECT DISTINCT col2 * + col1 + + ( - col0 ), + col0 FROM tab1
----
1293
51
210
85
3105
91

query I rowsort
SELECT ALL 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - ( col0 ) * - col1 + - col0 AS col0 FROM tab1
----
340
4186
663

query III rowsort
SELECT * FROM tab1 WHERE + col1 <> - 58 * - col0 + + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 * + + col1 FROM tab0 AS cor0
----
2430
30
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7098
SELECT DISTINCT - MIN( ALL + col0 ) DIV 9 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT - MIN ( ALL + col0 ) / 9 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + COUNT( * ) - + - 4 col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7099
SELECT + COUNT ( * ) - + - 4 col0 FROM tab1 AS cor0
----
7

query I rowsort
SELECT - + col2 * + 59 + - col2 FROM tab0 AS cor0
----
-2820
-5940
-600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 - + - col1 col2 FROM tab1 cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT - MIN( DISTINCT - - 4 ) + - + 82 AS col0 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7102
SELECT - MIN ( DISTINCT - - 4 ) + - + 82 AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ALL + 8 + - 14 FROM tab2 WHERE NOT ( - + 92 ) IS NOT NULL
----

query I rowsort
SELECT - col1 + col2 - col2 * + - col2 AS col2 FROM tab1 WHERE NULL >= + 95 * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT ALL - - CAST( NULL AS SIGNED ) / - MIN( - + 47 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - - CAST ( NULL AS INTEGER ) / - MIN ( - + 47 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL 75, 97 AS col1 FROM tab0
----
75
97
75
97
75
97

query I rowsort
SELECT ALL - 1 * - + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT - 40 DIV + col0 + 0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7110
SELECT - 40 / + col0 + 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE - col1 * col0 * - - 87 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + + col1 col1 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 * col1 col1 FROM tab1
----
2914
310
868

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT DISTINCT + 22 DIV + - ( + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT + 22 / + - ( + col1 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT - CAST( NULL AS SIGNED ) * - col2 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT - CAST ( NULL AS INTEGER ) * - col2 * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col2 * + col2 AS col1 FROM tab2
----
1664
3439
575

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT ALL ( - + COUNT( * ) ) AS col2, - 61 AS col0 FROM tab1
----
-3
-61

skipif mysql # not compatible
query II rowsort label-7117
SELECT ALL ( - + COUNT ( * ) ) AS col2, - 61 AS col0 FROM tab1
----
-3
-61

query I rowsort
SELECT col0 + - 77 - col2 + + - 24 AS col1 FROM tab1
----
-146
-75
-78

query I rowsort
SELECT + 61 + + - 10 FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT + 75 + COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7120
SELECT + 75 + COUNT ( * ) AS col2 FROM tab2
----
78

query I rowsort
SELECT + col1 + + - 73 FROM tab1
----
-26
-59
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + col1 col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT - col1 * col1 - 12 FROM tab1 AS cor0
----
-208
-2221
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( ALL col0 ) col1 FROM tab0 AS cor0 WHERE NULL <> - 87
----
NULL

query I rowsort
SELECT - 18 * - - 31 FROM tab2 AS cor0
----
-558
-558
-558

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * 2 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * 2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + ( + + 64 ) * - MAX( 69 ) AS col0 FROM tab2 AS cor0
----
-4416

skipif mysql # not compatible
query I rowsort label-7128
SELECT + ( + + 64 ) * - MAX ( 69 ) AS col0 FROM tab2 AS cor0
----
-4416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7129
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT + CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7130
SELECT + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT 98 * COUNT( * ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-7131
SELECT 98 * COUNT ( * ) FROM tab0
----
294

query II rowsort
SELECT ALL - - col2 - + + col0, col0 FROM tab2 WHERE NOT + col0 >= col1
----
-23
46
-24
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT DISTINCT + 0 * + col1 DIV + + col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + 0 * + col1 / + + col1 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT DISTINCT - CAST( - 49 AS SIGNED ) + - col1 FROM tab0 WHERE NULL BETWEEN + 77 AND col2
----

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - CAST ( - 49 AS INTEGER ) + - col1 FROM tab0 WHERE NULL BETWEEN + 77 AND col2
----

query I rowsort
SELECT DISTINCT ( + col2 ) * + 46 FROM tab0
----
2162
4554
460

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7138
SELECT DISTINCT - 22, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-22
-3

skipif mysql # not compatible
query II rowsort label-7138
SELECT DISTINCT - 22, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-22
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7139
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col0 <> - 51
----

skipif mysql # not compatible
query III rowsort label-7139
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col0 <> - 51
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) / - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 13 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7142
SELECT DISTINCT 29 DIV - col0 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT 29 / - col0 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL + ( + SUM( col2 ) ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + ( + SUM ( col2 ) ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL ( - 64 ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT MIN( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7145
SELECT MIN ( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-75

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL - 17 + + + MIN( - 60 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - 17 + + + MIN ( - 60 ) AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 + + 26 IS NOT NULL
----

query I rowsort
SELECT ALL 5 * + col2 * col0 + - - col0 AS col2 FROM tab0
----
3540
4437
48112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT 69 + - CAST( + + 0 AS SIGNED ) FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-7151
SELECT 69 + - CAST ( + + 0 AS INTEGER ) FROM tab2
----
69
69
69

query I rowsort
SELECT ALL - + col2 + - - col1 AS col0 FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 * - 39 <= 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT - col1 + col0 + + col2 + - + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT - col1 + col0 + + col2 + - + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 > + 27
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT + - 89 + COUNT( * ) AS col2, - MAX( ALL - 10 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-80
10

skipif mysql # not compatible
query II rowsort label-7156
SELECT + - 89 + COUNT ( * ) AS col2, - MAX ( ALL - 10 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-80
10

query I rowsort
SELECT + col0 - 5 + - col0 + + - 46 + + + col0 FROM tab1 AS cor0
----
0
34
40

query I rowsort
SELECT 41 * 13 + + + col1 FROM tab2 AS cor0
----
584
600
610

query I rowsort
SELECT - col0 / - 43 FROM tab1 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col2 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT - + 32 + 27, ( - col1 ) AS col2 FROM tab2 AS cor0
----
-5
-51
-5
-67
-5
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col0, - col1 / col2, - col2 * + col0 + - col0, + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT + SUM( - 45 ) FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT + SUM ( - 45 ) FROM tab2
----
-135

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col2 NOT IN ( - col2, col0 * - - 11 ) ) OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 34 * - + col0 FROM tab0
----
2958
3298
510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, col0 col2 FROM tab2 WHERE NOT + col0 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL SUM( DISTINCT - col2 ) * - COUNT( DISTINCT - 49 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL SUM ( DISTINCT - col2 ) * - COUNT ( DISTINCT - 49 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT 75 * + 59 FROM tab2
----
4425
4425
4425

query I rowsort
SELECT DISTINCT - col1 * 65 AS col1 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL + COUNT( - 34 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + COUNT ( - 34 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT + COUNT( * ) * - ( + - 94 ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + COUNT ( * ) * - ( + - 94 ) FROM tab1 AS cor0
----
282

query I rowsort
SELECT + + ( - 41 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + 24 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + 24 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 5 * - col2 FROM tab1 AS cor0
----
295
340
480

query I rowsort
SELECT col1 * col2 + - ( 89 ) + - col1 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - 92 + - SUM( ALL + col2 ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7176
SELECT - 92 + - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ( + MIN( + - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT ( + MIN ( + - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT ALL + col1 * - col2 * - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL + col1 * - col2 * - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + 33 AS col1 FROM tab1
----
-1683
-2805
-3003

query I rowsort
SELECT DISTINCT + 95 + 71 FROM tab0
----
166

query I rowsort
SELECT DISTINCT 2 + - - col1 + + + 16 FROM tab0
----
19
39
99

query I rowsort
SELECT ALL - col0 * + + 70 + - col2 AS col1 FROM tab2
----
-3243
-4520
-5308

query I rowsort
SELECT ALL - col2 * col0 + + - 69 AS col2 FROM tab1
----
-4965
-5084
-6257

query II rowsort
SELECT DISTINCT col0 + + col0 AS col1, col1 * - + col2 + 46 FROM tab0
----
174
-164
194
-53
30
-3761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, ( + - col2 ) col2 FROM tab0 WHERE NULL BETWEEN + 3 AND - col0
----

query I rowsort
SELECT ALL - - AVG ( DISTINCT + - col2 ) FROM tab2 AS cor0 WHERE NOT + col2 + + - 23 + - 80 <= NULL
----
NULL

query I rowsort
SELECT ALL col0 + + 34 FROM tab0
----
121
131
49

query I rowsort
SELECT + ( + 62 ) FROM tab0 cor0
----
62
62
62

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL BETWEEN NULL AND - col2 * + 73 + ( 87 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - 38
----

query I rowsort
SELECT - + col0 * + 20 * - col0 + + col2 + - 53 * - col2 FROM tab1 AS cor0
----
147686
169292
57204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7192
SELECT DISTINCT - - 55 * 76 * - COUNT( * ) DIV COUNT( * ) + - MIN( ALL + ( col2 ) ) - + + COUNT( * ) FROM tab2 cor0 WHERE - 42 IS NOT NULL
----
-4206

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT - - 55 * 76 * - COUNT ( * ) / COUNT ( * ) + - MIN ( ALL + ( col2 ) ) - + + COUNT ( * ) FROM tab2 cor0 WHERE - 42 IS NOT NULL
----
-4206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT - - CAST( 57 AS SIGNED ) FROM tab0 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-7193
SELECT - - CAST ( 57 AS INTEGER ) FROM tab0 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL COUNT( * ) * - + 32 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL COUNT ( * ) * - + 32 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-288

query I rowsort
SELECT DISTINCT + + 31 * - col1 FROM tab2 AS cor0
----
-1581
-2077
-2387

query I rowsort
SELECT col1 * - 59 FROM tab0 AS cor0
----
-1239
-4779
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7197
SELECT 37 DIV - + COUNT( * ) AS col2 FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7197
SELECT 37 / - + COUNT ( * ) AS col2 FROM tab2 cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 6 BETWEEN NULL AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 col1 FROM tab1 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT - MIN( + - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT - MIN ( + - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7201
SELECT + + CAST( - - COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7201
SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT + COUNT( * ) * + 68 * MAX( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
20196

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + COUNT ( * ) * + 68 * MAX ( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
20196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT 88 + 48 + + + SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7204
SELECT 88 + 48 + + + SUM ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
33

query I rowsort
SELECT ALL ( + col1 ) * + - col0 + + col2 AS col0 FROM tab1
----
-366
-4209
-618

onlyif mysql # DIV for integer division: 
query II rowsort label-7206
SELECT ALL + col2 DIV col0 AS col1, col2 DIV col1 * - col0 DIV - + 23 AS col2 FROM tab2
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-7206
SELECT ALL + col2 / col0 AS col1, col2 / col1 * - col0 / - + 23 AS col2 FROM tab2
----
0
0
0
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= 31 * col1
----

query I rowsort
SELECT - col2 * ( - col1 ) + - 53 + 59 + + 88 + - + 90 * - col0 * + col2 * - - col0 FROM tab2
----
14748774
29366480
4381387

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT - MAX( + col1 ) + + - 26 * + - 42 col2 FROM tab0
----
1011

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7209
SELECT DISTINCT - MAX ( + col1 ) + + - 26 * + - 42 col2 FROM tab0
----
1011

query I rowsort
SELECT ALL + 72 + - col2 FROM tab0
----
-27
25
62

query I rowsort
SELECT DISTINCT + - 53 FROM tab1 WHERE - ( + - col2 ) IS NULL
----

query I rowsort
SELECT + col0 + - - 66 AS col1 FROM tab0
----
153
163
81

query I rowsort
SELECT 59 + + col0 AS col2 FROM tab2 AS cor0
----
105
123
134

query I rowsort
SELECT col1 * - 71 FROM tab0 AS cor0
----
-1491
-5751
-71

query I rowsort
SELECT DISTINCT + col2 / - - ( + + 58 ) + col0 FROM tab1 WHERE NOT NULL BETWEEN - col0 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT DISTINCT - COUNT( * ) * - 65 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
585

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - COUNT ( * ) * - 65 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
585

query I rowsort
SELECT + + 81 * - col0 + 57 AS col1 FROM tab1 AS cor0
----
-4074
-6828
-7314

query II rowsort
SELECT DISTINCT + col2 * + 30, 70 * - col2 AS col2 FROM tab2 AS cor0
----
1200
-2800
1740
-4060
690
-1610

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT DISTINCT - - col1 DIV - col2 + - ( + 28 ) col2 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7219
SELECT DISTINCT - - col1 / - col2 + - ( + 28 ) col2 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT ALL + + 47 * - 71 - + 6 FROM tab1 AS cor0
----
-3343
-3343
-3343

query II rowsort
SELECT + 79 * + col2, col1 AS col0 FROM tab0 AS cor0
----
3713
81
7821
1
790
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT ALL 46 DIV 17 AS col2 FROM tab0 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL 46 / 17 AS col2 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT ALL - + CAST( CAST( 17 AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL - + CAST ( CAST ( 17 AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab2 WHERE NOT + 34 + + + 90 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 52 * - 7 FROM tab0
----
-364
-364
-364

query I rowsort
SELECT DISTINCT + 39 * - - col2 FROM tab2
----
1560
2262
897

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col0 * - 99 - + - 97
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 50 * + - col2 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT DISTINCT - + COUNT( DISTINCT - 68 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT - + COUNT ( DISTINCT - 68 ) FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 25 * col1, col2 col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * + col0 + + col2 AS col0 FROM tab0
----
752
880
9702

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7234
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - col2 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7234
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - col2 / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 + + 78 AS col0 FROM tab1 AS cor0
----
-18
10
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 - + 83 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7238
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-7238
SELECT DISTINCT + MIN ( + - CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT - 75 * - col2 AS col0 FROM tab2
----
1725
3000
4350

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 48 * - 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL 49 * + COUNT( * ) + + - 27 - - COUNT( * ) AS col2 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL 49 * + COUNT ( * ) + + - 27 - - COUNT ( * ) AS col2 FROM tab1
----
123

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7243
SELECT SUM( ALL + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT SUM ( ALL + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 95 + col0 AS col1 FROM tab2
----
141
159
170

query I rowsort
SELECT - col0 - - + 66 FROM tab1
----
-19
-25
15

query I rowsort
SELECT DISTINCT col2 - - - col2 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7247
SELECT ALL + - CAST( NULL AS DECIMAL ) - 15 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + - CAST ( NULL AS REAL ) - 15 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7248
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 IS NOT NULL OR - CAST( NULL AS SIGNED ) + + col1 NOT IN ( + col0 * - col0, 67, - - 11 * 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7248
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 IS NOT NULL OR - CAST ( NULL AS INTEGER ) + + col1 NOT IN ( + col0 * - col0, 67, - - 11 * 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 + - col2 + col2 - - - col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT + - 82 + COUNT( 11 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-82

skipif mysql # not compatible
query I rowsort label-7250
SELECT + - 82 + COUNT ( 11 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT DISTINCT - + CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT - + CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT ALL col0 * ( 89 ) * - + col0, 71 AS col1 FROM tab0 AS cor0
----
-20025
71
-673641
71
-837401
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7253
SELECT DISTINCT + + col2 DIV - 71 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT + + col2 / - 71 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, + 67 col1 FROM tab0 AS cor0
----
-10
67
-47
67
-99
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT 76 * - ( SUM( ALL - col2 ) ) + - COUNT( * ) + + 74 AS col1 FROM tab0 cor0
----
11927

skipif mysql # not compatible
query I rowsort label-7255
SELECT 76 * - ( SUM ( ALL - col2 ) ) + - COUNT ( * ) + + 74 AS col1 FROM tab0 cor0
----
11927

query II rowsort
SELECT DISTINCT + + 23, - col2 AS col0 FROM tab0 AS cor0
----
23
-10
23
-47
23
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7257
SELECT + CAST( NULL AS SIGNED ) AS col1, - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-7257
SELECT + CAST ( NULL AS INTEGER ) AS col1, - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL + + ( + MIN( - + 64 ) ) AS col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + + ( + MIN ( - + 64 ) ) AS col1 FROM tab0 AS cor0
----
-64

query II rowsort
SELECT - + 56 AS col0, 32 FROM tab1 AS cor0
----
-56
32
-56
32
-56
32

query II rowsort
SELECT - - col0 AS col0, col1 * + - 53 FROM tab2 AS cor0
----
46
-2703
64
-4081
75
-3551

query I rowsort
SELECT DISTINCT ( + 42 ) AS col2 FROM tab2
----
42

query I rowsort
SELECT ALL - - ( - col2 ) - + - 95 + + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 94 col2 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7264
SELECT DISTINCT col2 * - + 64, + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-3776
NULL
-4352
NULL
-6144
NULL

skipif mysql # not compatible
query II rowsort label-7264
SELECT DISTINCT col2 * - + 64, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-3776
NULL
-4352
NULL
-6144
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT + 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT SUM( DISTINCT - 83 ) AS col0 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-7266
SELECT SUM ( DISTINCT - 83 ) AS col0 FROM tab1
----
-83

query I rowsort
SELECT - - AVG ( + - col0 ) AS col2 FROM tab2 WHERE NOT - 71 + + 61 - - col0 * - 27 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL SUM( ALL + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL SUM ( ALL + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col2 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT ALL CAST( 97 AS SIGNED ) * CAST( NULL AS SIGNED ) + - col1 * col1 + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL CAST ( 97 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - col1 * col1 + - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * col2 + + col1 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( col2 ) + - 5 + + - 57 FROM tab0 AS cor0
----
-109
-161
-72

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 27 + + 19
----

query I rowsort
SELECT + col2 FROM tab2 WHERE - + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT ALL COUNT( * ) + - 97 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL COUNT ( * ) + - 97 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT - COUNT( * ), + SUM( + 92 ) AS col0 FROM tab2 AS cor0
----
-3
276

skipif mysql # not compatible
query II rowsort label-7276
SELECT - COUNT ( * ), + SUM ( + 92 ) AS col0 FROM tab2 AS cor0
----
-3
276

query II rowsort
SELECT + col2 AS col0, 1 * col2 + 23 FROM tab1 AS cor0
----
59
82
68
91
96
119

onlyif mysql # DIV for integer division: 
query II rowsort label-7278
SELECT + - col0 - - ( - + 11 ) AS col2, - col0 DIV col0 FROM tab0 cor0
----
-108
-1
-26
-1
-98
-1

skipif mysql # not compatible
query II rowsort label-7278
SELECT + - col0 - - ( - + 11 ) AS col2, - col0 / col0 FROM tab0 cor0
----
-108
-1
-26
-1
-98
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + - 37 < - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE 2 BETWEEN 24 + - col0 AND 24 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ALL - MAX( + + col1 ) + COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL - MAX ( + + col1 ) + COUNT ( * ) FROM tab0
----
-78

query I rowsort
SELECT ALL ( + - col1 ) + - col2 AS col2 FROM tab1
----
-110
-115
-64

query II rowsort
SELECT DISTINCT - col0 + col2 * col0 * + + col1, + col0 * + + 22 AS col2 FROM tab2
----
197056
1408
291375
1650
53912
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + - MAX( ALL - 67 ) AS col2 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7285
SELECT + - MAX ( ALL - 67 ) AS col2 FROM tab1 AS cor0
----
67

query I rowsort
SELECT 4 * 81 FROM tab0
----
324
324
324

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab0 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT - MIN( - + 2 ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7288
SELECT - MIN ( - + 2 ) AS col0 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7289
SELECT ALL + - ( COUNT( * ) ) * CAST( - SUM( - + col1 ) AS SIGNED ) + + SUM( ALL + col1 ) col1 FROM tab0 cor0
----
-206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7289
SELECT ALL + - ( COUNT ( * ) ) * CAST ( - SUM ( - + col1 ) AS INTEGER ) + + SUM ( ALL + col1 ) col1 FROM tab0 cor0
----
-206

query I rowsort
SELECT ALL col0 + 60 FROM tab1 AS cor0 WHERE NULL <= + col0
----

query II rowsort
SELECT ALL - col1 AS col0, col1 FROM tab0 AS cor0 WHERE + ( + 62 ) > - + col1
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT DISTINCT COUNT( * ) col2, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7292
SELECT DISTINCT COUNT ( * ) col2, + COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT - 56 + - + col1 FROM tab0
----
-137
-57
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL ( 99 ) * COUNT( * ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL ( 99 ) * COUNT ( * ) AS col2 FROM tab0
----
297

query I rowsort
SELECT ALL col2 * 35 AS col1 FROM tab2
----
1400
2030
805

query I rowsort
SELECT + 11 AS col2 FROM tab2 WHERE NOT - col2 >= NULL
----

query II rowsort
SELECT col2 AS col2, - col0 * + col1 * col0 FROM tab2
----
23
-107916
40
-315392
58
-376875

query II rowsort
SELECT ALL + 5 AS col1, col1 + col1 FROM tab0
----
5
162
5
2
5
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT col2 * + CAST( 97 AS SIGNED ) AS col1 FROM tab1
----
5723
6596
9312

skipif mysql # not compatible
query I rowsort label-7299
SELECT col2 * + CAST ( 97 AS INTEGER ) AS col1 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT 87 * + col0 AS col1 FROM tab2
----
4002
5568
6525

query II rowsort
SELECT ALL + col2 AS col2, col2 * col1 AS col1 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT + 38 * + COUNT( * ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7302
SELECT + 38 * + COUNT ( * ) FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT SUM( ALL 67 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
603

skipif mysql # not compatible
query I rowsort label-7303
SELECT SUM ( ALL 67 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
603

query I rowsort
SELECT - 11 + col2 AS col1 FROM tab2
----
12
29
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col2 col2, + col1 AS col0 FROM tab0
----
198
1
20
21
94
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT DISTINCT + 34 + + 80 * + - col0 DIV + - col0 AS col1 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT + 34 + + 80 * + - col0 / + - col0 AS col1 FROM tab0 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT - 95 - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - 95 - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT ALL - col1 - 36 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT + ( col2 ) * - 27 FROM tab2 AS cor0 WHERE ( 79 < NULL )
----

query I rowsort
SELECT DISTINCT + 11 - col1 FROM tab1 AS cor0
----
-3
-36
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7312
SELECT DISTINCT - col1 DIV col1 * + col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT - col1 / col1 * + col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT - + col2 * col0 + col0 AS col1, + col1 - - col2 FROM tab1 cor0
----
-4845
110
-4930
64
-6097
115

query I rowsort
SELECT ALL - - 91 AS col2 FROM tab0 cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 64 = - col0 * + 7 + - - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + 3 * - col2 FROM tab2 AS cor0
----
13050
3174
7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 71 - 41 AS col0 FROM tab1
----
30
30
30

query II rowsort
SELECT DISTINCT - 48, col0 AS col0 FROM tab0 WHERE NOT - 85 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT + COUNT( * ) - COUNT( DISTINCT - 34 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + COUNT ( * ) - COUNT ( DISTINCT - 34 ) FROM tab2
----
2

query I rowsort
SELECT 12 - + + 90 FROM tab0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL - COUNT( * ) * 35 * - - ( - MAX( + col0 ) ) FROM tab1 AS cor0
----
9555

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL - COUNT ( * ) * 35 * - - ( - MAX ( + col0 ) ) FROM tab1 AS cor0
----
9555

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL + - COUNT( * ) * MAX( + ( - col1 ) ) * MAX( - + 74 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + - COUNT ( * ) * MAX ( + ( - col1 ) ) * MAX ( - + 74 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-225

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 NOT IN ( col0, - 84, - col1 * - col2, + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 73 ) col2 FROM tab0 WHERE NOT + 17 * + 94 IS NULL
----
73
73
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 97 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 94 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 94 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - SUM( - ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7330
SELECT - SUM ( - ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT + - ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 / - col2 NOT IN ( - col1, - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7331
SELECT + - ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 / - col2 NOT IN ( - col1, - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT DISTINCT + COUNT( * ) * - - 71 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT + COUNT ( * ) * - - 71 FROM tab1 AS cor0
----
213

query I rowsort
SELECT ALL 74 + + 37 AS col1 FROM tab0
----
111
111
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL - - CAST( NULL AS SIGNED ) * + + col2 + + 56 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - - CAST ( NULL AS INTEGER ) * + + col2 + + 56 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 1 + + 3 AS col1 FROM tab2
----
4
4
4

query II rowsort
SELECT col1 * + col2 + + 19 AS col1, col1 FROM tab2
----
1192
51
3099
77
3905
67

query I rowsort
SELECT ALL - 53 * 43 FROM tab1
----
-2279
-2279
-2279

query I rowsort
SELECT ALL 95 FROM tab0 WHERE NOT - 59 IS NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT + COUNT( * ) + 29 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7339
SELECT + COUNT ( * ) + 29 FROM tab2 AS cor0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7340
SELECT SUM( col0 ) DIV - - CAST( - MAX( + col2 ) AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7340
SELECT SUM ( col0 ) / - - CAST ( - MAX ( + col2 ) AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( - col2 ) ) = NULL
----

query II rowsort
SELECT DISTINCT + col2, - col2 AS col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7343
SELECT - 24 AS col2, CAST( NULL AS SIGNED ) * - MIN( ALL 45 ) AS col1 FROM tab2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-7343
SELECT - 24 AS col2, CAST ( NULL AS INTEGER ) * - MIN ( ALL 45 ) AS col1 FROM tab2
----
-24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT 12 * - 41 + + 18 + - ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-483

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT 12 * - 41 + + 18 + - ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-483

query I rowsort
SELECT DISTINCT + col0 + - 26 FROM tab2
----
20
38
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT + col0 * + 53 AS col2 FROM tab2 WHERE NULL <> - - 86 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7346
SELECT + col0 * + 53 AS col2 FROM tab2 WHERE NULL <> - - 86 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT 54 - 98 DIV - col1 FROM tab1 AS cor0
----
56
61
73

skipif mysql # not compatible
query I rowsort label-7347
SELECT 54 - 98 / - col1 FROM tab1 AS cor0
----
56
61
73

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + COUNT( * ) + + COUNT( * ) + + + 39 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7349
SELECT + COUNT ( * ) + + COUNT ( * ) + + + 39 FROM tab1 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-7350
SELECT DISTINCT + col2 DIV col2, col0 FROM tab2 AS cor0
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-7350
SELECT DISTINCT + col2 / col2, col0 FROM tab2 AS cor0
----
1
46
1
64
1
75

query II rowsort
SELECT + - col2, col1 AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - col0 AND 78 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( col2 ) col0 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT - 55 + 11 AS col2 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT ALL col0 DIV - + 23 AS col2 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL col0 / - + 23 AS col2 FROM tab1 AS cor0
----
-2
-3
-3

query I rowsort
SELECT ( - col2 ) + - col0 * + 80 FROM tab0 AS cor0
----
-1247
-6970
-7859

query I rowsort
SELECT - col2 + + col2 + + col1 FROM tab0 WHERE + ( + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7358
SELECT ( col0 ) + 0 AS col1, + col2 DIV - col2 AS col1 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-7358
SELECT ( col0 ) + 0 AS col1, + col2 / - col2 AS col1 FROM tab1
----
51
-1
85
-1
91
-1

query I rowsort
SELECT - + 12 / + + 87 AS col0 FROM tab1 WHERE NOT ( NOT ( NOT + + col1 + ( + - 2 ) BETWEEN - + ( + 35 ) AND col0 * + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL + + COUNT( * ) AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT COUNT( ALL + - 76 ) AS col2, 68 AS col0 FROM tab1
----
3
68

skipif mysql # not compatible
query II rowsort label-7361
SELECT COUNT ( ALL + - 76 ) AS col2, 68 AS col0 FROM tab1
----
3
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 1 col2 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT + ( 27 ), + col0 FROM tab1 AS cor0
----
27
51
27
85
27
91

query I rowsort
SELECT DISTINCT - col1 * + + col2 + - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1358
-300
-3243

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col0 * - col1 + - - col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + + MIN( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT + + MIN ( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 - + 17 col1 FROM tab2 AS cor0
----
124
125
80

query I rowsort
SELECT + 46 + + 19 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - - 7 + - 40 AS col1 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col0 + col1 IS NULL
----

query I rowsort
SELECT ALL - 72 AS col2 FROM tab0 AS cor0 WHERE - col2 * - 72 BETWEEN - 57 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-7373
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-15

query I rowsort
SELECT DISTINCT 32 + 50 + + - 96 AS col1 FROM tab1
----
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + col1 = + 98 * - col0 / + col1 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7376
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) * + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col2 * + col2 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * + - col0 col1 FROM tab1 AS cor0
----
-357
-595
-637

query I rowsort
SELECT DISTINCT + col1 * ( + col2 ) + + + col1 + - 24 AS col0 FROM tab1 AS cor0
----
1334
276
3219

query I rowsort
SELECT ALL + - 5 + + col2 + + col2 * - + col2 FROM tab0 AS cor0
----
-2167
-95
-9707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + ( col2 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + ( col2 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 7 + - 13 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

query II rowsort
SELECT 74 * + 47 * col1 + + col2 + + 43 AS col2, col1 * + col2 AS col2 FROM tab0
----
281808
3807
3620
99
73091
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT SUM( DISTINCT - col0 ) + - COUNT( ALL col1 ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-7384
SELECT SUM ( DISTINCT - col0 ) + - COUNT ( ALL col1 ) FROM tab1
----
-230

query II rowsort
SELECT - col2 * ( - - 99 ) + + col1 * 40 AS col1, + 16 FROM tab2
----
-237
16
-3062
16
-880
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT + + CAST( - 41 AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif mysql # not compatible
query I rowsort label-7386
SELECT + + CAST ( - 41 AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT - MAX( - col1 ) - + + 2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - MAX ( - col1 ) - + + 2 FROM tab0
----
-1

query I rowsort
SELECT - 92 FROM tab2, tab0 cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT 50 + - + col1 AS col1 FROM tab0
----
-31
29
49

query I rowsort
SELECT DISTINCT col0 - - + ( - col2 ) * col1 FROM tab2 cor0
----
-1127
-3016
-3811

query I rowsort
SELECT DISTINCT + + col1 + + 67 + + ( + 93 ) * col1 AS col1 FROM tab2 AS cor0
----
4861
6365
7305

query I rowsort
SELECT ALL - 86 - 11 AS col1 FROM tab1 AS cor0
----
-97
-97
-97

query II rowsort
SELECT + col0 * col0 + 24 AS col0, - col2 FROM tab0 AS cor0
----
249
-47
7593
-10
9433
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT DISTINCT SUM( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT SUM ( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col0 / + + 49 <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * 49 FROM tab0
----
-2303
-4851
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL 36 * - SUM( 90 ) AS col0 FROM tab0
----
-9720

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL 36 * - SUM ( 90 ) AS col0 FROM tab0
----
-9720

query I rowsort
SELECT 71 * col0 AS col0 FROM tab2
----
3266
4544
5325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - 65 AS col0 FROM tab0
----
1
-65
21
-65
81
-65

query I rowsort
SELECT - 4 * col2 * col2 FROM tab1
----
-13924
-18496
-36864

query I rowsort
SELECT - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7403
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * + + 18, + col2 + - - 3, - - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ), col2 - col1 )
----

skipif mysql # not compatible
query I rowsort label-7403
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * + + 18, + col2 + - - 3, - - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ), col2 - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 22 * - col2 + + 7 FROM tab2 AS cor0
----
-1269
-499
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 col0 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7407
SELECT + + SUM( ALL - 61 ), + 98 AS col1 FROM tab0 AS cor0
----
-183
98

skipif mysql # not compatible
query II rowsort label-7407
SELECT + + SUM ( ALL - 61 ), + 98 AS col1 FROM tab0 AS cor0
----
-183
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT + 19 / col0 + + 96 + CAST( NULL AS SIGNED ) + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT + 19 / col0 + + 96 + CAST ( NULL AS INTEGER ) + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 * - col1 * + - col1 AS col1 FROM tab0 AS cor0
----
32193
478953
73

onlyif mysql # DIV for integer division: 
query II rowsort label-7410
SELECT + - 8 DIV - - ( - 89 ), + col0 AS col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-7410
SELECT + - 8 / - - ( - 89 ), + col0 AS col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT - MAX( col2 ) + - 85 AS col0 FROM tab0 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT - MAX ( col2 ) + - 85 AS col0 FROM tab0 AS cor0
----
-184

query I rowsort
SELECT DISTINCT 0 FROM tab0 WHERE ( NULL ) BETWEEN - col0 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + col0 col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 50 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - - col2 + + col0 * - col2 * - ( - col0 ) * col1 * + col0 + col2
----

query II rowsort
SELECT - col2 AS col0, + 12 * - 55 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + 8 - + col2 FROM tab0
----
329
693
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 <> NULL
----

query I rowsort
SELECT - col1 * - - col1 * - col2 + + - col2 FROM tab2 cor0
----
237120
260304
59800

query I rowsort
SELECT + 93 * col2 AS col2 FROM tab0 AS cor0
----
4371
9207
930

query I rowsort
SELECT + 85 + 78 FROM tab1
----
163
163
163

query I rowsort
SELECT - 86 + col1 AS col0 FROM tab0 WHERE col0 < ( col1 )
----
-5

query I rowsort
SELECT ALL - 48 AS col1 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE 35 NOT BETWEEN + col0 AND + 76 - + 14 * ( + col2 )
----
1
21
81

query I rowsort
SELECT ALL + 12 + col0 AS col0 FROM tab1
----
103
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL - MAX( + col2 ) * + 83 FROM tab0
----
-8217

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - MAX ( + col2 ) * + 83 FROM tab0
----
-8217

query I rowsort
SELECT 34 + 56 FROM tab0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT 3 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT 3 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7429
SELECT COUNT( * ) DIV + 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7429
SELECT COUNT ( * ) / + 78 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7430
SELECT ( COUNT( * ) ) DIV + COUNT( + 62 * - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7430
SELECT ( COUNT ( * ) ) / + COUNT ( + 62 * - col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7431
SELECT ( COUNT( * ) ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7431
SELECT ( COUNT ( * ) ) / COUNT ( * ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 + col0 col0 FROM tab2
----
100
118
129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + ( col0 ) - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 27 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT + ( MAX( ALL - col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT + ( MAX ( ALL - col0 ) ) FROM tab1
----
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT - 98 NOT BETWEEN ( + 47 ) AND - col1 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + MAX( ALL col1 ) + + COUNT( * ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-7439
SELECT + MAX ( ALL col1 ) + + COUNT ( * ) AS col0 FROM tab2
----
80

query I rowsort
SELECT + col0 + - 32 * col2 AS col1 FROM tab0
----
-1489
-233
-3071

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT DISTINCT - MAX( DISTINCT + 70 ) col0 FROM tab1
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7441
SELECT DISTINCT - MAX ( DISTINCT + 70 ) col0 FROM tab1
----
-70

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT 24 BETWEEN + col2 - - 3 AND NULL
----
23
40
58

query I rowsort
SELECT ALL - col0 * col1 FROM tab0 WHERE NOT col0 * 28 > ( + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + 92 + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-7444
SELECT + 92 + COUNT ( * ) FROM tab0
----
95

query I rowsort
SELECT ( 95 ) FROM tab1
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT 86 + 86 * - ( - COUNT( * ) ) FROM tab0
----
344

skipif mysql # not compatible
query I rowsort label-7446
SELECT 86 + 86 * - ( - COUNT ( * ) ) FROM tab0
----
344

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7447
SELECT * FROM tab1 WHERE NOT - CAST( - 76 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7447
SELECT * FROM tab1 WHERE NOT - CAST ( - 76 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 71 + - col0 FROM tab0
----
-16
-26
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT DISTINCT - col0 DIV - col2 - col0 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT - col0 / - col2 - col0 FROM tab2
----
-44
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT DISTINCT + COUNT( * ) * - ( 97 ) - - 13 * + 47 AS col0 FROM tab1 WHERE col2 IN ( - col1 * ( - 50 ) )
----
611

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT + COUNT ( * ) * - ( 97 ) - - 13 * + 47 AS col0 FROM tab1 WHERE col2 IN ( - col1 * ( - 50 ) )
----
611

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT - MIN( ALL ( ( CAST( NULL AS SIGNED ) ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT - MIN ( ALL ( ( CAST ( NULL AS INTEGER ) ) ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 82 BETWEEN col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT 81 DIV col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7454
SELECT 81 / col2 FROM tab1 cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT ALL 85 DIV - col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL 85 / - col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT 73 * + col2 FROM tab2 AS cor0
----
1679
2920
4234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 7 + AVG ( 15 ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT SUM( + 25 ) FROM tab2 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT SUM ( + 25 ) FROM tab2 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT col2 + + ( col1 ) FROM tab0
----
100
128
31

query I rowsort
SELECT - col0 + + ( - 26 + col0 ) * - col1 AS col2 FROM tab2
----
-1066
-2990
-3358

query I rowsort
SELECT + 25 + - col0 FROM tab0 cor0
----
-62
-72
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7463
SELECT - CAST( NULL AS DECIMAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT - CAST ( NULL AS REAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 6 AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7465
SELECT DISTINCT + - MAX( CAST( + 24 AS SIGNED ) ) col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7465
SELECT DISTINCT + - MAX ( CAST ( + 24 AS INTEGER ) ) col2 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT - col1 + - 40 AS col0 FROM tab0 AS cor0
----
-121
-41
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT - col0 * + CAST( NULL AS SIGNED ) * 11 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT - col0 * + CAST ( NULL AS INTEGER ) * 11 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 19 + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE 24 <= - ( + col0 ) + + 16
----

query I rowsort
SELECT ( + 71 ) AS col2 FROM tab1
----
71
71
71

query I rowsort
SELECT ALL - col1 * ( 26 ) + col0 AS col1 FROM tab0
----
-2091
-459
71

query I rowsort
SELECT ALL col2 + - col0 + col0 AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE col1 + + ( - 28 - - 19 ) * 42 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE col1 + + ( - 28 - - 19 ) * 42 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT SUM( - + 43 ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-7474
SELECT SUM ( - + 43 ) FROM tab1
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT col1 * + 74 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT col1 * + 74 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 78 + - col1 AS col2 FROM tab1
----
31
64
73

query I rowsort
SELECT DISTINCT + 15 * ( - 97 ) AS col1 FROM tab1 WHERE ( 3 ) * - 30 > col1 * - 94
----
-1455

query I rowsort
SELECT DISTINCT col1 - + 41 AS col0 FROM tab1 AS cor0
----
-27
-36
6

query I rowsort
SELECT ALL - ( 42 ) FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + ( ( + 92 ) ) + col0 * col1 FROM tab1 AS cor0
----
4369
517
806

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT - 63 + COUNT( * ) AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7481
SELECT - 63 + COUNT ( * ) AS col2 FROM tab1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7482
SELECT * FROM tab1 WHERE NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7482
SELECT * FROM tab1 WHERE NULL <= CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IN ( - 50 )
----

query I rowsort
SELECT DISTINCT - col2 + col2 + - col2 + col2 FROM tab1
----
0

query I rowsort
SELECT + 25 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7486
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col2 + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7486
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col2 + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 53 ) NOT IN ( col1 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT - MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT - MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----
NULL

query II rowsort
SELECT ALL - - col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT col0, - 2 + 39 * col2 FROM tab2 AS cor0
----
46
895
64
1558
75
2260

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT + COUNT( col0 ) * + 91 col0 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7491
SELECT + COUNT ( col0 ) * + 91 col0 FROM tab1 AS cor0
----
273

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7492
SELECT DISTINCT - col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT - col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 * 10 AS col1 FROM tab0
----
100
470
990

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT DISTINCT + 70 DIV 6 AS col1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT + 70 / 6 AS col1 FROM tab1
----
11

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col0 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT + CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7496
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + col0 = - 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 93 FROM tab0 AS cor0 WHERE NOT ( + + 67 ) > - 11 + 82
----
93
93
93

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT col2 + + ( + + col2 ) FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT DISTINCT - 68 * + + col0 - - 35 AS col2 FROM tab0 AS cor0
----
-5881
-6561
-985

query I rowsort
SELECT DISTINCT - col2 * - - col0 + + col0 * ( 16 ) FROM tab2 AS cor0
----
-1536
-3150
-322

query I rowsort
SELECT + - 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query II rowsort
SELECT + ( - 53 ) + col1 AS col1, - col1 * + 28 AS col1 FROM tab1 AS cor0
----
-39
-392
-48
-140
-6
-1316

query I rowsort
SELECT - col0 + - 33 FROM tab0 AS cor0
----
-120
-130
-48

query I rowsort
SELECT DISTINCT - - col0 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT - 29 * + - 9 + + col1 + col0 FROM tab2 AS cor0
----
358
402
403

query I rowsort
SELECT - col0 + - col0 * - 57 FROM tab0 cor0
----
4872
5432
840

query I rowsort
SELECT ALL - - col1 * + - 13 FROM tab0 AS cor0
----
-1053
-13
-273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 1 + col0 + col0 AS col1 FROM tab2
----
127
149
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 8 + 55 AS col0, ( + 21 ) * - + 46 col2 FROM tab1
----
47
-966
47
-966
47
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col2 * col2 * 25 * 61 col0 FROM tab2
----
51
-806725
67
-5130100
77
-2440000

query III rowsort
SELECT ALL * FROM tab1 WHERE - 35 NOT IN ( + 95 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 81 + + - col1, col0 AS col0 FROM tab0
----
0
15
60
87
80
97

query I rowsort
SELECT DISTINCT - col1 + 74 AS col1 FROM tab2
----
-3
23
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT - MAX( ALL + + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT - MAX ( ALL + + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - col2 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ( + + ( + col0 ) ) FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col0 FROM tab1 AS cor0
----
27
27
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 34 >= ( - - col2 + - col0 * - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * 54 col0, - 19 FROM tab1 AS cor0
----
2538
-19
270
-19
756
-19

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7525
SELECT ALL + + CAST( + SUM( - - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + + CAST ( + SUM ( - - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - + 52 FROM tab0 cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT - SUM( - + 20 ) FROM tab1 WHERE NOT 38 IN ( - 62 )
----
60

skipif mysql # not compatible
query I rowsort label-7527
SELECT - SUM ( - + 20 ) FROM tab1 WHERE NOT 38 IN ( - 62 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT ALL CAST( - col2 AS SIGNED ) * + col2 * col1 AS col0 FROM tab2
----
-123200
-225388
-26979

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL CAST ( - col2 AS INTEGER ) * + col2 * col1 AS col0 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7529
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 + + 96 - col0 * col2 * + - col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7529
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 + + 96 - col0 * col2 * + - col0 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 20 FROM tab1 WHERE NOT NULL IS NOT NULL
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - col0 col2 FROM tab0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT ALL + 54 + - col2 FROM tab0
----
-45
44
7

query I rowsort
SELECT - 79 * - col2 FROM tab0
----
3713
7821
790

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT ( 79 ) / - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT ( 79 ) / - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 / + + 79 + + ( - + 3 ) + - - col2 + - col2 + col1 * - 6 / col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 20 col1, + col0 AS col0 FROM tab0 cor0 WHERE - 15 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7538
SELECT 85 DIV - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + - col1 IN ( + col1 )
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7538
SELECT 85 / - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + - col1 IN ( + col1 )
----
-1
-2
-3

query I rowsort
SELECT ALL - col0 * + 11 + 70 - col1 * + 53 AS col0 FROM tab2 AS cor0
----
-3139
-4306
-4715

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + - col1 * - + col1 * + 60 * + col2 / col0 * + col2 NOT BETWEEN ( + col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - 97 + - 26 AS col1 FROM tab2
----
-146
-163
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL 52 * + - COUNT( * ) * + - COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
4221

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL 52 * + - COUNT ( * ) * + - COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
4221

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT - COUNT( * ) + 91 - 83 AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7544
SELECT - COUNT ( * ) + 91 - 83 AS col1 FROM tab2 AS cor0
----
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT + 77 - col0 + - 57 FROM tab2 AS cor0 WHERE + 81 >= + col1 + col2 * - col1
----
-26
-44
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL - MIN( + col2 ) - ( MAX( col1 ) ) FROM tab1 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - MIN ( + col2 ) - ( MAX ( col1 ) ) FROM tab1 AS cor0
----
-106

query II rowsort
SELECT ALL - + col1 * + col0 * col2 * col0 AS col2, - col2 FROM tab0 cor0
----
-1589490
-10
-856575
-47
-931491
-99

query II rowsort
SELECT DISTINCT col1 * + col0 AS col0, + 43 AS col0 FROM tab0 cor0
----
1215
43
1827
43
97
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT DISTINCT - 96 DIV + 89 + col1 * + col1 FROM tab2 AS cor0
----
2600
4488
5928

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT - 96 / + 89 + col1 * + col1 FROM tab2 AS cor0
----
2600
4488
5928

query I rowsort
SELECT ALL + - 54 * - 7 * - col0 + - - 47 * + col2 * + 43 FROM tab2 AS cor0
----
29095
56648
88868

query I rowsort
SELECT col2 - - col1 * + col1 * - 89 * + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
21107280
23172276
5324270

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT ALL + CAST( NULL AS SIGNED ) + + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL + CAST ( NULL AS INTEGER ) + + + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7555
SELECT SUM( - 66 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT SUM ( - 66 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7556
SELECT + 90 * + - 55 - col0 + + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT + 90 * + - 55 - col0 + + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT - COUNT( * ) - - + 53 AS col2 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-7557
SELECT - COUNT ( * ) - - + 53 AS col2 FROM tab0
----
50

query II rowsort
SELECT col2 - + 38 + + + 27 AS col2, - 92 * - col2 + + col1 AS col2 FROM tab1
----
48
5433
57
6303
85
8846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 94 AS col1 FROM tab0 AS cor0
----
1
94
21
94
81
94

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( - col1 + + col2 + col0 ) NOT BETWEEN NULL AND 95
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT DISTINCT 99 DIV + 67 col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7561
SELECT DISTINCT 99 / + 67 col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT - + 61 DIV + col1 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-7562
SELECT - + 61 / + col1 FROM tab1 AS cor0
----
-1
-12
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + 82
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT 95 * 29 DIV + MIN( ALL - col1 ) FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7564
SELECT 95 * 29 / + MIN ( ALL - col1 ) FROM tab2 AS cor0
----
-35

query II rowsort
SELECT - col2, 11 AS col0 FROM tab0 AS cor0
----
-10
11
-47
11
-99
11

query II rowsort
SELECT 58, + col0 FROM tab1 AS cor0
----
58
51
58
85
58
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT - col2 DIV + 91 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7567
SELECT - col2 / + 91 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col2, + col0 AS col0 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL + + 28 FROM tab2 WHERE NULL IS NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT ALL - COUNT( * ) + - COUNT( * ) * COUNT( * ) AS col2, + SUM( + 53 ) * + COUNT( * ) FROM tab2
----
-12
477

skipif mysql # not compatible
query II rowsort label-7570
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) AS col2, + SUM ( + 53 ) * + COUNT ( * ) FROM tab2
----
-12
477

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 >= ( col2 ) * - 70 + - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - + col0 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT 87 + + + col2 FROM tab0 AS cor0
----
134
186
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL + MIN( + - 38 ) col0 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7574
SELECT ALL + MIN ( + - 38 ) col0 FROM tab2 AS cor0
----
-38

query II rowsort
SELECT ALL + col1 + + + col2, - col0 AS col0 FROM tab1 AS cor0
----
110
-51
115
-91
64
-85

query I rowsort
SELECT ALL + + col2 + - - col2 + - col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - col1 + + - col0 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * col0 * - col0 = NULL
----

query I rowsort
SELECT 10 - + col0 AS col1 FROM tab2 AS cor0
----
-36
-54
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT - COUNT( * ) + + 0 * - 90 AS col0, 62 FROM tab2 cor0
----
-3
62

skipif mysql # not compatible
query II rowsort label-7581
SELECT - COUNT ( * ) + + 0 * - 90 AS col0, 62 FROM tab2 cor0
----
-3
62

query II rowsort
SELECT ALL - + col2 AS col1, 13 FROM tab1 AS cor0
----
-59
13
-68
13
-96
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT + col1 + col1 DIV + - col2 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-7583
SELECT + col1 + col1 / + - col2 FROM tab0 AS cor0
----
1
19
80

query I rowsort
SELECT - 50 + - col0 * - 5 AS col0 FROM tab2 AS cor0
----
180
270
325

query I rowsort
SELECT ALL - 99 - - 36 FROM tab1 AS cor0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 25 col1, 15 - 8 FROM tab0 AS cor0
----
-25
7

query I rowsort
SELECT ALL - 28 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7588
SELECT DISTINCT - 86 * 86 DIV + ( - col0 ) AS col1, 21 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
115
NULL
160
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-7588
SELECT DISTINCT - 86 * 86 / + ( - col0 ) AS col1, 21 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
115
NULL
160
NULL
98
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 70 BETWEEN NULL AND col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col0 * 85 FROM tab2
----
3910
5440
6375

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT ALL + + col2 DIV + 57 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL + + col2 / + 57 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT + - COUNT( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7592
SELECT + - COUNT ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 58 * 85 AS col1 FROM tab2
----
4930
4930
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT + MIN( ALL col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7594
SELECT + MIN ( ALL col0 ) AS col1 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7596
SELECT DISTINCT - COUNT( * ) DIV - - 59 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT - COUNT ( * ) / - - 59 FROM tab0
----
0

query I rowsort
SELECT 0 * - + ( col1 ) * - 15 - + + 26 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT ALL - 74 DIV col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - 74 / col1 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - + col0 * col1 + - - 25
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * col2 + + col0 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7602
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col0 * 76 col1 FROM tab2 AS cor0
----
-3445
-4787
-5633

query I rowsort
SELECT 64 FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NULL
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col1, + col1 AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT + COUNT( * ) * + 64 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + COUNT ( * ) * + 64 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT ALL col0 + + col1 DIV - - col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL col0 + + col1 / - - col2 FROM tab2
----
48
65
76

query II rowsort
SELECT col0, 38 AS col1 FROM tab2
----
46
38
64
38
75
38

query I rowsort
SELECT + AVG ( ALL ( - + 58 ) ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1
----
NULL

query I rowsort
SELECT ( 4 ) FROM tab0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + SUM( DISTINCT + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7612
SELECT + SUM ( DISTINCT + col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN col2 + + col2 AND ( + 23 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 / + col2 IS NULL
----

query I rowsort
SELECT + 40 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + - ( - - col1 ) col0 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT - - COUNT( * ) * MIN( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT - - COUNT ( * ) * MIN ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT DISTINCT 36 - + COUNT( * ) * - 41 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT 36 - + COUNT ( * ) * - 41 FROM tab0 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE col1 / - CAST( + ( col1 ) AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE col1 / - CAST ( + ( col1 ) AS INTEGER ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT DISTINCT - - col2 * - CAST( NULL AS SIGNED ) * col1 - + col2 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7620
SELECT DISTINCT - - col2 * - CAST ( NULL AS INTEGER ) * col1 - + col2 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 92 - 91 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7622
SELECT 88 DIV + + col0 - + col2 + + - 47 FROM tab2 cor0
----
-104
-69
-86

skipif mysql # not compatible
query I rowsort label-7622
SELECT 88 / + + col0 - + col2 + + - 47 FROM tab2 cor0
----
-104
-69
-86

query I rowsort
SELECT ALL + + 97 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT - - col1 - - col1 * + ( + col2 ) AS col1 FROM tab0 cor0
----
100
231
3888

query III rowsort
SELECT * FROM tab2 WHERE + + 29 + ( col1 ) * ( col2 ) * + ( - ( - col2 ) ) > + col2 + + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) FROM tab0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + col0, + 46 * + - ( + 34 ) FROM tab0
----
15
-1564
87
-1564
97
-1564

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col0 * + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 25 * - col1 * + 52 AS col1 FROM tab1
----
-18200
-61100
-6500

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT + 54 IS NOT NULL OR NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT ALL col2 DIV - - 81 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL col2 / - - 81 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT + 71 DIV + COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7633
SELECT + 71 / + COUNT ( * ) AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT ALL - 99 / - col1 * + 64 / + - CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - 99 / - col1 * + 64 / + - CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7635
SELECT + col1 AS col0, col2 + - col1 DIV 11 FROM tab2 AS cor0
----
51
19
67
52
77
33

skipif mysql # not compatible
query II rowsort label-7635
SELECT + col1 AS col0, col2 + - col1 / 11 FROM tab2 AS cor0
----
51
19
67
52
77
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 <= + 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + COUNT( - 83 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7637
SELECT + COUNT ( - 83 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7638
SELECT - ( ( + + 60 ) ) AS col2, COUNT( * ) DIV - 13 - 81 AS col2 FROM tab1 AS cor0
----
-60
-81

skipif mysql # not compatible
query II rowsort label-7638
SELECT - ( ( + + 60 ) ) AS col2, COUNT ( * ) / - 13 - 81 AS col2 FROM tab1 AS cor0
----
-60
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + 15 col1 FROM tab0
----
-1485
-150
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT ALL col0 * 59 DIV 19 FROM tab2
----
142
198
232

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL col0 * 59 / 19 FROM tab2
----
142
198
232

query I rowsort
SELECT ALL + 3 + + - 72 FROM tab2
----
-69
-69
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 41 <> - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + 51 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - MIN( ALL + + 82 ) AS col1 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7645
SELECT - MIN ( ALL + + 82 ) AS col1 FROM tab0 AS cor0
----
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> 72
----

query I rowsort
SELECT DISTINCT - 25 + - col1 AS col2 FROM tab1
----
-30
-39
-72

query I rowsort
SELECT DISTINCT 47 FROM tab1 WHERE + col2 NOT IN ( + col1, - ( + 60 ) )
----
47

query I rowsort
SELECT ALL + 92 + col0 AS col2 FROM tab0
----
107
179
189

query I rowsort
SELECT - 65 AS col2 FROM tab2 WHERE - - ( col1 ) IS NOT NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT + + 42 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7651
SELECT + + 42 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT - 15 DIV + + 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7653
SELECT - 15 / + + 61 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL MAX( ALL - 82 ) col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7654
SELECT ALL MAX ( ALL - 82 ) col0 FROM tab0 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * - col1 * - col0 AND + ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT DISTINCT + col2 - + col1 + col1 DIV - col0 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT + col2 - + col1 + col1 / - col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE 60 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT + 66, col1 FROM tab1 cor0
----
66
14
66
47
66
5

query I rowsort
SELECT col0 * + col1 * - col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query II rowsort
SELECT + - col2 AS col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7661
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-7661
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 > - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 10 < NULL
----

query II rowsort
SELECT col0, col0 * + col2 * + col2 FROM tab1 AS cor0
----
51
470016
85
295885
91
420784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col0 FROM tab1 WHERE NOT + col2 - - col0 BETWEEN NULL AND - - col1
----
-51
-85
-91

query II rowsort
SELECT ALL col0 * + col0 AS col1, 65 FROM tab2
----
2116
65
4096
65
5625
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 + - 29 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 2 * - 6 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT DISTINCT - CAST( + - 72 AS SIGNED ) * - col0 AS col0 FROM tab1
----
-3672
-6120
-6552

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT - CAST ( + - 72 AS INTEGER ) * - col0 AS col0 FROM tab1
----
-3672
-6120
-6552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col0 * + col1 * col0 FROM tab0
----
15
18225
87
158949
97
9409

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 IN ( col0, 9, + + col1 )
----

query I rowsort
SELECT 50 + + 36 FROM tab0
----
86
86
86

query II rowsort
SELECT ALL - - 63 AS col2, col2 AS col0 FROM tab1 AS cor0
----
63
59
63
68
63
96

query I rowsort
SELECT ALL - col0 * + col0 * - 65 AS col1 FROM tab0 AS cor0
----
14625
491985
611585

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL - + ( - MIN( col0 ) ) FROM tab0 cor0 WHERE NOT - 14 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - + ( - MIN ( col0 ) ) FROM tab0 cor0 WHERE NOT - 14 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + + 1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + - 24 * - col0 FROM tab0 AS cor0
----
2067
2327
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE - col2 / - + col1 * + + 39 * - col1 * - - col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE - col1 / - col1 + + 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 WHERE ( NULL ) IN ( col0 * - col0, - col2, - col1 / + col2 + - ( + col1 ), + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT - ( - + ( + COUNT( * ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7682
SELECT - ( - + ( + COUNT ( * ) ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ALL - 58 + + COUNT( * ) AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - 58 + + COUNT ( * ) AS col2 FROM tab0
----
-55

query I rowsort
SELECT - + 5 AS col1 FROM tab2 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT SUM( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE + col2 + ( + col1 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT SUM ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE + col2 + ( + col1 ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + SUM( ALL - + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + SUM ( ALL - + col0 ) FROM tab2 cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col0 col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT - COUNT( col2 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7688
SELECT - COUNT ( col2 ) col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE + - ( + col1 ) * - col0 * - col0 - - col0 * - ( + 78 ) + + col0 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7690
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) <= - CAST( 85 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7690
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) <= - CAST ( 85 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + SUM( - - 63 ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7691
SELECT + SUM ( - - 63 ) FROM tab0 AS cor0
----
189

query I rowsort
SELECT ALL - 23 AS col1 FROM tab2 cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT ALL + - CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + - CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT 87 AS col1 FROM tab2 cor0
----
87
87
87

query II rowsort
SELECT DISTINCT 41, + col1 + col2 AS col1 FROM tab0 AS cor0
----
41
100
41
128
41
31

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7698
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT + 64 * + + COUNT( * ) AS col2 FROM tab0 cor0
----
192

skipif mysql # not compatible
query I rowsort label-7699
SELECT + 64 * + + COUNT ( * ) AS col2 FROM tab0 cor0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7700
SELECT CAST( COUNT( * ) AS SIGNED ), 80 * ( + - 22 ) AS col0 FROM tab2
----
3
-1760

skipif mysql # not compatible
query II rowsort label-7700
SELECT CAST ( COUNT ( * ) AS INTEGER ), 80 * ( + - 22 ) AS col0 FROM tab2
----
3
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL COUNT( - - 4 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL COUNT ( - - 4 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 34 IS NOT NULL
----

query II rowsort
SELECT col0 AS col0, + col2 + + - col1 FROM tab1
----
51
82
85
54
91
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL + ( - COUNT( * ) ) - 10 FROM tab0 WHERE NOT NULL = col0 * col2
----
-10

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + ( - COUNT ( * ) ) - 10 FROM tab0 WHERE NOT NULL = col0 * col2
----
-10

query II rowsort
SELECT DISTINCT col2 AS col0, - col2 - col2 + col1 FROM tab2
----
23
5
40
-3
58
-49

query II rowsort
SELECT DISTINCT + - col0 AS col2, - ( + - ( + - col2 ) ) * col1 FROM tab1 AS cor0
----
-51
-1344
-85
-295
-91
-3196

query I rowsort
SELECT ALL + 65 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT DISTINCT + 19 + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
100
20
40

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT + 19 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
100
20
40

query I rowsort
SELECT ALL 53 * - col1 - + col0 AS col0 FROM tab0 WHERE ( NOT col1 * + - col2 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT DISTINCT col2 + col2 * + col1 * + CAST( + - ( col2 ) AS SIGNED ) FROM tab2
----
-123160
-225330
-26956

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT col2 + col2 * + col1 * + CAST ( + - ( col2 ) AS INTEGER ) FROM tab2
----
-123160
-225330
-26956

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT - COUNT( - - 83 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT - COUNT ( - - 83 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col2 FROM tab0
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col1 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT 62 * ( - - col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 42 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT - MIN( + col1 ) * COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT - MIN ( + col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ( + SUM( + - ( + - col2 ) ) ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7716
SELECT ( + SUM ( + - ( + - col2 ) ) ) FROM tab1 cor0
----
223

query I rowsort
SELECT - + 18 AS col2 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - + col2 * - col2 + + 54 AS col1 FROM tab1 AS cor0
----
3535
4678
9270

query I rowsort
SELECT ALL - 70 * - col2 FROM tab2 cor0
----
1610
2800
4060

query I rowsort
SELECT col0 * - + col1 + 26 AS col0 FROM tab0
----
-1189
-1801
-71

query I rowsort
SELECT - col0 * - 85 + + - col2 FROM tab1
----
4239
7166
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - - col0 + - col1 col1, - col2 + + 24 + - col0 FROM tab0
----
144
-38
7548
-73
9408
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 + col1 * - col2 / - 65 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 + col1 * - col2 / - 65 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 IN ( - - 2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 * - col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 > + col0
----

query I rowsort
SELECT col0 + - - col2 - col2 AS col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT + CAST( NULL AS SIGNED ) + - 24 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT + CAST ( NULL AS INTEGER ) + - 24 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7729
SELECT DISTINCT 4 - + ( - + 14 ) DIV + SUM( col0 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT 4 - + ( - + 14 ) / + SUM ( col0 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL - COUNT( * ) * + - MIN( DISTINCT col0 ) - + 6 col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7730
SELECT ALL - COUNT ( * ) * + - MIN ( DISTINCT col0 ) - + 6 col0 FROM tab0 AS cor0
----
39

query II rowsort
SELECT + - col1 AS col1, - 20 FROM tab1 cor0
----
-14
-20
-47
-20
-5
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7732
SELECT col0 AS col1, CAST( NULL AS SIGNED ) - - col0 - + - col2 * - 24 col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7732
SELECT col0 AS col1, CAST ( NULL AS INTEGER ) - - col0 - + - col2 * - 24 col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col1 ) - - - col0 col2, + col1 col2 FROM tab1 cor0
----
-37
14
-44
47
-80
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT + COUNT( * ) * 72 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7734
SELECT + COUNT ( * ) * 72 FROM tab2
----
216

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 90 col1 FROM tab1 AS cor0
----
-5310
-6120
-8640

query I rowsort
SELECT DISTINCT - + 42 AS col0 FROM tab1 AS cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT MAX( + ( - 38 ) ) AS col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT MAX ( + ( - 38 ) ) AS col2 FROM tab1 AS cor0
----
-38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - 66 AND 82
----

query I rowsort
SELECT ALL - 7 FROM tab0, tab1 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 42 * + col1 FROM tab0
----
3402
42
882

query I rowsort
SELECT ALL + 0 FROM tab0 WHERE NOT NULL >= col1
----

query I rowsort
SELECT + 58 * + 65 AS col2 FROM tab1 cor0
----
3770
3770
3770

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - - col0 >= + + col2
----

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
73

query I rowsort
SELECT DISTINCT 9 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT 22 + ( - COUNT( * ) ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7749
SELECT 22 + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT + + 71 * + col2 AS col1 FROM tab0 AS cor0 WHERE - col0 - 99 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - ( - + 51 ) ) FROM tab0 cor0
----
51

query I rowsort
SELECT ALL 27 + - ( - col1 ) * + + col0 AS col2 FROM tab0 AS cor0
----
124
1242
1854

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT - COUNT( DISTINCT + 20 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7753
SELECT - COUNT ( DISTINCT + 20 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7754
SELECT ALL CAST( + + 33 AS DECIMAL ) + col1 * + col0 + col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL CAST ( + + 33 AS REAL ) + col1 * + col0 + col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ( - COUNT( * ) ) * 78 AS col1 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-7755
SELECT ( - COUNT ( * ) ) * 78 AS col1 FROM tab2
----
-234

query I rowsort
SELECT 88 * - + col1 AS col2 FROM tab1
----
-1232
-4136
-440

query II rowsort
SELECT - 1 - + + 3, col2 AS col1 FROM tab1
----
-4
59
-4
68
-4
96

query I rowsort
SELECT DISTINCT + 87 + - ( - + col2 ) AS col0 FROM tab1
----
146
155
183

onlyif mysql # aggregate syntax: 
query II rowsort label-7759
SELECT ALL COUNT( ALL - col2 ) * + 54 + + 22 * - + 52 * + COUNT( - col1 ) + 94 AS col1, COUNT( * ) * 37 AS col0 FROM tab2
----
-3176
111

skipif mysql # not compatible
query II rowsort label-7759
SELECT ALL COUNT ( ALL - col2 ) * + 54 + + 22 * - + 52 * + COUNT ( - col1 ) + 94 AS col1, COUNT ( * ) * 37 AS col0 FROM tab2
----
-3176
111

query I rowsort
SELECT DISTINCT 12 FROM tab2 WHERE ( + - col0 ) IS NOT NULL
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT - 13 - - COUNT( ALL + - CAST( NULL AS SIGNED ) ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-7761
SELECT - 13 - - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT DISTINCT + col1 / - CAST( NULL AS SIGNED ) * col2 - - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT + col1 / - CAST ( NULL AS INTEGER ) * col2 - - + col2 FROM tab1
----
NULL

query II rowsort
SELECT 44 + - col2, col1 * - col2 AS col2 FROM tab1 AS cor0
----
-15
-295
-24
-3196
-52
-1344

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL - COUNT( * ) - - 50 FROM tab0 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - COUNT ( * ) - - 50 FROM tab0 cor0
----
47

query II rowsort
SELECT 12 AS col0, - col0 FROM tab2
----
12
-46
12
-64
12
-75

query II rowsort
SELECT ALL 17 AS col1, col0 * ( + col2 ) FROM tab2
----
17
1058
17
2560
17
4350

query I rowsort
SELECT DISTINCT col2 * - ( + 47 ) FROM tab1
----
-2773
-3196
-4512

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7769
SELECT ALL + col1, col2 * - + CAST( 97 AS SIGNED ) FROM tab1 cor0
----
14
-9312
47
-6596
5
-5723

skipif mysql # not compatible
query II rowsort label-7769
SELECT ALL + col1, col2 * - + CAST ( 97 AS INTEGER ) FROM tab1 cor0
----
14
-9312
47
-6596
5
-5723

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT ALL + AVG ( + 89 ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + AVG ( + 89 ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + ( 96 ) AS col2 FROM tab2 AS cor0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + 14 - + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - 44 ) AS col0 FROM tab1
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT DISTINCT - col2 DIV - - 80 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT - col2 / - - 80 AS col1 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab2 WHERE NOT 28 * + + 24 BETWEEN NULL AND - - col2
----
51
67
77

query I rowsort
SELECT ALL + 54 + + col2 FROM tab0
----
101
153
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT COUNT( DISTINCT 25 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7778
SELECT COUNT ( DISTINCT 25 ) FROM tab1
----
1

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL <> - 10 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT DISTINCT + ( + MIN( - + col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7781
SELECT DISTINCT + ( + MIN ( - + col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + 57 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + 57 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT COUNT( * ) + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7783
SELECT COUNT ( * ) + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
31

query II rowsort
SELECT DISTINCT - + col0, col1 - - + 58 AS col2 FROM tab0 WHERE NULL > + col2 * + col0
----

query I rowsort
SELECT 75 + - + 64 AS col1 FROM tab1 WHERE - 73 * - col2 IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT SUM( - + col1 ) - + COUNT( 93 ) + + SUM( ALL - col2 ) AS col0 FROM tab0 cor0
----
-262

skipif mysql # not compatible
query I rowsort label-7786
SELECT SUM ( - + col1 ) - + COUNT ( 93 ) + + SUM ( ALL - col2 ) AS col0 FROM tab0 cor0
----
-262

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - 75 - 64 - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - 75 - 64 - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL - - MIN( + 68 ) AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - - MIN ( + 68 ) AS col2 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT + col0 DIV + - 90 + - 84 + + col1 * + + col0 + - 68 AS col0 FROM tab2 AS cor0
----
2194
4776
4873

skipif mysql # not compatible
query I rowsort label-7789
SELECT + col0 / + - 90 + - 84 + + col1 * + + col0 + - 68 AS col0 FROM tab2 AS cor0
----
2194
4776
4873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7790
SELECT - MIN( - 58 ) + - - COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7790
SELECT - MIN ( - 58 ) + - - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT + - col1 * + + 99 + - ( - col2 ) * col2 AS col0 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT ( + + col1 ) + - + col0 - + - 36 DIV + + 64 + - 22 * + col1 FROM tab0
----
-118
-1716
-528

skipif mysql # not compatible
query I rowsort label-7792
SELECT ( + + col1 ) + - + col0 - + - 36 / + + 64 + - 22 * + col1 FROM tab0
----
-118
-1716
-528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7793
SELECT DISTINCT + COUNT( * ) + + COUNT( - col1 ) DIV - 4 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT + COUNT ( * ) + + COUNT ( - col1 ) / - 4 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE + ( - col1 ) * + + 57 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + - MIN( ALL + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7796
SELECT + - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT 90 * COUNT( * ) * + - COUNT( ALL 33 ) AS col2 FROM tab1 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-7797
SELECT 90 * COUNT ( * ) * + - COUNT ( ALL 33 ) AS col2 FROM tab1 AS cor0
----
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col2 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL - COUNT( * ) + 15 col1 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7799
SELECT ALL - COUNT ( * ) + 15 col1 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - ( 57 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 72, col1 AS col0 FROM tab2
----
72
51
72
67
72
77

query I rowsort
SELECT ALL - + 23 FROM tab0 WHERE + 32 * 80 < col1
----

query II rowsort
SELECT ALL col0 * + - col2 + + 86 * - + col2 AS col2, col2 FROM tab0
----
-1730
10
-18117
99
-4747
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7805
SELECT ALL - col2 AS col0, - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7805
SELECT ALL - col2 AS col0, - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT DISTINCT col1, - col1 AS col2 FROM tab1 cor0
----
14
-14
47
-47
5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * 79 col1 FROM tab2 AS cor0
----
-3713
-3713
-3713

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + 40 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT - COUNT( * ) + - + 74 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT - COUNT ( * ) + - + 74 FROM tab1
----
-77

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
30

query I rowsort
SELECT - 13 FROM tab1 AS cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE - col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - col1 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * 36, + 1 col2 FROM tab0 AS cor0
----
-2916
1
-36
1
-756
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 50 + - col0 ) IS NULL OR col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL + MIN( ALL col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL + MIN ( ALL col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT ALL + col2 + + 73 AS col1 FROM tab1
----
132
141
169

query I rowsort
SELECT DISTINCT col1 + - + col2 * + + 46 AS col0 FROM tab1
----
-2709
-3081
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL 93 * - COUNT( * ) FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL 93 * - COUNT ( * ) FROM tab1
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT ALL 20 + + COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL 20 + + COUNT ( * ) FROM tab0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7822
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL AND NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7822
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL AND NOT - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN + col0 / + - col1 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 95 * col2 FROM tab1 AS cor0
----
5605
6460
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT 23 * 27 DIV - + col2 FROM tab0
----
-13
-6
-62

skipif mysql # not compatible
query I rowsort label-7826
SELECT 23 * 27 / - + col2 FROM tab0
----
-13
-6
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7827
SELECT + COUNT( * ) DIV + 47 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7827
SELECT + COUNT ( * ) / + 47 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT 72 * + COUNT( * ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7828
SELECT 72 * + COUNT ( * ) FROM tab2
----
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 61 col0, - col2 FROM tab1 AS cor0
----
61
-59
61
-68
61
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT ALL - col0 DIV + col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - col0 / + col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL MAX( - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL MAX ( - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL + SUM( - + 93 ) FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + SUM ( - + 93 ) FROM tab0 AS cor0
----
-279

query I rowsort
SELECT ( + col0 ) * + col0 AS col2 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7834
SELECT ALL col0 * col1 DIV CAST( - 61 AS SIGNED ) FROM tab2 AS cor0
----
-38
-80
-82

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL col0 * col1 / CAST ( - 61 AS INTEGER ) FROM tab2 AS cor0
----
-38
-80
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7835
SELECT + ( + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT + ( + + CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( + 56 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col2 FROM tab0, tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT + 39 * COUNT( * ) * + - 31 * + - 80 AS col2 FROM tab2 cor0
----
290160

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + 39 * COUNT ( * ) * + - 31 * + - 80 AS col2 FROM tab2 cor0
----
290160

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT SUM( + col2 ) * + - 95 col0 FROM tab2 cor0
----
-11495

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7839
SELECT DISTINCT SUM ( + col2 ) * + - 95 col0 FROM tab2 cor0
----
-11495

query I rowsort
SELECT + + col0 + 3 FROM tab0 AS cor0
----
100
18
90

query I rowsort
SELECT ALL + - col0 * + - col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 IN ( - col1 - - + col1 + col2, - col0, + col0 - col1 * - - 85, col1 + - col2, + 92, + - col2, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7843
SELECT ALL - col2 DIV - - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - col2 / - - col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + - col0 + - + col0 - - - col1 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-2717
-7400
-8510

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT ALL - col1 - + - 99 FROM tab0 AS cor0
----
18
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL - COUNT( ALL + 33 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL - COUNT ( ALL + 33 ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT + COUNT( ALL - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + COUNT ( ALL - + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + + SUM( + col1 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7850
SELECT + + SUM ( + col1 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT + MAX( ALL - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT + MAX ( ALL - - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col2 + ( - col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7853
SELECT * FROM tab0 WHERE NOT - col2 / - - col0 * - ( + + 1 ) * - - 28 + - CAST( + - ( + 93 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7853
SELECT * FROM tab0 WHERE NOT - col2 / - - col0 * - ( + + 1 ) * - - 28 + - CAST ( + - ( + 93 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT MIN( DISTINCT - 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT MIN ( DISTINCT - 10 ) FROM tab0
----
-10

query I rowsort
SELECT - col1 * - col1 * 43 AS col0 FROM tab2
----
111843
193027
254947

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col2 * - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-9

query I rowsort
SELECT 92 * - 38 FROM tab1
----
-3496
-3496
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL + SUM( + - 41 ) * + - ( - 75 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-27675

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + SUM ( + - 41 ) * + - ( - 75 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-27675

query I rowsort
SELECT + ( 61 ) AS col0 FROM tab0
----
61
61
61

query I rowsort
SELECT ALL + 62 * + col1 FROM tab1 AS cor0
----
2914
310
868

query II rowsort
SELECT ALL - + col2, + col0 AS col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT - + col2 + 73 FROM tab2 cor0
----
15
33
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 1 IS NULL
----

query I rowsort
SELECT DISTINCT 96 * + col1 * col0 + + col1 AS col1 FROM tab1 WHERE NULL <= - - 84 / + col0 + 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT COUNT( - 36 ) FROM tab1 WHERE - + 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT COUNT ( - 36 ) FROM tab1 WHERE - + 32 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + MAX( DISTINCT col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7868
SELECT + MAX ( DISTINCT col0 ) col2 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7869
SELECT ALL * FROM tab0 WHERE col2 + + CAST( - - col2 AS SIGNED ) - - col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-7869
SELECT ALL * FROM tab0 WHERE col2 + + CAST ( - - col2 AS INTEGER ) - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL 21 + - + COUNT( * ) + - COUNT( * ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7870
SELECT ALL 21 + - + COUNT ( * ) + - COUNT ( * ) col0 FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 1 + - 38 <= col2 * 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7872
SELECT DISTINCT + 62 DIV - - col1, ( + - col0 ) * - + 63 AS col0 FROM tab0 AS cor0
----
0
945
2
5481
62
6111

skipif mysql # not compatible
query II rowsort label-7872
SELECT DISTINCT + 62 / - - col1, ( + - col0 ) * - + 63 AS col0 FROM tab0 AS cor0
----
0
945
2
5481
62
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL - SUM( DISTINCT 5 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-14

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL - SUM ( DISTINCT 5 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-14

query I rowsort
SELECT DISTINCT - col0 + - col2 + + 29 * + 83 AS col2 FROM tab1
----
2248
2260
2263

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( + col2 ) <> - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - col0 ) * col0 - + col0 AS col2 FROM tab2 cor0
----
-2162
-4160
-5700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + col1 ) <> - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 * + col1 - + col2 * 20 + col2 + + col0 + + + col2 col1 FROM tab1 AS cor0
----
-37102
-38091
-390340

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT - 17 + - - ( MIN( - col0 ) ) FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT - 17 + - - ( MIN ( - col0 ) ) FROM tab2 cor0
----
-92

query I rowsort
SELECT DISTINCT - col1 - - + 11 AS col0 FROM tab1 AS cor0
----
-3
-36
6

query I rowsort
SELECT DISTINCT ( - 58 ) AS col0 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT ALL - + 26 - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 94 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT col1 + col0 + col2 AS col0 FROM tab0 WHERE NOT CAST( + - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7883
SELECT col1 + col0 + col2 AS col0 FROM tab0 WHERE NOT CAST ( + - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT COUNT( * ) * - - COUNT( * ) * - COUNT( - col2 ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-7884
SELECT COUNT ( * ) * - - COUNT ( * ) * - COUNT ( - col2 ) AS col0 FROM tab1
----
-27

query I rowsort
SELECT + ( - col1 ) * - - col2 * - col1 AS col1 FROM tab2
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7886
SELECT - 67 DIV + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7886
SELECT - 67 / + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 50 col1 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT - col0 * - 44 * + col2 AS col2 FROM tab0
----
31020
38280
422532

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 NOT BETWEEN - 4 AND - - col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL NOT IN ( + col2 + + col1 * - col1 + + col2, + 88 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7892
SELECT DISTINCT col0 + ( col2 - + ( + col0 ) DIV 4 ) FROM tab1
----
123
135
137

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT col0 + ( col2 - + ( + col0 ) / 4 ) FROM tab1
----
123
135
137

query I rowsort
SELECT ( - 65 ) AS col2 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT ( - 32 ) AS col1 FROM tab1
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL MIN( ALL - col1 ) + 72 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL MIN ( ALL - col1 ) + 72 FROM tab2
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * 80 + + col1 NOT IN ( - ( - col1 ) * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 - - 15 * + 17 ) NOT IN ( + 42 * col0 )
----

query I rowsort
SELECT + col1 * - col2 + ( col0 + - col0 * - 49 ) FROM tab2
----
-136
1127
120

query I rowsort
SELECT DISTINCT + 67 FROM tab2 WHERE NOT 95 * col1 IS NULL
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col2 FROM tab1 WHERE ( - col2 ) IN ( - 73 )
----

query I rowsort
SELECT ALL + col2 + + ( + 73 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
120
172
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT + CAST( NULL AS SIGNED ) * + col0 + 31 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT + CAST ( NULL AS INTEGER ) * + col0 + 31 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT ALL COUNT( - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL COUNT ( - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + col1 * + col2 + 64 FROM tab0
----
163
274
3871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT - col0 FROM tab1 WHERE NOT CAST( 17 AS SIGNED ) * - col1 >= + col2
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7906
SELECT - col0 FROM tab1 WHERE NOT CAST ( 17 AS INTEGER ) * - col1 >= + col2
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 + 82 FROM tab1 WHERE NOT NULL < ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN + col1 - ( + col0 ) AND col2 / col0 - + col0
----

query I rowsort
SELECT col0 * + 47 AS col1 FROM tab0
----
4089
4559
705

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 + - 73 ) >= - col0
----
15
81
47

query I rowsort
SELECT ALL + 82 FROM tab0 WHERE - col1 NOT BETWEEN col2 AND col0 * col1 + 25
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + MAX( ALL + col2 ) * - 6 AS col0 FROM tab0
----
-594

skipif mysql # not compatible
query I rowsort label-7912
SELECT + MAX ( ALL + col2 ) * - 6 AS col0 FROM tab0
----
-594

query I rowsort
SELECT - 96 + + col1 AS col2 FROM tab1
----
-49
-82
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT COUNT( * ) * COUNT( ALL + ( + col2 ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL + ( + col2 ) ) FROM tab2
----
9

query I rowsort
SELECT col2 * - 80 FROM tab1
----
-4720
-5440
-7680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7916
SELECT ALL CAST( - ( + 16 ) AS DECIMAL ) + MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL CAST ( - ( + 16 ) AS REAL ) + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + ( - col0 ) + ( 73 ) AS col0 FROM tab1
----
-12
-18
22

query I rowsort
SELECT + 69 * + col2 FROM tab0
----
3243
6831
690

query I rowsort
SELECT ALL - col1 * - 87 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 30 + ( - col1 ) * + 13 FROM tab1
----
-152
-35
-581

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL - 99 + + MAX( col1 + 64 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - 99 + + MAX ( col1 + 64 ) FROM tab1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7923
SELECT ALL + COUNT( * ) DIV 98 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL + COUNT ( * ) / 98 AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2 + 14 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + COUNT( - 22 ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7925
SELECT + COUNT ( - 22 ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT DISTINCT + col2 + col2 DIV 72 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT + col2 + col2 / 72 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT 77 + - COUNT( * ) AS col1 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT 77 + - COUNT ( * ) AS col1 FROM tab2
----
74

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT MIN( col0 ) col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7929
SELECT MIN ( col0 ) col1 FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT 6 DIV 47 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT 6 / 47 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT ALL - col1 * col1 AS col1 FROM tab2 cor0 WHERE NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL - col1 * col1 AS col1 FROM tab2 cor0 WHERE NULL = + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 7 ) col2 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT + - 16 AS col1 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + + MIN( + col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7934
SELECT + + MIN ( + col0 ) col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 <= col1
----
1

skipif mysql # not compatible
query I rowsort label-7935
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 <= col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT COUNT( * ) * 64 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-7936
SELECT COUNT ( * ) * 64 FROM tab1
----
192

query I rowsort
SELECT DISTINCT col2 * + col0 * 34 AS col2 FROM tab0
----
23970
29580
326502

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - + ( col0 ) * 59 AS col1 FROM tab2
----
-151040
-256650
-62422

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT COUNT( * ) * - + 62 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-7940
SELECT COUNT ( * ) * - + 62 FROM tab2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT 11 * MIN( ALL 75 ) FROM tab1
----
825

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT 11 * MIN ( ALL 75 ) FROM tab1
----
825

query I rowsort
SELECT col2 + col1 / + 10 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - + ( - + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - + ( - + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 4 FROM tab1 AS cor0 WHERE NOT ( col1 - 75 * - col2 ) IN ( - ( + col1 ) )
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT + col1 DIV 54 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7945
SELECT + col1 / 54 AS col2 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 11 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 11 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT - ( - COUNT( * ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7947
SELECT - ( - COUNT ( * ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - col1 + + + 2 + col0 + 19 AS col2 FROM tab2
----
16
29
8

query I rowsort
SELECT + 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL >= ( + 89 + - col2 )
----

query I rowsort
SELECT ALL - ( + col2 ) + - + 46 * col0 FROM tab0
----
-4012
-4561
-737

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE - col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT DISTINCT + CAST( - + 63 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT + CAST ( - + 63 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT + - 22 + + 44 - + 15 * + col2 * + col1 FROM tab0 AS cor0
----
-1463
-3128
-57083

query I rowsort
SELECT + 7 + + col0 FROM tab0 AS cor0
----
104
22
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT CAST( - 73 AS SIGNED ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT CAST ( - 73 AS INTEGER ) FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + ( - - 61 ) AS col2 FROM tab1 AS cor0
----
61

query II rowsort
SELECT DISTINCT + col0, + 6 AS col1 FROM tab0 AS cor0
----
15
6
87
6
97
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT DISTINCT + - ( + COUNT( * ) ) * + 2 + MIN( - col0 ) col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7959
SELECT DISTINCT + - ( + COUNT ( * ) ) * + 2 + MIN ( - col0 ) col0 FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1 col1 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7960
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1 col1 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + 55 + col1 FROM tab0
----
136
56
76

query I rowsort
SELECT col1 FROM tab2 WHERE ( + col1 ) NOT BETWEEN NULL AND ( col0 )
----
51
77

query I rowsort
SELECT - col0 * col0 * + - 98 FROM tab2
----
207368
401408
551250

query I rowsort
SELECT + + col0 - - - col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NULL NOT IN ( + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT DISTINCT col2 + + + col0 - col0 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT col2 + + + col0 - col0 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT ALL ( CAST( - col1 AS SIGNED ) ) * + col2 + - col2 FROM tab1
----
-1440
-3264
-354

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL ( CAST ( - col1 AS INTEGER ) ) * + col2 + - col2 FROM tab1
----
-1440
-3264
-354

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7968
SELECT ALL + col2 + + CAST( NULL AS SIGNED ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7968
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 3 + col0 col2, 31 FROM tab2 cor0
----
43
31
61
31
72
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 / + - col2 + col1 IS NULL
----

query I rowsort
SELECT + 39 + - + col2 FROM tab0 AS cor0
----
-60
-8
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7972
SELECT * FROM tab1 AS cor0 WHERE NULL >= col1 * - CAST( col0 AS SIGNED ) / col2 + - col1
----

skipif mysql # not compatible
query III rowsort label-7972
SELECT * FROM tab1 AS cor0 WHERE NULL >= col1 * - CAST ( col0 AS INTEGER ) / col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT 31 + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT 31 + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT + COUNT( + + 34 ) + - 69 AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT + COUNT ( + + 34 ) + - 69 AS col0 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + 39 + - 45 * + 43 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-1896

query I rowsort
SELECT DISTINCT 34 * - - col1 FROM tab2
----
1734
2278
2618

onlyif mysql # DIV for integer division: 
query II rowsort label-7977
SELECT ALL - col2 AS col1, + 36 + - col0 DIV col0 AS col1 FROM tab0 cor0
----
-10
35
-47
35
-99
35

skipif mysql # not compatible
query II rowsort label-7977
SELECT ALL - col2 AS col1, + 36 + - col0 / col0 AS col1 FROM tab0 cor0
----
-10
35
-47
35
-99
35

query I rowsort
SELECT ALL + 98 FROM tab2 AS cor0 WHERE - col1 IN ( 4 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT - 24 AS col2, COUNT( * ) FROM tab2 AS cor0
----
-24
3

skipif mysql # not compatible
query II rowsort label-7979
SELECT - 24 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-24
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - 19 * - COUNT( * ) AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-7980
SELECT - 19 * - COUNT ( * ) AS col0 FROM tab1
----
57

query I rowsort
SELECT col1 * + col2 * - col1 * - ( - col0 ) AS col1 FROM tab1
----
-125375
-13669292
-959616

query I rowsort
SELECT - 9 FROM tab2 WHERE NOT - ( col2 ) * + + 73 BETWEEN + + col2 AND col0
----
-9
-9
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7983
SELECT DISTINCT + MIN( ALL 28 ) DIV 20 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + MIN ( ALL 28 ) / 20 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE NOT 70 * + col1 * - 55 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT CAST( NULL AS SIGNED ) * 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT CAST ( NULL AS INTEGER ) * 15 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 89 * - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 28 FROM tab2 AS cor0
----
1428
1876
2156

query III rowsort
SELECT - 26, col2, + col0 FROM tab1 AS cor0
----
9 values hashing to d55e6c15324fb10e8932f05d63c475ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - 60 col2, + col1 AS col0 FROM tab1
----
-9
14
25
5
31
47

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT ALL - col1 + + + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - col1 + + + col2 / + col1 AS col2 FROM tab0 AS cor0
----
-21
-81
98

query I rowsort
SELECT - 76 + + - col1 * + 47 FROM tab1 AS cor0
----
-2285
-311
-734

query I rowsort
SELECT ALL 47 * + col2 + ( + 87 ) + + col0 AS col2 FROM tab1 AS cor0
----
2945
3374
4650

query I rowsort
SELECT + col2 * + + col0 * - - col1 + col0 FROM tab0 AS cor0
----
18357
57120
9700

query I rowsort
SELECT - 6 * + - col2 + - 45 FROM tab1 AS cor0
----
309
363
531

query I rowsort
SELECT - 32 + + col0 FROM tab2 AS cor0
----
14
32
43

query I rowsort
SELECT ALL + - ( col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE ( + 2 ) > ( ( + - col1 ) * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT ( ( ( 34 ) ) ) + + + 48 DIV - + col1 FROM tab0
----
-14
32
34

skipif mysql # not compatible
query I rowsort label-7999
SELECT ( ( ( 34 ) ) ) + + + 48 / - + col1 FROM tab0
----
-14
32
34

query I rowsort
SELECT DISTINCT 98 + + col1 AS col0 FROM tab2
----
149
165
175

query III rowsort
SELECT * FROM tab2 WHERE - 72 * - col1 * - - 96 > NULL
----

query I rowsort
SELECT DISTINCT 7 + + 5 AS col1 FROM tab2
----
12

query I rowsort
SELECT col0 FROM tab2 WHERE - col2 NOT IN ( col2, - 36 * col1, + + 11 * + 77 )
----
46
64
75

query I rowsort
SELECT DISTINCT - col0 + + - col1 + col1 + + col1 FROM tab0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab1 WHERE 48 + 17 + col1 - - + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT - CAST( - 15 AS SIGNED ) AS col0 FROM tab0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-8006
SELECT - CAST ( - 15 AS INTEGER ) AS col0 FROM tab0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT + + COUNT( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8007
SELECT + + COUNT ( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 53 col2 FROM tab1 AS cor0
----
-2491
-265
-742

query I rowsort
SELECT - col0 * 10 AS col1 FROM tab2 AS cor0
----
-460
-640
-750

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35

query I rowsort
SELECT ALL 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT 68 - - 9 AS col0 FROM tab2 AS cor0 WHERE + ( - col0 ) IS NULL
----

query I rowsort
SELECT + col1 * + ( - col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
-420
-6480
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + COUNT( - ( 96 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8014
SELECT + COUNT ( - ( 96 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8015
SELECT col1 DIV - 64 AS col0, - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1
-3080
-1
-3886
0
-1173

skipif mysql # not compatible
query II rowsort label-8015
SELECT col1 / - 64 AS col0, - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1
-3080
-1
-3886
0
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + - col1 * - 55 FROM tab2 AS cor0
----
2805
3685
4235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 * + col1 col2 FROM tab2
----
4845
6365
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL - 61 * + 18 * MAX( + col0 ) FROM tab1
----
-99918

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - 61 * + 18 * MAX ( + col0 ) FROM tab1
----
-99918

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + 35 * - ( + col0 ), - ( - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + 35 * - ( + col0 ), - ( - col0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT - col0 * col0 DIV col2 * - col0 AS col2 FROM tab2
----
4232
6528
7200

skipif mysql # not compatible
query I rowsort label-8021
SELECT - col0 * col0 / col2 * - col0 AS col2 FROM tab2
----
4232
6528
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 32 col2 FROM tab2
----
55
72
90

query I rowsort
SELECT ALL - ( 43 ) * - col2 AS col1 FROM tab2 AS cor0
----
1720
2494
989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL col0 * + - ( - CAST( 8 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
408
680
728

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL col0 * + - ( - CAST ( 8 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT ALL CAST( col1 AS SIGNED ) + - col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL CAST ( col1 AS INTEGER ) + - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + 56 + - - col2 FROM tab0
----
103
155
66

query I rowsort
SELECT + - 62 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT DISTINCT + col2 + + + 77 AS col1 FROM tab1 cor0
----
136
145
173

query I rowsort
SELECT ALL + col2 - - col1 + 58 AS col0 FROM tab0 AS cor0
----
158
186
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT DISTINCT col0 * - + 13 + - CAST( NULL AS SIGNED ) + 47 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT col0 * - + 13 + - CAST ( NULL AS INTEGER ) + 47 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8031
SELECT DISTINCT + - col0 DIV col2 + 34 + - + col2 * - - col1 * CAST( + col2 AS SIGNED ) - + col2 AS col0 FROM tab2 AS cor0
----
-123207
-225413
-26970

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT + - col0 / col2 + 34 + - + col2 * - - col1 * CAST ( + col2 AS INTEGER ) - + col2 AS col0 FROM tab2 AS cor0
----
-123207
-225413
-26970

query II rowsort
SELECT DISTINCT - + col1 AS col0, + 48 FROM tab2 AS cor0
----
-51
48
-67
48
-77
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT ALL + col2 + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + col2 + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT + col1 DIV + col1 col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8034
SELECT DISTINCT + col1 / + col1 col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT + MIN( col2 ) + - + 80 AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT + MIN ( col2 ) + - + 80 AS col2 FROM tab1
----
-21

query II rowsort
SELECT + col1 - - 34 AS col2, col1 FROM tab2
----
101
67
111
77
85
51

query I rowsort
SELECT ALL col0 + - + 80 - + col0 * 74 AS col2 FROM tab1
----
-3803
-6285
-6723

query I rowsort
SELECT DISTINCT - col0 * + - col0 - - - col1 FROM tab0
----
144
7548
9408

query I rowsort
SELECT + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT + + col2 * - - col1 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - col1 AND - col1 * - + col1 * + col1
----

query I rowsort
SELECT ( 87 ) * col1 + + 75 AS col2 FROM tab0
----
162
1902
7122

query II rowsort
SELECT DISTINCT + + col1 AS col2, col0 + - col1 AS col2 FROM tab1 AS cor0
----
14
37
47
44
5
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT + SUM( col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8046
SELECT col2 DIV - CAST( col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8046
SELECT col2 / - CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-99
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - col2 <= NULL ) )
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 54 AS col2, col0 * 13 FROM tab0 AS cor0
----
54
1131
54
1261
54
195

query I rowsort
SELECT ALL col2 * + + col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8051
SELECT col0 AS col0, + col0 + + CAST( - 57 AS SIGNED ) FROM tab1 AS cor0
----
51
-6
85
28
91
34

skipif mysql # not compatible
query II rowsort label-8051
SELECT col0 AS col0, + col0 + + CAST ( - 57 AS INTEGER ) FROM tab1 AS cor0
----
51
-6
85
28
91
34

query II rowsort
SELECT + col2 AS col2, + 14 AS col2 FROM tab0 AS cor0
----
10
14
47
14
99
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - + SUM( - + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8053
SELECT - + SUM ( - + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE col0 > col2 + - 18 + col1
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT - 73 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 35 BETWEEN col2 * col0 + ( - - 71 ) AND + - col0 * + + 67 * - ( + + col1 ) - - - col0 * + - ( + - 48 ) + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8057
SELECT ALL + SUM( - + col2 ) AS col0, + 72 AS col2 FROM tab0
----
-156
72

skipif mysql # not compatible
query II rowsort label-8057
SELECT ALL + SUM ( - + col2 ) AS col0, + 72 AS col2 FROM tab0
----
-156
72

query I rowsort
SELECT - ( + col0 ) + + + 5 FROM tab1
----
-46
-80
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( - col2 ) col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8060
SELECT DISTINCT ( + 16 ) + - col1 DIV col0 AS col0, 42 FROM tab2
----
15
42
16
42

skipif mysql # not compatible
query II rowsort label-8060
SELECT DISTINCT ( + 16 ) + - col1 / col0 AS col0, 42 FROM tab2
----
15
42
16
42

query I rowsort
SELECT ALL - col2 * - + 10 FROM tab1 AS cor0
----
590
680
960

query I rowsort
SELECT ALL - - 39 * - 23 AS col2 FROM tab0 AS cor0
----
-897
-897
-897

query I rowsort
SELECT DISTINCT col0 * + ( - 57 ) AS col1 FROM tab2 AS cor0
----
-2622
-3648
-4275

query II rowsort
SELECT ALL - + ( col0 ) AS col1, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 59 - - + col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT DISTINCT COUNT( * ) + CAST( - - COUNT( col1 ) AS SIGNED ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT COUNT ( * ) + CAST ( - - COUNT ( col1 ) AS INTEGER ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + - 10 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-8067
SELECT + - 10 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8068
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8068
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL + 81 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + 81 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT + COUNT( * ) + + 79 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8070
SELECT + COUNT ( * ) + + 79 FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL + COUNT( * ) + + MAX( + ( - col2 ) ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL + COUNT ( * ) + + MAX ( + ( - col2 ) ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT 88 + 80 - - col2 AS col2 FROM tab0 AS cor0
----
178
215
267

query I rowsort
SELECT + - col2 + + 87 * - + 81 AS col0 FROM tab2 AS cor0
----
-7070
-7087
-7105

query I rowsort
SELECT - 12 + + col2 AS col1 FROM tab0 AS cor0
----
-2
35
87

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND + 23 + + + 23
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 25 * - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT - - col1 + + + col0 DIV ( - + ( - col1 ) ) FROM tab1 AS cor0
----
17
22
48

skipif mysql # not compatible
query I rowsort label-8077
SELECT - - col1 + + + col0 / ( - + ( - col1 ) ) FROM tab1 AS cor0
----
17
22
48

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab1 WHERE NOT 60 * col2 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col0 + 41 AS col2 FROM tab0
----
128
138
56

query I rowsort
SELECT ALL + 44 * - + col0 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query III rowsort label-8081
SELECT DISTINCT + 89 AS col0, + MIN( + 23 ) * + COUNT( * ), 88 AS col0 FROM tab0
----
89
69
88

skipif mysql # not compatible
query III rowsort label-8081
SELECT DISTINCT + 89 AS col0, + MIN ( + 23 ) * + COUNT ( * ), 88 AS col0 FROM tab0
----
89
69
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8082
SELECT DISTINCT - 11 * CAST( NULL AS DECIMAL ) * - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT - 11 * CAST ( NULL AS REAL ) * - - col2 FROM tab2
----
NULL

query II rowsort
SELECT 30, - col1 AS col1 FROM tab0
----
30
-1
30
-21
30
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - 72
----

query I rowsort
SELECT DISTINCT + col2 * + + col0 * - col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 18 * + - 9 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT SUM( DISTINCT col0 ) + + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT + 63 ) + + 75 * - + COUNT( ( - + 22 ) ) / COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT SUM ( DISTINCT col0 ) + + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + 63 ) + + 75 * - + COUNT ( ( - + 22 ) ) / COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT - col2 + + 86 + + col2 DIV + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-25
-29
22

skipif mysql # not compatible
query I rowsort label-8088
SELECT - col2 + + 86 + + col2 / + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-25
-29
22

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT + ( + ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 54 AS col0 FROM tab1 AS cor0 WHERE + col1 <> - + col0
----
54
54
54

query I rowsort
SELECT ALL - ( - 81 ) AS col1 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8093
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - - col2 AND CAST( NULL AS SIGNED ) * + col2
----

skipif mysql # not compatible
query III rowsort label-8093
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - - col2 AND CAST ( NULL AS INTEGER ) * + col2
----

query II rowsort
SELECT + col2 AS col1, 23 + + - col1 FROM tab2
----
23
-28
40
-54
58
-44

query I rowsort
SELECT DISTINCT - 84 * + - col2 * + col1 FROM tab0
----
17640
319788
8316

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT + ( + COUNT( * ) ) + + - 45 AS col1 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT + ( + COUNT ( * ) ) + + - 45 AS col1 FROM tab1
----
-42

query I rowsort
SELECT - ( - 93 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 61 * col1 col0 FROM tab1 AS cor0
----
-2914
-310
-868

query I rowsort
SELECT ALL 99 - col1 FROM tab0 AS cor0
----
18
78
98

query I rowsort
SELECT DISTINCT + 40 - + col1 FROM tab2 cor0
----
-11
-27
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT + + 0 - + MIN( + 38 ) AS col2 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8101
SELECT + + 0 - + MIN ( + 38 ) AS col2 FROM tab0 AS cor0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT + + 30 DIV col2 - + - col0 * + - col0 AS col0 FROM tab2 cor0
----
-2115
-4096
-5625

skipif mysql # not compatible
query I rowsort label-8102
SELECT + + 30 / col2 - + - col0 * + - col0 AS col0 FROM tab2 cor0
----
-2115
-4096
-5625

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( ( - col2 ) * col0 * + 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL COUNT( * ) * 38 AS col2 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL COUNT ( * ) * 38 AS col2 FROM tab1
----
114

query I rowsort
SELECT 12 * + col1 * + col1 AS col2 FROM tab0
----
12
5292
78732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 AS col2, col2 col1 FROM tab1
----
39
59
39
68
39
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN - col2 * + 30 / - col0 - 77 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT 53 DIV + - 49 col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8109
SELECT 53 / + - 49 col2 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT ( 75 ) DIV 1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT ( 75 ) / 1 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT - col2 DIV - + col0 * - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT - col2 / - + col0 * - col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 4 * - - col0 BETWEEN 7 AND - ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + 95 * col1 * 90 FROM tab0
----
1795500
32549850
846450

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT MIN( - + 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT MIN ( - + 2 ) FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT + + ( MIN( + col2 ) ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8115
SELECT + + ( MIN ( + col2 ) ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) * col1 col1 FROM tab2 cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 AS col1, + col0 * - - col1 - - - 90 col0 FROM tab0 AS cor0
----
-1
7
-21
1737
-81
1125

query I rowsort
SELECT 67 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col2 * - col0 NOT BETWEEN - col0 - - col0 AND + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT + COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8120
SELECT + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * - - ( + - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT - 76 * - COUNT( * ) FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-8122
SELECT - 76 * - COUNT ( * ) FROM tab1 AS cor0
----
228

query II rowsort
SELECT + 26, col0 FROM tab2 cor0
----
26
46
26
64
26
75

query I rowsort
SELECT + 17 * + + col2 + - 89 AS col1 FROM tab2 AS cor0 WHERE NOT col1 / - + 21 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT SUM( - 28 ) AS col2 FROM tab1 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT SUM ( - 28 ) AS col2 FROM tab1 cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT - - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8126
SELECT - - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + + 83 FROM tab0 AS cor0 WHERE 83 <> NULL
----

query II rowsort
SELECT ALL col0 * + + 46, col0 AS col1 FROM tab0 AS cor0
----
4002
87
4462
97
690
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - 27 * + col1 FROM tab2 AS cor0
----
-121203
-160083
-70227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8131
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col2 ) + CAST( col1 AS SIGNED ) <= - - col2 * - - col2 - - col0
----

skipif mysql # not compatible
query III rowsort label-8131
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col2 ) + CAST ( col1 AS INTEGER ) <= - - col2 * - - col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT - COUNT( DISTINCT + 12 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8132
SELECT - COUNT ( DISTINCT + 12 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col0 + + + ( + 85 ) AS col2 FROM tab0 AS cor0
----
100
172
182

query I rowsort
SELECT ( - 26 ) + + col2 FROM tab2
----
-3
14
32

query II rowsort
SELECT + col2 + + - col2, + col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT DISTINCT col1 + - + col2 AS col1 FROM tab0
----
-98
11
34

query II rowsort
SELECT col1 + - col0 AS col1, - col0 * - ( col1 ) + - + 69 AS col2 FROM tab1
----
-37
645
-44
4208
-80
356

query I rowsort
SELECT ALL + 82 + - col2 AS col1 FROM tab2
----
24
42
59

query I rowsort
SELECT DISTINCT - 45 * + col2 + - col0 * - col0 FROM tab2
----
1081
2296
3015

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 63 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + - 72 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2, col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + 45 + - col1 - - col1 FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col2 col1 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT + - col2, - col2 AS col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query II rowsort
SELECT + + col2 AS col0, col2 + + col2 AS col2 FROM tab0 AS cor0
----
10
20
47
94
99
198

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 >= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + col2 NOT BETWEEN - col1 * - 61 AND - col2 / + col0 + + + col0
----

query I rowsort
SELECT - + 46 FROM tab1 WHERE NOT ( col2 / - col0 + - + ( + 66 ) IS NULL )
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL MIN( + col2 ) * 42 AS col0 FROM tab0
----
420

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL MIN ( + col2 ) * 42 AS col0 FROM tab0
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT 81 DIV ( - COUNT( * ) ) AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-8152
SELECT 81 / ( - COUNT ( * ) ) AS col0 FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT + 49 * - - MIN( 75 ) FROM tab2
----
3675

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + 49 * - - MIN ( 75 ) FROM tab2
----
3675

query I rowsort
SELECT col1 * - ( 50 ) FROM tab1
----
-2350
-250
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14, - 62 + + 36 * - col0 * - col2 col0 FROM tab1 WHERE NOT col0 IS NULL
----
14
176194
14
180478
14
222706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( ( - - col1 ) ) col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8157
SELECT - COUNT( + 67 ), 82 col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
0
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8157
SELECT - COUNT ( + 67 ), 82 col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
0
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT - ( - CAST( col1 AS SIGNED ) ) + col0 AS col1 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-8158
SELECT - ( - CAST ( col1 AS INTEGER ) ) + col0 AS col1 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT 52 - - + SUM( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT 52 - - + SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT + MAX( + ( col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + MAX ( + ( col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT col1 DIV + col2 + + + col2 + 11 * col2 + + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1705
-650
1091

skipif mysql # not compatible
query I rowsort label-8161
SELECT col1 / + col2 + + + col2 + 11 * col2 + + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1705
-650
1091

query I rowsort
SELECT ALL 40 * 67 AS col0 FROM tab2 AS cor0
----
2680
2680
2680

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL + + COUNT( * ) * - + 20 FROM tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + + COUNT ( * ) * - + 20 FROM tab2 cor0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8164
SELECT ALL col2 DIV - 2 AS col2 FROM tab0 AS cor0
----
-23
-49
-5

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL col2 / - 2 AS col2 FROM tab0 AS cor0
----
-23
-49
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - 64 * + COUNT( * ) * 43 FROM tab2 cor0
----
-8256

skipif mysql # not compatible
query I rowsort label-8165
SELECT - 64 * + COUNT ( * ) * 43 FROM tab2 cor0
----
-8256

onlyif mysql # aggregate syntax: 
query II rowsort label-8166
SELECT 15 AS col1, COUNT( * ) col0 FROM tab0
----
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8166
SELECT 15 AS col1, COUNT ( * ) col0 FROM tab0
----
15
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 < - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * + 54 + col0 col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + - col0, col2 FROM tab2 WHERE NOT + + 70 + + + 76 + - - 30 IS NULL
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL + 33 * + - col1 FROM tab2
----
-1683
-2211
-2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT DISTINCT col0 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT col0 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT + col0 DIV + - col1 - + col1 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-8172
SELECT + col0 / + - col1 - + col1 FROM tab2
----
-51
-68
-77

query I rowsort
SELECT DISTINCT - - ( col1 ) * + col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8174
SELECT + + 5 + - COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8174
SELECT + + 5 + - COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 WHERE ( NULL >= + 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8176
SELECT DISTINCT + + 84, CAST( 29 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
84
29

skipif mysql # not compatible
query II rowsort label-8176
SELECT DISTINCT + + 84, CAST ( 29 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
84
29

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 36 FROM tab2 cor0
----
-36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 82
----

query I rowsort
SELECT DISTINCT - - 74 * - - 12 * - 10 AS col0 FROM tab2 AS cor0
----
-8880

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( col2 ) )
----

query II rowsort
SELECT DISTINCT + col2 * - - col1, col0 AS col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

query II rowsort
SELECT ALL + 9 AS col1, - 74 + - - col2 AS col1 FROM tab2
----
9
-16
9
-34
9
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 65 / + col1 * 31 IS NOT NULL
----

query I rowsort
SELECT - 87 * 7 AS col0 FROM tab0 AS cor0
----
-609
-609
-609

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + - ( - + ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL + 82 * - SUM( ALL - - col1 ) FROM tab1 AS cor0
----
-5412

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 82 * - SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
-5412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT - CAST( + 61 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-8188
SELECT - CAST ( + 61 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-61
-61
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8189
SELECT DISTINCT + 83 + ( - - col2 ) * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT + 83 + ( - - col2 ) * + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 12 FROM tab2 AS cor0 WHERE NOT - 65 = - - col1
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 20 BETWEEN NULL AND - - col1 * + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + 36 * 83 * COUNT( * ) FROM tab0 AS cor0
----
8964

skipif mysql # not compatible
query I rowsort label-8192
SELECT + 36 * 83 * COUNT ( * ) FROM tab0 AS cor0
----
8964

query I rowsort
SELECT - - 91 * - col1 * - 68 FROM tab1 AS cor0
----
290836
30940
86632

query I rowsort
SELECT ALL - 2 * - 34 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT ALL col1 DIV - col1 + ( - 98 ) + - 43 * 25 AS col1 FROM tab2 AS cor0
----
-1174
-1174
-1174

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL col1 / - col1 + ( - 98 ) + - 43 * 25 AS col1 FROM tab2 AS cor0
----
-1174
-1174
-1174

query I rowsort
SELECT - 21 + + - col0 + + col2 FROM tab0 AS cor0
----
-19
-98
11

query I rowsort
SELECT ALL + 33 + + - col0 + - 40 FROM tab1 AS cor0
----
-58
-92
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT DISTINCT + 99 + + col1 + col0 DIV col2 * + - 54 AS col0 FROM tab0
----
-312
100
180

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT + 99 + + col1 + col0 / col2 * + - 54 AS col0 FROM tab0
----
-312
100
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT - 14 + + CAST( - 70 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8199
SELECT - 14 + + CAST ( - 70 AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT 88 * - COUNT( - col0 ) + COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT 88 * - COUNT ( - col0 ) + COUNT ( * ) FROM tab0
----
-261

query I rowsort
SELECT + 92 * - - col2 * 36 + col1 AS col0 FROM tab0
----
155745
327889
33141

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT COUNT( * ) - + 11 AS col2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT COUNT ( * ) - + 11 AS col2 FROM tab0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( col0 - col0 / col2 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( col0 - col0 / col2 IS NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE - + col0 - col0 < + col0 * + 94
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT MAX( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8205
SELECT MAX ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - + 84 - + + col0 + - col1 * + col2 FROM tab1 AS cor0
----
-1479
-3371
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT SUM( - col0 ) - + 98 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8207
SELECT SUM ( - col0 ) - + 98 FROM tab0 AS cor0
----
-297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8208
SELECT DISTINCT + - COUNT( * ), - CAST( NULL AS SIGNED ) / + 20 AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8208
SELECT DISTINCT + - COUNT ( * ), - CAST ( NULL AS INTEGER ) / + 20 AS col2 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT COUNT( * ) * - + 22 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8209
SELECT COUNT ( * ) * - + 22 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col0 FROM tab2 cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8211
SELECT ALL col1 AS col2, col0 + + CAST( + col0 AS SIGNED ) col0, - - col0 + col1 - ( + + 46 ) FROM tab1 AS cor0
----
9 values hashing to 596c4fe23cbba20cc8cbbb95f27a3c52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8211
SELECT ALL col1 AS col2, col0 + + CAST ( + col0 AS INTEGER ) col0, - - col0 + col1 - ( + + 46 ) FROM tab1 AS cor0
----
9 values hashing to 596c4fe23cbba20cc8cbbb95f27a3c52

query II rowsort
SELECT DISTINCT 5 AS col2, - col0 FROM tab2 AS cor0
----
5
-46
5
-64
5
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL MIN( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL MIN ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-77

query II rowsort
SELECT - col0 AS col2, - col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL SUM( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( NULL ) = col0 * - col1 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL SUM ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( NULL ) = col0 * - col1 * - col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8216
SELECT ALL + CAST( NULL AS SIGNED ) * CAST( - MAX( + 18 ) AS SIGNED ) + + COUNT( * ) col1 FROM tab2 WHERE NOT 11 * col2 * - 88 + + - col2 + col2 * + - col2 + - col2 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8216
SELECT ALL + CAST ( NULL AS INTEGER ) * CAST ( - MAX ( + 18 ) AS INTEGER ) + + COUNT ( * ) col1 FROM tab2 WHERE NOT 11 * col2 * - 88 + + - col2 + col2 * + - col2 + - col2 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8217
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( - - 40 AS SIGNED ) NOT BETWEEN - col2 AND - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8217
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( - - 40 AS INTEGER ) NOT BETWEEN - col2 AND - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 45 * - 76 AS col2 FROM tab2
----
-3420
-3420
-3420

onlyif mysql # DIV for integer division: 
query II rowsort label-8220
SELECT - col2 DIV - col0, col0 AS col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-8220
SELECT - col2 / - col0, col0 AS col0 FROM tab2
----
0
46
0
64
0
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + - 40 + col0 * col0 + + 95 IN ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 25 * + col0 AS col1, + col1 * 5 FROM tab2 AS cor0
----
1150
255
1600
385
1875
335

query I rowsort
SELECT col2 + - col0 + + + ( - col0 ) FROM tab0
----
-164
-95
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL col1 + - - col1 + - CAST( NULL AS SIGNED ) * + - col2 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL col1 + - - col1 + - CAST ( NULL AS INTEGER ) * + - col2 * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT + - CAST( NULL AS SIGNED ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8225
SELECT + - CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - 88 AS col2 FROM tab2 AS cor0
----
134
152
163

query II rowsort
SELECT DISTINCT - 80 AS col1, + col2 FROM tab1 AS cor0
----
-80
59
-80
68
-80
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT ALL + - col1 DIV + col0 * col0 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + - col1 / + col0 * col0 + + col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT DISTINCT col0 AS col0, + col1 + + + col0 AS col1 FROM tab1 AS cor0
----
51
65
85
90
91
138

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 - + + ( + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT - 52 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-52
-3

skipif mysql # not compatible
query II rowsort label-8231
SELECT - 52 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-52
-3

query II rowsort
SELECT - + col0 AS col0, col0 AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
-51
51
-85
85
-91
91

query I rowsort
SELECT col2 * - col2 - - 12 FROM tab1
----
-3469
-4612
-9204

query II rowsort
SELECT + col1 - - col0 AS col1, - col0 FROM tab2
----
141
-64
142
-75
97
-46

query I rowsort
SELECT col0 - + - 47 FROM tab2
----
111
122
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT - COUNT( * ) * + + 95 + + - 6 + MIN( ALL + col0 ) AS col0 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - COUNT ( * ) * + + 95 + + - 6 + MIN ( ALL + col0 ) AS col0 FROM tab0
----
-276

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + col1
----

query I rowsort
SELECT col1 - + 92 + - col2 * + ( + col1 ) FROM tab0
----
-190
-281
-3818

query II rowsort
SELECT ALL - col1 + - 0, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT - COUNT( * ) + - 92 AS col0 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-8240
SELECT - COUNT ( * ) + - 92 AS col0 FROM tab2
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - 21 + + 64 * - + col2 * - col1 * - col1 col1 FROM tab2
----
-15179584
-16664743
-3829638

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL + COUNT( * ) - 86 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + COUNT ( * ) - 86 FROM tab0 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT - - COUNT( * ) - + MIN( ALL col0 ) + - + MAX( col1 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT - - COUNT ( * ) - + MIN ( ALL col0 ) + - + MAX ( col1 ) FROM tab0 AS cor0
----
-93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 41 < - + col2
----

query I rowsort
SELECT ALL - - 60 AS col0 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - + 10 - col0 AS col1 FROM tab2 cor0
----
-56
-74
-85

query I rowsort
SELECT ALL - 10 * - col0 AS col1 FROM tab2
----
460
640
750

onlyif mysql # DIV for integer division: 
query II rowsort label-8248
SELECT col0 AS col2, + col1 + + col2 DIV + 47 FROM tab1
----
51
16
85
6
91
48

skipif mysql # not compatible
query II rowsort label-8248
SELECT col0 AS col2, + col1 + + col2 / + 47 FROM tab1
----
51
16
85
6
91
48

query I rowsort
SELECT 85 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT SUM( + + 44 ) AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-8250
SELECT SUM ( + + 44 ) AS col1 FROM tab1
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col0, col1 col0 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT ( - 50 ) + col1 FROM tab2
----
1
17
27

query II rowsort
SELECT ALL - 63 * + col1 * - ( - col1 ) AS col0, + ( + 72 ) AS col0 FROM tab1
----
-12348
72
-139167
72
-1575
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8254
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8254
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

query II rowsort
SELECT DISTINCT - col0, ( + col1 ) AS col2 FROM tab0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT 75 + - - col1 AS col1, col1 FROM tab2
----
126
51
142
67
152
77

query I rowsort
SELECT ALL - - 56 AS col0 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT + - ( + COUNT( ALL + 34 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT + - ( + COUNT ( ALL + 34 ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + MAX( + 23 ) AS col0 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8259
SELECT + MAX ( + 23 ) AS col0 FROM tab0 AS cor0
----
23

query I rowsort
SELECT + - 28 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT + - 93 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT - 69 - + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT - 69 - + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 6 + + col2 FROM tab1 AS cor0
----
102
65
74

query I rowsort
SELECT + col0 + + ( ( + col2 ) ) FROM tab0 AS cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, + col2 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - + + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT + col2 * + 12 + - col1 + - col1 + - CAST( NULL AS SIGNED ) + + col1 + + col1 + 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT + col2 * + 12 + - col1 + - col1 + - CAST ( NULL AS INTEGER ) + + col1 + + col1 + 47 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 35 FROM tab2 AS cor0 WHERE + 70 + + col2 = col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL - MAX( + - 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - MAX ( + - 22 ) FROM tab2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8270
SELECT + CAST( - ( + - COUNT( * ) ) AS SIGNED ) FROM tab0 WHERE col2 <= - 6
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) FROM tab0 WHERE col2 <= - 6
----
0

query II rowsort
SELECT col1 AS col2, + 9 FROM tab2
----
51
9
67
9
77
9

query I rowsort
SELECT + 93 + col2 AS col1 FROM tab1 WHERE + col2 IS NULL
----

query II rowsort
SELECT DISTINCT col2 + - 50 + 19, col2 FROM tab0
----
-21
10
16
47
68
99

query I rowsort
SELECT ALL + col0 + - + col2 FROM tab0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT - + MIN( + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8276
SELECT - + MIN ( + col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL - COUNT( * ) * + MIN( + 20 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL - COUNT ( * ) * + MIN ( + 20 ) FROM tab1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8278
SELECT DISTINCT - COUNT( * ) * MIN( DISTINCT 56 ) * COUNT( * ) - COUNT( * ) AS col1, - 35 DIV + COUNT( * ) AS col1 FROM tab0
----
-507
-11

skipif mysql # not compatible
query II rowsort label-8278
SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT 56 ) * COUNT ( * ) - COUNT ( * ) AS col1, - 35 / + COUNT ( * ) AS col1 FROM tab0
----
-507
-11

query I rowsort
SELECT DISTINCT - 18 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-18

query I rowsort
SELECT + 51 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # DIV for integer division: 
query I rowsort label-8281
SELECT 58 DIV - - col1 FROM tab0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-8281
SELECT 58 / - - col1 FROM tab0
----
0
2
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT 64 - - 70 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST( ( col0 ) AS SIGNED ) * + - col1 * + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8282
SELECT 64 - - 70 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( ( col0 ) AS INTEGER ) * + - col1 * + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8283
SELECT + + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col2 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT + - COUNT( * ) * - - SUM( - + col1 ) + 58 FROM tab2 AS cor0
----
643

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + - COUNT ( * ) * - - SUM ( - + col1 ) + 58 FROM tab2 AS cor0
----
643

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> + col0 / - + 31 + ( + 15 ) * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT ( - CAST( + + ( - col2 ) AS SIGNED ) ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8287
SELECT ( - CAST ( + + ( - col2 ) AS INTEGER ) ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT col2 * - ( - col2 ) FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT ALL - 44 DIV - col0 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - 44 / - col0 AS col1 FROM tab0
----
0
0
2

query I rowsort
SELECT col1 * + 5 AS col1 FROM tab0
----
105
405
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT DISTINCT - SUM( 28 ) DIV + COUNT( * ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT - SUM ( 28 ) / + COUNT ( * ) FROM tab2
----
-28

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + ( + col0 ) <= + ( + 84 )
----
87
21
10
97
1
99

query I rowsort
SELECT - col0 + - ( col0 ) FROM tab1 AS cor0 WHERE ( NOT + col2 * + col2 * - col1 / + col0 IS NOT NULL )
----

query I rowsort
SELECT - + 90 FROM tab0 AS cor0 WHERE + 93 NOT BETWEEN 54 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - col2 BETWEEN + 75 - col2 AND - col2
----

query III rowsort
SELECT * FROM tab1 WHERE col2 / - + col2 IN ( col1 + + + col2, 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8297
SELECT + ( - ( - + 9 ) ) * + 21 + + 82 / - CAST( NULL AS SIGNED ) col1, - 17 * - col0 FROM tab0
----
NULL
1479
NULL
1649
NULL
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8297
SELECT + ( - ( - + 9 ) ) * + 21 + + 82 / - CAST ( NULL AS INTEGER ) col1, - 17 * - col0 FROM tab0
----
NULL
1479
NULL
1649
NULL
255

query I rowsort
SELECT col1 + + 93 AS col2 FROM tab0
----
114
174
94

query II rowsort
SELECT ALL col2 - + - 47 AS col0, col2 * - + 1 FROM tab0
----
146
-99
57
-10
94
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL - COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT 4 AS col1, + col0, - + col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to 0d66395c66fb5bb7025acf0c601f19de

query I rowsort
SELECT ALL + col2 - col0 * - - col1 + + col2 + + col1 + - + 60 AS col1 FROM tab1 AS cor0
----
-362
-4154
-568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8303
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col1 * - col2 + + col1 FROM tab2 AS cor0
----
NULL
-1122
NULL
-3003
NULL
-3819

skipif mysql # not compatible
query II rowsort label-8303
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col1 * - col2 + + col1 FROM tab2 AS cor0
----
NULL
-1122
NULL
-3003
NULL
-3819

query I rowsort
SELECT - 6 * col2 - - 28 FROM tab1
----
-326
-380
-548

query II rowsort
SELECT col0 * + 54 AS col1, - col2 * col2 FROM tab2
----
2484
-529
3456
-1600
4050
-3364

onlyif mysql # aggregate syntax: 
query II rowsort label-8306
SELECT - MAX( DISTINCT - + 27 ) AS col1, 24 AS col0 FROM tab2
----
27
24

skipif mysql # not compatible
query II rowsort label-8306
SELECT - MAX ( DISTINCT - + 27 ) AS col1, 24 AS col0 FROM tab2
----
27
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL MAX( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT + SUM( DISTINCT + ( - + col1 ) ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8308
SELECT + SUM ( DISTINCT + ( - + col1 ) ) AS col2 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 60 col2, 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 01c3b116c9bca6f5c08a706a78b1ddb0

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT - MAX( - 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT - MAX ( - 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
70

query II rowsort
SELECT ALL 74, + col0 AS col0 FROM tab0 cor0
----
74
15
74
87
74
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT - 64 * 66 BETWEEN - - col1 AND - - col2 / - col2 )
----

query I rowsort
SELECT ALL + ( - col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT MAX( DISTINCT + + 18 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8314
SELECT MAX ( DISTINCT + + 18 ) FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT - col2 DIV - - col1 AS col2 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT - col2 / - - col1 AS col2 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT ALL + 31 AS col1 FROM tab0 AS cor0 WHERE ( NOT + - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT + COUNT( * ) * - COUNT( DISTINCT - 31 ) * + COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8317
SELECT DISTINCT + COUNT ( * ) * - COUNT ( DISTINCT - 31 ) * + COUNT ( * ) col1 FROM tab0
----
-9

query I rowsort
SELECT 17 + + col2 FROM tab0
----
116
27
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col1 ) * - col1 + 82 col1 FROM tab2
----
-2519
-4407
-5847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 + ( - ( - + col1 ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 + ( - ( - + col1 ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 56 * col2 * + col1 * + col1 AS col1 FROM tab1
----
1053696
82600
8411872

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL 76 + - 62 + - + MAX( 44 ) * - 40 AS col1 FROM tab0
----
1774

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL 76 + - 62 + - + MAX ( 44 ) * - 40 AS col1 FROM tab0
----
1774

query I rowsort
SELECT ALL + col0 + - + ( + + col0 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT + COUNT( * ) - - COUNT( DISTINCT + + ( + + col0 ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + COUNT ( * ) - - COUNT ( DISTINCT + + ( + + col0 ) ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 - + col0 col2 FROM tab0 AS cor0
----
-58
-68
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT COUNT( * ) + + COUNT( * ) * - COUNT( - col1 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8327
SELECT COUNT ( * ) + + COUNT ( * ) * - COUNT ( - col1 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col2 + - col0 * - - col2 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT ALL + + 41 AS col0 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT 47 + + + col2 FROM tab1 AS cor0
----
106
115
143

query I rowsort
SELECT DISTINCT - - 21 * + 66 - - col1 + + 28 FROM tab2 AS cor0
----
1465
1481
1491

query I rowsort
SELECT ALL - col0 - + - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT + - 89 + COUNT( + - 99 ) col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8333
SELECT + - 89 + COUNT ( + - 99 ) col0 FROM tab1 AS cor0
----
-86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col1 * ( - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8335
SELECT - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 * - + 97, + col1 AS col2 FROM tab1
----
-4947
14
-8245
5
-8827
47

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8338
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, col2 + col2 FROM tab2
----
NULL
116
NULL
46
NULL
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8338
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, col2 + col2 FROM tab2
----
NULL
116
NULL
46
NULL
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col2 FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8340
SELECT 29 AS col2, + MIN( DISTINCT 5 ) AS col0 FROM tab1 AS cor0
----
29
5

skipif mysql # not compatible
query II rowsort label-8340
SELECT 29 AS col2, + MIN ( DISTINCT 5 ) AS col0 FROM tab1 AS cor0
----
29
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT + col0 DIV 35 AS col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8341
SELECT + col0 / 35 AS col2 FROM tab2 cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 10 col1, + col0 - - + col1 AS col0 FROM tab2 AS cor0
----
10
141
10
142
10
97

query I rowsort
SELECT DISTINCT - col0 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT col1 * + 31 AS col2 FROM tab0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL - SUM( ALL - + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL - SUM ( ALL - + col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT DISTINCT + + 29 AS col0 FROM tab0 AS cor0
----
29

query I rowsort
SELECT DISTINCT col2 * - 91 * 35 AS col1 FROM tab1 AS cor0
----
-187915
-216580
-305760

query I rowsort
SELECT - ( + + 84 ) + + ( + col2 ) FROM tab0 AS cor0
----
-37
-74
15

query I rowsort
SELECT DISTINCT - + col1 * col1 - + + 38 AS col2 FROM tab1 AS cor0
----
-2247
-234
-63

query I rowsort
SELECT ALL col1 * - + col0 + - 18 AS col0 FROM tab0 AS cor0
----
-115
-1233
-1845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8351
SELECT ALL - 65 DIV 12 + - ( - + COUNT( ALL + + ( - - 24 ) ) ) DIV - MIN( col0 ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - 65 / 12 + - ( - + COUNT ( ALL + + ( - - 24 ) ) ) / - MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8352
SELECT DISTINCT + 27 DIV + col1 + - col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT + 27 / + col1 + - col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + + 99 + - ( 75 ) FROM tab2 cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8354
SELECT DISTINCT - COUNT( ALL 5 ) AS col2, ( 38 ) AS col0 FROM tab2 AS cor0
----
-3
38

skipif mysql # not compatible
query II rowsort label-8354
SELECT DISTINCT - COUNT ( ALL 5 ) AS col2, ( 38 ) AS col0 FROM tab2 AS cor0
----
-3
38

query I rowsort
SELECT ALL + - 9 * + col2 AS col1 FROM tab2 WHERE + 26 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 + - 44 AS col0 FROM tab0
----
-269
-7613
-9453

query II rowsort
SELECT ALL col2 * + - col2 + col1 AS col2, col2 FROM tab2
----
-1523
40
-3297
58
-478
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 64 * + col0 * + - col2
----

query I rowsort
SELECT DISTINCT 79 * + col1 AS col0 FROM tab0 AS cor0
----
1659
6399
79

query I rowsort
SELECT DISTINCT col0 * + col0 * + col1 + col1 FROM tab2 AS cor0
----
107967
315469
376942

query I rowsort
SELECT ALL + 70 * + col1 * + col1 * + col1 + + 90 - + - 87 FROM tab2 cor0
----
21053587
31957487
9285747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 40 - col2 col1 FROM tab2 AS cor0
----
-1640
-2378
-943

query I rowsort
SELECT + col0 * - 36 AS col0 FROM tab1
----
-1836
-3060
-3276

query I rowsort
SELECT - 32 * 51 - - col2 AS col1 FROM tab0
----
-1533
-1585
-1622

query I rowsort
SELECT - 63 - - col2 AS col0 FROM tab1 WHERE ( NULL ) > ( + ( - col0 ) )
----

query I rowsort
SELECT ALL col0 * col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) / - col1 + col1 / col2 col0 FROM tab0 WHERE NOT NULL > 75
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) >= ( - 75 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( col2 - col2 / - col0 )
----

query I rowsort
SELECT ALL - col2 * 21 AS col0 FROM tab1
----
-1239
-1428
-2016

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 13 BETWEEN - 9 AND - col0 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col2 + col0 / 33
----

query I rowsort
SELECT DISTINCT col0 * - 56 AS col2 FROM tab0
----
-4872
-5432
-840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8374
SELECT ALL 72 DIV + COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL 72 / + COUNT ( * ) FROM tab2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8375
SELECT ALL COUNT( * ) DIV 64 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL COUNT ( * ) / 64 FROM tab1
----
0

query I rowsort
SELECT ALL - 7 AS col2 FROM tab1 WHERE ( + 12 + + col2 ) IS NOT NULL
----
-7
-7
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8377
SELECT COUNT( * ) DIV - 64 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT COUNT ( * ) / - 64 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT + MAX( col0 ) AS col1 FROM tab1 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT + MAX ( col0 ) AS col1 FROM tab1 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL 50 * COUNT( - 15 ) AS col1 FROM tab0 WHERE ( 88 / 98 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL 50 * COUNT ( - 15 ) AS col1 FROM tab0 WHERE ( 88 / 98 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( + col2 + 30 ) NOT BETWEEN 76 + - 61 AND ( 24 )
----
-3

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( + col2 + 30 ) NOT BETWEEN 76 + - 61 AND ( 24 )
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND ( - 17 )
----

query I rowsort
SELECT + col1 + - 87 FROM tab2
----
-10
-20
-36

query I rowsort
SELECT DISTINCT + 41 * col2 AS col0 FROM tab1 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT col2 + - 4 FROM tab1
----
55
64
92

query I rowsort
SELECT + 3 AS col1 FROM tab1 WHERE ( ( col1 ) ) IN ( col1 * 25 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 38 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL - SUM( + 60 ) AS col0 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - SUM ( + 60 ) AS col0 FROM tab0
----
-180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - col2 >= col1
----

query I rowsort
SELECT - col2 * + col2 - col2 AS col2 FROM tab0
----
-110
-2256
-9900

query I rowsort
SELECT col1 * + 86 - - 45 FROM tab2 WHERE NOT + col2 + + 32 / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT COUNT( * ) * + MIN( ALL + 29 ) + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT COUNT ( * ) * + MIN ( ALL + 29 ) + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col2 * 49 + + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + 93 * COUNT( + col1 ) FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8393
SELECT + 93 * COUNT ( + col1 ) FROM tab2 AS cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( ( - ( + 92 ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( ( - ( + 92 ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + + 53 * COUNT( * ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + + 53 * COUNT ( * ) FROM tab0 AS cor0
----
159

query I rowsort
SELECT ALL - ( + 19 ) FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - col0 * + ( - 67 ) AS col1 FROM tab2 cor0
----
3082
4288
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT COUNT( * ) * 60 FROM tab2 cor0
----
180

skipif mysql # not compatible
query I rowsort label-8398
SELECT COUNT ( * ) * 60 FROM tab2 cor0
----
180

query I rowsort
SELECT DISTINCT 6 * + col1 FROM tab0 cor0
----
126
486
6

query I rowsort
SELECT 15 + col1 * col2 FROM tab2 AS cor0
----
1188
3095
3901

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 * 64 + - ( col1 ) ) <= ( 11 + + col1 * + 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 32 + - col2 IS NOT NULL
----

query I rowsort
SELECT - ( + 1 ) + col1 * - 93 FROM tab0
----
-1954
-7534
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * col2 + - 1 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + col2 + - 42 * 56 AS col1 FROM tab1
----
-2256
-2284
-2293

query I rowsort
SELECT ALL + ( 76 ) * - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3496
-4864
-5700

query I rowsort
SELECT ALL - col1 + - - 0 AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8409
SELECT DISTINCT - COUNT( * ) DIV + 87 + COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT - COUNT ( * ) / + 87 + COUNT ( * ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL - SUM( DISTINCT col2 ) * + COUNT( DISTINCT + col2 - - ( 37 + col1 ) ) FROM tab0 WHERE - col1 IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - SUM ( DISTINCT col2 ) * + COUNT ( DISTINCT + col2 - - ( 37 + col1 ) ) FROM tab0 WHERE - col1 IN ( - col0 )
----
NULL

query I rowsort
SELECT 71 FROM tab0 WHERE + 21 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( - CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT ALL CAST( NULL AS SIGNED ) + - col0 + 53 * col2 * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 + 53 * col2 * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - - 62 FROM tab2
----
102
120
85

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) BETWEEN ( + ( + 89 ) / 63 ) AND NULL
----

query I rowsort
SELECT ALL 12 * + col2 FROM tab1 AS cor0 WHERE NULL <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) NOT IN ( - 86 + - col1 )
----

query I rowsort
SELECT ALL - col1 + - 81 FROM tab0 WHERE NOT col0 - col0 IS NULL
----
-102
-162
-82

query I rowsort
SELECT ALL - col0 * + col1 + + col1 AS col1 FROM tab2 WHERE NOT ( col2 ) IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) + - + col0 - col2 FROM tab2
----
-120
-181
-200

query I rowsort
SELECT 13 FROM tab2 WHERE ( + 27 ) NOT BETWEEN ( NULL ) AND - 51 / 44
----
13
13
13

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8422
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN ( + col0 / + CAST( NULL AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8422
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN ( + col0 / + CAST ( NULL AS REAL ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - COUNT( * ) * - 41 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-8423
SELECT - COUNT ( * ) * - 41 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
369

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( - 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL - - MAX( + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - - MAX ( + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT + 95 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
95
-3

skipif mysql # not compatible
query II rowsort label-8426
SELECT + 95 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
95
-3

query I rowsort
SELECT ALL col2 * ( col2 ) AS col0 FROM tab2 cor0 WHERE - 38 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT 15 * COUNT( * ) + - MAX( DISTINCT 78 ) FROM tab1 AS cor0 WHERE NOT col1 + - col0 - col2 BETWEEN 35 + col0 AND + ( col0 ) * + col0
----
-33

skipif mysql # not compatible
query I rowsort label-8428
SELECT 15 * COUNT ( * ) + - MAX ( DISTINCT 78 ) FROM tab1 AS cor0 WHERE NOT col1 + - col0 - col2 BETWEEN 35 + col0 AND + ( col0 ) * + col0
----
-33

query I rowsort
SELECT - - ( + - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT + + col1, + ( 82 ) FROM tab0 AS cor0
----
1
82
21
82
81
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col2 FROM tab0 AS cor0
----
-41
-41
-41

query II rowsort
SELECT - 94, - 89 AS col2 FROM tab2 AS cor0
----
-94
-89
-94
-89
-94
-89

query I rowsort
SELECT + + 70 * - - col1 FROM tab1 AS cor0
----
3290
350
980

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE - col0 * + + col0 * col1 <> 35
----
46
64
75

query I rowsort
SELECT col2 * 62 + + col1 AS col0 FROM tab2 cor0 WHERE NOT ( col2 * + - col2 ) IS NULL
----
1477
2557
3663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT - CAST( + 94 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT 90 < ( + + 90 * 53 )
----

skipif mysql # not compatible
query I rowsort label-8437
SELECT - CAST ( + 94 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT 90 < ( + + 90 * 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT ALL col1 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL ) NOT IN ( 13 )
----

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL ) NOT IN ( 13 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> ( - - ( - col1 ) * col1 ) AND NULL < col2
----

query I rowsort
SELECT ALL 81 AS col0 FROM tab1 WHERE NOT ( + 68 * + - col2 ) IS NULL
----
81
81
81

query I rowsort
SELECT ( - 28 ) FROM tab0 WHERE NOT + col0 * - 81 IS NULL AND NOT 67 IS NOT NULL
----

query I rowsort
SELECT + 54 * + col0 AS col0 FROM tab1
----
2754
4590
4914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 64 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 64 AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT ALL + col1 DIV - ( - col0 ) * - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + col1 / - ( - col0 ) * - + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8446
SELECT DISTINCT 49 DIV - COUNT( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT 49 / - COUNT ( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
-16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) BETWEEN ( NULL ) AND + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT col1 DIV - 47 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8448
SELECT col1 / - 47 col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT DISTINCT ( + ( + col0 ) ) + col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + - col1 IS NOT NULL
----
102
170
182

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT ( + ( + col0 ) ) + col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 IS NOT NULL
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT CAST( NULL AS SIGNED ) + - - col0 + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT CAST ( NULL AS INTEGER ) + - - col0 + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + + COUNT( * ) * - 29 + + MIN( ALL + 78 ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8451
SELECT + + COUNT ( * ) * - 29 + + MIN ( ALL + 78 ) AS col1 FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 63, - col2 * - col2 + + col1 / 73 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 >= - - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 36 AS col1 FROM tab2 cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, - ( col0 ) )
----

query I rowsort
SELECT ALL 82 * - 12 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * col0 > 92
----

query II rowsort
SELECT ALL + 22 AS col1, col0 AS col0 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + ( - 24 ) ) AS col2 FROM tab1
----
-24
-24
-24

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL < NULL
----

query II rowsort
SELECT ALL - col2, + col0 + + 91 * - + 76 * + col2 * + ( + 74 ) - col2 AS col1 FROM tab0
----
-10
-5117763
-47
-24053880
-99
-50666618

query I rowsort
SELECT DISTINCT + col0 - - + 65 + - ( + 80 ) * + - 93 AS col1 FROM tab0
----
7520
7592
7602

query I rowsort
SELECT + 34 FROM tab1 WHERE - - ( + + col2 ) * - col0 IN ( + 89 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8464
SELECT 85 + - col1, - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
38
-47
71
-14
80
-5

skipif mysql # not compatible
query II rowsort label-8464
SELECT 85 + - col1, - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
38
-47
71
-14
80
-5

query I rowsort
SELECT - col2 * - + col0 + + col1 AS col1 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT ( + col2 ) * + col0 AS col1 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT col2 * - col2, ( - col2 ) AS col1 FROM tab2
----
-1600
-40
-3364
-58
-529
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > 81 / - 89 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL SUM( ALL - - 37 ) * - ( COUNT( * ) ) * MIN( DISTINCT col1 ) FROM tab2
----
-16983

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL SUM ( ALL - - 37 ) * - ( COUNT ( * ) ) * MIN ( DISTINCT col1 ) FROM tab2
----
-16983

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - ( + ( - + ( ( + - col1 ) ) ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + - ( + - 53 ) AS col2 FROM tab0 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 <> + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL MAX( + - col1 ) * + 13 - - 18 - + - 42 AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL MAX ( + - col1 ) * + 13 - - 18 - + - 42 AS col2 FROM tab0 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 67 col1 FROM tab1
----
3149
335
938

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - MIN( col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - MIN ( col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT ( + ( - ( + - ( - + col1 ) ) ) ) AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL ( + ( col2 ) ) AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT - - MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - - MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL col2 + col2, col2 FROM tab0
----
198
99
20
10
94
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8481
SELECT MIN( DISTINCT + - 24 ), SUM( - - col2 ) AS col1 FROM tab2
----
-24
121

skipif mysql # not compatible
query II rowsort label-8481
SELECT MIN ( DISTINCT + - 24 ), SUM ( - - col2 ) AS col1 FROM tab2
----
-24
121

query I rowsort
SELECT - + 52 * - col2 * + + col1 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
15340
166192
69888

query I rowsort
SELECT DISTINCT - 47 + col2 FROM tab0 AS cor0
----
-37
0
52

query I rowsort
SELECT - + col2 + - 66 FROM tab2 AS cor0
----
-106
-124
-89

query I rowsort
SELECT - col2 + + - col2 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8486
SELECT + col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT + col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT + - MAX( ALL - col2 ) FROM tab0 cor0 WHERE NOT + 87 >= - col2 * + col1 / 22 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + - MAX ( ALL - col2 ) FROM tab0 cor0 WHERE NOT + 87 >= - col2 * + col1 / 22 * col2
----
NULL

query I rowsort
SELECT col1 + - col0 * + + col2 - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1030
-2523
-4341

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT + MIN( DISTINCT - col0 ) + + - COUNT( * ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-8489
SELECT + MIN ( DISTINCT - col0 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT + 32 + + ( - col2 ) FROM tab1 AS cor0
----
-27
-36
-64

query II rowsort
SELECT ALL + col2, + col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT ALL - ( - col1 ) * col2 FROM tab2 WHERE NOT - - col0 * - + CAST( NULL AS SIGNED ) + + col2 IN ( + col1, - ( - 61 ) )
----

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - ( - col1 ) * col2 FROM tab2 WHERE NOT - - col0 * - + CAST ( NULL AS INTEGER ) + + col2 IN ( + col1, - ( - 61 ) )
----

query I rowsort
SELECT - col0 + 58 AS col2 FROM tab2
----
-17
-6
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * - col1 col1 FROM tab2
----
-3570
-4690
-5390

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 > col0 - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL ( + - 89 ) + - - SUM( + - col2 ) FROM tab0
----
-245

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL ( + - 89 ) + - - SUM ( + - col2 ) FROM tab0
----
-245

query I rowsort
SELECT DISTINCT 90 + + 48 FROM tab2
----
138

query II rowsort
SELECT ALL - col0 - - col1 + col0, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN + 69 + + col1 * - col2 + - col2 * + col1 AND ( - 42 )
----

query I rowsort
SELECT 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - 7 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 / - 74 + ( - col2 ) - 3 FROM tab2 cor0 WHERE + 11 * col0 + - 29 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8503
SELECT - + col0 DIV + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8503
SELECT - + col0 / + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL - ( - MIN( ALL - col0 ) ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL - ( - MIN ( ALL - col0 ) ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL + ( + 49 ) FROM tab0 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL MIN( + col1 ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8507
SELECT ALL MIN ( + col1 ) col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT 10 - + 1 + - + col0 FROM tab1 AS cor0 WHERE col1 NOT IN ( + col2 - - col0 )
----
-42
-76
-82

query I rowsort
SELECT - col2 * + 74 FROM tab2 AS cor0
----
-1702
-2960
-4292

query II rowsort
SELECT - + col1 AS col0, col2 * + 58 FROM tab0 cor0
----
-1
5742
-21
580
-81
2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8511
SELECT DISTINCT + CAST( - MAX( ALL - 64 ) AS SIGNED ) FROM tab0 AS cor0 WHERE 11 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT + CAST ( - MAX ( ALL - 64 ) AS INTEGER ) FROM tab0 AS cor0 WHERE 11 = ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT DISTINCT + 65 * CAST( + col1 AS SIGNED ) - - col2 * - col2 AS col2 FROM tab2 AS cor0
----
2786
3405
991

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT + 65 * CAST ( + col1 AS INTEGER ) - - col2 * - col2 AS col2 FROM tab2 AS cor0
----
2786
3405
991

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8513
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + + 17 - + CAST( NULL AS SIGNED ) IN ( + + col1 - - + col2 )
----

skipif mysql # not compatible
query III rowsort label-8513
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + + 17 - + CAST ( NULL AS INTEGER ) IN ( + + col1 - - + col2 )
----

query I rowsort
SELECT DISTINCT - - col1 * + 19 FROM tab2 cor0
----
1273
1463
969

onlyif mysql # DIV for integer division: 
query I rowsort label-8515
SELECT DISTINCT 28 DIV col1 AS col1 FROM tab1 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT 28 / col1 AS col1 FROM tab1 AS cor0
----
0
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT MAX( DISTINCT - col2 ) + - 5 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-64

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT MAX ( DISTINCT - col2 ) + - 5 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8517
SELECT ALL - col1 col0, col1 * + col2 + - + 0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8517
SELECT ALL - col1 col0, col1 * + col2 + - + 0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - COUNT( ALL ( + ( col2 ) ) ) AS col0 FROM tab1 WHERE NOT - col1 NOT IN ( + col2, col0 * + col1 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8518
SELECT - COUNT ( ALL ( + ( col2 ) ) ) AS col0 FROM tab1 WHERE NOT - col1 NOT IN ( + col2, col0 * + col1 * - col2 )
----
0

query I rowsort
SELECT - 40 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 38 * + col1 AS col1 FROM tab0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT MAX( ALL - - 32 ) col0 FROM tab1
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8521
SELECT MAX ( ALL - - 32 ) col0 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL + COUNT( 28 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL + COUNT ( 28 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL > + col2 )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + 24 >= NULL
----

query I rowsort
SELECT DISTINCT - 69 * + + col0 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT ALL + 54 * 72 * + 15 AS col0 FROM tab2 AS cor0
----
58320
58320
58320

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) = col0 + - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT - CAST( NULL AS SIGNED ) / - - col2 / - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT - CAST ( NULL AS INTEGER ) / - - col2 / - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT - COUNT( col2 ) * - 83 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT - COUNT ( col2 ) * - 83 FROM tab1 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT DISTINCT - MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT - MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 98 BETWEEN + 16 AND + 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT DISTINCT - COUNT( * ) * 37 FROM tab2 WHERE - 16 <= + - col0 AND ( + + CAST( + col2 AS SIGNED ) ) * + + col2 + - col2 + + CAST( NULL AS SIGNED ) + - - col1 * + col2 + 83 NOT BETWEEN ( + col1 + + CAST( NULL AS SIGNED ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT - COUNT ( * ) * 37 FROM tab2 WHERE - 16 <= + - col0 AND ( + + CAST ( + col2 AS INTEGER ) ) * + + col2 + - col2 + + CAST ( NULL AS INTEGER ) + - - col1 * + col2 + 83 NOT BETWEEN ( + col1 + + CAST ( NULL AS INTEGER ) ) AND NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 73 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8534
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 45 + + col0 FROM tab2
----
109
120
91

query I rowsort
SELECT 88 AS col1 FROM tab0 AS cor0 WHERE ( + ( + ( col1 ) ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT + + MIN( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT + + MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - col2 * - col2 - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2162
90
9702

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT COUNT( * ) AS col0, - MAX( ALL + ( 79 ) ) AS col1 FROM tab2 AS cor0
----
3
-79

skipif mysql # not compatible
query II rowsort label-8539
SELECT COUNT ( * ) AS col0, - MAX ( ALL + ( 79 ) ) AS col1 FROM tab2 AS cor0
----
3
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8540
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( col0 IN ( + 20 + + - CAST( + + col1 AS SIGNED ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8540
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( col0 IN ( + 20 + + - CAST ( + + col1 AS INTEGER ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8541
SELECT ALL + 27 DIV - col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL + 27 / - col2 FROM tab0 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE NOT + 27 IS NOT NULL
----

query I rowsort
SELECT + ( 32 ) - - 86 AS col1 FROM tab2
----
118
118
118

query I rowsort
SELECT - col0 + + 67 AS col2 FROM tab0
----
-20
-30
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT col2 + - col0 DIV + 20 - + 41 + col2 AS col1 FROM tab1
----
149
73
91

skipif mysql # not compatible
query I rowsort label-8545
SELECT col2 + - col0 / + 20 - + 41 + col2 AS col1 FROM tab1
----
149
73
91

query I rowsort
SELECT ALL col0 + 64 * + + 84 FROM tab1
----
5427
5461
5467

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8547
SELECT col0 * + CAST( NULL AS DECIMAL ) + - 76 * - - 5 + - col1 + + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-8547
SELECT col0 * + CAST ( NULL AS REAL ) + - 76 * - - 5 + - col1 + + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL 90 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT 21 AS col0, - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
21
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8549
SELECT 21 AS col0, - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
21
0

query I rowsort
SELECT DISTINCT + 99 + - + col1 + 50 AS col1 FROM tab1 WHERE NOT - 41 - col0 * ( + 89 ) IN ( 38, col2 )
----
102
135
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8551
SELECT - + 60 * - COUNT( 83 ) AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
540
NULL

skipif mysql # not compatible
query II rowsort label-8551
SELECT - + 60 * - COUNT ( 83 ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
540
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 75 * - + ( + + col0 )
----

query I rowsort
SELECT ALL - col2 * - col0 + - 2 FROM tab1 AS cor0
----
4894
5013
6186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT DISTINCT - + 51 * + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT - + 51 * + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 60 col0 FROM tab0 AS cor0
----
1260
4860
60

query I rowsort
SELECT + - 77 FROM tab2 AS cor0 WHERE NOT 57 IS NULL
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE 89 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT col2 * - col1 + - 7 * - col2 AS col1, col0 * - - col1 AS col1 FROM tab2
----
-1012
2346
-2800
4928
-3480
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT col1 DIV - 28 + - ( - - col2 ) AS col1 FROM tab1
----
-59
-69
-96

skipif mysql # not compatible
query I rowsort label-8559
SELECT col1 / - 28 + - ( - - col2 ) AS col1 FROM tab1
----
-59
-69
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 + + col2 ) <= NULL
----

query I rowsort
SELECT 76 + - - col2 AS col2 FROM tab0
----
123
175
86

query I rowsort
SELECT ALL col0 + - col1 - + col2 FROM tab0
----
-113
-3
56

query I rowsort
SELECT - col2 + + 16 AS col1 FROM tab2
----
-24
-42
-7

query I rowsort
SELECT ALL - col2 * + - 55 + - 39 FROM tab0 AS cor0
----
2546
511
5406

query I rowsort
SELECT ALL 67 * - - col2 - + col1 * col2 + + col1 + 84 * - 40 FROM tab2 AS cor0
----
-2941
-3293
-3683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT col0 * ( CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-8566
SELECT col0 * ( CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT + col2, 36 FROM tab2 cor0
----
23
36
40
36
58
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT ALL - 43 + COUNT( * ) + 62 DIV - 88 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - 43 + COUNT ( * ) + 62 / - 88 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT DISTINCT - col0 * + + col1 - + col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

query I rowsort
SELECT - - ( - + 22 ) + 57 FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT - 75 * - - 43 AS col2 FROM tab1 AS cor0 WHERE - col1 < - - ( + ( col2 ) )
----
-3225
-3225
-3225

query I rowsort
SELECT DISTINCT + col2 * + + col1 + + - col0 - 63 + + col1 FROM tab1 AS cor0
----
1244
152
3089

query I rowsort
SELECT - 8 + col2 AS col0 FROM tab2 AS cor0
----
15
32
50

query I rowsort
SELECT - + col1 / col2 * + + col1 + - col2 FROM tab0 AS cor0 WHERE NULL <> col1
----

query II rowsort
SELECT + col1 AS col0, - 46 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
-46
47
-46
5
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col0 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL + COUNT( * ) * + - COUNT( * ) FROM tab2 WHERE + ( col2 ) * - - 52 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) FROM tab2 WHERE + ( col2 ) * - - 52 < NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - + col0 ) NOT BETWEEN - col2 AND col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8580
SELECT ALL - 1 * - col0 DIV - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - 1 * - col0 / - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL 10 * col1 FROM tab0
----
10
210
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 * + col2 col1 FROM tab2 AS cor0
----
-1012
-1760
-2552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT DISTINCT - ( + CAST( - 21 AS SIGNED ) ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT - ( + CAST ( - 21 AS INTEGER ) ) FROM tab2
----
21

query I rowsort
SELECT - col0 + - - 74 + + - col1 FROM tab0 AS cor0
----
-22
-24
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT + col0 + - col0 + - 76 - - CAST( col2 AS SIGNED ) - - col1 / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT + col0 + - col0 + - 76 - - CAST ( col2 AS INTEGER ) - - col1 / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 79 BETWEEN col1 AND ( NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT CAST( - - ( + - AVG ( ALL + col1 ) ) AS SIGNED ) col1 FROM tab0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8589
SELECT CAST ( - - ( + - AVG ( ALL + col1 ) ) AS INTEGER ) col1 FROM tab0
----
-34

query I rowsort
SELECT DISTINCT col0 + - 20 + - col0 * - 4 FROM tab1
----
235
405
435

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT - MAX( DISTINCT - col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8591
SELECT - MAX ( DISTINCT - col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT + col2 * - col1 + col2 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT + col0 * - col2 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - 80 * 22 + + + MIN( + col2 ) FROM tab0 AS cor0
----
-1750

skipif mysql # not compatible
query I rowsort label-8594
SELECT - 80 * 22 + + + MIN ( + col2 ) FROM tab0 AS cor0
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT MAX( - + 52 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT MAX ( - + 52 ) FROM tab2 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT DISTINCT - 46 * - CAST( NULL AS SIGNED ) + - + col1 * + 11 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8596
SELECT DISTINCT - 46 * - CAST ( NULL AS INTEGER ) + - + col1 * + 11 col1 FROM tab2
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8598
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( - 88 ) IN ( + ( col1 ) * - - col2, - 32 * 72, - col1 - + 47 * 86 / col1 ) )
----

query I rowsort
SELECT - 94 * + col0 FROM tab0 AS cor0
----
-1410
-8178
-9118

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 < 91 * - ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + ( ( - col0 ) ) AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT - 6 DIV + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8603
SELECT - 6 / + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 59 * + 77 * - col0 FROM tab0
----
-395241
-440671
-68145

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8605
SELECT + CAST( - col1 AS SIGNED ) DIV + 34 AS col1, - col0 FROM tab1
----
-1
-91
0
-51
0
-85

skipif mysql # not compatible
query II rowsort label-8605
SELECT + CAST ( - col1 AS INTEGER ) / + 34 AS col1, - col0 FROM tab1
----
-1
-91
0
-51
0
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT COUNT( * ) * + ( + 83 ) * + + COUNT( * ) * - ( - 29 ) AS col2 FROM tab0
----
21663

skipif mysql # not compatible
query I rowsort label-8606
SELECT COUNT ( * ) * + ( + 83 ) * + + COUNT ( * ) * - ( - 29 ) AS col2 FROM tab0
----
21663

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8607
SELECT DISTINCT + MAX( ALL - col0 ), + COUNT( * ) DIV + 42 col2 FROM tab1
----
-51
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8607
SELECT DISTINCT + MAX ( ALL - col0 ), + COUNT ( * ) / + 42 col2 FROM tab1
----
-51
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT DISTINCT - 40 * - CAST( NULL AS SIGNED ) * + col2 * 89 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8608
SELECT DISTINCT - 40 * - CAST ( NULL AS INTEGER ) * + col2 * 89 col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT - MIN( col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8609
SELECT - MIN ( col1 ) FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + + 55 ) AS col0 FROM tab2
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT COUNT( * ) AS col2, MAX( ALL + + col0 ) FROM tab0
----
3
97

skipif mysql # not compatible
query II rowsort label-8612
SELECT COUNT ( * ) AS col2, MAX ( ALL + + col0 ) FROM tab0
----
3
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT SUM( DISTINCT + + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8613
SELECT SUM ( DISTINCT + + col2 ) FROM tab1
----
223

query I rowsort
SELECT ALL col2 - + + 36 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8615
SELECT CAST( + col1 AS SIGNED ) DIV - 14 AS col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-8615
SELECT CAST ( + col1 AS INTEGER ) / - 14 AS col2 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT - + MIN( + 65 ) col0 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8616
SELECT - + MIN ( + 65 ) col0 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT + + 20 * + col2 * - col0 AS col1 FROM tab2 cor0 WHERE 70 + 28 IS NOT NULL
----
-21160
-51200
-87000

query I rowsort
SELECT - + 4 * - - 5 + - + 7 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT - col1 * - - 6 AS col2 FROM tab2 AS cor0
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-8620
SELECT DISTINCT + 82, - 62 + - COUNT( * ) + - - SUM( col0 ) AS col0 FROM tab0 AS cor0
----
82
134

skipif mysql # not compatible
query II rowsort label-8620
SELECT DISTINCT + 82, - 62 + - COUNT ( * ) + - - SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
82
134

query I rowsort
SELECT - col2 + + + 67 AS col1 FROM tab2 cor0
----
27
44
9

query I rowsort
SELECT + 61 + + 49 AS col1 FROM tab0 AS cor0
----
110
110
110

query II rowsort
SELECT ALL - col0, + 23 AS col2 FROM tab2 AS cor0
----
-46
23
-64
23
-75
23

query I rowsort
SELECT - + col1 * 89 * 1 * col1 + - - 44 FROM tab1 AS cor0
----
-17400
-196557
-2181

query I rowsort
SELECT DISTINCT - + 63 + + + col0 * col2 FROM tab1 AS cor0
----
4833
4952
6125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - + col1 col2, col1 * - 67 FROM tab1
----
0
-3149
0
-335
0
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT + COUNT( * ) * - + 17 + - MIN( + col1 ) + + 3 + + - COUNT( col2 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT + COUNT ( * ) * - + 17 + - MIN ( + col1 ) + + 3 + + - COUNT ( col2 ) FROM tab0
----
-52

query I rowsort
SELECT + col0 + col0 + + + col2 + + - ( - col0 ) * col1 + + - 54 * col2 AS col0 FROM tab0
----
-1246
-4956
1471

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - ( + COUNT( * ) ) + + ( COUNT( DISTINCT - - 11 ) ) - + - 32 * + - 53 FROM tab2
----
-1698

skipif mysql # not compatible
query I rowsort label-8629
SELECT - ( + COUNT ( * ) ) + + ( COUNT ( DISTINCT - - 11 ) ) - + - 32 * + - 53 FROM tab2
----
-1698

query I rowsort
SELECT DISTINCT 11 + + + col2 * - col2 AS col1 FROM tab1
----
-3470
-4613
-9205

onlyif mysql # DIV for integer division: 
query II rowsort label-8631
SELECT + 59 + 34 col1, 75 DIV - col2 - col2 FROM tab1
----
93
-60
93
-69
93
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8631
SELECT + 59 + 34 col1, 75 / - col2 - col2 FROM tab1
----
93
-60
93
-69
93
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8632
SELECT DISTINCT - 7 + CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - 7 + CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 + 12 * col1 FROM tab2
----
658
879
988

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - + 23 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 + col0 col1 FROM tab2
----
104
75
93

query I rowsort
SELECT ALL col0 * 32 AS col2 FROM tab0 AS cor0
----
2784
3104
480

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + - col2 BETWEEN NULL AND - - 79 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 > - 21 * - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 AS col1, 95 AS col0 FROM tab2 WHERE NOT col0 IN ( + col1, col0 + + + col2 )
----
-23
95
-40
95
-58
95

query I rowsort
SELECT ALL + 7 * + col0 AS col1 FROM tab2
----
322
448
525

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT DISTINCT + + col0 DIV - col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT + + col0 / - col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT - - 13 AS col0 FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL 23 * - 36 AS col1 FROM tab0 AS cor0
----
-828
-828
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + COUNT( * ) * + SUM( DISTINCT + - 34 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-306

skipif mysql # not compatible
query I rowsort label-8644
SELECT + COUNT ( * ) * + SUM ( DISTINCT + - 34 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-306

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - + col2 * - + col2 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + - COUNT( * ) * 92 AS col0 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-8648
SELECT + - COUNT ( * ) * 92 AS col0 FROM tab1 AS cor0
----
-276

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 52
----

query I rowsort
SELECT DISTINCT - 79 * 74 FROM tab2
----
-5846

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT ( + - SUM( DISTINCT - - col2 ) ) + COUNT( * ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT ( + - SUM ( DISTINCT - - col2 ) ) + COUNT ( * ) FROM tab1
----
-220

query I rowsort
SELECT + 54 * + ( col0 ) * - col2 - + + 77 FROM tab1
----
-264461
-270887
-334229

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT col2 * - + ( - col2 ) - + - 90 * - col0 * + ( - - 39 ) + + - 25 DIV + col2 FROM tab0
----
-305272
-330669
-50441

skipif mysql # not compatible
query I rowsort label-8653
SELECT col2 * - + ( - col2 ) - + - 90 * - col0 * + ( - - 39 ) + + - 25 / + col2 FROM tab0
----
-305272
-330669
-50441

query I rowsort
SELECT DISTINCT - col2 - + 18 + + ( - 49 ) * + - col0 AS col2 FROM tab2
----
2213
3078
3599

query I rowsort
SELECT ALL col2 + + + 43 FROM tab2
----
101
66
83

query I rowsort
SELECT 74 + + + 54 FROM tab2 cor0
----
128
128
128

query I rowsort
SELECT - + col1 / - 67 + + col0 FROM tab2 AS cor0 WHERE ( NULL ) > - ( 29 )
----

query I rowsort
SELECT DISTINCT - ( 16 ) AS col2 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL - COUNT( ALL col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - COUNT ( ALL col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 * + col2 * + col0 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT - COUNT( * ) * + 74 AS col2 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - COUNT ( * ) * + 74 AS col2 FROM tab2
----
-222

onlyif mysql # aggregate syntax: 
query II rowsort label-8662
SELECT + COUNT( DISTINCT col1 ), - 89 * - COUNT( * ) col1 FROM tab1
----
3
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8662
SELECT + COUNT ( DISTINCT col1 ), - 89 * - COUNT ( * ) col1 FROM tab1
----
3
267

query I rowsort
SELECT ALL - ( - ( + col2 ) ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT + COUNT( ALL col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8664
SELECT + COUNT ( ALL col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT - SUM( ALL + 4 ) * - - COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT - SUM ( ALL + 4 ) * - - COUNT ( * ) FROM tab0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT ALL - col0 * 33 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL - col0 * 33 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NOT - 97 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8667
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NOT - 97 IS NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8669
SELECT + 9 col1 FROM tab1 WHERE NOT ( NOT ( + CAST( NULL AS SIGNED ) ) <= + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8669
SELECT + 9 col1 FROM tab1 WHERE NOT ( NOT ( + CAST ( NULL AS INTEGER ) ) <= + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * 64 + 22 FROM tab2 AS cor0
----
-2922
-4074
-4778

query I rowsort
SELECT DISTINCT + + 1 * + + col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + col1 + - 63 - + 63 + - 41 * - col0 AS col0 FROM tab2
----
1811
2575
3016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * + col2 col0 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT DISTINCT + 23 + - col2 AS col1 FROM tab2 WHERE NOT - col0 > col0
----
-17
-35
0

query II rowsort
SELECT ALL col2 + col1 + + + col0 * + + col2, 72 AS col1 FROM tab2
----
1132
72
2677
72
4475
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT - MAX( + - CAST( + 8 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-8677
SELECT - MAX ( + - CAST ( + 8 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8678
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - CAST ( NULL AS REAL ) + + + col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + 36 * - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8680
SELECT ALL - + 94 DIV - + 39 AS col2, col0 AS col1 FROM tab2 cor0
----
2
46
2
64
2
75

skipif mysql # not compatible
query II rowsort label-8680
SELECT ALL - + 94 / - + 39 AS col2, col0 AS col1 FROM tab2 cor0
----
2
46
2
64
2
75

query I rowsort
SELECT DISTINCT + col2 * + - 32 AS col1 FROM tab0 cor0
----
-1504
-3168
-320

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 <> + + col0 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8683
SELECT 41 + - col0 DIV - + col2 FROM tab0 AS cor0
----
41
41
49

skipif mysql # not compatible
query I rowsort label-8683
SELECT 41 + - col0 / - + col2 FROM tab0 AS cor0
----
41
41
49

query II rowsort
SELECT DISTINCT - col0 AS col1, - col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8685
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col1 <= + CAST( NULL AS SIGNED ) + - + col1 )
----

skipif mysql # not compatible
query III rowsort label-8685
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col1 <= + CAST ( NULL AS INTEGER ) + - + col1 )
----

query I rowsort
SELECT 77 + - - ( 10 ) * - + col1 FROM tab1 AS cor0
----
-393
-63
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT DISTINCT + ( - + col2 ) * - 89 * + - CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT + ( - + col2 ) * - 89 * + - CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT + SUM( DISTINCT col1 ) * + ( + 16 ) col0 FROM tab1 AS cor0
----
1056

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8689
SELECT DISTINCT + SUM ( DISTINCT col1 ) * + ( + 16 ) col0 FROM tab1 AS cor0
----
1056

query I rowsort
SELECT col1 + - - col0 AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT col0 + - 4 + + col2 AS col2 FROM tab1
----
140
143
155

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8692
SELECT * FROM tab1 WHERE + + CAST( - 9 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8692
SELECT * FROM tab1 WHERE + + CAST ( - 9 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT DISTINCT - 48 * col1 DIV + 84 - 33 FROM tab0
----
-33
-45
-79

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - 48 * col1 / + 84 - 33 FROM tab0
----
-33
-45
-79

query I rowsort
SELECT DISTINCT 71 + + 61 FROM tab0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + - MIN( ALL + col1 ) - + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8695
SELECT + - MIN ( ALL + col1 ) - + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 37 AND NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - 75 + + 86 IN ( - 73, - col0 * - 10, col2 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT - SUM( ALL + - col0 ) col0 FROM tab1 WHERE NOT ( ( + - 44 <> col0 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8698
SELECT - SUM ( ALL + - col0 ) col0 FROM tab1 WHERE NOT ( ( + - 44 <> col0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT + MIN( DISTINCT - - 98 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
98

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + MIN ( DISTINCT - - 98 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
98

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + col0 * - col1 = - + 43 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT + MAX( + 29 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8702
SELECT + MAX ( + 29 ) FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT - 59 + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-8704
SELECT - 59 + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-59

query I rowsort
SELECT DISTINCT col2 + + 87 * + col1 * + + col2 + col1 FROM tab0
----
18301
331337
8713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col1 + - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8706
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col1 + - col2 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 6 + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT - + COUNT( * ) - 92 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-101

skipif mysql # not compatible
query I rowsort label-8708
SELECT - + COUNT ( * ) - 92 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-101

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT NULL <> - 19 OR + col2 IS NULL
----

query I rowsort
SELECT ALL - + col0 * - 47 FROM tab2 AS cor0
----
2162
3008
3525

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 > col2
----

query I rowsort
SELECT DISTINCT - - col0 * + - col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT ALL - 97 DIV + 93 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - 97 / + 93 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 5
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 40 ) >= 65 * - 80
----

query II rowsort
SELECT ALL - + col1 AS col2, + 11 AS col2 FROM tab1 AS cor0
----
-14
11
-47
11
-5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT - COUNT( ALL 8 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8718
SELECT - COUNT ( ALL 8 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT + 62 * 59 * - 84 * COUNT( * ) - - + CAST( - - AVG ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-921882

skipif mysql # not compatible
query I rowsort label-8719
SELECT + 62 * 59 * - 84 * COUNT ( * ) - - + CAST ( - - AVG ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-921882

query I rowsort
SELECT DISTINCT - col0 * - + col1 AS col0 FROM tab2 cor0
----
2346
4928
5025

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT ( + col1 <> col2 * + - col1 ) ) )
----

query I rowsort
SELECT + col1 - + 72 AS col2 FROM tab2
----
-21
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + - ( 25 ) + - + col2 col0 FROM tab0
----
-122
-221
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col0 FROM tab0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT ( + + COUNT( DISTINCT + 25 ) ) + + 32 AS col0 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT ( + + COUNT ( DISTINCT + 25 ) ) + + 32 AS col0 FROM tab2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT ALL - + col1 * col0 AS col1 FROM tab2 WHERE + 63 BETWEEN - CAST( ( + 30 ) AS SIGNED ) AND col2
----

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL - + col1 * col0 AS col1 FROM tab2 WHERE + 63 BETWEEN - CAST ( ( + 30 ) AS INTEGER ) AND col2
----

query I rowsort
SELECT ALL 46 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1390
3242
341

query II rowsort
SELECT DISTINCT + col1 AS col1, - col1 - + 87 + + ( + col2 ) * col2 FROM tab0 cor0
----
1
9713
21
-8
81
2041

query II rowsort
SELECT - + col1, col0 AS col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT ALL col0 * + col0 * + ( 52 ) + col1 + + + col2 AS col1 FROM tab0 WHERE + col0 * - + CAST( NULL AS SIGNED ) + col2 + - + 8 - - col2 IS NULL
----
11828
393619
489368

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL col0 * + col0 * + ( 52 ) + col1 + + + col2 AS col1 FROM tab0 WHERE + col0 * - + CAST ( NULL AS INTEGER ) + col2 + - + 8 - - col2 IS NULL
----
11828
393619
489368

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + - ( - - SUM( DISTINCT + + 44 ) ) FROM tab2 WHERE NOT NULL < + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT + - ( - - SUM ( DISTINCT + + 44 ) ) FROM tab2 WHERE NOT NULL < + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL + MIN( ALL - + 35 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL + MIN ( ALL - + 35 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT + SUM( + ( col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8734
SELECT + SUM ( + ( col2 ) ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT - ( - CAST( - 80 AS SIGNED ) ) FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-8735
SELECT - ( - CAST ( - 80 AS INTEGER ) ) FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - - ( - 55 ) AS col1 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + COUNT( DISTINCT + - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8737
SELECT + COUNT ( DISTINCT + - col0 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8738
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8738
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT + 67 + - col0 AS col0 FROM tab1
----
-18
-24
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8740
SELECT DISTINCT + - COUNT( * ) AS col1, + 54 FROM tab2 AS cor0
----
-3
54

skipif mysql # not compatible
query II rowsort label-8740
SELECT DISTINCT + - COUNT ( * ) AS col1, + 54 FROM tab2 AS cor0
----
-3
54

query I rowsort
SELECT + col1 * + col0 * + 92 FROM tab2 cor0
----
215832
453376
462300

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 20 * col2 <> - 38 + - + 91 + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL - - SUM( + 94 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL - - SUM ( + 94 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8744
SELECT 28 DIV COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8744
SELECT 28 / COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT + col0 + - col0 * - 11 AS col2 FROM tab2 AS cor0
----
552
768
900

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - 16 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 78 + col0 * - col1 - + 58 AS col2 FROM tab2 AS cor0
----
-2326
-4908
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - COUNT( DISTINCT - col0 ) - MIN( - - 46 ) col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8748
SELECT ALL - COUNT ( DISTINCT - col0 ) - MIN ( - - 46 ) col1 FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT + ( + 96 ) + + + MIN( 44 ) + - 18 DIV 51 AS col2 FROM tab2 cor0
----
140

skipif mysql # not compatible
query I rowsort label-8749
SELECT + ( + 96 ) + + + MIN ( 44 ) + - 18 / 51 AS col2 FROM tab2 cor0
----
140

query I rowsort
SELECT - col0 + + ( - col0 ) FROM tab0 cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT - col1 * + - 34 AS col2 FROM tab0 cor0 WHERE NOT + col1 + + col0 NOT BETWEEN NULL AND + + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ( - - COUNT( + 81 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8752
SELECT ( - - COUNT ( + 81 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 + 89 AS col2 FROM tab0
----
136
188
99

query I rowsort
SELECT DISTINCT 98 - - 1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL + COUNT( * ) * + 9 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL + COUNT ( * ) * + 9 FROM tab0
----
27

query I rowsort
SELECT DISTINCT + - 73 * - 18 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * + col0 col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8758
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NOT col2 >= + ( ( + 45 ) )
----

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 WHERE NOT col2 >= + ( ( + 45 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT - COUNT( * ) * - - 46 AS col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8759
SELECT - COUNT ( * ) * - - 46 AS col2 FROM tab2 AS cor0
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8760
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * CAST( - + col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8760
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * CAST ( - + col1 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL + + 48 FROM tab2 cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT DISTINCT - 78, MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-78
-58

skipif mysql # not compatible
query II rowsort label-8762
SELECT DISTINCT - 78, MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-78
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 9 * 9 AND + 95
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT + - ( - col2 ) DIV - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT + - ( - col2 ) / - col0 FROM tab0 AS cor0
----
-1
-3
0

query II rowsort
SELECT - - col0 AS col2, ( + col2 ) AS col0 FROM tab0 cor0
----
15
47
87
10
97
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 43 + + col2 + + 94 = + + col2
----

query I rowsort
SELECT DISTINCT - - col0 + col2 + + 63 AS col1 FROM tab1 WHERE NULL IS NULL
----
207
210
222

query II rowsort
SELECT ALL + col2 * + ( - + 57 ) + - + 70 + col1, - col2 + + + col1 AS col2 FROM tab0
----
-2668
34
-5712
-98
-619
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT DISTINCT - col2 DIV col0 + col2 FROM tab1
----
59
68
95

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT - col2 / col0 + col2 FROM tab1
----
59
68
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8770
SELECT DISTINCT - COUNT( DISTINCT - col0 ) DIV + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) / + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - 99 AS col0, col1 col2 FROM tab0
----
-100
1
-120
21
-180
81

query I rowsort
SELECT DISTINCT + col0 + - 41 FROM tab2
----
23
34
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT 3 * - - col0 * - col0 * + ( + CAST( - col1 AS SIGNED ) ) FROM tab0
----
28227
476847
54675

skipif mysql # not compatible
query I rowsort label-8773
SELECT 3 * - - col0 * - col0 * + ( + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
28227
476847
54675

query I rowsort
SELECT - ( + - 40 ) * + col0 FROM tab0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL MIN( ALL + - 58 ) AS col0 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL MIN ( ALL + - 58 ) AS col0 FROM tab1
----
-58

query II rowsort
SELECT ALL ( - col2 ) AS col1, - col2 * + + 87 FROM tab0 AS cor0
----
-10
-870
-47
-4089
-99
-8613

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT + 64 DIV col2 + + ( - + col2 ) DIV - - col1 AS col1 FROM tab1 AS cor0
----
-1
-10
-6

skipif mysql # not compatible
query I rowsort label-8777
SELECT + 64 / col2 + + ( - + col2 ) / - - col1 AS col1 FROM tab1 AS cor0
----
-1
-10
-6

query I rowsort
SELECT ( - 43 ) + col0 FROM tab2
----
21
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT - MIN( DISTINCT + - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8779
SELECT - MIN ( DISTINCT + - col1 ) FROM tab1
----
47

query I rowsort
SELECT + + 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 48 - + + 34 = ( col1 ) * + col0 + - - 34 * + col1
----

query I rowsort
SELECT - - 3 FROM tab1 cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT 54 + - MAX( + 27 ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-8783
SELECT 54 + - MAX ( + 27 ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
27

query I rowsort
SELECT ALL + col2 - + - col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + - 29 - + 85 AS col0 FROM tab0 AS cor0
----
-114
-114
-114

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab0 WHERE NOT NULL IN ( col1, col1, col0 - + + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - + col2 <> - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8788
SELECT col2 DIV col1 AS col0, col1 col0 FROM tab0
----
0
21
0
81
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8788
SELECT col2 / col1 AS col0, col1 col0 FROM tab0
----
0
21
0
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 10 col2 FROM tab0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - 89 * - SUM( ALL - - ( - 37 ) ) * - - 37 - COUNT( * ) * 40 + - - 63 FROM tab2
----
-365580

skipif mysql # not compatible
query I rowsort label-8790
SELECT - 89 * - SUM ( ALL - - ( - 37 ) ) * - - 37 - COUNT ( * ) * 40 + - - 63 FROM tab2
----
-365580

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 49 <> NULL
----

query I rowsort
SELECT DISTINCT ( ( col1 ) ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE NULL <= - col2 + col1 * + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 0 AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ( - MIN( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8796
SELECT ( - MIN ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT + 89 * ( - CAST( + + col1 AS SIGNED ) ) col0 FROM tab1
----
-1246
-4183
-445

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8797
SELECT + 89 * ( - CAST ( + + col1 AS INTEGER ) ) col0 FROM tab1
----
-1246
-4183
-445

query I rowsort
SELECT DISTINCT 43 + + - 94 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 0 col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT + col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 + + col1 FROM tab1 AS cor0
----
-14
110
-47
115
-5
64

query I rowsort
SELECT ALL - 74 * - col1 * - + 46 - 77 AS col0 FROM tab2 AS cor0
----
-173681
-228145
-262185

query I rowsort
SELECT + ( + 15 ) AS col1 FROM tab1 AS cor0
----
15
15
15

query II rowsort
SELECT 17 AS col0, col2 * - 86 * ( col2 ) AS col0 FROM tab2 cor0
----
17
-137600
17
-289304
17
-45494

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - MAX( ALL + col0 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8805
SELECT - MAX ( ALL + col0 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL - MAX( - col2 ) * - - COUNT( * ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - MAX ( - col2 ) * - - COUNT ( * ) AS col1 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT MIN( DISTINCT + - col0 ) + 85 + 46 + COUNT( * ) AS col1 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT MIN ( DISTINCT + - col0 ) + 85 + 46 + COUNT ( * ) AS col1 FROM tab2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8808
SELECT + CAST( AVG ( DISTINCT - 29 ) AS SIGNED ) + SUM( col0 ) col0 FROM tab1
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8808
SELECT + CAST ( AVG ( DISTINCT - 29 ) AS INTEGER ) + SUM ( col0 ) col0 FROM tab1
----
198

query I rowsort
SELECT + col2 + + + col2 AS col0 FROM tab0
----
198
20
94

query I rowsort
SELECT - col2 + + 22 * + 11 FROM tab0
----
143
195
232

query I rowsort
SELECT + + ( + - col1 ) * + - ( + 18 ) FROM tab0 WHERE - ( - + 98 ) IS NOT NULL
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT MAX( col0 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8812
SELECT DISTINCT MAX ( col0 ) col2 FROM tab2
----
75

query I rowsort
SELECT + 88 * - col1 FROM tab1 AS cor0
----
-1232
-4136
-440

query I rowsort
SELECT 70 * + 2 + - - 59 * + 70 AS col1 FROM tab2 AS cor0
----
4270
4270
4270

query I rowsort
SELECT ALL - - col0 * 4 + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 74 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - 82 ) + - col1 AS col1 FROM tab0 AS cor0
----
1
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL COUNT( * ) * 69 + + 0 + + 30 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL COUNT ( * ) * 69 + + 0 + + 30 FROM tab1
----
237

query I rowsort
SELECT - ( - col2 ) + + - 47 AS col2 FROM tab0 AS cor0
----
-37
0
52

query I rowsort
SELECT ALL 34 - - 28 AS col1 FROM tab0 AS cor0
----
62
62
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 69 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8821
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN + col2 AND + col1 + + col2
----

skipif mysql # not compatible
query III rowsort label-8821
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN + col2 AND + col1 + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8822
SELECT * FROM tab1 AS cor0 WHERE - ( 51 ) * + + CAST( NULL AS DECIMAL ) / + 85 * + col0 / + col2 + col2 BETWEEN - - 15 AND + col0 / - col1
----

skipif mysql # not compatible
query III rowsort label-8822
SELECT * FROM tab1 AS cor0 WHERE - ( 51 ) * + + CAST ( NULL AS REAL ) / + 85 * + col0 / + col2 + col2 BETWEEN - - 15 AND + col0 / - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 - - - ( - 7 ) AS col1, col2 col1 FROM tab1 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT ALL - 1 * col2 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT - + MAX( + - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT - + MAX ( + - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8826
SELECT ALL - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - SUM ( DISTINCT CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8827
SELECT ALL - col0, CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-51
-96
-85
-59
-91
-68

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL - col0, CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT - COUNT( * ) AS col1, 92 FROM tab2 cor0
----
-3
92

skipif mysql # not compatible
query II rowsort label-8828
SELECT - COUNT ( * ) AS col1, 92 FROM tab2 cor0
----
-3
92

query I rowsort
SELECT ALL + ( + + 95 ) FROM tab1 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8830
SELECT ALL - - 6 * + + CAST( + - SUM( ALL - 36 ) AS SIGNED ) FROM tab1 cor0
----
648

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - - 6 * + + CAST ( + - SUM ( ALL - 36 ) AS INTEGER ) FROM tab1 cor0
----
648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT ALL + - CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL + - CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 + col0 AS col0 FROM tab2 WHERE NOT col1 NOT IN ( + col0 * + col0 )
----

query I rowsort
SELECT - 69 * 97 FROM tab1
----
-6693
-6693
-6693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT ( + CAST( col0 AS SIGNED ) ) FROM tab2 WHERE col2 * + 96 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8834
SELECT ( + CAST ( col0 AS INTEGER ) ) FROM tab2 WHERE col2 * + 96 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - + col0 > col1 + + col1
----

query I rowsort
SELECT + col0 FROM tab1 WHERE 16 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + 1 + + ( col1 ) AS col2 FROM tab0
----
2
22
82

query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-100
-2209
-9801

query I rowsort
SELECT - col2 + - 23 FROM tab2
----
-46
-63
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT + 24 - + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + 24 - + COUNT ( * ) FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT + COUNT( DISTINCT 68 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + COUNT ( DISTINCT 68 ) FROM tab1
----
1

query I rowsort
SELECT ( col2 ) + - 93 AS col0 FROM tab2
----
-35
-53
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT CAST( ( - 50 ) AS SIGNED ) + - col1 FROM tab1
----
-55
-64
-97

skipif mysql # not compatible
query I rowsort label-8844
SELECT CAST ( ( - 50 ) AS INTEGER ) + - col1 FROM tab1
----
-55
-64
-97

query I rowsort
SELECT 65 + + 88 FROM tab0
----
153
153
153

query I rowsort
SELECT ALL - col0 + + 58 FROM tab1
----
-27
-33
7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT ALL 74 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-4366
-5032
-7104

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL 74 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT col0 * 94 + + col1 / ( + col1 * 0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT ALL + MAX( DISTINCT + 89 ) col2 FROM tab1
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8850
SELECT ALL + MAX ( DISTINCT + 89 ) col2 FROM tab1
----
89

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT col0 * - 52 + 49 BETWEEN ( col1 + 97 ) AND - 68
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 62 + - col0 / - 42 NOT BETWEEN ( 11 * 62 ) AND ( col2 * col1 )
----

query I rowsort
SELECT DISTINCT 64 * 53 FROM tab0
----
3392

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8854
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT IN ( CAST( - ( - 92 ) AS DECIMAL ) + 55 )
----

skipif mysql # not compatible
query III rowsort label-8854
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT IN ( CAST ( - ( - 92 ) AS REAL ) + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8856
SELECT - MIN( ALL col2 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT - MIN ( ALL col2 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 21 * col0 + + col1 * + col2 IS NULL
----

query I rowsort
SELECT ALL col1 - + 69 FROM tab1
----
-22
-55
-64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 92 * 85 IS NULL
----

query I rowsort
SELECT DISTINCT 23 + - col1 AS col2 FROM tab0 AS cor0
----
-58
2
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT MAX( - 55 ) AS col0 FROM tab2 AS cor0 WHERE col2 + + 26 >= col0
----
-55

skipif mysql # not compatible
query I rowsort label-8861
SELECT MAX ( - 55 ) AS col0 FROM tab2 AS cor0 WHERE col2 + + 26 >= col0
----
-55

query I rowsort
SELECT ( + col2 ) + - ( - col0 - + col0 ) * - 37 AS col0 FROM tab1 AS cor0
----
-3678
-6231
-6666

query I rowsort
SELECT ALL - col1 * + ( - 79 ) AS col2 FROM tab1 cor0
----
1106
3713
395

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT ALL 95 DIV + 37 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL 95 / + 37 AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT - 43 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 < - 58 * 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 5 FROM tab0 cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 - 22 IN ( + 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT ALL - + col0 DIV col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - + col0 / col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col0 - + 53 / + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 / 98 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 - - CAST( NULL AS SIGNED ) * - col0
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 - - CAST ( NULL AS INTEGER ) * - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * 0 + col1 col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT col0 * - + 44 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT + 49 * + col1 AS col1 FROM tab2
----
2499
3283
3773

query I rowsort
SELECT 86 * + - col0 * col2 AS col2 FROM tab1
----
-421056
-431290
-532168

query I rowsort
SELECT ALL 13 FROM tab2 WHERE 43 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= ( col0 * + col0 + + 41 )
----

query I rowsort
SELECT DISTINCT + col1 + - col0 / - col0 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * 56 FROM tab0
----
-1176
-4536
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT + col1 - + col1 AS col2 FROM tab1 WHERE NOT - col2 + + 97 * + 58 NOT BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8881
SELECT + col1 - + col1 AS col2 FROM tab1 WHERE NOT - col2 + + 97 * + 58 NOT BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT + SUM( ALL + + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + SUM ( ALL + + col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT - 50 * COUNT( * ) FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT - 50 * COUNT ( * ) FROM tab2 AS cor0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT + CAST( - - 84 AS SIGNED ) AS col1 FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-8884
SELECT + CAST ( - - 84 AS INTEGER ) AS col1 FROM tab0
----
84
84
84

query I rowsort
SELECT DISTINCT 10 FROM tab1 WHERE + + col2 * col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) IN ( col2 * col1 + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT COUNT( - 19 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8887
SELECT COUNT ( - 19 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 97 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT - COUNT( - 17 ) + 98 AS col1 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - COUNT ( - 17 ) + 98 AS col1 FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT 85 * - 79 + - COUNT( * ) FROM tab0
----
-6718

skipif mysql # not compatible
query I rowsort label-8891
SELECT 85 * - 79 + - COUNT ( * ) FROM tab0
----
-6718

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT COUNT( - col0 ) + 60 col1 FROM tab2
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8892
SELECT COUNT ( - col0 ) + 60 col1 FROM tab2
----
63

query I rowsort
SELECT col2 * 35 + + 16 + - col2 FROM tab1
----
2022
2328
3280

query I rowsort
SELECT DISTINCT + col2 * + + col2 + - col1 AS col0 FROM tab1
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT DISTINCT SUM( + col0 ) * - 89 AS col2 FROM tab1
----
-20203

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT SUM ( + col0 ) * - 89 AS col2 FROM tab1
----
-20203

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) > 4 * - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 38 BETWEEN - col0 AND ( - col1 )
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - ( + col0 ) - + ( + col2 ) + 2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-102
-131
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8899
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * - col0 * - - col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # DIV for integer division: 
query II rowsort label-8901
SELECT ALL col2 col0, 18 DIV col1 FROM tab0
----
10
0
47
0
99
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8901
SELECT ALL col2 col0, 18 / col1 FROM tab0
----
10
0
47
0
99
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT ALL + + col1 DIV - 6 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + + col1 / - 6 FROM tab1 AS cor0
----
-2
-7
0

query I rowsort
SELECT 86 AS col0 FROM tab1 cor0
----
86
86
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8904
SELECT ALL - COUNT( * ) DIV 73 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - COUNT ( * ) / 73 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL + SUM( - 17 ) FROM tab0 AS cor0 WHERE + ( - 55 ) + col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + SUM ( - 17 ) FROM tab0 AS cor0 WHERE + ( - 55 ) + col0 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + SUM( col0 ) FROM tab2 cor0 WHERE NOT NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT + SUM ( col0 ) FROM tab2 cor0 WHERE NOT NULL IN ( col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 55, - col0 FROM tab1 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, - col0 col2 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT DISTINCT MIN( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col2 * col0, col0 FROM tab2
----
1058
46
2560
64
4350
75

query I rowsort
SELECT ALL + col0 + col1 FROM tab2 WHERE NOT - - col1 BETWEEN + 77 AND - - 10
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT DISTINCT - col0 * col0 DIV - - ( + col2 ) AS col2 FROM tab0
----
-4
-756
-95

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - col0 * col0 / - - ( + col2 ) AS col2 FROM tab0
----
-4
-756
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT ALL 78 DIV 34 AS col2 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL 78 / 34 AS col2 FROM tab1
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT DISTINCT CAST( MIN( ALL - - col2 ) AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT CAST ( MIN ( ALL - - col2 ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND NULL
----
NULL

query I rowsort
SELECT col1 * + col2 * - col2 FROM tab0
----
-178929
-2100
-9801

query II rowsort
SELECT - 71, col2 AS col0 FROM tab0
----
-71
10
-71
47
-71
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + COUNT( ALL + 52 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8918
SELECT + COUNT ( ALL + 52 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + ( 18 ) + col0 FROM tab0 AS cor0
----
105
115
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( - col0 ) - col1 * + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 1 + + COUNT( - - col1 ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-8921
SELECT 1 + + COUNT ( - - col1 ) AS col1 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT + + ( + - COUNT( - 93 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT + + ( + - COUNT ( - 93 ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 13 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 27 / + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 51 FROM tab2 cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < - 82
----

query I rowsort
SELECT ALL - 80 AS col0 FROM tab2 cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8928
SELECT DISTINCT + - COUNT( * ) AS col1, SUM( DISTINCT - col0 ) * - 67 + 91 * 44 col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col2 + - col1 * - + 9
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8928
SELECT DISTINCT + - COUNT ( * ) AS col1, SUM ( DISTINCT - col0 ) * - 67 + 91 * 44 col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col2 + - col1 * - + 9
----
0
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 / + - col0 ) <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8930
SELECT + col1 - - + col2 + + + CAST( + - col2 AS SIGNED ) * col2 DIV 99 * - + col2 FROM tab1
----
2129
3243
9038

skipif mysql # not compatible
query I rowsort label-8930
SELECT + col1 - - + col2 + + + CAST ( + - col2 AS INTEGER ) * col2 / 99 * - + col2 FROM tab1
----
2129
3243
9038

query I rowsort
SELECT ALL 38 * - - col1 + - col0 FROM tab2
----
1892
2471
2862

query I rowsort
SELECT DISTINCT + col1 + 22 AS col0 FROM tab1
----
27
36
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - - col2 col1 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT - 30 + + col1 FROM tab2
----
21
37
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + COUNT( * ) + - - 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-8935
SELECT + COUNT ( * ) + - - 52 FROM tab1
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8936
SELECT ALL * FROM tab0 WHERE - - ( + CAST( + col2 AS SIGNED ) ) + + - 56 DIV - 94 <= + 0 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8936
SELECT ALL * FROM tab0 WHERE - - ( + CAST ( + col2 AS INTEGER ) ) + + - 56 / - 94 <= + 0 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL + 43 + - - MIN( + col1 ) AS col0 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL + 43 + - - MIN ( + col1 ) AS col0 FROM tab0
----
44

query I rowsort
SELECT + - ( 5 ) FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - - col2 * - - 89 AS col1 FROM tab2 cor0
----
2047
3560
5162

onlyif mysql # DIV for integer division: 
query II rowsort label-8940
SELECT col2 DIV + - 69 AS col2, - 78 FROM tab0
----
-1
-78
0
-78
0
-78

skipif mysql # not compatible
query II rowsort label-8940
SELECT col2 / + - 69 AS col2, - 78 FROM tab0
----
-1
-78
0
-78
0
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT ALL COUNT( * ) * - + COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8941
SELECT ALL COUNT ( * ) * - + COUNT ( * ) col1 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 + + col0 / - - 83 AS col0 FROM tab1 AS cor0 WHERE - 85 + - + 53 IS NULL
----

query I rowsort
SELECT 74 * + - col2 * - - col2 + + + col0 + + + col2 FROM tab2 AS cor0
----
-118296
-248803
-39077

query I rowsort
SELECT DISTINCT - col0 * + - col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8945
SELECT col2 AS col1, CAST( NULL AS SIGNED ) - + + col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8945
SELECT col2 AS col1, CAST ( NULL AS INTEGER ) - + + col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT + 37 * - - col2 * + col0, + col1 * - - ( + col1 ) AS col0 FROM tab0
----
26085
6561
32190
441
355311
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col0 FROM tab2
----
97
97
97

query I rowsort
SELECT ALL - 37 * col1 FROM tab1
----
-1739
-185
-518

query I rowsort
SELECT - 3 * - col1 * + col2 * 2 FROM tab1
----
1770
19176
8064

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT ALL - 87 DIV + + col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - 87 / + + col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT col2 + - 3 AS col1 FROM tab0
----
44
7
96

query I rowsort
SELECT - 35 + - col1 AS col2 FROM tab2
----
-102
-112
-86

query I rowsort
SELECT - 1 + col2 * - - 49 FROM tab0
----
2302
4850
489

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 47 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( 7 ) AS col1 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT DISTINCT - 38 DIV + 78 + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT - 38 / + 78 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( ( - col1 ) ) * + col0 * - + 27 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) - - + 68 AS col1 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) - - + 68 AS col1 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8959
SELECT ALL + + col2 * + + 41 + - ( + ( + CAST( col2 AS SIGNED ) ) ) + - + 0, + col2 AS col1 FROM tab0 AS cor0
----
1880
47
3960
99
400
10

skipif mysql # not compatible
query II rowsort label-8959
SELECT ALL + + col2 * + + 41 + - ( + ( + CAST ( col2 AS INTEGER ) ) ) + - + 0, + col2 AS col1 FROM tab0 AS cor0
----
1880
47
3960
99
400
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - + col2 * + col0 - - 45 BETWEEN NULL AND + col2 AND NOT - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - + 60 * + + col2 col1 FROM tab2 AS cor0
----
-1334
-2336
-3405

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + MAX( + col2 ) + - COUNT( ALL - 64 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8962
SELECT + MAX ( + col2 ) + - COUNT ( ALL - 64 ) FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8963
SELECT ALL + COUNT( * ), CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8963
SELECT ALL + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT + - col2 + + col1 * + 86 + col0 * - col2 + - + col0 FROM tab1 AS cor0
----
-2305
-3839
-4729

query I rowsort
SELECT col0 + - ( col0 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - 76 ) AS col2 FROM tab1
----
76

query I rowsort
SELECT DISTINCT col0 + + col0 - col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8968
SELECT DISTINCT - 25 AS col0, - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
-25
0

skipif mysql # not compatible
query II rowsort label-8968
SELECT DISTINCT - 25 AS col0, - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
-25
0

query I rowsort
SELECT + col2 + - ( + col2 ) FROM tab0 WHERE NULL BETWEEN - 43 - - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8970
SELECT + - MIN( + - CAST( + col2 AS SIGNED ) ) * + 1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8970
SELECT + - MIN ( + - CAST ( + col2 AS INTEGER ) ) * + 1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - + ( - - MAX( + - 19 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-8971
SELECT - + ( - - MAX ( + - 19 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - 46 * - col2 * + - col0 + - 66 FROM tab0 AS cor0
----
-32496
-40086
-441804

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT - col1 * col2 DIV + col2 - - ( - col2 ) FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-8974
SELECT - col1 * col2 / + col2 - - ( - col2 ) FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT - + ( col1 ) * + - 11 AS col2 FROM tab0 AS cor0
----
11
231
891

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2 AS cor0 WHERE + ( + col0 ) <= ( + col0 + col0 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT ALL + CAST( ( - col1 ) AS SIGNED ) * - col0 col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8977
SELECT ALL + CAST ( ( - col1 ) AS INTEGER ) * - col0 col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT 21 AS col2, COUNT( * ) col2 FROM tab0 AS cor0
----
21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8978
SELECT 21 AS col2, COUNT ( * ) col2 FROM tab0 AS cor0
----
21
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 65 < 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT ALL + CAST( NULL AS SIGNED ) + + ( + col0 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( + col0 ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 85 * 33 FROM tab1
----
-2805
-2805
-2805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT + col0 * ( 59 ) AS col1 FROM tab1
----
3009
5015
5369

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT IN ( + + 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - ( + - COUNT( DISTINCT + + col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8985
SELECT - ( + - COUNT ( DISTINCT + + col2 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT ALL CAST( - SUM( DISTINCT + - col2 ) AS SIGNED ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL CAST ( - SUM ( DISTINCT + - col2 ) AS INTEGER ) AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT - 0 + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT - 0 / + col2 * col2 - - ( - - col1 ) FROM tab2 WHERE ( - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8988
SELECT - 0 / + col2 * col2 - - ( - - col1 ) FROM tab2 WHERE ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + col0 + - 79 AS col1 FROM tab0 cor0
----
-64
18
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 < + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - 16 + - col1 AS col0 FROM tab1
----
-21
-30
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 19 AS col1, + 77 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19
77

query I rowsort
SELECT - + 88 AS col0 FROM tab2 cor0
----
-88
-88
-88

query I rowsort
SELECT - 6 * - + 60 AS col1 FROM tab0 AS cor0
----
360
360
360

query II rowsort
SELECT ALL + col2 - 51 * - col1 AS col2, - col1 FROM tab2 AS cor0
----
2624
-51
3475
-67
3967
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8996
SELECT DISTINCT + ( + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ) * + 78 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT + ( + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * + 78 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8998
SELECT ALL 91 DIV 36 * + col0 AS col1, col0 FROM tab0 AS cor0
----
174
87
194
97
30
15

skipif mysql # not compatible
query II rowsort label-8998
SELECT ALL 91 / 36 * + col0 AS col1, col0 FROM tab0 AS cor0
----
174
87
194
97
30
15

query II rowsort
SELECT ALL ( - col1 ) + + col1, col2 + - + col2 + - - ( + col2 ) * - 86 + + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT - col1 - - col0 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT - col1 - - col0 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col0 IS NULL AND NOT 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 93 + - + 96 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT COUNT( * ) + + COUNT( ALL col0 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9003
SELECT COUNT ( * ) + + COUNT ( ALL col0 ) FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 > col2
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + - 57 AS col1 FROM tab1 cor0
----
-57
-57
-57

query I rowsort
SELECT ALL col0 * - col1 FROM tab2 AS cor0 WHERE NOT NULL > col1 + col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9008
SELECT ALL + CAST( + ( - col1 ) AS SIGNED ), + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif mysql # not compatible
query II rowsort label-9008
SELECT ALL + CAST ( + ( - col1 ) AS INTEGER ), + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 99 * - col0 BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT - - col1 DIV - 90 * - - col1 + + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9010
SELECT - - col1 / - 90 * - - col1 + + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + - 59 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col2 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 NOT BETWEEN + 56 / + col2 - - col1 AND + 4 + - col0 - + + col0
----

query I rowsort
SELECT ALL col0 * + - col2 * - 80 FROM tab2 AS cor0
----
204800
348000
84640

query I rowsort
SELECT ALL + 66 * + col0 FROM tab1
----
3366
5610
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT + col0 * - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + 52 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT + col0 * - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 52 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - + 94 AS col0 FROM tab2
----
-2162
-3760
-5452

query III rowsort
SELECT ALL * FROM tab2 WHERE + 25 NOT BETWEEN NULL AND col2
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col1 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT DISTINCT + COUNT( * ) + + + 57 * + COUNT( * ) + - - AVG ( + 52 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT + COUNT ( * ) + + + 57 * + COUNT ( * ) + - - AVG ( + 52 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT DISTINCT - - col2 DIV col1 + col0 AS col0 FROM tab1 AS cor0
----
57
92
96

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - - col2 / col1 + col0 AS col0 FROM tab1 AS cor0
----
57
92
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT DISTINCT COUNT( - col1 ) * - CAST( NULL AS SIGNED ) * + 93 * - 8 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT COUNT ( - col1 ) * - CAST ( NULL AS INTEGER ) * + 93 * - 8 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT DISTINCT 99 * - + 62 + - - COUNT( DISTINCT - - 12 ) AS col2 FROM tab2 WHERE col2 * col1 IS NULL
----
-6138

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT 99 * - + 62 + - - COUNT ( DISTINCT - - 12 ) AS col2 FROM tab2 WHERE col2 * col1 IS NULL
----
-6138

query I rowsort
SELECT DISTINCT - col1 * 18 FROM tab0
----
-1458
-18
-378

query I rowsort
SELECT ALL 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - - col0 - 81 FROM tab1 AS cor0
----
-30
10
4

query I rowsort
SELECT + + 11 + + col2 FROM tab1 AS cor0
----
107
70
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9031
SELECT ALL CAST( NULL AS SIGNED ) / - - col2 * ( + col1 ), - 0 AS col0 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-9031
SELECT ALL CAST ( NULL AS INTEGER ) / - - col2 * ( + col1 ), - 0 AS col0 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT COUNT( * ) + - 24 FROM tab1 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9032
SELECT COUNT ( * ) + - 24 FROM tab1 cor0
----
-21

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 AS cor0 WHERE NULL < 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT DISTINCT + + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 8 NOT BETWEEN NULL AND + 28 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9037
SELECT 8 DIV - col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9037
SELECT 8 / - col2 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL COUNT( ALL - 64 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL COUNT ( ALL - 64 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE col1 IN ( 9 * - + ( - + ( - - col0 ) ), 39 )
----

query I rowsort
SELECT DISTINCT 2 * + col2 AS col1 FROM tab1
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 7 col2 FROM tab2
----
161
280
406

query I rowsort
SELECT ALL 99 * + 45 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - col0 * - + col0 / + + col2 <> ( NULL )
----

query I rowsort
SELECT ( + col1 ) * - - 9 * + col0 AS col0 FROM tab1 AS cor0
----
3825
38493
6426

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT ALL + 89 DIV + col1 FROM tab0 AS cor0
----
1
4
89

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL + 89 / + col1 FROM tab0 AS cor0
----
1
4
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * - 74 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 02798668462cd7bc78395365d88ce523

query I rowsort
SELECT col2 + 40 FROM tab2
----
63
80
98

query II rowsort
SELECT col0 AS col2, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT ALL + col1 AS col2, 64 AS col2 FROM tab1 AS cor0
----
14
64
47
64
5
64

query II rowsort
SELECT - col1, - col1 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT + MIN( - CAST( col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9050
SELECT + MIN ( - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9051
SELECT - + 83 DIV + 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT - + 83 / + 89 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9052
SELECT DISTINCT + + 55 col1, MIN( col2 ) * - CAST( + 57 AS SIGNED ) FROM tab2 AS cor0
----
55
-1311

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9052
SELECT DISTINCT + + 55 col1, MIN ( col2 ) * - CAST ( + 57 AS INTEGER ) FROM tab2 AS cor0
----
55
-1311

query I rowsort
SELECT DISTINCT 60 * - ( - + 80 ) AS col1 FROM tab1 cor0
----
4800

query II rowsort
SELECT ALL - col2 AS col2, + 26 AS col1 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

query I rowsort
SELECT ALL - 89 + + - 7 FROM tab2 AS cor0
----
-96
-96
-96

query II rowsort
SELECT DISTINCT ( - col2 ) AS col2, - col0 AS col0 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9057
SELECT ALL 5 * - + col2 * + + CAST( - col0 AS SIGNED ) + - col1 + 22 DIV + - 95 * - col2 + col0 * col2 + - col1 FROM tab1
----
29348
30080
37034

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL 5 * - + col2 * + + CAST ( - col0 AS INTEGER ) + - col1 + 22 / + - 95 * - col2 + col0 * col2 + - col1 FROM tab1
----
29348
30080
37034

query I rowsort
SELECT DISTINCT ( + col1 ) + - 29 - 47 AS col0 FROM tab1
----
-29
-62
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT - ( + CAST( + col2 AS SIGNED ) ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9059
SELECT - ( + CAST ( + col2 AS INTEGER ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL 93 + - + col0 FROM tab0
----
-4
6
78

query II rowsort
SELECT ALL + 4 + + + 97 AS col0, col1 AS col1 FROM tab0
----
101
1
101
21
101
81

query I rowsort
SELECT ALL + 99 * - ( + col1 ) AS col1 FROM tab2
----
-5049
-6633
-7623

query I rowsort
SELECT ALL - + ( + - col0 ) FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT - 20 + - col2 + - 92 AS col0 FROM tab1 AS cor0
----
-171
-180
-208

onlyif mysql # DIV for integer division: 
query I rowsort label-9065
SELECT ALL - col1 DIV - + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - col1 / - + col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col1, + col2 AS col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0 cor0
----
60

query I rowsort
SELECT col2 + 7 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 45 AS col2, col1 col2 FROM tab2 AS cor0
----
45
51
45
67
45
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT + 66 DIV + + 37 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9070
SELECT + 66 / + + 37 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL - ( + - CAST( + 16 AS SIGNED ) ) FROM tab0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL - ( + - CAST ( + 16 AS INTEGER ) ) FROM tab0
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT 67 DIV + 47 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9073
SELECT 67 / + 47 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9074
SELECT DISTINCT col1 * + + col0 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT col1 * + + col0 * CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT CAST( + + 88 AS SIGNED ) AS col0 FROM tab1
----
88
88
88

skipif mysql # not compatible
query I rowsort label-9076
SELECT CAST ( + + 88 AS INTEGER ) AS col0 FROM tab1
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT DISTINCT + COUNT( * ) * - - 45 AS col1 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + COUNT ( * ) * - - 45 AS col1 FROM tab0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT ALL 11 DIV - col1 col1 FROM tab1
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9078
SELECT ALL 11 / - col1 col1 FROM tab1
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT COUNT( DISTINCT + 76 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9079
SELECT COUNT ( DISTINCT + 76 ) AS col1 FROM tab1
----
1

query II rowsort
SELECT + - 69 * + 90, col2 FROM tab2 cor0
----
-6210
23
-6210
40
-6210
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 75 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT CAST( - ( col2 ) AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9082
SELECT CAST ( - ( col2 ) AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + 39 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col1 + + 67 FROM tab1 AS cor0
----
114
72
81

query I rowsort
SELECT 91 + - col1 FROM tab1 AS cor0
----
44
77
86

query I rowsort
SELECT - 24 + - - col1 AS col2 FROM tab1 AS cor0
----
-10
-19
23

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + col2 * - + col0 * col2 FROM tab1
----
-295880
-420737
-470002

query I rowsort
SELECT 51 * 31 + + col2 AS col1 FROM tab2
----
1604
1621
1639

query I rowsort
SELECT DISTINCT - col0 * - + col1 + col2 AS col2 FROM tab0
----
1262
1837
196

query III rowsort
SELECT * FROM tab2 WHERE + - 93 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 - - col0 + + + col1 + - col0 col1 FROM tab0
----
-67
-7
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT - 33 AS col0, COUNT( * ) FROM tab2, tab0 AS cor0
----
-33
9

skipif mysql # not compatible
query II rowsort label-9093
SELECT - 33 AS col0, COUNT ( * ) FROM tab2, tab0 AS cor0
----
-33
9

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE ( NULL IS NULL )
----
23
40
58

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL + ( - + 65 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 >= + col0 + - 93
----
15
81
47

query I rowsort
SELECT + - 34 AS col0 FROM tab2 cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT ALL + COUNT( ALL col0 ) AS col1, + 53 * COUNT( * ) FROM tab1 AS cor0
----
3
159

skipif mysql # not compatible
query II rowsort label-9099
SELECT ALL + COUNT ( ALL col0 ) AS col1, + 53 * COUNT ( * ) FROM tab1 AS cor0
----
3
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT - COUNT( * ) * - + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9100
SELECT - COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT DISTINCT - 61 DIV - col1 AS col1 FROM tab0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - 61 / - col1 AS col1 FROM tab0
----
0
2
61

query II rowsort
SELECT ALL + col1 AS col1, col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT - + 58 AS col1 FROM tab1 cor0
----
-58
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / - col1 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 20 FROM tab1 cor0 WHERE NOT - 74 IS NOT NULL
----

query II rowsort
SELECT + - 8, - 19 AS col2 FROM tab0 AS cor0
----
-8
-19
-8
-19
-8
-19

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 > + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT - MAX( ALL - 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - MAX ( ALL - 3 ) FROM tab1
----
3

query I rowsort
SELECT ALL 51 AS col1 FROM tab0 WHERE NOT - col2 + + col2 + + - col0 IS NULL
----
51
51
51

query I rowsort
SELECT 25 * - + 57 FROM tab2 AS cor0
----
-1425
-1425
-1425

query I rowsort
SELECT - - 46 + - col2 + - - col1 - + - 85 + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 96 * - 52 + col0 AS col1 FROM tab0 AS cor0
----
-4895
-4905
-4977

query II rowsort
SELECT DISTINCT 16 + + ( + + ( - col2 ) ) * - + col2, + col0 AS col1 FROM tab0 AS cor0
----
116
87
2225
15
9817
97

query I rowsort
SELECT col0 * col2 * + + col1 AS col0 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT 37 * - COUNT( * ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-9115
SELECT 37 * - COUNT ( * ) FROM tab0
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT CAST( NULL AS SIGNED ) - - ( + COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT CAST ( NULL AS INTEGER ) - - ( + COUNT ( * ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + 72 IS NULL
----

query I rowsort
SELECT 69 * + + col1 - col0 * + + col1 AS col1 FROM tab2
----
-402
1173
385

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT col0 - + col0 DIV - col2 + 7 AS col2 FROM tab0
----
102
104
22

skipif mysql # not compatible
query I rowsort label-9119
SELECT col0 - + col0 / - col2 + 7 AS col2 FROM tab0
----
102
104
22

onlyif mysql # DIV for integer division: 
query II rowsort label-9120
SELECT ALL + 3 DIV - col1 + - col2 AS col2, - 87 FROM tab0
----
-10
-87
-102
-87
-47
-87

skipif mysql # not compatible
query II rowsort label-9120
SELECT ALL + 3 / - col1 + - col2 AS col2, - 87 FROM tab0
----
-10
-87
-102
-87
-47
-87

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 14 NOT BETWEEN - + col0 AND + - 69 * 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 - - ( col1 ) * 45 + 62 FROM tab0 AS cor0
----
3660
8
997

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 ALL col2 FROM tab0 WHERE NOT col1 * + col0 IS NULL
----
10
47
99

query II rowsort
SELECT ALL - col2 AS col1, - col0 * - 35 AS col1 FROM tab2
----
-23
1610
-40
2240
-58
2625

query III rowsort
SELECT * FROM tab2 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9127
SELECT + COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query II rowsort
SELECT DISTINCT - 64 AS col0, col1 FROM tab1
----
-64
14
-64
47
-64
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT + COUNT( - 69 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9129
SELECT + COUNT ( - 69 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 * + - 39 + 4 FROM tab0 AS cor0
----
15
-581
87
-3389
97
-3779

query I rowsort
SELECT DISTINCT ( ( + 56 ) ) AS col2 FROM tab1 AS cor0
----
56

query I rowsort
SELECT - ( - 82 ) FROM tab1 AS cor0
----
82
82
82

query II rowsort
SELECT col2 * - 17, col1 FROM tab2
----
-391
51
-680
77
-986
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT SUM( ALL + + col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9134
SELECT SUM ( ALL + + col2 ) col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT 59 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT 59 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9136
SELECT ALL COUNT( * ) * + - CAST( ( - 23 ) AS SIGNED ) AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL COUNT ( * ) * + - CAST ( ( - 23 ) AS INTEGER ) AS col0 FROM tab0
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 = - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT + 51 * + - ( COUNT( * ) ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-9138
SELECT + 51 * + - ( COUNT ( * ) ) FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT - COUNT( - + 62 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - COUNT ( - + 62 ) FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9140
SELECT 63 DIV col0, - col0 AS col2 FROM tab1 AS cor0
----
0
-85
0
-91
1
-51

skipif mysql # not compatible
query II rowsort label-9140
SELECT 63 / col0, - col0 AS col2 FROM tab1 AS cor0
----
0
-85
0
-91
1
-51

query I rowsort
SELECT DISTINCT - + 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

query I rowsort
SELECT ALL + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT COUNT( * ) + - - 75 AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9143
SELECT COUNT ( * ) + - - 75 AS col0 FROM tab2 AS cor0
----
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 + + 84 AS col2 FROM tab1 AS cor0
----
143
152
180

query I rowsort
SELECT ALL + + 22 * + + col1 FROM tab2 cor0
----
1122
1474
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL - - MAX( + + col0 ) + 10 FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - - MAX ( + + col0 ) + 10 FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT - 93 + MAX( DISTINCT - + col1 ) + + SUM( col2 ) FROM tab1 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-9149
SELECT - 93 + MAX ( DISTINCT - + col1 ) + + SUM ( col2 ) FROM tab1 AS cor0
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT + col2 + - + ( + + 97 ) DIV ( col1 ) FROM tab0 AS cor0
----
2
46
6

skipif mysql # not compatible
query I rowsort label-9150
SELECT + col2 + - + ( + + 97 ) / ( col1 ) FROM tab0 AS cor0
----
2
46
6

query I rowsort
SELECT col0 * + - col1 + + - col0 AS col1 FROM tab1 AS cor0
----
-4368
-510
-765

query II rowsort
SELECT DISTINCT + col1 + - 24 + - col0 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
-120
1
-90
21
42
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT ALL col2 / + CAST( NULL AS SIGNED ) * - 9 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) * - 9 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 98 ) * + 24 col0 FROM tab2
----
2352
2352
2352

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + ( 8 ) * 35
----

query I rowsort
SELECT DISTINCT 95 - col1 AS col0 FROM tab2
----
18
28
44

query I rowsort
SELECT ALL col0 - + - 69 FROM tab2
----
115
133
144

query II rowsort
SELECT ALL + col2 AS col0, 58 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 - col1 * + col2 + - - col2 + - col1 - 42 * - col1 + col2 * - - 14 FROM tab0 AS cor0
----
1330
204
714

query I rowsort
SELECT - ( col1 ) - + col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT + + SUM( 29 ) DIV + 66 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + + SUM ( 29 ) / + 66 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT CAST( NULL AS SIGNED ) * - 4 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT CAST ( NULL AS INTEGER ) * - 4 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT ALL - - COUNT( DISTINCT 18 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - - COUNT ( DISTINCT 18 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT MIN( + + 71 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9164
SELECT MIN ( + + 71 ) FROM tab0 AS cor0
----
71

query I rowsort
SELECT ( 33 ) FROM tab2 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9166
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-9166
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ( MAX( + col2 ) ) * 53 FROM tab0 AS cor0
----
5247

skipif mysql # not compatible
query I rowsort label-9167
SELECT ( MAX ( + col2 ) ) * 53 FROM tab0 AS cor0
----
5247

query II rowsort
SELECT DISTINCT + col0, col0 * + ( + col2 ) + + - col2 FROM tab0 AS cor0
----
15
658
87
860
97
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT - MIN( DISTINCT 13 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT - MIN ( DISTINCT 13 ) FROM tab1
----
-13

query I rowsort
SELECT 20 * + - col2 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9171
SELECT DISTINCT - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) + - 31 AS col0 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9171
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) + - 31 AS col0 FROM tab2
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 > ( col0 ) - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT col0 * 98 DIV + + col2 AS col2 FROM tab1
----
131
141
52

skipif mysql # not compatible
query I rowsort label-9173
SELECT col0 * 98 / + + col2 AS col2 FROM tab1
----
131
141
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT - 87 DIV 11 FROM tab0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-9174
SELECT - 87 / 11 FROM tab0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 55 col1 FROM tab0 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT - + ( + + COUNT( * ) ) * - 94 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-9176
SELECT - + ( + + COUNT ( * ) ) * - 94 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
279

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + + - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT ALL 73 + + + ( + CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT ALL 73 + + + ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + ( - col1 ) / + + ( - + col0 ) AS col2 FROM tab0 WHERE 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT - 74 + + - COUNT( * ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT - 74 + + - COUNT ( * ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL - col1 + 19 FROM tab2 AS cor0
----
-32
-48
-58

query I rowsort
SELECT - 80 * - - 19 * + col2 AS col0 FROM tab2 AS cor0
----
-34960
-60800
-88160

query I rowsort
SELECT DISTINCT col1 + + 58 + 27 AS col0 FROM tab2 cor0
----
136
152
162

query I rowsort
SELECT - - col1 - + - col0 + - - 8 * + col2 AS col1 FROM tab2 AS cor0
----
281
461
606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + col2 col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT - 92 - col1 FROM tab2
----
-143
-159
-169

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9187
SELECT DISTINCT * FROM tab2 WHERE CAST( + col1 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9187
SELECT DISTINCT * FROM tab2 WHERE CAST ( + col1 AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab1 WHERE - + ( - col0 ) IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9189
SELECT ALL 88 DIV - + col2 + col2 * 42 * + 97 + + col1 AS col1, + 0 FROM tab2
----
163035
0
236358
0
93750
0

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL 88 / - + col2 + col2 * 42 * + 97 + + col1 AS col1, + 0 FROM tab2
----
163035
0
236358
0
93750
0

query I rowsort
SELECT ALL - 32 * - col1 - - col1 AS col0 FROM tab0
----
2673
33
693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9191
SELECT col1 + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-9191
SELECT col1 + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2
----
28
37
9

query II rowsort
SELECT DISTINCT col2 + - col1 * + col0, + col1 AS col0 FROM tab1
----
-366
5
-4209
47
-618
14

query I rowsort
SELECT - col1 + 19 AS col0 FROM tab0 AS cor0
----
-2
-62
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT DISTINCT + COUNT( * ), 13 AS col1 FROM tab2 AS cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-9194
SELECT DISTINCT + COUNT ( * ), 13 AS col1 FROM tab2 AS cor0
----
3
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT DISTINCT - CAST( NULL AS SIGNED ) / CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 NOT IN ( col1, - col1 )
----

query II rowsort
SELECT + 59 * - col0 AS col1, col2 FROM tab2
----
-2714
23
-3776
40
-4425
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col1 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - 53 AS col2 FROM tab2 cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT DISTINCT + - CAST( AVG ( DISTINCT col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT + - CAST ( AVG ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + ( + + ( + + COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9201
SELECT + ( + + ( + + COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT ( + + ( + + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT ( + + ( + + COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT COUNT( * ) + + 90 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-9203
SELECT COUNT ( * ) + + 90 FROM tab2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + CAST( - ( + + col0 ) AS SIGNED ) ) + + - 4 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + CAST ( - ( + + col0 ) AS INTEGER ) ) + + - 4 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT SUM( - col0 ) + - COUNT( * ) AS col0 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-9205
SELECT SUM ( - col0 ) + - COUNT ( * ) AS col0 FROM tab2
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT - 21 * - COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - 21 * - COUNT ( * ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT col1 * + - 40 FROM tab0 AS cor0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT + 99 * MIN( ALL - 52 ) AS col1 FROM tab1 AS cor0
----
-5148

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 99 * MIN ( ALL - 52 ) AS col1 FROM tab1 AS cor0
----
-5148

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - col1 < NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col0 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT 31 + - col2 FROM tab0
----
-16
-68
21

query I rowsort
SELECT - 27 + + ( - - col1 ) - col2 FROM tab0 WHERE - 35 + - col0 > NULL
----

query I rowsort
SELECT DISTINCT - + 54 + 67 FROM tab1 cor0
----
13

query II rowsort
SELECT ALL + col1 AS col1, 36 AS col2 FROM tab1 AS cor0
----
14
36
47
36
5
36

query I rowsort
SELECT - col2 * - 74 + - - col2 AS col1 FROM tab0 AS cor0
----
3525
7425
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT DISTINCT CAST( + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - col2 + - col1 + + - ( + col2 ) * + col1 FROM tab1 AS cor0
----
-1454
-3311
-359

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9218
SELECT DISTINCT + 47 AS col1, + CAST( + ( - 78 ) AS SIGNED ) + + col0 + 65 * - col0 * 81 * + + 24 FROM tab0 AS cor0
----
47
-10993311
47
-12256901
47
-1895463

skipif mysql # not compatible
query II rowsort label-9218
SELECT DISTINCT + 47 AS col1, + CAST ( + ( - 78 ) AS INTEGER ) + + col0 + 65 * - col0 * 81 * + + 24 FROM tab0 AS cor0
----
47
-10993311
47
-12256901
47
-1895463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 col0 FROM tab2 WHERE NOT - - col2 <> col0
----

query I rowsort
SELECT ALL col2 + + col2 - - + col0 AS col0 FROM tab1
----
203
227
243

query I rowsort
SELECT ALL col2 + + 59 + + col1 FROM tab0
----
159
187
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT 56 * - MAX( DISTINCT + col0 ) FROM tab0
----
-5432

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT 56 * - MAX ( DISTINCT + col0 ) FROM tab0
----
-5432

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT + MIN( DISTINCT - 2 ) AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9224
SELECT + MIN ( DISTINCT - 2 ) AS col1 FROM tab2 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT + - 41 * + MIN( + 14 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-574

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT + - 41 * + MIN ( + 14 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL - COUNT( ALL - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL - COUNT ( ALL - col1 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT + - 67 + + col1 FROM tab1 WHERE NOT NULL >= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * + ( + + 2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - AVG ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 - - + col2 + + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL + SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT 31 * + col2 AS col2 FROM tab2 cor0
----
1240
1798
713

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + 82 IS NOT NULL ) OR NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT SUM( ALL - + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9235
SELECT SUM ( ALL - + col2 ) FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * - - col1 col0 FROM tab2
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT + MIN( + 72 ) col2 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9237
SELECT DISTINCT + MIN ( + 72 ) col2 FROM tab1
----
72

query I rowsort
SELECT + col2 + - + 7 AS col0 FROM tab0 AS cor0
----
3
40
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT + col0 * - 0 DIV + col1 + + col1 * - + col1 + + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-399
-6399
1

skipif mysql # not compatible
query I rowsort label-9239
SELECT + col0 * - 0 / + col1 + + col1 * - + col1 + + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-399
-6399
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT - col2 DIV + + 67 + + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-9240
SELECT - col2 / + + 67 + + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL 93 + + + col1 FROM tab0
----
114
174
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL 81 - + COUNT( * ) - - ( 3 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL 81 - + COUNT ( * ) - - ( 3 ) FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - + SUM( DISTINCT + + 90 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-9243
SELECT - + SUM ( DISTINCT + + 90 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

query I rowsort
SELECT DISTINCT col1 - 27 AS col1 FROM tab1 cor0
----
-13
-22
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT DISTINCT + + 87 - + CAST( - ( + 61 ) AS SIGNED ) FROM tab0 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT + + 87 - + CAST ( - ( + 61 ) AS INTEGER ) FROM tab0 AS cor0
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT col2 * col2 DIV - col2 - - col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-9247
SELECT col2 * col2 / - col2 - - col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL + + col2 - + - 51 AS col1 FROM tab2 AS cor0
----
109
74
91

query I rowsort
SELECT - col0 - col2 * - col0 * - 49 FROM tab1 AS cor0
----
-239955
-245820
-303303

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9250
SELECT DISTINCT - 26 - - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT - 26 - - - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL - - MIN( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - - MIN ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + ( + col2 ) / - col2
----

query I rowsort
SELECT col1 - - col2 * + col2 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE - col2 - + 66 <> col1
----
23
40
58

query II rowsort
SELECT DISTINCT col0, - 6 + + + col1 FROM tab0
----
15
75
87
15
97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ( - COUNT( * ) ) * COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9256
SELECT ( - COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT MAX( ALL 34 ) col1 FROM tab1
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9257
SELECT MAX ( ALL 34 ) col1 FROM tab1
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-9258
SELECT col1, + 74 DIV + 12 FROM tab1
----
14
6
47
6
5
6

skipif mysql # not compatible
query II rowsort label-9258
SELECT col1, + 74 / + 12 FROM tab1
----
14
6
47
6
5
6

query I rowsort
SELECT DISTINCT ( - col0 ) * col0 AS col2 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT 11 * - ( col0 ) AS col2 FROM tab2
----
-506
-704
-825

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 * - col2 * - col1 IS NULL
----

query II rowsort
SELECT ALL col0 AS col1, - col1 + - + col1 FROM tab0
----
15
-162
87
-42
97
-2

query II rowsort
SELECT - col1 AS col0, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT DISTINCT col0 DIV ( + col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT col0 / ( + col0 ) FROM tab0
----
1

query I rowsort
SELECT + col2 + col2 FROM tab2 WHERE NOT + 80 / - + ( - 29 ) NOT BETWEEN 36 AND - col0 + + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT COUNT( * ) * + AVG ( - col0 ) FROM tab1 WHERE NOT + - 13 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT COUNT ( * ) * + AVG ( - col0 ) FROM tab1 WHERE NOT + - 13 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col0 AS col2, 5 * + col2 AS col1 FROM tab0
----
15
235
87
50
97
495

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT SUM( ALL - + 39 ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT SUM ( ALL - + 39 ) FROM tab2 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT MAX( ALL col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9269
SELECT MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - + col1 * 71 AS col1 FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9271
SELECT ALL 86 DIV + + COUNT( + col0 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL 86 / + + COUNT ( + col0 ) FROM tab1
----
28

query I rowsort
SELECT - 33 * - 81 AS col1 FROM tab2
----
2673
2673
2673

query I rowsort
SELECT ALL + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9274
SELECT + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL + ( 40 ) * COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL + ( 40 ) * COUNT ( * ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT + - 18 + - + COUNT( DISTINCT - 75 ) * - 3 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9278
SELECT + - 18 + - + COUNT ( DISTINCT - 75 ) * - 3 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT + 70 + - + col1 FROM tab0 AS cor0
----
-11
49
69

query I rowsort
SELECT + col2 + - + 89 * col1 AS col0 FROM tab1
----
-1150
-386
-4115

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT - COUNT( - 50 ) FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT - COUNT ( - 50 ) FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 57 + + 18 FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - ( - col2 ) * 39 FROM tab0 AS cor0
----
1818
303
3764

query I rowsort
SELECT - ( 70 ) * - col2 AS col0 FROM tab1
----
4130
4760
6720

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * col2 col1 FROM tab2
----
-1541
-2680
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL - SUM( + col2 ) + 4 AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - SUM ( + col2 ) + 4 AS col0 FROM tab1
----
-219

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN 26 * + col2 + col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT - MIN( - 93 ) DIV 44 AS col2 FROM tab0 WHERE NOT - ( col2 ) - col0 BETWEEN + col0 DIV col0 - + 75 DIV - 70 AND - ( + 97 )
----
2

skipif mysql # not compatible
query I rowsort label-9290
SELECT - MIN ( - 93 ) / 44 AS col2 FROM tab0 WHERE NOT - ( col2 ) - col0 BETWEEN + col0 / col0 - + 75 / - 70 AND - ( + 97 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT MIN( col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT MIN ( col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT ALL - col1 DIV 41 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL - col1 / 41 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL col0 + 88 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT + 81 + + SUM( + col2 ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-9294
SELECT + 81 + + SUM ( + col2 ) FROM tab0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT DISTINCT + 4 AS col1 FROM tab0 WHERE NOT ( - col2 / + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + 4 AS col1 FROM tab0 WHERE NOT ( - col2 / + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
4

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE - col1 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT MAX( - 93 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-9298
SELECT MAX ( - 93 ) FROM tab1
----
-93

query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 AS col0 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT 96 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 < ( - col1 )
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * + col1 col0 FROM tab0 AS cor0
----
3321
41
861

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE ( - 91 ) BETWEEN NULL AND ( 22 ) - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT MAX( 92 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
92

skipif mysql # not compatible
query I rowsort label-9303
SELECT MAX ( 92 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
92

query I rowsort
SELECT 8 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT ALL + col0 + + col2 DIV + col2 AS col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL + col0 + + col2 / + col2 AS col0 FROM tab0
----
16
88
98

query I rowsort
SELECT - col2 * col2 + + 80 FROM tab0
----
-20
-2129
-9721

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL COUNT( ALL - 8 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL COUNT ( ALL - 8 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 / col1 + - col2 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT ALL + 88 DIV col2 FROM tab0 cor0 WHERE NOT ( col2 * - col2 - col0 DIV col2 ) BETWEEN ( col2 ) AND 25 * + 47 + 6
----
0
1
8

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + 88 / col2 FROM tab0 cor0 WHERE NOT ( col2 * - col2 - col0 / col2 ) BETWEEN ( col2 ) AND 25 * + 47 + 6
----
0
1
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9310
SELECT * FROM tab1 AS cor0 WHERE col1 - - col0 <= col0 * - CAST( NULL AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-9310
SELECT * FROM tab1 AS cor0 WHERE col1 - - col0 <= col0 * - CAST ( NULL AS INTEGER ) + - col2
----

query I rowsort
SELECT ALL - ( 36 ) * 78 FROM tab0 AS cor0
----
-2808
-2808
-2808

query I rowsort
SELECT + ( + col1 ) * 6 FROM tab2 cor0
----
306
402
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL ( - 76 ) * COUNT( ALL col2 / 98 ) AS col1 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL ( - 76 ) * COUNT ( ALL col2 / 98 ) AS col1 FROM tab2 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL + - 34 * - COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + - 34 * - COUNT ( * ) FROM tab0 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL + COUNT( * ) * 79 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL + COUNT ( * ) * 79 FROM tab2 AS cor0
----
237

query I rowsort
SELECT DISTINCT + col2 * 89 FROM tab1 cor0
----
5251
6052
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT + 20 + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT + 20 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9318
SELECT DISTINCT * FROM tab0 WHERE ( - ( 33 ) * + col0 + CAST( NULL AS SIGNED ) ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-9318
SELECT DISTINCT * FROM tab0 WHERE ( - ( 33 ) * + col0 + CAST ( NULL AS INTEGER ) ) IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT ALL 81 DIV - - col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL 81 / - - col0 AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL - 90 + - 24 AS col2 FROM tab2
----
-114
-114
-114

query I rowsort
SELECT DISTINCT ( - col2 ) * ( + ( col0 ) ) + + col2 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 82 >= - 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT 2 * + + col0 + CAST( NULL AS SIGNED ) * - 99 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT 2 * + + col0 + CAST ( NULL AS INTEGER ) * - 99 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE ( 58 * col1 ) <= col2 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE ( 58 * col1 ) <= col2 / - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT - col1 * + - col1 * - col0 + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT - col1 * + - col1 * - col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col1 AS col1 FROM tab0 WHERE col2 IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9327
SELECT col0 + + col2 DIV col2 col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9327
SELECT col0 + + col2 / col2 col1 FROM tab1
----
52
86
92

query I rowsort
SELECT col2 * col1 + - ( - col0 ) FROM tab1
----
1395
3287
380

query I rowsort
SELECT DISTINCT col2 * + 10 * + 82 AS col2 FROM tab2
----
18860
32800
47560

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 23 = ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + 12 AS col1 FROM tab0 AS cor0
----
-1044
-1164
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT + MIN( ALL ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9332
SELECT + MIN ( ALL ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT 33 + + col0 FROM tab2
----
108
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT COUNT( 18 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9334
SELECT COUNT ( 18 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT - MAX( - 89 ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-9335
SELECT - MAX ( - 89 ) FROM tab2
----
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( col1 - - + col2 + - col1 * - col1 )
----

query I rowsort
SELECT ALL - - col2 * - + col0 * - col0 + col2 AS col2 FROM tab1 cor0
----
249792
426334
563176

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL - - ( + 69 ) * - MAX( col0 ) FROM tab0 AS cor0
----
-6693

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL - - ( + 69 ) * - MAX ( col0 ) FROM tab0 AS cor0
----
-6693

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= 37 + - col2 + + col1 * 87
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 29 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT DISTINCT - CAST( - + CAST( - col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - CAST ( - + CAST ( - col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - + col0 * + 33 IS NOT NULL
----

query I rowsort
SELECT + 63 * 34 AS col1 FROM tab1 AS cor0
----
2142
2142
2142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT COUNT( 78 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9346
SELECT DISTINCT COUNT ( 78 ) col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT col1 > + + col0
----
87
97

query I rowsort
SELECT ALL 86 FROM tab2 WHERE NOT 97 - col1 <= + col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( col2 * 60 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - - ( - MAX( ALL - 8 ) ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9350
SELECT - - ( - MAX ( ALL - 8 ) ) FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT + COUNT( 81 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9351
SELECT + COUNT ( 81 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * 57 + - + col1 FROM tab1 AS cor0
----
-3368
-3923
-5486

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + + COUNT( + + 41 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9353
SELECT + + COUNT ( + + 41 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) < + 75
----

skipif mysql # not compatible
query I rowsort label-9354
SELECT col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < + 75
----

query II rowsort
SELECT col2, + col2 * + col0 AS col2 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

query I rowsort
SELECT + col1 * - 6 FROM tab0 AS cor0 WHERE NOT - + col1 IS NOT NULL AND ( ( col0 ) + - 0 ) NOT IN ( - 67 )
----

query I rowsort
SELECT ( + - ( + + col2 ) ) + - 18 + + + col1 + col0 * col1 * - 88 AS col0 FROM tab0 AS cor0
----
-106904
-160783
-8652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab2 cor0 WHERE NOT NULL IS NULL AND + col2 >= NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE + 59 + + - col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT - col1 + + + CAST( NULL AS SIGNED ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT - col1 + + + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT DISTINCT ( + + col2 ) + - - col0 * + col0 - - - col1 - - col0 DIV + col1 col0 FROM tab2 AS cor0
----
2088
4059
5617

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9361
SELECT DISTINCT ( + + col2 ) + - - col0 * + col0 - - - col1 - - col0 / + col1 col0 FROM tab2 AS cor0
----
2088
4059
5617

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT 25 + + + COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-9362
SELECT 25 + + + COUNT ( * ) FROM tab1
----
28

query I rowsort
SELECT - ( + - col1 ) + + col1 AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT DISTINCT - col1 + + 0 FROM tab1 WHERE - 8 IN ( + 53 + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT + COUNT( * ) + - 32 AS col2, 27 FROM tab0
----
-29
27

skipif mysql # not compatible
query II rowsort label-9365
SELECT + COUNT ( * ) + - 32 AS col2, 27 FROM tab0
----
-29
27

query I rowsort
SELECT - col0 * - + col1 + - - col0 AS col1 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT ALL + ( - col2 ) + + col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9368
SELECT * FROM tab0 WHERE - col1 * - 12 * - + 53 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9368
SELECT * FROM tab0 WHERE - col1 * - 12 * - + 53 >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 97 + - col1 FROM tab2
----
20
30
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT - 63 - + col2 FROM tab2 WHERE + col1 / col2 BETWEEN NULL AND - col0 + CAST( - 38 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9370
SELECT - 63 - + col2 FROM tab2 WHERE + col1 / col2 BETWEEN NULL AND - col0 + CAST ( - 38 AS INTEGER )
----

query I rowsort
SELECT - col2 * + col1 + - 0 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - col1
----

query I rowsort
SELECT + col1 - - - col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT col0 * col2 + 2 AS col2 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
1060
2562
4352

query I rowsort
SELECT ALL 36 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + 72 * col2 )
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT SUM( + ( col1 ) ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT SUM ( + ( col1 ) ) AS col2 FROM tab0
----
103

query I rowsort
SELECT DISTINCT + 63 * 42 FROM tab2 cor0
----
2646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT COUNT( * ) DIV - 20 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9380
SELECT COUNT ( * ) / - 20 col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9381
SELECT DISTINCT + 24 DIV col1 AS col0 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT + 24 / col1 AS col0 FROM tab1 AS cor0
----
0
1
4

query I rowsort
SELECT ALL - - 46 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT - col0 * - + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
225
7569
9409

query I rowsort
SELECT + 35 * + - ( - - 75 ) FROM tab0 AS cor0
----
-2625
-2625
-2625

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9385
SELECT DISTINCT 56 AS col2, col0 * - - CAST( NULL AS DECIMAL ) + col0 + - 42 AS col0 FROM tab0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9385
SELECT DISTINCT 56 AS col2, col0 * - - CAST ( NULL AS REAL ) + col0 + - 42 AS col0 FROM tab0
----
56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT - SUM( ALL ( + col0 ) ) * + 91 + - + MIN( ALL + col2 ) FROM tab0
----
-18119

skipif mysql # not compatible
query I rowsort label-9387
SELECT - SUM ( ALL ( + col0 ) ) * + 91 + - + MIN ( ALL + col2 ) FROM tab0
----
-18119

query II rowsort
SELECT - 93 AS col0, 96 AS col0 FROM tab2 AS cor0
----
-93
96
-93
96
-93
96

query I rowsort
SELECT + - 50 * + - 79 * col2 FROM tab2 AS cor0
----
158000
229100
90850

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT SUM( col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT SUM ( col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + - col2 - - col1 * - col1 AS col1 FROM tab0 AS cor0
----
-100
-451
-6608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT - - SUM( ALL - - col0 ) * - - 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-9392
SELECT - - SUM ( ALL - - col0 ) * - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT - 11 * - - COUNT( * ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT - 11 * - - COUNT ( * ) FROM tab2 AS cor0
----
-33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 97 * + 77 + - col2 NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT DISTINCT - + 3 AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT + - 92 DIV + - col2 + - col1 * - - 58 + - col0 AS col0 FROM tab2 AS cor0
----
-3000
-3960
-4528

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT + - 92 / + - col2 + - col1 * - - 58 + - col0 AS col0 FROM tab2 AS cor0
----
-3000
-3960
-4528

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT - 38 * - - 90 + MAX( DISTINCT + col1 ) AS col2 FROM tab2
----
-3343

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT - 38 * - - 90 + MAX ( DISTINCT + col1 ) AS col2 FROM tab2
----
-3343

query I rowsort
SELECT 84 - - ( + col0 ) FROM tab2
----
130
148
159

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - + 36 / + - col0 IS NOT NULL AND NOT + col2 <> + 99
----

query I rowsort
SELECT ALL - 45 + + col0 * 91 * + col2 FROM tab0
----
64110
79125
873828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col1 ) + - ( + col2 ) col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT - 20 + + + col0 AS col1 FROM tab1
----
31
65
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 - + col0 + + 63 * - col2 * 74 col0 FROM tab2
----
-107254
-186526
-270453

query II rowsort
SELECT DISTINCT - 53 + + 8 AS col1, - 49 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + + col1 IS NULL
----
-45
10
-45
19
-45
47

query I rowsort
SELECT col2 * + - 31 FROM tab2
----
-1240
-1798
-713

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL = + col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT + 93 * + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
-837

skipif mysql # not compatible
query I rowsort label-9407
SELECT + 93 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
-837

query I rowsort
SELECT ALL - ( + 85 ) AS col1 FROM tab2 cor0
----
-85
-85
-85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 32 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT DISTINCT + col2 DIV col1 * 24 * - 26 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT + col2 / col1 * 24 * - 26 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 23, - col0 * + col2 AS col2 FROM tab1 AS cor0
----
23
-4896
23
-5015
23
-6188

query I rowsort
SELECT DISTINCT + 93 * + - col0 + col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT 54 * + col2 FROM tab1 AS cor0
----
3186
3672
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col0 col1, - 8 FROM tab2
----
2346
-8
4928
-8
5025
-8

query I rowsort
SELECT DISTINCT 65 * + col2 FROM tab2
----
1495
2600
3770

query II rowsort
SELECT col1 + 67 + + 5 AS col2, + col0 * - + col1 FROM tab0
----
153
-1215
73
-97
93
-1827

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( + 31 / + - col1 + + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 99 FROM tab2 WHERE NOT NULL IS NOT NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL COUNT( ALL - 50 ) AS col0 FROM tab1 WHERE NOT col2 * + + 10 / - - 65 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL COUNT ( ALL - 50 ) AS col0 FROM tab1 WHERE NOT col2 * + + 10 / - - 65 + + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9420
SELECT DISTINCT + - CAST( SUM( col1 ) AS SIGNED ) DIV - COUNT( * ) FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + - CAST ( SUM ( col1 ) AS INTEGER ) / - COUNT ( * ) FROM tab1 cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL + COUNT( + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL + COUNT ( + - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col0 + + 3 / col2 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 41 AS col0 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + - col1 * + + 52 * - - col0 + + 69 AS col2 FROM tab0 AS cor0
----
-4975
-63111
-94935

query I rowsort
SELECT DISTINCT - 16 + col0 + col0 FROM tab1
----
154
166
86

query I rowsort
SELECT DISTINCT + col0 + - - 54 AS col2 FROM tab1 WHERE - - 51 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 54 * - 76 col1 FROM tab1 AS cor0
----
4057
4090
4099

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( 87, 30 / - 24 + - - 41 + + ( - + 85 ) + - + col2 - + + ( - - col0 ) + + + col2 / - + col1 * - col2 * 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT - ( MAX( ALL - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - ( MAX ( ALL - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - - 79 AS col0 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT ALL MIN( + col2 ) AS col0, 60 col2 FROM tab1
----
59
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9432
SELECT ALL MIN ( + col2 ) AS col0, 60 col2 FROM tab1
----
59
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT 15 DIV 9 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9433
SELECT 15 / 9 FROM tab0
----
1
1
1

query I rowsort
SELECT + - 30 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 74 * - - col2 - + ( + 34 ) AS col0 FROM tab1 WHERE NULL BETWEEN + 62 * + col2 - - 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT ALL - MIN( DISTINCT 54 ) + - + 16 AS col0 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL - MIN ( DISTINCT 54 ) + - + 16 AS col0 FROM tab2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - MAX( - 82 ) - - + COUNT( * ) AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - MAX ( - 82 ) - - + COUNT ( * ) AS col1 FROM tab1
----
85

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + 10 - - col0 AS col2 FROM tab0
----
107
25
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - 89 * COUNT( * ) - + MIN( ALL 68 ) AS col1 FROM tab1
----
-335

skipif mysql # not compatible
query I rowsort label-9440
SELECT - 89 * COUNT ( * ) - + MIN ( ALL 68 ) AS col1 FROM tab1
----
-335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9441
SELECT - + 60 * + col1 - CAST( + + 11 AS SIGNED ) * + 75 FROM tab0 AS cor0
----
-2085
-5685
-885

skipif mysql # not compatible
query I rowsort label-9441
SELECT - + 60 * + col1 - CAST ( + + 11 AS INTEGER ) * + 75 FROM tab0 AS cor0
----
-2085
-5685
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT - - SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9443
SELECT - - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT 68 * col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9445
SELECT DISTINCT + 69 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT + 69 * + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + MIN( - + 4 ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9446
SELECT + MIN ( - + 4 ) AS col1 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT + ( - 65 ) FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT 23 * - + 45 AS col2 FROM tab2 AS cor0
----
-1035
-1035
-1035

query II rowsort
SELECT col1 AS col2, - col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ALL 0 + - - col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 43 / + + col2 * + - col2 >= - - ( col2 ) + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT CAST( - col1 AS SIGNED ) col0 FROM tab0 WHERE NOT + 63 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9452
SELECT CAST ( - col1 AS INTEGER ) col0 FROM tab0 WHERE NOT + 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT ALL - col1 + - 70 DIV col1 AS col0 FROM tab2
----
-52
-68
-77

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - col1 + - 70 / col1 AS col0 FROM tab2
----
-52
-68
-77

query II rowsort
SELECT DISTINCT + 80 AS col0, col0 - - col0 + + col0 * col0 AS col1 FROM tab1
----
80
2703
80
7395
80
8463

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9455
SELECT ALL * FROM tab1 WHERE NOT + - col1 + - + col0 * + - 8 NOT BETWEEN + + 99 AND - + CAST( 36 AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-9455
SELECT ALL * FROM tab1 WHERE NOT + - col1 + - + col0 * + - 8 NOT BETWEEN + + 99 AND - + CAST ( 36 AS INTEGER ) + col2
----

query I rowsort
SELECT ALL - 14 AS col2 FROM tab2 WHERE + - col2 BETWEEN NULL AND 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT DISTINCT + 16 + + COUNT( * ) + 91 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT + 16 + + COUNT ( * ) + 91 FROM tab1
----
110

query I rowsort
SELECT DISTINCT - col2 / + 22 AS col0 FROM tab2 WHERE NOT col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - MIN( DISTINCT - col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9459
SELECT - MIN ( DISTINCT - col1 ) col1 FROM tab0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - + ( - col1 ) FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - - col0 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9464
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 54 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9464
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 54 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 * + 94 AS col2, - col0 FROM tab1 AS cor0
----
-5546
-85
-6392
-91
-9024
-51

query I rowsort
SELECT ALL - 71 * - - 57 FROM tab2 AS cor0
----
-4047
-4047
-4047

query I rowsort
SELECT DISTINCT col1 * + - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + 2 - - ( + + col0 ) FROM tab2 cor0
----
48
66
77

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND - col2 * + 12 IS NOT NULL
----

query I rowsort
SELECT col1 - - - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9471
SELECT ALL COUNT( * ) AS col0, + 39 * - SUM( ALL - - 12 ) + - MAX( - - 84 ) AS col1 FROM tab2
----
3
-1488

skipif mysql # not compatible
query II rowsort label-9471
SELECT ALL COUNT ( * ) AS col0, + 39 * - SUM ( ALL - - 12 ) + - MAX ( - - 84 ) AS col1 FROM tab2
----
3
-1488

query II rowsort
SELECT + col0, + col1 * 99 AS col2 FROM tab0
----
15
8019
87
2079
97
99

query II rowsort
SELECT - 65 AS col1, + col0 + + - 45 + - col0 FROM tab1
----
-65
-45
-65
-45
-65
-45

query II rowsort
SELECT DISTINCT + col2, col2 * - col0 * - col2 FROM tab2
----
23
24334
40
102400
58
252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 43 col0, - col2 + + 47 FROM tab1
----
-43
-12
-43
-21
-43
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 34 > col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL - - COUNT( * ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9477
SELECT ALL - - COUNT ( * ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT ALL col0 * + + ( - + 24 ) AS col1 FROM tab2
----
-1104
-1536
-1800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= 29
----
15
81
47

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL - - 43 * + MAX( ALL + + col2 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
4260

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - - 43 * + MAX ( ALL + + col2 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
4260

query I rowsort
SELECT + 99 + + ( + - ( col1 ) ) * + 43 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2094
-2782
-3212

query I rowsort
SELECT ALL col1 + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT col0 + - - 21 FROM tab2 AS cor0
----
67
85
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - COUNT( * ) + + 87 AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9487
SELECT - COUNT ( * ) + + 87 AS col0 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL + 50 + - COUNT( * ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + 50 + - COUNT ( * ) FROM tab2
----
47

query I rowsort
SELECT - col2 * ( - col1 ) / col2 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 79 * - col0 + - col2 FROM tab0
----
-1232
-6883
-7762

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - ( - ( col0 ) ) / + ( - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * col1 >= 25 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL - 90 * - COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - 90 * - COUNT ( * ) FROM tab0
----
270

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + MIN( DISTINCT - 94 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9497
SELECT + MIN ( DISTINCT - 94 ) FROM tab0 AS cor0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9498
SELECT - 19 DIV - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 19 / - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - - 51 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT + COUNT( * ) - - - 29 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + COUNT ( * ) - - - 29 FROM tab0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 / - 7 * - 92 IN ( - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL + COUNT( DISTINCT col0 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + COUNT ( DISTINCT col0 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT col2 + CAST( NULL AS SIGNED ) * - ( + 77 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT col2 + CAST ( NULL AS INTEGER ) * - ( + 77 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - + col2 * - col2 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT DISTINCT 10 FROM tab0 cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL + col0 - - col2 * col1 AS col1 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT COUNT( * ) + - 58 FROM tab2 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9507
SELECT COUNT ( * ) + - 58 FROM tab2 cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL + MAX( ALL col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + MAX ( ALL col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT + + ( + - 6 ) AS col0 FROM tab2 cor0
----
-6
-6
-6

query II rowsort
SELECT col2 AS col0, col0 AS col1 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT - col0 DIV - + 39 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-9511
SELECT - col0 / - + 39 FROM tab0
----
0
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col2 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT ALL - 84 * - + 93 FROM tab1
----
7812
7812
7812

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9514
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9514
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL COUNT( DISTINCT + 38 ) FROM tab0 WHERE NOT - 33 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL COUNT ( DISTINCT + 38 ) FROM tab0 WHERE NOT - 33 IS NULL
----
1

query I rowsort
SELECT ALL + - ( - + col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL COUNT( DISTINCT - - 33 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9517
SELECT ALL COUNT ( DISTINCT - - 33 ) col2 FROM tab1
----
1

query I rowsort
SELECT + 89 / + + 28 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 96 FROM tab1 WHERE + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL OR ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT + col0 * + 60 AS col0 FROM tab2 cor0
----
2760
3840
4500

onlyif mysql # DIV for integer division: 
query I rowsort label-9522
SELECT - col2 DIV - ( col2 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9522
SELECT - col2 / - ( col2 ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - + 15 * col0 * + col0 FROM tab1 AS cor0
----
-108375
-124215
-39015

query I rowsort
SELECT 73 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * - - col0 - col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9526
SELECT ALL + - COUNT( * ) DIV + 82 + + COUNT( * ), 29 col1 FROM tab0 AS cor0
----
3
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9526
SELECT ALL + - COUNT ( * ) / + 82 + + COUNT ( * ), 29 col1 FROM tab0 AS cor0
----
3
29

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 / - col2 * + + 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT - col2 * + CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-9528
SELECT - col2 * + CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - + col2 AS col1, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT 37 + + 49 FROM tab2 cor0
----
86

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / - 94 + + col0 + - 58 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT DISTINCT + 89 + col0 + + col1 + - col2 DIV + col0 * col0 DIV - + 87 FROM tab2
----
186
230
231

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + 89 + col0 + + col1 + - col2 / + col0 * col0 / - + 87 FROM tab2
----
186
230
231

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 18, - 44 AS col2 FROM tab0, tab2 cor0
----
18 values hashing to 595e0d2b4c1316423da333137318626c

query I rowsort
SELECT + 17 + 30 AS col0 FROM tab1
----
47
47
47

query I rowsort
SELECT ALL col2 + + 37 + + 95 - + 4 * - + col0 FROM tab2
----
339
428
490

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT - + MIN( + ( - 84 ) ) AS col0 FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT - + MIN ( + ( - 84 ) ) AS col0 FROM tab0 cor0
----
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1 + + - col0 / + col1 * col2 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * 42 * col2 * - + 25 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * 42 * col2 * - + 25 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 68 + col0 FROM tab0 AS cor0
----
155
165
83

query I rowsort
SELECT DISTINCT + - 71 AS col2 FROM tab1 WHERE col1 / + col1 IS NOT NULL
----
-71

query II rowsort
SELECT col0, + 45 * 13 AS col1 FROM tab1
----
51
585
85
585
91
585

query I rowsort
SELECT ALL - - ( + 64 ) * - 38 AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
-2432
-2432
-2432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 - + col0 col0 FROM tab2
----
-43
-61
-72

query I rowsort
SELECT ALL + - col0 - + 17 FROM tab1 AS cor0
----
-102
-108
-68

query I rowsort
SELECT col0 * + col0 * - col0 AS col0 FROM tab1 cor0
----
-132651
-614125
-753571

onlyif mysql # DIV for integer division: 
query I rowsort label-9548
SELECT ALL ( + 23 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL ( + 23 ) / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT DISTINCT - 47 DIV + col2 * - 4 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT - 47 / + col2 * - 4 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 * col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 84 AS col0 FROM tab0 cor0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 / + col1 col2 FROM tab0 AS cor0 WHERE NOT 83 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, + 2 col0 FROM tab2 AS cor0
----
46
2
64
2
75
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT ALL + COUNT( * ), + 13 - 96 col1 FROM tab1 AS cor0
----
3
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9554
SELECT ALL + COUNT ( * ), + 13 - 96 col1 FROM tab1 AS cor0
----
3
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT COUNT( * ) * + + SUM( col0 ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-9555
SELECT COUNT ( * ) * + + SUM ( col0 ) FROM tab1
----
681

query II rowsort
SELECT ALL + col1, + col1 AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL - 73 * MAX( DISTINCT col0 ) FROM tab2
----
-5475

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - 73 * MAX ( DISTINCT col0 ) FROM tab2
----
-5475

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT + 54 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT + 54 / - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9559
SELECT - col2 DIV - 99, col1 AS col0 FROM tab0
----
0
21
0
81
1
1

skipif mysql # not compatible
query II rowsort label-9559
SELECT - col2 / - 99, col1 AS col0 FROM tab0
----
0
21
0
81
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ( - SUM( + col0 ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9560
SELECT ( - SUM ( + col0 ) ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT ( + - col1 ) * - col0 * col2 AS col2 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT + col2 * - col0 * + - col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT ALL - col2 * - + col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT + SUM( - - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT + SUM ( - - col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-79

query III rowsort
SELECT DISTINCT - ( col2 ), col1, + col2 FROM tab0
----
9 values hashing to 77da421e30d60cc3365a706e77ad5740

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9569
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 59 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-9569
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 59 < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NOT ( col2 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT - 20 + - col0 AS col1 FROM tab0 AS cor0
----
-107
-117
-35

query II rowsort
SELECT + col1 + + + col0, col1 FROM tab0 cor0
----
108
21
96
81
98
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 80 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT CAST( + - col2 AS SIGNED ) + + 13 * + - 71 AS col1 FROM tab2 AS cor0
----
-946
-963
-981

skipif mysql # not compatible
query I rowsort label-9574
SELECT CAST ( + - col2 AS INTEGER ) + + 13 * + - 71 AS col1 FROM tab2 AS cor0
----
-946
-963
-981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * + + col2 + col2 col1 FROM tab1
----
129120
17464
217396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( col1 ) * - col2 col0, - col1 AS col1 FROM tab2 WHERE + + col1 * col2 - - 62 < + - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT DISTINCT - COUNT( * ) + - + 77 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT - COUNT ( * ) + - + 77 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL COUNT( * ) + 25 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL COUNT ( * ) + 25 FROM tab2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT + 28 + - MIN( - CAST( NULL AS SIGNED ) ) * + + 17 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + 28 + - MIN ( - CAST ( NULL AS INTEGER ) ) * + + 17 FROM tab0
----
NULL

query I rowsort
SELECT 62 - - col0 FROM tab0 AS cor0
----
149
159
77

query I rowsort
SELECT + 49 - + 27 - + ( + 62 ) * + - 65 FROM tab1 AS cor0
----
4052
4052
4052

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - COUNT( * ) - COUNT( + col1 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9582
SELECT - COUNT ( * ) - COUNT ( + col1 ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT - COUNT( ALL + col2 ) FROM tab2 cor0 WHERE NOT col0 NOT IN ( col2 * + 46, - col1 * 74 )
----
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT - COUNT ( ALL + col2 ) FROM tab2 cor0 WHERE NOT col0 NOT IN ( col2 * + 46, - col1 * 74 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 22 + - ( - col1 ) * + - col1 / + col2 - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT - COUNT( * ) - + 70 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT - COUNT ( * ) - + 70 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT DISTINCT + 30 DIV - col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + 30 / - col0 FROM tab0 AS cor0
----
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 / + col1 ) IS NOT NULL
----

query I rowsort
SELECT + - 29 FROM tab2 cor0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 > col1 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 4 * + col0 * + + 64 AS col1, + col1 AS col0 FROM tab0
----
22272
21
24832
1
3840
81

query I rowsort
SELECT 45 * - + col2 FROM tab0
----
-2115
-4455
-450

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT + MIN( + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + MIN ( + col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT 1 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9595
SELECT 1 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT + COUNT( - 11 ) * 29 FROM tab0 cor0 WHERE NULL NOT IN ( - 29 * - col0 * - ( col2 ) * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT + COUNT ( - 11 ) * 29 FROM tab0 cor0 WHERE NULL NOT IN ( - 29 * - col0 * - ( col2 ) * col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + 70 AS col1 FROM tab2 cor0
----
70
70
70

query II rowsort
SELECT + - 24 * - col0 * col1, col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
2328
99
29160
47
43848
10

query I rowsort
SELECT DISTINCT 50 + - - col2 + - ( - - col1 ) * col1 FROM tab0 AS cor0
----
-381
-6464
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT 98 + + ( + - 86 ) * - COUNT( * ) * + 40 * SUM( + 76 ) * - COUNT( * ) AS col1 FROM tab0
----
-7058782

skipif mysql # not compatible
query I rowsort label-9601
SELECT 98 + + ( + - 86 ) * - COUNT ( * ) * + 40 * SUM ( + 76 ) * - COUNT ( * ) AS col1 FROM tab0
----
-7058782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9602
SELECT + CAST( NULL AS DECIMAL ) + - - 18 AS col2, COUNT( * ) col0 FROM tab0 WHERE ( + - CAST( NULL AS SIGNED ) ) IS NULL
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9602
SELECT + CAST ( NULL AS REAL ) + - - 18 AS col2, COUNT ( * ) col0 FROM tab0 WHERE ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 IS NULL
----

query I rowsort
SELECT ALL 25 * - - 65 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + col1 IS NULL
----

query I rowsort
SELECT col1 * + - ( 37 ) FROM tab1 AS cor0
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL 17 * COUNT( * ) + + 47 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL 17 * COUNT ( * ) + + 47 FROM tab0 AS cor0
----
98

query I rowsort
SELECT ALL + - col1 * + + 91 AS col1 FROM tab0 AS cor0
----
-1911
-7371
-91

query II rowsort
SELECT ALL - - col1 AS col2, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL - ( - COUNT( DISTINCT + + ( col2 ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL - ( - COUNT ( DISTINCT + + ( col2 ) ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT CAST( ( - 25 ) AS SIGNED ) col1 FROM tab1
----
-25
-25
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9613
SELECT CAST ( ( - 25 ) AS INTEGER ) col1 FROM tab1
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT + 44 + - - CAST( + - col2 AS SIGNED ) * + - col0 FROM tab2
----
1102
2604
4394

skipif mysql # not compatible
query I rowsort label-9614
SELECT + 44 + - - CAST ( + - col2 AS INTEGER ) * + - col0 FROM tab2
----
1102
2604
4394

query II rowsort
SELECT DISTINCT 22 - + 23 + - + 89, col1 FROM tab1
----
-90
14
-90
47
-90
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9616
SELECT - + COUNT( * ) DIV - CAST( MAX( ALL + col2 ) AS SIGNED ) * - - 9 + + 56 AS col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9616
SELECT - + COUNT ( * ) / - CAST ( MAX ( ALL + col2 ) AS INTEGER ) * - - 9 + + 56 AS col1 FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9617
SELECT ALL CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1, 81 AS col1 FROM tab2 AS cor0
----
NULL
81
NULL
81
NULL
81

skipif mysql # not compatible
query II rowsort label-9617
SELECT ALL CAST ( + CAST ( NULL AS REAL ) AS REAL ) AS col1, 81 AS col1 FROM tab2 AS cor0
----
NULL
81
NULL
81
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9618
SELECT DISTINCT - CAST( NULL AS SIGNED ), - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT - 8 < 46 + + + col2
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9618
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT - 8 < 46 + + + col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT - MAX( 16 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-9619
SELECT - MAX ( 16 ) FROM tab1
----
-16

query II rowsort
SELECT + col2 AS col0, 11 AS col0 FROM tab1 AS cor0
----
59
11
68
11
96
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT - ( MAX( ALL + 57 ) ) AS col0 FROM tab0 AS cor0 WHERE col2 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT - ( MAX ( ALL + 57 ) ) AS col0 FROM tab0 AS cor0 WHERE col2 * + col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col1 + - col1
----

query I rowsort
SELECT ALL + - 35 * 22 AS col2 FROM tab1 AS cor0
----
-770
-770
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT DISTINCT + MAX( + + CAST( + - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT + MAX ( + + CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9625
SELECT ALL CAST( NULL AS SIGNED ) * - 52 AS col1, 54 AS col1 FROM tab1
----
NULL
54
NULL
54
NULL
54

skipif mysql # not compatible
query II rowsort label-9625
SELECT ALL CAST ( NULL AS INTEGER ) * - 52 AS col1, 54 AS col1 FROM tab1
----
NULL
54
NULL
54
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL SUM( ALL - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL SUM ( ALL - col2 ) AS col0 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab2 WHERE NOT + 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 42 * 10 * 2 FROM tab2
----
-840
-840
-840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9629
SELECT CAST( NULL AS DECIMAL ) * + 46 * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT CAST ( NULL AS REAL ) * + 46 * - - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT + SUM( 41 ) FROM tab1 WHERE 6 * + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT + SUM ( 41 ) FROM tab1 WHERE 6 * + col2 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - ( + MIN( 63 ) ) AS col2 FROM tab1 WHERE NOT + 65 * - ( - - 88 ) + col2 - + ( - col2 ) IS NULL
----
-63

skipif mysql # not compatible
query I rowsort label-9631
SELECT - ( + MIN ( 63 ) ) AS col2 FROM tab1 WHERE NOT + 65 * - ( - - 88 ) + col2 - + ( - col2 ) IS NULL
----
-63

query I rowsort
SELECT + col2 * - 36 FROM tab0
----
-1692
-3564
-360

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 * + col2 IS NOT NULL )
----

query II rowsort
SELECT ALL - - col2 + - col1 AS col2, - ( col2 ) AS col2 FROM tab2 AS cor0
----
-28
-23
-37
-40
-9
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - - col0 + + col1 * col2 FROM tab1 WHERE NULL IS NULL
----
1395
3287
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9637
SELECT DISTINCT + - SUM( ALL - + col1 ) + - COUNT( * ) DIV + 2 AS col0 FROM tab1 cor0
----
65

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + - SUM ( ALL - + col1 ) + - COUNT ( * ) / + 2 AS col0 FROM tab1 cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT COUNT( * ) + - 11 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9638
SELECT COUNT ( * ) + - 11 FROM tab1 AS cor0
----
-8

query II rowsort
SELECT + col0 + + col1 * + - col1 AS col2, ( - + col1 ) FROM tab1 AS cor0
----
-145
-14
-2118
-47
60
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT DISTINCT 89 DIV + 1 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT 89 / + 1 FROM tab1 AS cor0
----
89

query II rowsort
SELECT DISTINCT + col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL - + 98 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - + 98 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-95

query II rowsort
SELECT ALL col1 AS col1, + 15 FROM tab2
----
51
15
67
15
77
15

query III rowsort
SELECT * FROM tab2 WHERE + 72 * + - 77 + col0 / + col2 * - col2 * col2 + - col0 IS NULL
----

query II rowsort
SELECT 26 AS col0, 8 AS col1 FROM tab1
----
26
8
26
8
26
8

query II rowsort
SELECT ALL - 45 + - 28 AS col2, ( - - ( 18 ) ) FROM tab1
----
-73
18
-73
18
-73
18

query I rowsort
SELECT ALL + 88 - - col2 / 88 * - col1 FROM tab0 WHERE + - col0 IS NULL
----

query I rowsort
SELECT ALL + col2 + 8 AS col1 FROM tab0
----
107
18
55

query I rowsort
SELECT DISTINCT 19 + 37 AS col1 FROM tab2
----
56

query II rowsort
SELECT DISTINCT col2 - - + 81 AS col0, - 34 FROM tab1
----
140
-34
149
-34
177
-34

query I rowsort
SELECT ALL + 3 * + col1 + + 81 AS col2 FROM tab2 AS cor0
----
234
282
312

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL - - col1 * - - col2 + + - col2 + - col0 + + 17 + col1 - + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - - col1 * - - col2 + + - col2 + - col0 + + 17 + col1 - + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ( - SUM( + 26 ) ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-9654
SELECT ( - SUM ( + 26 ) ) FROM tab2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT + col2 DIV - col1 * + + 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT + col2 / - col1 * + + 82 FROM tab2
----
0
0
0

query I rowsort
SELECT - 58 * + 11 AS col2 FROM tab0
----
-638
-638
-638

query I rowsort
SELECT DISTINCT ( - 27 ) FROM tab0
----
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 43 + - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 64 * col1 * - + 30 - 94 - col2 + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT + ( + COUNT( - col1 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9660
SELECT + ( + COUNT ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 81 * - col1 * 6 - - col0 AS col2 FROM tab2 cor0
----
-24740
-32487
-37358

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL MAX( ALL col0 ) * 57 FROM tab0 AS cor0
----
5529

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL MAX ( ALL col0 ) * 57 FROM tab0 AS cor0
----
5529

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT + COUNT( * ) * + ( + ( ( - - 86 ) ) ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + COUNT ( * ) * + ( + ( ( - - 86 ) ) ) FROM tab2 AS cor0
----
258

query I rowsort
SELECT ALL - 52 * + col2 * 79 AS col1 FROM tab0 AS cor0
----
-193076
-406692
-41080

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + 80 )
----

query II rowsort
SELECT DISTINCT col1, - col2 AS col2 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT DISTINCT ( 1 ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT ALL CAST( - - col2 AS SIGNED ) * + + 96 + + + 64 * - + col2 AS col1 FROM tab2
----
1280
1856
736

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL CAST ( - - col2 AS INTEGER ) * + + 96 + + + 64 * - + col2 AS col1 FROM tab2
----
1280
1856
736

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT BETWEEN col2 AND - + col2
----

query I rowsort
SELECT + 2 + + col1 AS col0 FROM tab1 AS cor0
----
16
49
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT COUNT( * ) * + CAST( + 43 AS SIGNED ) + - 54 * - COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT COUNT ( * ) * + CAST ( + 43 AS INTEGER ) + - 54 * - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT DISTINCT + col2 * col0 DIV 38 + - col1 FROM tab0 AS cor0
----
-63
1
251

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + col2 * col0 / 38 + - col1 FROM tab0 AS cor0
----
-63
1
251

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT ALL + + 36 DIV - 1 FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + + 36 / - 1 FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9674
SELECT ALL * FROM tab1 WHERE NULL IN ( - - col1 * + col0, col1 * + + col1, - CAST( - 98 AS SIGNED ) * + - ( + col1 ) + + - ( + + 62 ) )
----

skipif mysql # not compatible
query III rowsort label-9674
SELECT ALL * FROM tab1 WHERE NULL IN ( - - col1 * + col0, col1 * + + col1, - CAST ( - 98 AS INTEGER ) * + - ( + col1 ) + + - ( + + 62 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9675
SELECT * FROM tab1 WHERE - - CAST( NULL AS DECIMAL ) * + + 64 <= NULL
----

skipif mysql # not compatible
query III rowsort label-9675
SELECT * FROM tab1 WHERE - - CAST ( NULL AS REAL ) * + + 64 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col1 + col2 * + 37 AS col0 FROM tab2
----
-1600
-1740
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9677
SELECT + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-27

query I rowsort
SELECT DISTINCT + col1 * + 63 - 61 AS col0 FROM tab1 AS cor0
----
254
2900
821

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9679
SELECT DISTINCT ( - col1 ) * - 22, - CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-9679
SELECT DISTINCT ( - col1 ) * - 22, - CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT 43 - + + col2 AS col0 FROM tab1 AS cor0
----
-16
-25
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-9681
SELECT DISTINCT - - 14 DIV + col0, - 92 AS col2 FROM tab0 AS cor0
----
0
-92

skipif mysql # not compatible
query II rowsort label-9681
SELECT DISTINCT - - 14 / + col0, - 92 AS col2 FROM tab0 AS cor0
----
0
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT ALL + 8 DIV - MAX( DISTINCT col0 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL + 8 / - MAX ( DISTINCT col0 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + col0 * - col0 * col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9684
SELECT 32 DIV ( 39 ) + - COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9684
SELECT 32 / ( 39 ) + - COUNT ( * ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE col0 + 47 <> NULL
----

query I rowsort
SELECT ALL 44 - col0 AS col1 FROM tab1
----
-41
-47
-7

query I rowsort
SELECT 44 + - col0 AS col2 FROM tab0
----
-43
-53
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + + - col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL + - 83, col1 FROM tab0 AS cor0
----
-83
1
-83
21
-83
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9691
SELECT - SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT 64 * 62 * + 40 AS col0 FROM tab1
----
158720
158720
158720

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 25 IS NOT NULL
----

query I rowsort
SELECT 12 * - col2 AS col2 FROM tab2
----
-276
-480
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL - SUM( - - ( + + col1 ) ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - SUM ( - - ( + + col1 ) ) AS col0 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - 12 + col1
----

query II rowsort
SELECT DISTINCT + 62 AS col2, 70 FROM tab2 cor0
----
62
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT + MAX( DISTINCT + + 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + MAX ( DISTINCT + + 40 ) FROM tab1 AS cor0
----
40

query I rowsort
SELECT - 35 * + col1 * + col0 * + + ( + col1 ) + - - col0 - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-11783608
-13280936
-4187587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT ALL CAST( col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL CAST ( col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT ALL ( - - col0 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL ( - - col0 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT - + 77, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-77
-3

skipif mysql # not compatible
query II rowsort label-9702
SELECT - + 77, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-77
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL - + COUNT( * ) + - 81 AS col2 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - + COUNT ( * ) + - 81 AS col2 FROM tab0 AS cor0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * - - 27 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + - col1 + + col1 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT 35 * - COUNT( * ) / - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT 35 * - COUNT ( * ) / - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 18 FROM tab1 WHERE - col1 BETWEEN + + col2 AND col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 / + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - - 77 FROM tab0
----
158
78
98

query I rowsort
SELECT DISTINCT col0 - - + col1 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT DISTINCT + + 18 * + 1 - + + 91 / + + CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT + + 18 * + 1 - + + 91 / + + CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + + + 91 col1 FROM tab2 AS cor0
----
137
155
166

query II rowsort
SELECT + 46 AS col0, + col1 AS col2 FROM tab1 AS cor0 WHERE - 46 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col2 < col2 + col0 / + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 - + - 68 AS col2 FROM tab1 AS cor0
----
-28
0
9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9716
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + 58 * + col1 + + col1 < CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9716
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + 58 * + col1 + + col1 < CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( + 62 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( + 62 IS NULL )
----
0

query I rowsort
SELECT DISTINCT - 76 * - - 29 AS col0 FROM tab1 AS cor0
----
-2204

query I rowsort
SELECT + + ( col0 ) * col1 * 94 + + - col1 FROM tab2 AS cor0
----
220473
463155
472283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 30, col2 col2 FROM tab2 AS cor0
----
-30
23
-30
40
-30
58

query I rowsort
SELECT ALL col1 / + 93 / - col0 AS col1 FROM tab2 cor0 WHERE NOT - 16 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT - 5 * COUNT( * ) * + - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9722
SELECT - 5 * COUNT ( * ) * + - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
135

query I rowsort
SELECT ALL - ( + 40 ) FROM tab2
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL - 14 * - - ( + COUNT( * ) ) AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL - 14 * - - ( + COUNT ( * ) ) AS col1 FROM tab2
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-9725
SELECT ALL col0 DIV col1, col0 FROM tab1
----
1
91
17
85
3
51

skipif mysql # not compatible
query II rowsort label-9725
SELECT ALL col0 / col1, col0 FROM tab1
----
1
91
17
85
3
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT ( - 93 ) - - col0 / + 29 FROM tab1 WHERE NOT - col2 / + CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-9726
SELECT ( - 93 ) - - col0 / + 29 FROM tab1 WHERE NOT - col2 / + CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * + + col1 <= - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT + CAST( + 94 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif mysql # not compatible
query I rowsort label-9729
SELECT + CAST ( + 94 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query II rowsort label-9730
SELECT ALL + 22 * - COUNT( * ) - + + COUNT( * ) AS col2, 57 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-207
57

skipif mysql # not compatible
query II rowsort label-9730
SELECT ALL + 22 * - COUNT ( * ) - + + COUNT ( * ) AS col2, 57 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-207
57

query I rowsort
SELECT 85 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + col2 col1 FROM tab2
----
1863
3240
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT MAX( DISTINCT ( col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9733
SELECT MAX ( DISTINCT ( col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9734
SELECT CAST( NULL AS DECIMAL ) * - col0 + - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT CAST ( NULL AS REAL ) * - col0 + - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT - SUM( DISTINCT - - 64 ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT - SUM ( DISTINCT - - 64 ) FROM tab1 AS cor0
----
-64

query II rowsort
SELECT ALL - col2 AS col0, 58 FROM tab0 AS cor0
----
-10
58
-47
58
-99
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT - MAX( - + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9737
SELECT - MAX ( - + col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT MAX( ALL + 45 ) AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT MAX ( ALL + 45 ) AS col1 FROM tab2 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < 19 / + col1 + + col2 / - - col0
----

query II rowsort
SELECT col1 AS col2, - 24 * + col2 FROM tab0
----
1
-2376
21
-240
81
-1128

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + 6 + col2 FROM tab2 AS cor0
----
123
131
80

query I rowsort
SELECT - + 7 + 46 * + col0 FROM tab0 AS cor0
----
3995
4455
683

query II rowsort
SELECT ALL ( - + 95 ) AS col1, 41 AS col0 FROM tab1 AS cor0
----
-95
41
-95
41
-95
41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 96 + - ( - - 5 ) + - col1 / + col2 * 32 + + 77 )
----

query III rowsort
SELECT * FROM tab0 WHERE 49 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ( - MIN( + 98 ) ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-9748
SELECT ( - MIN ( + 98 ) ) FROM tab1
----
-98

query I rowsort
SELECT DISTINCT col0 + + ( - - col2 ) AS col2 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT + + col0 - - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL + col2 * 64 - - - 23 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL + col2 * 64 - - - 23 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * + 39 AS col0 FROM tab0 AS cor0
----
3393
3783
585

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT COUNT( * ) * + 75 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT COUNT ( * ) * + 75 FROM tab2
----
225

query I rowsort
SELECT ALL - 42 * col2 AS col2 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9755
SELECT col1, col0 * col0 * + ( - CAST( NULL AS SIGNED ) ) + - CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9755
SELECT col1, col0 * col0 * + ( - CAST ( NULL AS INTEGER ) ) + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT col2, col2 * - col0 FROM tab0
----
10
-870
47
-705
99
-9603

query I rowsort
SELECT DISTINCT 3 * col1 AS col2 FROM tab2
----
153
201
231

query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab1 cor0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9759
SELECT 96, COUNT( * ) AS col2 FROM tab0 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-9759
SELECT 96, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
96
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE + 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL - AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT MIN( - ( col0 ) ) AS col0 FROM tab1 WHERE ( - 86 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT MIN ( - ( col0 ) ) AS col0 FROM tab1 WHERE ( - 86 ) IS NULL
----
NULL

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT col2 + - col1 NOT BETWEEN col0 AND + col2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab2 WHERE NOT NULL NOT IN ( + col0 + + 88 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT ALL col1 * - CAST( - 37 AS SIGNED ) + + col0 * - col0 col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) > 27
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9766
SELECT ALL col1 * - CAST ( - 37 AS INTEGER ) + + col0 * - col0 col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > 27
----

query I rowsort
SELECT 50 * 80 + + 85 AS col2 FROM tab0
----
4085
4085
4085

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab0 WHERE NOT + col0 * col0 < ( col0 * + 64 )
----
-1

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT col1 * + col2 > col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 72 / 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 11 - col0 AS col0 FROM tab1 WHERE NOT col1 BETWEEN ( col2 ) + - col2 AND - col0
----
-40
-74
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - ( ( + 69 ) ) + COUNT( DISTINCT col0 + col1 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-9772
SELECT - ( ( + 69 ) ) + COUNT ( DISTINCT col0 + col1 ) FROM tab2
----
-66

query I rowsort
SELECT - 57 * - 79 AS col2 FROM tab0
----
4503
4503
4503

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT - COUNT( col1 ) * COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9774
SELECT - COUNT ( col1 ) * COUNT ( * ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT - col1 * 45 AS col0 FROM tab2 WHERE col2 <> NULL
----

query I rowsort
SELECT 37 + - 59 FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT COUNT( * ) * + MIN( ALL 45 ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-9777
SELECT COUNT ( * ) * + MIN ( ALL 45 ) FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT MIN( col2 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT MIN ( col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 * col0 + 5 FROM tab2
----
1063
2565
4355

query I rowsort
SELECT col1 * col2 + - ( col0 ) FROM tab0
----
123
2
3792

query I rowsort
SELECT col1 * 50 AS col2 FROM tab1
----
2350
250
700

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT 55 * - COUNT( * ) FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-9783
SELECT 55 * - COUNT ( * ) FROM tab0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL + 91 * COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + 91 * COUNT ( * ) FROM tab0
----
273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9785
SELECT ALL 61 * SUM( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL 61 * SUM ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT 79 + - COUNT( * ) * 71 AS col0 FROM tab0
----
-134

skipif mysql # not compatible
query I rowsort label-9786
SELECT 79 + - COUNT ( * ) * 71 AS col0 FROM tab0
----
-134

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 51 * + 26 >= ( col2 + - col0 )
----

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( col0 ) AND 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT col1 DIV col0 - + col2 * col1 col2 FROM tab0 AS cor0
----
-210
-3802
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9789
SELECT col1 / col0 - + col2 * col1 col2 FROM tab0 AS cor0
----
-210
-3802
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0 WHERE NOT ( + col0 + col2 / + col1 ) <> + col1 * col2
----

query I rowsort
SELECT + col1 - 12 FROM tab1 cor0
----
-7
2
35

query I rowsort
SELECT col0 - col2 * 73 AS col2 FROM tab2 AS cor0
----
-1633
-2856
-4159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) < ( 5 ) * col2 + ( ( + ( + 35 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) * COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 + - 73 FROM tab2 AS cor0
----
-15
-33
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT MAX( + col1 ) - - 93 FROM tab1 cor0 WHERE NOT col0 + 20 = - col0 + col0
----
140

skipif mysql # not compatible
query I rowsort label-9796
SELECT MAX ( + col1 ) - - 93 FROM tab1 cor0 WHERE NOT col0 + 20 = - col0 + col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE col1 BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE col1 BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT + + col2 * + 71 FROM tab1 AS cor0
----
4189
4828
6816

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 * + 50 BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT + 49 * + col1 - + col2 FROM tab2 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 81 + ( - 39 ) NOT BETWEEN ( + 4 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * 74 col2 FROM tab1 AS cor0
----
1036
3478
370

query I rowsort
SELECT col2 * + col0 + - col1 * 90 FROM tab0 AS cor0 WHERE NOT ( 51 ) = ( + col0 + - col0 * - col2 )
----
-1020
-6585
9513

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT col1 NOT IN ( col2 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT - col1 - + col1 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col1 - + col1 <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT - 81 * - - 16 * COUNT( * ) col0 FROM tab0
----
-3888

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9807
SELECT DISTINCT - 81 * - - 16 * COUNT ( * ) col0 FROM tab0
----
-3888

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT ALL 59 DIV col1 AS col0 FROM tab0 WHERE NOT 94 * - ( + col2 * col0 ) IN ( - col1 )
----
0
2
59

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL 59 / col1 AS col0 FROM tab0 WHERE NOT 94 * - ( + col2 * col0 ) IN ( - col1 )
----
0
2
59

query I rowsort
SELECT ALL + col0 * ( - col2 ) AS col1 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 7 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL MAX( DISTINCT - 16 ) AS col0 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL MAX ( DISTINCT - 16 ) AS col0 FROM tab1
----
-16

query I rowsort
SELECT DISTINCT + - 38 * 42 AS col1 FROM tab2 AS cor0
----
-1596

query I rowsort
SELECT 30 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT DISTINCT - 31 + - 27 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - 31 + - 27 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN ( NULL ) AND 4 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab2 WHERE ( NULL ) NOT BETWEEN + 30 * col2 AND 48
----
0

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE ( NULL ) NOT BETWEEN + 30 * col2 AND 48
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT 77 * + + COUNT( + 57 ) FROM tab2, tab1 cor0
----
693

skipif mysql # not compatible
query I rowsort label-9818
SELECT 77 * + + COUNT ( + 57 ) FROM tab2, tab1 cor0
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT - - MAX( ALL + col1 ) AS col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9819
SELECT - - MAX ( ALL + col1 ) AS col1 FROM tab0 cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + + - 67 col2 FROM tab0 AS cor0
----
1148
1760
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT SUM( - - 81 ) AS col2 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT SUM ( - - 81 ) AS col2 FROM tab1 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT SUM( ALL + + col1 ) col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9822
SELECT SUM ( ALL + + col1 ) col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL 52 FROM tab2 AS cor0 WHERE NOT ( 36 ) = + col1
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 * 82 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9825
SELECT - 75, SUM( ALL 69 ) AS col1 FROM tab2 cor0
----
-75
207

skipif mysql # not compatible
query II rowsort label-9825
SELECT - 75, SUM ( ALL 69 ) AS col1 FROM tab2 cor0
----
-75
207

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + - col0 > + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9827
SELECT - ( 92 ) DIV - - COUNT( * ) - COUNT( * ) FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9827
SELECT - ( 92 ) / - - COUNT ( * ) - COUNT ( * ) FROM tab0 cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL - - 10 + - COUNT( ALL - + col1 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - - 10 + - COUNT ( ALL - + col1 ) FROM tab0 AS cor0
----
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col2 * col0 + 15 FROM tab1 WHERE NOT - - 37 IS NULL
----
-4881
-5000
-6173

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * + + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 19 + - + 79 AS col0 FROM tab0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT DISTINCT MIN( col1 ) + - ( MAX( DISTINCT col1 ) ) * COUNT( * ) FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT MIN ( col1 ) + - ( MAX ( DISTINCT col1 ) ) * COUNT ( * ) FROM tab2
----
-180

query III rowsort
SELECT * FROM tab0 WHERE + 77 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 53 + + 53 col2, + 9 AS col1 FROM tab0
----
106
9
106
9
106
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 = + 83
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9837
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) BETWEEN CAST( NULL AS DECIMAL ) * + col1 + col0 AND ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-9837
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) BETWEEN CAST ( NULL AS REAL ) * + col1 + col0 AND ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT + MIN( DISTINCT - - col1 ) + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT + MIN ( DISTINCT - - col1 ) + COUNT ( * ) FROM tab2
----
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 >= - - col0 * + + ( - - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ( 78 ) + 55 * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * 91 * + col1 * col0 * col0 < col1
----
243

skipif mysql # not compatible
query I rowsort label-9840
SELECT ( 78 ) + 55 * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * 91 * + col1 * col0 * col0 < col1
----
243

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col2 / - 47 + + ( + col1 ) + col0 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ( - col0 ) * - CAST( - - 0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9842
SELECT ( - col0 ) * - CAST ( - - 0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9843
SELECT ALL + 80 DIV - SUM( - + CAST( + ( + col1 ) AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + 80 / - SUM ( - + CAST ( + ( + col1 ) AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * 66 + - 83 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9845
SELECT COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT col0 * + col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT col0 * + col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9848
SELECT DISTINCT col1, - col1 - col0 / col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9848
SELECT DISTINCT col1, - col1 - col0 / col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT + - CAST( + col2 AS SIGNED ) + + - col1 FROM tab1 WHERE NOT NULL = + col0
----

skipif mysql # not compatible
query I rowsort label-9849
SELECT + - CAST ( + col2 AS INTEGER ) + + - col1 FROM tab1 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT + 70 * - 12 * + COUNT( * ) FROM tab1
----
-2520

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT + 70 * - 12 * + COUNT ( * ) FROM tab1
----
-2520

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col2 > - col1 * - col0
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1 * col2
----

query II rowsort
SELECT + col0, - 45 - col1 FROM tab0 AS cor0
----
15
-126
87
-66
97
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - + 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col0 + + + col1 AS col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NULL BETWEEN ( + col2 * - col0 + - - 52 + col0 + + col1 - + col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NULL BETWEEN ( + col2 * - col0 + - - 52 + col0 + + col1 - + col0 ) AND NULL
----
0

query I rowsort
SELECT ALL - 48 + + + col1 AS col2 FROM tab2
----
19
29
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( ( + col2 ) ) * + - col2 * col2 + col1 <= NULL
----

query I rowsort
SELECT - + 88 * + col0 AS col2 FROM tab0 AS cor0 WHERE + 3 / col2 <= + col1 * - col1 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + - col1 / + col0 + + 80 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - 17 * + col2 AS col0 FROM tab1 cor0
----
-1003
-1156
-1632

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9863
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 89 BETWEEN ( + ( - - col1 ) + - + CAST( NULL AS SIGNED ) / + col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9863
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 89 BETWEEN ( + ( - - col1 ) + - + CAST ( NULL AS INTEGER ) / + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - col2 + + 28 FROM tab2 cor0
----
-1030
-2532
-4322

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT - MAX( ALL + col1 ) * - - COUNT( * ) + 82 AS col2 FROM tab2 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-9865
SELECT - MAX ( ALL + col1 ) * - - COUNT ( * ) + 82 AS col2 FROM tab2 AS cor0
----
-149

query I rowsort
SELECT ALL - 52 * - col2 FROM tab1
----
3068
3536
4992

query I rowsort
SELECT DISTINCT - col0 + - 78 FROM tab1
----
-129
-163
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL - COUNT( * ) * - - MAX( ALL ( + ( col2 ) ) ) * + 77 + MIN( DISTINCT - + 37 ) AS col1 FROM tab2
----
-13435

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - COUNT ( * ) * - - MAX ( ALL ( + ( col2 ) ) ) * + 77 + MIN ( DISTINCT - + 37 ) AS col1 FROM tab2
----
-13435

query I rowsort
SELECT ALL ( - col2 ) + col0 * - - col2 FROM tab0
----
658
860
9504

query I rowsort
SELECT + ( 6 ) * - + 44 AS col2 FROM tab1 WHERE NULL IS NULL
----
-264
-264
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT 57 DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9871
SELECT 57 / + col0 FROM tab0
----
0
0
3

query II rowsort
SELECT DISTINCT 89 + + + 1 * + + col2 AS col2, + col1 AS col1 FROM tab2
----
112
51
129
77
147
67

query II rowsort
SELECT col0 AS col2, 11 FROM tab0
----
15
11
87
11
97
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT DISTINCT + col2 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - 92 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 92 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT DISTINCT - col1 - + + col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT DISTINCT col2 DIV col0 + + col2 * - col2 - - col1 - + col2 * + col2 col0 FROM tab1 AS cor0
----
-18417
-6957
-9201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9877
SELECT DISTINCT col2 / col0 + + col2 * - col2 - - col1 - + col2 * + col2 col0 FROM tab1 AS cor0
----
-18417
-6957
-9201

query I rowsort
SELECT - + 23 + 21 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND 15
----

query II rowsort
SELECT DISTINCT + ( - - col1 ), col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT - - COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN + col0 AND + 91
----
0

skipif mysql # not compatible
query I rowsort label-9881
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN + col0 AND + 91
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 61 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col2 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT ALL + ( + CAST( 87 AS SIGNED ) ) / col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + col2 * + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL + ( + CAST ( 87 AS INTEGER ) ) / col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + col2 * + - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 13 > + col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + COUNT( 44 ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9886
SELECT + COUNT ( 44 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT 9 * + + col2 * - - 66 AS col1 FROM tab2 AS cor0
----
13662
23760
34452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT + CAST( NULL AS SIGNED ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT - col2 + 28 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col2 + 28 IS NULL
----
3

query I rowsort
SELECT + 32 * + col1 + - 16 + 61 FROM tab0 WHERE NOT - col1 NOT BETWEEN + col1 AND - 66
----

query I rowsort
SELECT ( + 32 ) FROM tab0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9893
SELECT + 26 DIV - col1 AS col1 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT + 26 / - col1 AS col1 FROM tab1
----
-1
-5
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + ( col1 ) / + - col0 ) <= col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 82 BETWEEN 52 AND - - col2 * col0 / col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT - MAX( - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - MAX ( - col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT - col0 + - col2 DIV - - col2 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-9897
SELECT - col0 + - col2 / - - col2 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

query II rowsort
SELECT 21 AS col1, + col2 FROM tab0
----
21
10
21
47
21
99

query I rowsort
SELECT DISTINCT + 20 + 34 + ( + 32 ) + col0 + - 94 + + - 95 FROM tab1
----
-12
-18
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT CAST( - - 88 AS SIGNED ) FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-9900
SELECT CAST ( - - 88 AS INTEGER ) FROM tab1 AS cor0
----
88
88
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + + col2 >= + col2
----

query I rowsort
SELECT 52 * - col2 FROM tab0 AS cor0
----
-2444
-5148
-520

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT DISTINCT + - col1 DIV - 59 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT + - col1 / - 59 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT - MAX( - + 13 ) * + + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9904
SELECT - MAX ( - + 13 ) * + + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT ALL + COUNT( * ) AS col0, 1 AS col2 FROM tab1 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-9905
SELECT ALL + COUNT ( * ) AS col0, 1 AS col2 FROM tab1 AS cor0
----
3
1

query I rowsort
SELECT ALL + - col0 + - + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-101
-74
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 98 col2 FROM tab2 AS cor0 WHERE col2 - - col0 - + col1 + + col0 * 43 IS NOT NULL
----
-98
-98
-98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 BETWEEN NULL AND - - col0
----

query I rowsort
SELECT + 32 + + col0 FROM tab0
----
119
129
47

query I rowsort
SELECT 9 + col1 AS col1 FROM tab2
----
60
76
86

query I rowsort
SELECT - 64 * + col2 * + 84 + col0 + - + col2 * - + ( + - 90 ) FROM tab0
----
-256887
-541037
-54573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT ALL - CAST( NULL AS SIGNED ) - + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL - CAST ( NULL AS INTEGER ) - + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 40 AS col0 FROM tab1
----
-26
-35
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT ALL + - col0 DIV + + 26 FROM tab0 cor0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL + - col0 / + + 26 FROM tab0 cor0
----
-3
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9916
SELECT - ( - MIN( - - CAST( NULL AS SIGNED ) ) ) + + CAST( - ( - + COUNT( * ) ) AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9916
SELECT - ( - MIN ( - - CAST ( NULL AS INTEGER ) ) ) + + CAST ( - ( - + COUNT ( * ) ) AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL + - AVG ( DISTINCT - col1 ) FROM tab2 WHERE NOT - - 44 - + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT COUNT( * ) DIV + + 53 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT COUNT ( * ) / + + 53 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT ALL - ( + ( - - COUNT( * ) ) ), MAX( + col1 ) AS col0 FROM tab1 cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-9919
SELECT ALL - ( + ( - - COUNT ( * ) ) ), MAX ( + col1 ) AS col0 FROM tab1 cor0
----
-3
47

query II rowsort
SELECT DISTINCT - col2, + col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9922
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT + MIN( - col1 ) * - COUNT( * ) + - 79 + + 45 AS col2 FROM tab2
----
197

skipif mysql # not compatible
query I rowsort label-9924
SELECT + MIN ( - col1 ) * - COUNT ( * ) + - 79 + + 45 AS col2 FROM tab2
----
197

onlyif mysql # DIV for integer division: 
query II rowsort label-9925
SELECT DISTINCT - 2 DIV + 29 AS col2, - col2 * - col0 AS col0 FROM tab2
----
0
1058
0
2560
0
4350

skipif mysql # not compatible
query II rowsort label-9925
SELECT DISTINCT - 2 / + 29 AS col2, - col2 * - col0 AS col0 FROM tab2
----
0
1058
0
2560
0
4350

query I rowsort
SELECT ALL 90 + 17 * - col0 AS col0 FROM tab2
----
-1185
-692
-998

query I rowsort
SELECT - 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT ALL + col1 + - - col1 + col0 FROM tab2
----
148
209
218

query I rowsort
SELECT + ( - 40 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + 90 AS col2 FROM tab2 WHERE + - col1 IN ( + col2, col1 * - + col2, + + col0, 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9931
SELECT ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
0

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 * + col2 FROM tab0 AS cor0
----
1
9801
21
100
81
2209

query I rowsort
SELECT ALL + + col2 / + col1 - col0 FROM tab0 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 90 FROM tab2 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - - SUM( - 41 ) AS col2 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-9935
SELECT - - SUM ( - 41 ) AS col2 FROM tab2 AS cor0
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, + col2 + 15 col0 FROM tab2 WHERE col1 <> NULL
----

query I rowsort
SELECT DISTINCT col0 + 1 + - ( + ( col2 ) ) * - + col2 * col0 + col1 FROM tab2
----
102542
24432
252443

query I rowsort
SELECT + 89 * - col2 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL MAX( + + col2 ) col0 FROM tab1 WHERE - - col0 < + col1 * + 3 + - col0 - + 97 + 33 * + col0 * + col1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9939
SELECT ALL MAX ( + + col2 ) col0 FROM tab1 WHERE - - col0 < + col1 * + 3 + - col0 - + 97 + 33 * + col0 * + col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT + COUNT( * ) col2 FROM tab1 WHERE - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9940
SELECT + COUNT ( * ) col2 FROM tab1 WHERE - + col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 * 31 * 94 FROM tab0
----
236034
2914
61194

query II rowsort
SELECT ALL 96 AS col0, col2 FROM tab2
----
96
23
96
40
96
58

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE col1 + - col0 / - 40 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > col0 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9945
SELECT - col2 AS col2, 43 * + CAST( - 23 AS SIGNED ) FROM tab0 cor0
----
-10
-989
-47
-989
-99
-989

skipif mysql # not compatible
query II rowsort label-9945
SELECT - col2 AS col2, 43 * + CAST ( - 23 AS INTEGER ) FROM tab0 cor0
----
-10
-989
-47
-989
-99
-989

query II rowsort
SELECT ALL + col1, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT DISTINCT - - 27 * - 53 AS col1, + 33 AS col2 FROM tab1 AS cor0 WHERE NOT ( - + 56 ) * - 73 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9948
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + MIN( DISTINCT ( + col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9949
SELECT + MIN ( DISTINCT ( + col1 ) ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT ( - - 45 ) FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL ( - - ( - - col1 ) ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL + ( + col0 ) AS col2, col1 * col0 * - + ( + 18 ) + + + col1 FROM tab2 AS cor0
----
46
-42177
64
-88627
75
-90383

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 90 * - - 79 + - col0 AS col2 FROM tab0 AS cor0
----
7013
7023
7095

query I rowsort
SELECT ALL + + col1 + + col1 AS col2 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT col2 * + CAST( + col0 AS SIGNED ) * + 65 AS col0 FROM tab1 AS cor0
----
318240
325975
402220

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT col2 * + CAST ( + col0 AS INTEGER ) * + 65 AS col0 FROM tab1 AS cor0
----
318240
325975
402220

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - MAX( ALL + col0 ) AS col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9957
SELECT - MAX ( ALL + col0 ) AS col2 FROM tab1 cor0
----
-91

query I rowsort
SELECT - - col0 * + - col0 + - - ( 14 ) AS col1 FROM tab1 AS cor0
----
-2587
-7211
-8267

query II rowsort
SELECT ALL col1 AS col0, + 51 FROM tab0
----
1
51
21
51
81
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 78 * + 96, 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT 67 * - + col0 AS col2 FROM tab1 WHERE NOT + - col2 / - + CAST( NULL AS SIGNED ) / + + 32 * - col1 - + col1 IS NOT NULL
----
-3417
-5695
-6097

skipif mysql # not compatible
query I rowsort label-9961
SELECT 67 * - + col0 AS col2 FROM tab1 WHERE NOT + - col2 / - + CAST ( NULL AS INTEGER ) / + + 32 * - col1 - + col1 IS NOT NULL
----
-3417
-5695
-6097

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 + 25 + - 34 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - ( ( COUNT( * ) ) ) * - 25 AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9963
SELECT - ( ( COUNT ( * ) ) ) * - 25 AS col2 FROM tab2
----
75

query I rowsort
SELECT ALL + 14 + - + 31 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT ALL + 9 * - 6 * - col1 FROM tab1
----
2538
270
756

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9966
SELECT * FROM tab1 WHERE ( NOT - col2 + col1 > ( 48 * + - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9966
SELECT * FROM tab1 WHERE ( NOT - col2 + col1 > ( 48 * + - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT + col0 DIV col0 + + col0 - - col2 + - col1 * - - col0 AS col2 FROM tab2
----
-2276
-4823
-4891

skipif mysql # not compatible
query I rowsort label-9967
SELECT + col0 / col0 + + col0 - - col2 + - col1 * - - col0 AS col2 FROM tab2
----
-2276
-4823
-4891

query I rowsort
SELECT - col1 + + - 51 + + col2 FROM tab0 AS cor0
----
-62
-85
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT - COUNT( DISTINCT 67 ) + + + ( - - MIN( ALL - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT - COUNT ( DISTINCT 67 ) + + + ( - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col0 ) col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT - 8 + - - 74 FROM tab2 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT DISTINCT + 17 + - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT + 17 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26

query I rowsort
SELECT - + 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL - 4 + 67 + - col2 FROM tab1
----
-33
-5
4

query I rowsort
SELECT col0 * col2 * + col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT ALL - col2 DIV + + col2 - 70 FROM tab2 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - col2 / + + col2 - 70 FROM tab2 AS cor0
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + - col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9979
SELECT DISTINCT - MIN( + - col0 ) - + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT - MIN ( + - col0 ) - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT + + 99 - + - SUM( + col2 ) DIV - 67 + + MIN( ALL 63 ) FROM tab1 cor0
----
159

skipif mysql # not compatible
query I rowsort label-9980
SELECT + + 99 - + - SUM ( + col2 ) / - 67 + + MIN ( ALL 63 ) FROM tab1 cor0
----
159

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 97 AND NULL
----

query II rowsort
SELECT + 40 + + 75 * + - col0, - ( - col2 ) AS col1 FROM tab2
----
-3410
23
-4760
40
-5585
58

query I rowsort
SELECT ALL + col0 * + + col1 * - 13 AS col0 FROM tab0 WHERE NOT col0 <= col0 + + + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col0 FROM tab2 WHERE NOT + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT MIN( DISTINCT + col1 ) DIV - - 47 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9985
SELECT MIN ( DISTINCT + col1 ) / - - 47 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1, + ( 23 ) AS col0 FROM tab1
----
14
23
47
23
5
23

query I rowsort
SELECT ALL + - col2 FROM tab1 cor0 WHERE NOT + 30 + col0 > - + ( + ( + col0 ) )
----

query II rowsort
SELECT DISTINCT + 48, col2 + + col2 + + col2 + - col2 * + - col1 + - 46 * + col1 * + 14 AS col1 FROM tab2 AS cor0
----
48
-31602
48
-39088
48
-46388

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + COUNT( DISTINCT - col1 ) * - COUNT( ALL - col0 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9990
SELECT + COUNT ( DISTINCT - col1 ) * - COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT - + COUNT( + 57 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9991
SELECT - + COUNT ( + 57 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT - COUNT( * ) * - 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
486

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT - COUNT ( * ) * - 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - SUM( DISTINCT + 4 ) FROM tab0, tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - SUM ( DISTINCT + 4 ) FROM tab0, tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT - 90 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT - 90 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 38 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT COUNT( * ) * + 69 + 30 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
237

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT COUNT ( * ) * + 69 + 30 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT col0 + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT col0 + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + 77 AS col2 FROM tab1 cor0
----
-19
18
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9999
SELECT DISTINCT 10 + + + COUNT( * ) - + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-9999
SELECT DISTINCT 10 + + + COUNT ( * ) - + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL

