sqllogictest
Artifact Content
Not logged in

Artifact 512706881ce49c8f6e5c22bebaaccc7a38a3a34e:


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 F