sqllogictest
Artifact Content
Not logged in

Artifact ff8b21a0a5d6f16842cf4e6923936cc9851a1560:


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)

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + + 89 col2 FROM tab0 AS cor0
----
-136
-7480
-9320

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT - col0 DIV + + 79 + + col0 FROM tab0 AS cor0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-3
SELECT - col0 / + + 79 + + col0 FROM tab0 AS cor0
----
15
86
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - - col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-4
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - - col1 <= NULL
----

query II rowsort
SELECT + col0 * + + col1, col0 AS col0 FROM tab1 AS cor0 WHERE NULL >= 31
----

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

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - col1 * + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT SUM( DISTINCT + col1 ) FROM tab0 WHERE NULL IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-7
SELECT SUM ( DISTINCT + col1 ) FROM tab0 WHERE NULL IS NULL
----
103

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-12
SELECT ALL - CAST( NULL AS DECIMAL ) * - 59 * 55 / CAST( + 3 AS SIGNED ) - + AVG ( DISTINCT + 5 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - CAST ( NULL AS REAL ) * - 59 * 55 / CAST ( + 3 AS INTEGER ) - + AVG ( DISTINCT + 5 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT DISTINCT - ( 88 ) + + COUNT( * ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - ( 88 ) + + COUNT ( * ) FROM tab2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-14
SELECT DISTINCT - CAST( + MAX( - col1 ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT - CAST ( + MAX ( - col1 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND + + 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT ALL + + col0 - - 31 + + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
123
127
88

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL + + col0 - - 31 + + col2 / + col1 AS col2 FROM tab1 AS cor0
----
123
127
88

query I rowsort
SELECT DISTINCT - 11 / + 35 * 14 * + 15 * 59 FROM tab1 AS cor0 WHERE NOT 13 * - + 32 NOT BETWEEN NULL AND - - col1
----

query I rowsort
SELECT + col1 * col1 * col1 FROM tab2
----
132651
300763
456533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col1 col0 FROM tab1
----
59
5
68
47
96
14

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

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON - 73 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-23
SELECT DISTINCT - 37, - COUNT( * ) + - - 0 - + ( + - 87 ) * - + COUNT( ALL + 34 ) AS col2 FROM tab1 AS cor0
----
-37
-264

skipif mysql # not compatible
query II rowsort label-23
SELECT DISTINCT - 37, - COUNT ( * ) + - - 0 - + ( + - 87 ) * - + COUNT ( ALL + 34 ) AS col2 FROM tab1 AS cor0
----
-37
-264

query II rowsort
SELECT ALL - 50, + col2 FROM tab1 AS cor0
----
-50
59
-50
68
-50
96

query I rowsort
SELECT 75 AS col1 FROM tab0 WHERE NOT + - 8 + - + col2 IS NULL
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT - + COUNT( * ) FROM tab0 WHERE NOT 21 * + col2 + + col0 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-26
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT 21 * + col2 + + col0 + + col0 IS NOT NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT col1 DIV col1 + - + col1 + - col1 + + + col1 AS col0 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-28
SELECT col1 / col1 + - + col1 + - col1 + + + col1 AS col0 FROM tab0 AS cor0
----
-20
-80
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-29
SELECT - col0 + + - CAST( NULL AS DECIMAL ) + + ( col1 ) + - - col2 AS col0, col2 + col0 FROM tab2 AS cor0
----
NULL
104
NULL
133
NULL
69

skipif mysql # not compatible
query II rowsort label-29
SELECT - col0 + + - CAST ( NULL AS REAL ) + + ( col1 ) + - - col2 AS col0, col2 + col0 FROM tab2 AS cor0
----
NULL
104
NULL
133
NULL
69

query I rowsort
SELECT DISTINCT + + 0 - 78 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-31
SELECT DISTINCT COUNT( * ), COUNT( * ) col1 FROM tab2
----
3
3

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

query I rowsort
SELECT 35 * + col2 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-33
SELECT + - COUNT( * ) * 38 + COUNT( + col2 ) * + 19 * - 40 AS col1, 98 DIV - - 37 FROM tab0 AS cor0
----
-2394
2

skipif mysql # not compatible
query II rowsort label-33
SELECT + - COUNT ( * ) * 38 + COUNT ( + col2 ) * + 19 * - 40 AS col1, 98 / - - 37 FROM tab0 AS cor0
----
-2394
2

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

query I rowsort
SELECT + - 81 AS col0 FROM tab0 cor0
----
-81
-81
-81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT + 98 DIV + 38 FROM tab0 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-37
SELECT + 98 / + 38 FROM tab0 cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT ALL - col0 DIV + + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL - col0 / + + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT + ( 94 ) - + COUNT( * ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-39
SELECT + ( 94 ) - + COUNT ( * ) FROM tab0
----
91

query I rowsort
SELECT ALL col1 + - - 14 FROM tab1
----
19
28
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-41
SELECT ALL col0 * + col1 + + col1 DIV - - col1 AS col2, - CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab2
----
9 values hashing to 7e03d5d0a93704c5bfebef4f2713f1b1

skipif mysql # not compatible
query III rowsort label-41
SELECT ALL col0 * + col1 + + col1 / - - col1 AS col2, - CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab2
----
9 values hashing to 7e03d5d0a93704c5bfebef4f2713f1b1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-43
SELECT DISTINCT 39 + - 81 AS col1, COUNT( * ) FROM tab0
----
-42
3

skipif mysql # not compatible
query II rowsort label-43
SELECT DISTINCT 39 + - 81 AS col1, COUNT ( * ) FROM tab0
----
-42
3

query I rowsort
SELECT + 20 FROM tab0 WHERE NOT ( NOT - - col1 NOT BETWEEN NULL AND + - col0 ) OR col2 IS NOT NULL
----
20
20
20

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-46
SELECT - CAST( col0 AS SIGNED ) * + col0 + - col0 - + 25, col2 + - col1 AS col2 FROM tab0 AS cor0
----
-265
-34
-7681
-11
-9531
98

skipif mysql # not compatible
query II rowsort label-46
SELECT - CAST ( col0 AS INTEGER ) * + col0 + - col0 - + 25, col2 + - col1 AS col2 FROM tab0 AS cor0
----
-265
-34
-7681
-11
-9531
98

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE NOT NULL IN ( 9, + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-49
SELECT - MIN ( ( - + col0 ) ) FROM tab1
----
91

query I rowsort
SELECT - 5 FROM tab2, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

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

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

query II rowsort
SELECT + col2 AS col1, - col0 * + + 7 * - + col1 + col1 + col0 FROM tab1 AS cor0
----
59
3065
68
30077
96
5063

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col0 FROM tab0 AS cor0
----
3
3
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-58
SELECT DISTINCT MIN ( ALL - - col0 ) col1 FROM tab2
----
46

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

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

query I rowsort
SELECT ALL + 50 * - + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c027ed4b8507d958d126d4e73d91c0b

query I rowsort
SELECT ALL - 61 * col0 + - col1 + col2 + + col1 FROM tab1 WHERE + + 46 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL - 44 * + - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - 44 * + - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
129

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT DISTINCT - col2 - + 38 * - - col0 DIV col0 + - - col2 AS col0 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - col2 - + 38 * - - col0 / col0 + - - col2 AS col0 FROM tab2 AS cor0
----
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL + MAX( + - col1 ) * + SUM( ALL + 46 ) col0 FROM tab2 cor0
----
-7038

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-67
SELECT ALL + MAX ( + - col1 ) * + SUM ( ALL + 46 ) col0 FROM tab2 cor0
----
-7038

query I rowsort
SELECT + + col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT 94 DIV + + 4 FROM tab2
----
23
23
23

skipif mysql # not compatible
query I rowsort label-69
SELECT 94 / + + 4 FROM tab2
----
23
23
23

query I rowsort
SELECT ALL + col0 * - + col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT ALL col0 * 82 AS col1 FROM tab1
----
4182
6970
7462

query I rowsort
SELECT ALL 37 * + col1 FROM tab0
----
2997
37
777

query I rowsort
SELECT + - 67 * - col0 + + 23 AS col0 FROM tab0 AS cor0
----
1028
5852
6522

query I rowsort
SELECT + ( 52 ) + 27 AS col2 FROM tab1
----
79
79
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-75
SELECT DISTINCT - COUNT( CAST( + col0 AS SIGNED ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT - COUNT ( CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 53 <> NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 + + 61 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT - COUNT( * ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-79
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT 73 + 95 AS col1 FROM tab1
----
168
168
168

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col2 ) = + ( col0 ) / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT SUM( DISTINCT col1 ) * + 40 - 9 col0 FROM tab1
----
2631

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-83
SELECT DISTINCT SUM ( DISTINCT col1 ) * + 40 - 9 col0 FROM tab1
----
2631

query I rowsort
SELECT DISTINCT - 36 + col2 * 44 FROM tab0
----
2032
404
4320

query I rowsort
SELECT + col1 * + 1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
141
142
97

query I rowsort
SELECT DISTINCT ( col2 ) + - 78 FROM tab2
----
-20
-38
-55

query I rowsort
SELECT DISTINCT col2 - + 54 AS col1 FROM tab1
----
14
42
5

query I rowsort
SELECT + col1 + col2 * 90 FROM tab1
----
5315
6167
8654

query I rowsort
SELECT ALL col2 * 39 FROM tab1
----
2301
2652
3744

query I rowsort
SELECT ALL - col2 + col1 * 97 FROM tab0
----
-2
2027
7810

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT NULL <> - 79 + + ( ( ( ( + col0 ) ) ) + + col2 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 + + col0 col2 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
56
90
96

query I rowsort
SELECT DISTINCT + col2 * - col0 + col1 AS col1 FROM tab1
----
-4882
-5010
-6141

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 * - ( - col2 / col1 ) ) NOT BETWEEN ( + 73 ) AND + col0 / ( + ( - col1 ) )
----

query I rowsort
SELECT + 54 + col0 FROM tab2
----
100
118
129

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT MIN( ALL - col2 ) AS col0 FROM tab1 WHERE NOT - 64 NOT IN ( 90 + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT MIN ( ALL - col2 ) AS col0 FROM tab1 WHERE NOT - 64 NOT IN ( 90 + 53 )
----
NULL

query I rowsort
SELECT col1 / col2 AS col2 FROM tab1 WHERE - 40 IS NULL
----

query I rowsort
SELECT ALL - ( col0 ) * + 76 AS col0 FROM tab0
----
-1140
-6612
-7372

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT + 80 + col2 * col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT COUNT( + 70 ) + 68 FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-102
SELECT COUNT ( + 70 ) + 68 FROM tab2 cor0
----
71

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

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + 95 + - 71 / 23 IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL - 35 + - MAX( DISTINCT 52 + col1 ) FROM tab2 WHERE ( + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL - 35 + - MAX ( DISTINCT 52 + col1 ) FROM tab2 WHERE ( + col2 ) IS NULL
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE - col2 <> - ( col0 ) * + 70
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT DISTINCT 78 DIV + 83 - col0 * col1 AS col2 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT 78 / + 83 - col0 * col1 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - + COUNT( - 21 ) * 60 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-109
SELECT - + COUNT ( - 21 ) * 60 FROM tab0 AS cor0
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT DISTINCT CAST( 7 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT CAST ( 7 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7

query I rowsort
SELECT ( 86 ) AS col2 FROM tab2 AS cor0
----
86
86
86

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT - COUNT( * ) - - 93 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-114
SELECT - COUNT ( * ) - - 93 FROM tab0 AS cor0
----
90

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( - 29 ) = col0
----
14
47
5

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

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

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT - 22 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 93 * - col1 FROM tab0 AS cor0
----
1953
7533
93

query I rowsort
SELECT ALL ( + col0 ) FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / col2 < ( 16 )
----

query I rowsort
SELECT ALL + ( ( + + 33 ) ) + - col1 FROM tab2
----
-18
-34
-44

query I rowsort
SELECT ( + 38 ) FROM tab1
----
38
38
38

query I rowsort
SELECT DISTINCT + 59 * ( AVG ( DISTINCT col0 ) ) + - 71 AS col0 FROM tab1 cor0 WHERE - col2 = ( 48 + 36 * 51 )
----
NULL

query I rowsort
SELECT 85 * + col0 FROM tab0 AS cor0
----
1275
7395
8245

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + 99 AS col0 FROM tab1 AS cor0
----
14
48
8

query I rowsort
SELECT + ( + col2 ) FROM tab1 WHERE ( - + 11 ) BETWEEN NULL AND - 23
----

query I rowsort
SELECT DISTINCT col1 + + + col1 - 68 FROM tab0
----
-26
-66
94

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL - MAX( col1 ) + COUNT( * ) * - MAX( ALL col0 ) FROM tab0
----
-372

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - MAX ( col1 ) + COUNT ( * ) * - MAX ( ALL col0 ) FROM tab0
----
-372

query I rowsort
SELECT + 83 + + + col0 AS col2 FROM tab2
----
129
147
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT col0 * + 73 * + 82 * - - CAST( NULL AS SIGNED ) + + 41 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT col0 * + 73 * + 82 * - - CAST ( NULL AS INTEGER ) + + 41 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT ALL + col1 DIV + + 23 + - col1 DIV - 5 + 40 FROM tab1
----
41
42
51

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + col1 / + + 23 + - col1 / - 5 + 40 FROM tab1
----
41
42
51

query I rowsort
SELECT 8 * 7 + - col2 FROM tab0
----
-43
46
9

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

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

query II rowsort
SELECT ALL - 26 * + - 15 AS col0, 30 AS col1 FROM tab0 AS cor0
----
390
30
390
30
390
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT + MIN( DISTINCT - col1 ) - - - 57 + + SUM( ALL 43 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-148
SELECT + MIN ( DISTINCT - col1 ) - - - 57 + + SUM ( ALL 43 ) FROM tab0
----
-9

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

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE + 51 <> ( + col0 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT + 3 + 35 + + COUNT( * ) col0 FROM tab0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-151
SELECT + 3 + 35 + + COUNT ( * ) col0 FROM tab0
----
41

query I rowsort
SELECT col1 * 46 + - ( 79 ) AS col0 FROM tab2
----
2267
3003
3463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT DISTINCT - COUNT( * ) - - CAST( - COUNT( * ) AS SIGNED ) * + - COUNT( * ) + 60 AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT - COUNT ( * ) - - CAST ( - COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) + 60 AS col0 FROM tab1 cor0
----
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 96 ) * + 96 + + 50 + - col1 * col1 col0 FROM tab2 AS cor0
----
-11767
-13655
-15095

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-157
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) BETWEEN 90 AND ( + + CAST( 85 AS DECIMAL ) / - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-157
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) BETWEEN 90 AND ( + + CAST ( 85 AS REAL ) / - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 36 col1 FROM tab0 cor0
----
-36
-36
-36

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

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

query I rowsort
SELECT ALL 29 FROM tab2 AS cor0 WHERE NULL IS NULL
----
29
29
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT SUM( ALL + - 55 ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-163
SELECT SUM ( ALL + - 55 ) FROM tab2 AS cor0
----
-165

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 * + col0 col0 FROM tab1 AS cor0
----
-1377
-2295
-2457

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * 54 * + 86 NOT IN ( + col2 * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 9
----

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

query I rowsort
SELECT DISTINCT col2 + + - 84 AS col0 FROM tab0 AS cor0
----
-37
-74
15

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

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

query II rowsort
SELECT col2, + 14 FROM tab2
----
23
14
40
14
58
14

onlyif mysql # DIV for integer division: 
query II rowsort label-172
SELECT col2, col1 + - 86 + col2 + col0 DIV 80 FROM tab0
----
10
-54
47
42
99
15

skipif mysql # not compatible
query II rowsort label-172
SELECT col2, col1 + - 86 + col2 + col0 / 80 FROM tab0
----
10
-54
47
42
99
15

query II rowsort
SELECT col0 AS col0, - col2 * - 76 AS col1 FROM tab1
----
51
7296
85
4484
91
5168

query I rowsort
SELECT DISTINCT - col2 + + 10 AS col0 FROM tab1
----
-49
-58
-86

query II rowsort
SELECT ALL 49 AS col2, 11 AS col1 FROM tab2
----
49
11
49
11
49
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-176
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 * 24 * - 96 * + col1 - + - col0 AS col0 FROM tab2 AS cor0
----
2702638
7096384
8953419

query II rowsort
SELECT - col2 + + + col2 + 96 AS col1, - 20 * - col2 AS col2 FROM tab1 AS cor0
----
96
1180
96
1360
96
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT - MIN( ALL col0 ) * - 71 + + 67 AS col1 FROM tab0 AS cor0
----
1132

skipif mysql # not compatible
query I rowsort label-179
SELECT - MIN ( ALL col0 ) * - 71 + + 67 AS col1 FROM tab0 AS cor0
----
1132

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT - COUNT( * ) + + + 47 FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-182
SELECT - COUNT ( * ) + + + 47 FROM tab0 cor0
----
44

query I rowsort
SELECT + - 50 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT COUNT( DISTINCT 71 ) * - + 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-184
SELECT COUNT ( DISTINCT 71 ) * - + 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT - COUNT( ALL - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-185
SELECT - COUNT ( ALL - col1 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - - ( - 4 ) FROM tab1 cor0
----
-188
-20
-56

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

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

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

query I rowsort
SELECT DISTINCT - + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT col2 * 60 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
2820
81
5940
1
600
21

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL col0 DIV - 7 AS col1 FROM tab2 AS cor0
----
-10
-6
-9

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL col0 / - 7 AS col1 FROM tab2 AS cor0
----
-10
-6
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT SUM( ALL - - 81 ) DIV + MIN( DISTINCT + + col2 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT SUM ( ALL - - 81 ) / + MIN ( DISTINCT + + col2 ) FROM tab1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-195
SELECT ALL COUNT( * ) * + + 41 FROM tab0 WHERE NOT - - 97 <= CAST( - ( + col0 ) AS SIGNED )
----
123

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL COUNT ( * ) * + + 41 FROM tab0 WHERE NOT - - 97 <= CAST ( - ( + col0 ) AS INTEGER )
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT + 72 DIV - 78 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-196
SELECT + 72 / - 78 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL 92 + COUNT( * ) * - 64 FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL 92 + COUNT ( * ) * - 64 FROM tab2
----
-100

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-199
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT + 35 DIV + col2 + + - 13 FROM tab0 AS cor0
----
-10
-13
-13

skipif mysql # not compatible
query I rowsort label-201
SELECT + 35 / + col2 + + - 13 FROM tab0 AS cor0
----
-10
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 28, + 76 - - - col2 col0 FROM tab2 AS cor0
----
-28
18
-28
36
-28
53

query I rowsort
SELECT ALL 11 * col0 FROM tab0 AS cor0
----
1067
165
957

query I rowsort
SELECT 58 + - - col1 FROM tab2 AS cor0
----
109
125
135

query I rowsort
SELECT ALL - - 62 * col0 FROM tab2 AS cor0
----
2852
3968
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT + + ( + COUNT( ALL + - 40 ) ) AS col1 FROM tab1 AS cor0 WHERE col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-206
SELECT + + ( + COUNT ( ALL + - 40 ) ) AS col1 FROM tab1 AS cor0 WHERE col1 <= NULL
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL - 13 + + COUNT( * ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL - 13 + + COUNT ( * ) AS col0 FROM tab2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT ALL col1 DIV + col2 + col2 AS col1 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL col1 / + col2 + col2 AS col1 FROM tab2
----
25
41
59

query I rowsort
SELECT + 20 AS col0 FROM tab2 WHERE ( + - col1 / - + 2 ) IS NOT NULL
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + 62 AS col2, - 40 * - col0 * ( 54 ) col0 FROM tab1
----
121
183600
130
196560
158
110160

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT 44 + + SUM( col2 ) AS col2 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 44 + + SUM ( col2 ) AS col2 FROM tab1
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT - 65 * 7 + + - COUNT( * ) FROM tab2
----
-458

skipif mysql # not compatible
query I rowsort label-215
SELECT - 65 * 7 + + - COUNT ( * ) FROM tab2
----
-458

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT ALL col0 + - - 47 + - 32 DIV - col0 FROM tab1
----
132
138
98

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL col0 + - - 47 + - 32 / - col0 FROM tab1
----
132
138
98

query I rowsort
SELECT + 77 * - - 29 FROM tab0
----
2233
2233
2233

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-218
SELECT DISTINCT - col0 - + - col0 AS col2, + col2 * ( - ( CAST( NULL AS SIGNED ) ) ) * col1 FROM tab2
----
0
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT DISTINCT + 60 * ( - + ( - COUNT( * ) ) ) col1 FROM tab0 AS cor0
----
180

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

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT ALL + 31 * col2 - + + 94 DIV + col0 col0 FROM tab0 AS cor0
----
1451
3069
309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-222
SELECT ALL + 31 * col2 - + + 94 / + col0 col0 FROM tab0 AS cor0
----
1451
3069
309

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

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

skipif mysql # not compatible
query I rowsort label-224
SELECT - COUNT ( ALL + col2 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT ALL col1 * CAST( + 46 AS SIGNED ) FROM tab2
----
2346
3082
3542

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL col1 * CAST ( + 46 AS INTEGER ) FROM tab2
----
2346
3082
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 21 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 21 FROM tab1
----
NULL

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

query I rowsort
SELECT + ( col0 ) FROM tab0 cor0 WHERE NOT 25 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + 7 * - 73 AS col2 FROM tab1 AS cor0
----
-511
-511
-511

query I rowsort
SELECT 21 * + 98 + + col2 + + col2 * + + col0 FROM tab1 cor0
----
7050
7132
8314

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

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

query II rowsort
SELECT + col0 AS col1, col0 - - + col2 * - - col2 FROM tab2 AS cor0
----
46
575
64
1664
75
3439

onlyif mysql # DIV for integer division: 
query II rowsort label-235
SELECT - 29 DIV - + col1 col0, + 18 - + ( - - 38 ) FROM tab1
----
0
-20
2
-20
5
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-235
SELECT - 29 / - + col1 col0, + 18 - + ( - - 38 ) FROM tab1
----
0
-20
2
-20
5
-20

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

query I rowsort
SELECT col0 * - 82 FROM tab2
----
-3772
-5248
-6150

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

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

query II rowsort
SELECT + col0 * - - col0 AS col2, + ( + 16 ) + + col2 * + 30 - col2 AS col2 FROM tab0
----
225
1379
7569
306
9409
2887

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 > - col1 - + - 58
----
87
21
10

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

query I rowsort
SELECT DISTINCT + 13 + - + col1 AS col0 FROM tab2
----
-38
-54
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-243
SELECT ALL + CAST( + - col1 AS SIGNED ) + - - col0 AS col2, col2 AS col0 FROM tab1
----
37
96
44
68
80
59

skipif mysql # not compatible
query II rowsort label-243
SELECT ALL + CAST ( + - col1 AS INTEGER ) + - - col0 AS col2, col2 AS col0 FROM tab1
----
37
96
44
68
80
59

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - 79 <= + 53
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - - 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query II rowsort
SELECT DISTINCT - col2, + col1 FROM tab0 AS cor0 WHERE NOT - 78 IS NULL
----
-10
21
-47
81
-99
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - + COUNT( * ) * + - ( - - MIN( ALL - - col2 ) ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-250
SELECT - + COUNT ( * ) * + - ( - - MIN ( ALL - - col2 ) ) AS col0 FROM tab0 AS cor0
----
30

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

query I rowsort
SELECT ALL + 87 * 6 * + col0 + + col0 + + + col1 + + + col0 AS col0 FROM tab2 AS cor0
----
24155
33613
39367

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

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

query II rowsort
SELECT - ( + col1 ) * + + col2, 47 - - 84 AS col2 FROM tab1 AS cor0
----
-1344
131
-295
131
-3196
131

query II rowsort
SELECT DISTINCT - col2, + col1 + + 73 AS col1 FROM tab1
----
-59
78
-68
120
-96
87

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT ALL - 44 DIV - col2 - - + col2 FROM tab0
----
14
47
99

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL - 44 / - col2 - - + col2 FROM tab0
----
14
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + COUNT( * ) FROM tab2 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-257
SELECT + COUNT ( * ) FROM tab2 WHERE ( NULL ) >= NULL
----
0

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

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

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

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

query I rowsort
SELECT - + col1 * 17 * + col0 FROM tab0 AS cor0
----
-1649
-20655
-31059

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT - - col0 * - ( + col1 ) + 8 DIV col0 * - ( - + col0 ) + - col0 col2 FROM tab0 AS cor0
----
-1230
-1914
-194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-262
SELECT - - col0 * - ( + col1 ) + 8 / col0 * - ( - + col0 ) + - col0 col2 FROM tab0 AS cor0
----
-1230
-1914
-194

query II rowsort
SELECT ALL - col2, - 1 AS col2 FROM tab2 AS cor0
----
-23
-1
-40
-1
-58
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + - 62 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT DISTINCT - col1 DIV col2 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-266
SELECT DISTINCT - col1 / col2 col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-267
SELECT COUNT( 60 ) AS col0, 33 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
33

skipif mysql # not compatible
query II rowsort label-267
SELECT COUNT ( 60 ) AS col0, 33 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
33

query I rowsort
SELECT DISTINCT col2 + - 29 - 47 FROM tab2 AS cor0 WHERE 68 IS NOT NULL
----
-18
-36
-53

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 87 - + col1 NOT BETWEEN + + col0 AND 10
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT DISTINCT COUNT( + CAST( col0 AS SIGNED ) ) * + 78 AS col0 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT COUNT ( + CAST ( col0 AS INTEGER ) ) * + 78 AS col0 FROM tab1
----
234

query I rowsort
SELECT 37 + + 5 AS col1 FROM tab0
----
42
42
42

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

query I rowsort
SELECT + col1 * - 2 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL + + COUNT( * ) + - 69 FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL + + COUNT ( * ) + - 69 FROM tab2 cor0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-277
SELECT MAX( + col1 ), - COUNT( * ) + + 85 AS col0 FROM tab2
----
77
82

skipif mysql # not compatible
query II rowsort label-277
SELECT MAX ( + col1 ), - COUNT ( * ) + + 85 AS col0 FROM tab2
----
77
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-278
SELECT ALL - COUNT( * ) - + SUM( ALL - col0 ) + + MAX( + CAST( - + col0 AS SIGNED ) ) AS col1 FROM tab2
----
136

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - COUNT ( * ) - + SUM ( ALL - col0 ) + + MAX ( + CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT - SUM( DISTINCT + col0 ) - - COUNT( * ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-279
SELECT - SUM ( DISTINCT + col0 ) - - COUNT ( * ) FROM tab2
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-280
SELECT ALL - col1 * - + col1 + - + col1 * + 40 FROM tab1 AS cor0 WHERE ( NOT - + CAST( NULL AS SIGNED ) IS NULL )
----

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

query I rowsort
SELECT + - 3 * + 23 - - + col2 + col0 * - ( - col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
4872
4920
6096

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT MAX( ALL - - 66 ) col2 FROM tab2
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-287
SELECT DISTINCT MAX ( ALL - - 66 ) col2 FROM tab2
----
66

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

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

query I rowsort
SELECT DISTINCT + 68 - - - col1 FROM tab1
----
21
54
63

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

query I rowsort
SELECT DISTINCT col0 + + - 14 * - col2 - + col2 * 54 * 59 + 67 AS col0 FROM tab1
----
-186996
-215538
-304394

query I rowsort
SELECT - col0 * + - 72 FROM tab2
----
3312
4608
5400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col2 + - ( + col1 ) + + - col2 + - col1 FROM tab2
----
51
-102
67
-134
77
-154

query I rowsort
SELECT ALL 64 - + + 85 AS col1 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT col1 * + - 51 FROM tab1 AS cor0
----
-2397
-255
-714

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

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

query I rowsort
SELECT + col0 * + 39 AS col1 FROM tab1
----
1989
3315
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL COUNT( * ) * + MAX( ALL col0 ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL COUNT ( * ) * + MAX ( ALL col0 ) AS col0 FROM tab2
----
225

query II rowsort
SELECT + col2, + 41 AS col0 FROM tab0
----
10
41
47
41
99
41

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT 43 * + COUNT( * ) FROM tab2 cor0
----
129

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT 43 * + COUNT ( * ) FROM tab2 cor0
----
129

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

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

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

query I rowsort
SELECT - - 13 * 21 + col2 FROM tab1 AS cor0
----
332
341
369

query II rowsort
SELECT DISTINCT + + 3 AS col0, - col2 * + col0 AS col1 FROM tab0 cor0
----
3
-705
3
-870
3
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 62 col1 FROM tab1 AS cor0
----
-3162
-5270
-5642

query I rowsort
SELECT ( - 74 ) FROM tab1 AS cor0
----
-74
-74
-74

query II rowsort
SELECT ALL 69 + + + col1 AS col2, + col1 * + - 19 * - 55 AS col2 FROM tab2
----
120
53295
136
70015
146
80465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-310
SELECT ALL col1 / CAST( NULL AS SIGNED ) * - 45 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL col1 / CAST ( NULL AS INTEGER ) * - 45 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-311
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col2, COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-311
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2, COUNT ( * ) FROM tab2
----
-3
3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE + 37 + + - col1 - - - col1 * + 17 + - - col1 - + - col0 / col2 IS NULL
----

query I rowsort
SELECT 65 * + 32 AS col2 FROM tab1
----
2080
2080
2080

query I rowsort
SELECT DISTINCT col1 * + 83 AS col2 FROM tab2
----
4233
5561
6391

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

query II rowsort
SELECT DISTINCT + col0 * + 92 AS col1, col1 FROM tab2
----
4232
51
5888
77
6900
67

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT ALL COUNT( * ) DIV - ( 70 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL COUNT ( * ) / - ( 70 ) FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-319
SELECT ALL + 72 + COUNT( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * - CAST( NULL AS SIGNED ) / + col2 + + col0 <> NULL
----
72

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + 72 + COUNT ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * - CAST ( NULL AS INTEGER ) / + col2 + + col0 <> NULL
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-320
SELECT DISTINCT + - 7 * + 91 + CAST( NULL AS SIGNED ) + 63 + - col1 + + 26 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT + - 7 * + 91 + CAST ( NULL AS INTEGER ) + 63 + - col1 + + 26 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 94 + + col2 FROM tab2
----
117
134
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + ( + 17 ) col2 FROM tab1
----
-43

query I rowsort
SELECT DISTINCT col0 - - 75 + + col0 FROM tab2
----
167
203
225

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

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

query I rowsort
SELECT DISTINCT - + col2 - - + 88 - - col0 AS col0 FROM tab2 AS cor0
----
105
111
112

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT - 44 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-326
SELECT - 44 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-328
SELECT - COUNT ( DISTINCT col2 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * - + 8 FROM tab0 AS cor0
----
-168
-648
-8

query II rowsort
SELECT + col2, col0 - 50 FROM tab0 AS cor0
----
10
37
47
-35
99
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-332
SELECT DISTINCT + + 92 + + + COUNT( * ) * - COUNT( * ) + ( + - 66 ) DIV + + ( + 87 ) AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + + 92 + + + COUNT ( * ) * - COUNT ( * ) + ( + - 66 ) / + + ( + 87 ) AS col1 FROM tab1 AS cor0
----
83

query II rowsort
SELECT DISTINCT - col1 AS col2, + col1 + + 47 * + + col1 FROM tab2 AS cor0
----
-51
2448
-67
3216
-77
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL - ( - COUNT( * ) ) * SUM( + - col0 ) + - ( - 77 ) AS col0 FROM tab1 AS cor0
----
-604

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL - ( - COUNT ( * ) ) * SUM ( + - col0 ) + - ( - 77 ) AS col0 FROM tab1 AS cor0
----
-604

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL MIN( DISTINCT + 16 ) + - 92 AS col0 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL MIN ( DISTINCT + 16 ) + - 92 AS col0 FROM tab1
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 - + ( - col1 ) col0 FROM tab0
----
111
171
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - + col1 )
----

query I rowsort
SELECT ( + 47 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT MAX( DISTINCT + 68 ) AS col0 FROM tab1, tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT MAX ( DISTINCT + 68 ) AS col0 FROM tab1, tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT SUM( 60 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-340
SELECT SUM ( 60 ) FROM tab1
----
180

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

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

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

query I rowsort
SELECT ALL - col0 * - 68 - col1 FROM tab1 WHERE NOT NULL NOT IN ( + 83 * - - col0 + + - col2 * + col1, 26 * + col0 / + - 90, + 29 )
----

query II rowsort
SELECT DISTINCT - col0, - 41 AS col0 FROM tab1
----
-51
-41
-85
-41
-91
-41

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-346
SELECT ALL - ( + + col2 ) * + CAST( NULL AS DECIMAL ) + - 51 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - ( + + col2 ) * + CAST ( NULL AS REAL ) + - 51 AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-349
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT NULL >= col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-349
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT NULL >= col1
----

query I rowsort
SELECT ALL col1 + 37 AS col1 FROM tab0 AS cor0
----
118
38
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT - COUNT( DISTINCT + - col2 ) AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-353
SELECT - COUNT ( DISTINCT + - col2 ) AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 45 + col1 col2 FROM tab2
----
2121
2957
3442

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

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

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

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL MAX ( ALL - 76 ) AS col2 FROM tab0
----
-76

query I rowsort
SELECT ALL col1 + + + col1 FROM tab0
----
162
2
42

query I rowsort
SELECT + col0 + - - col1 * - + ( - - 91 ) FROM tab1
----
-1223
-370
-4186

query I rowsort
SELECT 32 * 67 + col0 AS col2 FROM tab2
----
2190
2208
2219

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

skipif mysql # not compatible
query I rowsort label-360
SELECT - COUNT ( * ) * + - 18 AS col0 FROM tab2, tab1 AS cor0
----
162

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-362
SELECT * FROM tab2 WHERE - col1 / 82 IN ( + - col1 + CAST( col2 AS SIGNED ), 91, ( + col0 ), col2, + col2 )
----

skipif mysql # not compatible
query III rowsort label-362
SELECT * FROM tab2 WHERE - col1 / 82 IN ( + - col1 + CAST ( col2 AS INTEGER ), 91, ( + col0 ), col2, + col2 )
----

query I rowsort
SELECT DISTINCT - + 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL - COUNT( col2 ) - + + MIN( ALL - + col2 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - COUNT ( col2 ) - + + MIN ( ALL - + col2 ) FROM tab0
----
96

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

query I rowsort
SELECT - col0 + - - col1 AS col2 FROM tab1 cor0
----
-37
-44
-80

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

query I rowsort
SELECT DISTINCT - col2 * - 65 AS col0 FROM tab0 AS cor0
----
3055
6435
650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - MIN( - 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-370
SELECT - MIN ( - 15 ) FROM tab1
----
15

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

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

query I rowsort
SELECT DISTINCT - - 53 FROM tab1 AS cor0
----
53

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

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

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

query I rowsort
SELECT col1 * + col1 * 57 FROM tab1
----
11172
125913
1425

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + col2 * + col2 col2 FROM tab2
----
1604
3368
533

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 2 + col2 + col2
----

query I rowsort
SELECT ALL + 28 * + - 5 FROM tab0 AS cor0
----
-140
-140
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT COUNT( ( - + ( + 47 ) ) ) AS col0, + ( - - 69 ) AS col2 FROM tab0 AS cor0
----
3
69

skipif mysql # not compatible
query II rowsort label-380
SELECT COUNT ( ( - + ( + 47 ) ) ) AS col0, + ( - - 69 ) AS col2 FROM tab0 AS cor0
----
3
69

query I rowsort
SELECT DISTINCT 62 + - col2 AS col1 FROM tab1
----
-34
-6
3

query I rowsort
SELECT DISTINCT col0 + 45 AS col0 FROM tab0
----
132
142
60

query I rowsort
SELECT DISTINCT + col2 + col2 + + 24 + + + 34 + + + 52 + 18 * + 58 * + + col1 FROM tab0
----
1352
22054
84768

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT + MIN( ALL + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-384
SELECT + MIN ( ALL + col0 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT 61 + 69 AS col0 FROM tab0 AS cor0
----
130
130
130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT - 11 + - MIN( + 72 ) - - + 21 AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-387
SELECT - 11 + - MIN ( + 72 ) - - + 21 AS col1 FROM tab2 AS cor0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-388
SELECT - 47 + - + COUNT( * ) * - CAST( NULL AS SIGNED ) + - 38 / + AVG ( ALL + 70 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT - 47 + - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 38 / + AVG ( ALL + 70 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT - 15 + + - 23 DIV 46 AS col1 FROM tab1 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-389
SELECT - 15 + + - 23 / 46 AS col1 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ALL + 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT - COUNT ( * ) - + 51 FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-392
SELECT ALL - + col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - + col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - - col1 NOT BETWEEN - - 44 AND ( - - ( col0 ) + - 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - - ( - 29 ) * - - 99 + - 5 AS col1 FROM tab2 AS cor0
----
-2876
-2876
-2876

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL + COUNT( * ) * + + 6 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL + COUNT ( * ) * + + 6 FROM tab2 AS cor0
----
18

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

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

query I rowsort
SELECT - col2 * + col0 + - - col2 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT col1 * - col0 + - ( + col0 ) * + col0 * - + ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-168768
-331275
-51014

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

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT ALL COUNT( * ) * - COUNT( * ) AS col1, - 14 AS col0 FROM tab2
----
-9
-14

skipif mysql # not compatible
query II rowsort label-401
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col1, - 14 AS col0 FROM tab2
----
-9
-14

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col2 FROM tab0 AS cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-405
SELECT + CAST( 28 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif mysql # not compatible
query I rowsort label-405
SELECT + CAST ( 28 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 74 col2, + col1 * - - col2 col2 FROM tab2 AS cor0
----
74
1173
74
3080
74
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT - col0 DIV - col1 + col2 AS col0 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - col0 / - col1 + col2 AS col0 FROM tab2 AS cor0
----
23
40
59

query I rowsort
SELECT - 77 * col2 FROM tab0 AS cor0
----
-3619
-7623
-770

query I rowsort
SELECT + 46 * - - 81 * - col2 + - col1 AS col1 FROM tab2 cor0
----
-149117
-216175
-85749

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-412
SELECT ALL CAST( NULL AS SIGNED ), ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-412
SELECT ALL CAST ( NULL AS INTEGER ), ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
NULL
23
NULL
40
NULL
58

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

query II rowsort
SELECT ALL + ( + 26 ) AS col0, - 25 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + 57 AS col2 FROM tab2
----
108
124
134

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

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

skipif mysql # not compatible
query I rowsort label-417
SELECT - 26 / + col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT DISTINCT SUM( - 11 ) AS col0 FROM tab1 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT SUM ( - 11 ) AS col0 FROM tab1 cor0
----
-33

query I rowsort
SELECT 95 * - col1 - + + col1 AS col1 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT ALL ( 97 ) FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT MAX( DISTINCT - 74 ) AS col2 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-422
SELECT MAX ( DISTINCT - 74 ) AS col2 FROM tab1
----
-74

query I rowsort
SELECT DISTINCT - + 9 * + 42 FROM tab0 AS cor0
----
-378

query I rowsort
SELECT - 32 * + 24 AS col0 FROM tab1
----
-768
-768
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + 50 * - COUNT( * ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-425
SELECT + 50 * - COUNT ( * ) FROM tab0
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 col1 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT DISTINCT - + col0 * - col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT - + col0 * - col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT 51 * - col0 DIV - - col0 FROM tab0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-428
SELECT 51 * - col0 / - - col0 FROM tab0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col0 col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab1 AS cor0 WHERE col0 - + 21 + col2 * - col1 + + - col1 <> + col2 / - + col0
----
-37
-44
-80

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-433
SELECT ALL col0 + - - 64 DIV + col0 AS col1 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL col0 + - - 64 / + col0 AS col1 FROM tab2 AS cor0
----
47
65
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT ALL COUNT( * ) * 57 + CAST( NULL AS SIGNED ) * MAX( - - 1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL COUNT ( * ) * 57 + CAST ( NULL AS INTEGER ) * MAX ( - - 1 ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col0 + - + 6 AS col0, + ( col2 ) * col0 + + col0 AS col2 FROM tab2
----
40
1104
58
2624
69
4425

query I rowsort
SELECT ALL - col0 + 11 AS col0 FROM tab1
----
-40
-74
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-437
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0 * + - 17 - + + CAST( NULL AS SIGNED ) * + 23
----

skipif mysql # not compatible
query III rowsort label-437
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0 * + - 17 - + + CAST ( NULL AS INTEGER ) * + 23
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT COUNT( * ) * - + 14 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-439
SELECT COUNT ( * ) * - + 14 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-440
SELECT ALL + SUM( + - 8 ) + 67 AS col0, COUNT( * ) + + 26 FROM tab1 AS cor0
----
43
29

skipif mysql # not compatible
query II rowsort label-440
SELECT ALL + SUM ( + - 8 ) + 67 AS col0, COUNT ( * ) + + 26 FROM tab1 AS cor0
----
43
29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-443
SELECT 42 DIV + COUNT( * ) AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-443
SELECT 42 / + COUNT ( * ) AS col0 FROM tab0
----
14

query II rowsort
SELECT ALL 24 + - - col2 + + col0 + - col2 * - 23 * - col2 AS col0, col2 * + + 99 AS col2 FROM tab2
----
-12074
2277
-36672
3960
-77215
5742

query I rowsort
SELECT ALL col2 + - col0 + - - 28 * col1 * - col1 * + 66 * - col1 AS col0 FROM tab2
----
245139025
555810007
843672960

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

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

query III rowsort
SELECT * FROM tab2 WHERE 2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT COUNT( * ) + - + SUM( DISTINCT 19 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-449
SELECT COUNT ( * ) + - + SUM ( DISTINCT 19 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-10

query I rowsort
SELECT - 96 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT + - ( + MIN( - col1 ) ) col0 FROM tab0 AS cor0
----
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT - MAX( - - 93 ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-452
SELECT - MAX ( - - 93 ) AS col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL - 84 AS col2 FROM tab2 AS cor0 WHERE 84 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - MIN ( - col0 ) AS col2 FROM tab2
----
75

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

query I rowsort
SELECT ALL + col0 * - 21 FROM tab0
----
-1827
-2037
-315

query II rowsort
SELECT col2 AS col0, 60 AS col0 FROM tab1
----
59
60
68
60
96
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 WHERE NOT - - col1 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-459
SELECT ALL + CAST( NULL AS DECIMAL ) * - - 30 / ( col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL + CAST ( NULL AS REAL ) * - - 30 / ( col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT + COUNT( * ) * 10 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + COUNT ( * ) * 10 FROM tab2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT - col1 + col1 DIV col1 + - + col2 AS col1 FROM tab0
----
-127
-30
-99

skipif mysql # not compatible
query I rowsort label-462
SELECT - col1 + col1 / col1 + - + col2 AS col1 FROM tab0
----
-127
-30
-99

query I rowsort
SELECT + 90 + - col2 AS col1 FROM tab1 cor0
----
-6
22
31

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

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

query II rowsort
SELECT + + col0, 44 * + col1 FROM tab1 AS cor0
----
51
616
85
220
91
2068

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

query I rowsort
SELECT + - ( - col1 ) + + - col2 + - col1 + + col1 / - 30 FROM tab0 WHERE NULL BETWEEN - + col2 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT + ( 82 ) DIV 26 - + 67 * - - 63 + + + col2 col1 FROM tab0 AS cor0
----
-4119
-4171
-4208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-469
SELECT + ( 82 ) / 26 - + 67 * - - 63 + + + col2 col1 FROM tab0 AS cor0
----
-4119
-4171
-4208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 85
----

query I rowsort
SELECT DISTINCT + 32 + + 13 AS col0 FROM tab2 cor0
----
45

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

query I rowsort
SELECT ALL + - col2 * - 19 AS col0 FROM tab2 WHERE NULL IS NULL
----
1102
437
760

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT ALL - col1 DIV - 33 - + col1 FROM tab1
----
-14
-46
-5

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL - col1 / - 33 - + col1 FROM tab1
----
-14
-46
-5

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

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

query I rowsort
SELECT DISTINCT + ( - col0 ) - - 83 + + 65 * + + col2 * 49 * 51 AS col2 FROM tab1
----
11045572
15593792
9583663

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

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

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

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

query I rowsort
SELECT DISTINCT + + col1 * - 35 FROM tab1 cor0
----
-1645
-175
-490

query II rowsort
SELECT - col1 AS col1, col2 * + - col2 FROM tab0 AS cor0 WHERE NOT 50 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT - MAX( ALL col2 ) FROM tab2 WHERE NOT - col0 IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-481
SELECT - MAX ( ALL col2 ) FROM tab2 WHERE NOT - col0 IS NULL
----
-58

query II rowsort
SELECT ALL - - col0 AS col1, col1 - - + col0 * - col1 FROM tab2 AS cor0
----
46
-2295
64
-4851
75
-4958

query II rowsort
SELECT DISTINCT - 16, 2 * - col1 AS col0 FROM tab1 AS cor0
----
-16
-10
-16
-28
-16
-94

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 24
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + 54 ) AS col1, col2 col1 FROM tab0
----
-54
10
-54
47
-54
99

query I rowsort
SELECT 92 * + + ( + + col0 ) FROM tab0
----
1380
8004
8924

query I rowsort
SELECT 10 * + col2 * col0 AS col2 FROM tab1
----
48960
50150
61880

query I rowsort
SELECT ALL - + 99 + + 63 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-36
-36
-36

query I rowsort
SELECT ALL - col0 * col2 * - col1 + - col2 FROM tab0 AS cor0
----
18260
57058
9504

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-492
SELECT ALL - 24 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - 24 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col1 col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT col2 + 36 AS col1 FROM tab1
----
104
132
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-495
SELECT ALL * FROM tab0 WHERE - + 60 * + col0 * - col0 + + col2 * + - ( CAST( NULL AS SIGNED ) ) * - - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-495
SELECT ALL * FROM tab0 WHERE - + 60 * + col0 * - col0 + + col2 * + - ( CAST ( NULL AS INTEGER ) ) * - - col2 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-496
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL - + 3 FROM tab1 WHERE NOT col0 IS NULL
----
-3
-3
-3

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

skipif mysql # not compatible
query I rowsort label-498
SELECT - - col0 * CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - 23 * - col2 AS col2 FROM tab0 AS cor0
----
1081
2277
230

query I rowsort
SELECT + - 34 * + 22 - - ( col2 ) FROM tab1 cor0
----
-652
-680
-689

query I rowsort
SELECT ALL col2 * - 40 FROM tab2 AS cor0
----
-1600
-2320
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab2 AS cor0 WHERE NOT 6 IS NULL
----
51
67
77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-504
SELECT + COUNT( - col0 ) DIV + 9 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-504
SELECT + COUNT ( - col0 ) / + 9 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - + col2 * 12 FROM tab1 AS cor0
----
-1152
-708
-816

query I rowsort
SELECT - 95 * - col0 - 93 AS col0 FROM tab0 AS cor0
----
1332
8172
9122

query I rowsort
SELECT - 65 - + 19 * col2 FROM tab0 AS cor0
----
-1946
-255
-958

query I rowsort
SELECT ALL + 61 + - col2 * + col2 * - 72 FROM tab2 AS cor0
----
115261
242269
38149

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT COUNT( * ) - - + 91 AS col2 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-509
SELECT COUNT ( * ) - - + 91 AS col2 FROM tab2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-510
SELECT CAST( + - col1 AS SIGNED ) - + 58 AS col0 FROM tab0
----
-139
-59
-79

skipif mysql # not compatible
query I rowsort label-510
SELECT CAST ( + - col1 AS INTEGER ) - + 58 AS col0 FROM tab0
----
-139
-59
-79

query II rowsort
SELECT ALL col0, - ( - + 64 ) AS col2 FROM tab2
----
46
64
64
64
75
64

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

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

query I rowsort
SELECT ALL + col0 * + + 87 AS col0 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-515
SELECT - 20 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - 69 ) * col2 <= + CAST( NULL AS SIGNED ) - - col0 * + + 10 )
----

skipif mysql # not compatible
query I rowsort label-515
SELECT - 20 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - 69 ) * col2 <= + CAST ( NULL AS INTEGER ) - - col0 * + + 10 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT DISTINCT + + COUNT( * ) col0, 60 FROM tab2 AS cor0
----
3
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-516
SELECT DISTINCT + + COUNT ( * ) col0, 60 FROM tab2 AS cor0
----
3
60

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT + SUM( col1 ) * - 63 FROM tab0 cor0
----
-6489

skipif mysql # not compatible
query I rowsort label-517
SELECT + SUM ( col1 ) * - 63 FROM tab0 cor0
----
-6489

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-518
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT + col2 IN ( - + col2 * + CAST( + col0 AS DECIMAL ) + - 64 )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT + col2 IN ( - + col2 * + CAST ( + col0 AS REAL ) + - 64 )
----
-51
-85
-91

query II rowsort
SELECT 26, col0 AS col1 FROM tab0 WHERE NOT + + ( - + col1 ) IS NULL
----
26
15
26
87
26
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-520
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND CAST( col2 AS SIGNED ) + - col1 - + col1 + + col2
----

skipif mysql # not compatible
query III rowsort label-520
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND CAST ( col2 AS INTEGER ) + - col1 - + col1 + + col2
----

query I rowsort
SELECT ALL + 96 * - 51 - 28 AS col0 FROM tab1 AS cor0
----
-4924
-4924
-4924

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

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE + 90 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col2 FROM tab1 cor0
----
-70
-70
-70

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1, col2, - col1, - 67, col2 + - 83, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT 9 + col2 DIV + 31 AS col1 FROM tab2
----
10
10
9

skipif mysql # not compatible
query I rowsort label-528
SELECT 9 + col2 / + 31 AS col1 FROM tab2
----
10
10
9

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT + MAX( DISTINCT + - ( + col1 ) ) + - + COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-529
SELECT + MAX ( DISTINCT + - ( + col1 ) ) + - + COUNT ( * ) FROM tab1
----
-8

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

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

query I rowsort
SELECT 91 * + - ( - + col2 ) AS col2 FROM tab2 cor0
----
2093
3640
5278

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-533
SELECT ALL 95 col0, COUNT( * ) DIV 52 DIV 54 * + + 77 + - COUNT( + + 57 ) AS col2 FROM tab0 AS cor0
----
95
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-533
SELECT ALL 95 col0, COUNT ( * ) / 52 / 54 * + + 77 + - COUNT ( + + 57 ) AS col2 FROM tab0 AS cor0
----
95
-3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 41 NOT IN ( - 5, - 54 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * 25 AS col0 FROM tab0 AS cor0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT + COUNT( * ) + SUM( DISTINCT 94 + - 46 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-538
SELECT + COUNT ( * ) + SUM ( DISTINCT 94 + - 46 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT col2 * - 36 FROM tab1
----
-2124
-2448
-3456

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col0 FROM tab0
----
-1
-441
-6561

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT 59 * + COUNT( * ) AS col1 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-543
SELECT 59 * + COUNT ( * ) AS col1 FROM tab2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT COUNT( + col1 ) * 93 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-544
SELECT COUNT ( + col1 ) * 93 FROM tab1
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) + col1 col2 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-546
SELECT ALL - MAX( + col0 ) AS col2 FROM tab1 WHERE ( - 90 * - col0 ) BETWEEN NULL AND 35 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL - MAX ( + col0 ) AS col2 FROM tab1 WHERE ( - 90 * - col0 ) BETWEEN NULL AND 35 + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT 33 + - 27 FROM tab0
----
6
6
6

query I rowsort
SELECT - 57 + 35 AS col0 FROM tab2 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT col1 * - 90 FROM tab0 WHERE - col2 IS NULL
----

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

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

query I rowsort
SELECT ( - 28 ) * col1 FROM tab2
----
-1428
-1876
-2156

query I rowsort
SELECT - 11 + + col1 * col2 AS col2 FROM tab1
----
1333
284
3185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-554
SELECT DISTINCT + col0 FROM tab1 WHERE NOT 53 / - col1 = col2 + CAST( col2 + - col1 AS DECIMAL ) * + col2
----
51
85
91

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT + col0 FROM tab1 WHERE NOT 53 / - col1 = col2 + CAST ( col2 + - col1 AS REAL ) * + col2
----
51
85
91

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 42 > 6 * col2 - + 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 42 * - col2 FROM tab0
----
1974
4158
420

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col1 * - col2 AND + 75 * - col0
----

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

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

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

skipif mysql # not compatible
query I rowsort label-560
SELECT + CAST ( - 15 AS INTEGER ) FROM tab0
----
-15
-15
-15

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

query I rowsort
SELECT ALL + 93 + - col2 * - 42 FROM tab1
----
2571
2949
4125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab0 WHERE col0 * col2 - col2 <> col0
----
-9

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE col0 * col2 - col2 <> col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-566
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) - - 20 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-566
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) - - 20 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( - 50 ) AND col1
----
58

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 92 col2 FROM tab0 WHERE NOT 64 <= ( 48 )
----
4324
9108
920

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT - COUNT( * ) * - 75 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-571
SELECT - COUNT ( * ) * - 75 FROM tab1
----
225

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

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

skipif mysql # not compatible
query I rowsort label-573
SELECT - col0 FROM tab0 cor0 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) < col0
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col0 * - 55 IS NULL
----
51
85
91

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

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

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

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

query I rowsort
SELECT 70 AS col1 FROM tab1 AS cor0 WHERE NOT + 18 * + 17 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL - 80 + + COUNT( * ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - 80 + + COUNT ( * ) FROM tab0 AS cor0
----
-77

query I rowsort
SELECT DISTINCT col2 + 9 * + 29 FROM tab0 cor0
----
271
308
360

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL SUM( 97 ) * - SUM( + 24 ) + COUNT( * ) FROM tab2 AS cor0
----
-20949

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL SUM ( 97 ) * - SUM ( + 24 ) + COUNT ( * ) FROM tab2 AS cor0
----
-20949

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT + COUNT( - + col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-583
SELECT DISTINCT + COUNT ( - + col1 ) col0 FROM tab2
----
3

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

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

query III rowsort
SELECT * FROM tab2 WHERE 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT - COUNT( - - col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-586
SELECT - COUNT ( - - col1 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - MIN( ( col0 ) ) + + 69 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - MIN ( ( col0 ) ) + + 69 FROM tab1
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT DISTINCT + COUNT( * ) * SUM( - 30 ) AS col1 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT + COUNT ( * ) * SUM ( - 30 ) AS col1 FROM tab1
----
-270

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * 68 + 67 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT - col1 * 82 DIV - col2 FROM tab1
----
11
56
6

skipif mysql # not compatible
query I rowsort label-591
SELECT - col1 * 82 / - col2 FROM tab1
----
11
56
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-592
SELECT ALL 32 + + AVG ( 61 ) + 17 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL 32 + + AVG ( 61 ) + 17 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT DISTINCT + col2 DIV 34 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT + col2 / 34 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT + col2 + + col1 + - 38 AS col1 FROM tab0
----
-7
62
90

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

query III rowsort
SELECT * FROM tab2 WHERE 8 * col0 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-597
SELECT ( 9 ) * - COUNT( * ) FROM tab1 WHERE - CAST( 2 AS SIGNED ) NOT IN ( 82 )
----
-27

skipif mysql # not compatible
query I rowsort label-597
SELECT ( 9 ) * - COUNT ( * ) FROM tab1 WHERE - CAST ( 2 AS INTEGER ) NOT IN ( 82 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-598
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) + - COUNT( * ) / MAX( + 41 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / MAX ( + 41 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 18 * - col0 + + 63 AS col2 FROM tab2 AS cor0
----
-1089
-1287
-765

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

query I rowsort
SELECT - + 66 + + + col0 FROM tab0 cor0
----
-51
21
31

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE - col1 * 61 > 59
----

query I rowsort
SELECT ALL 45 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT MIN( - col1 ) AS col2 FROM tab1 WHERE ( NULL ) > ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT MIN ( - col1 ) AS col2 FROM tab1 WHERE ( NULL ) > ( col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT + + 74 DIV + 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-605
SELECT + + 74 / + 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 8 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

query I rowsort
SELECT + col2 - 87 FROM tab0 AS cor0
----
-40
-77
12

query I rowsort
SELECT - 21 * + col0 - - col1 FROM tab2 AS cor0
----
-1267
-1508
-915

query I rowsort
SELECT ALL + + 25 FROM tab0 AS cor0
----
25
25
25

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + - col2 > + 24 * - col1 OR NOT - col0 NOT BETWEEN - 62 AND + col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - col1 - col0 NOT IN ( - col2 * - col2 )
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT ( + MAX( DISTINCT 16 ) ) + 51 AS col2 FROM tab2 cor0 WHERE NOT col1 * col2 + 33 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT ( + MAX ( DISTINCT 16 ) ) + 51 AS col2 FROM tab2 cor0 WHERE NOT col1 * col2 + 33 IS NOT NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 45 + + 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT - 49 DIV - col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-620
SELECT - 49 / - col0 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT DISTINCT + CAST( - 34 AS SIGNED ) * + col0 * + col2 * - col1 FROM tab1
----
2330496
852550
9888424

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT + CAST ( - 34 AS INTEGER ) * + col0 * + col2 * - col1 FROM tab1
----
2330496
852550
9888424

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT col0 DIV - col2 + + - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-623
SELECT col0 / - col2 + + - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-60
-69
-96

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

query I rowsort
SELECT + 76 * 24 * - 35 FROM tab2 cor0
----
-63840
-63840
-63840

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT COUNT( * ) * - + 34 AS col1 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT COUNT ( * ) * - + 34 AS col1 FROM tab2
----
-102

query I rowsort
SELECT - col1 * + + col2 - ( - ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

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

skipif mysql # not compatible
query I rowsort label-628
SELECT CAST ( NULL AS INTEGER ) + - col2 FROM tab1 cor0 WHERE col0 * - col1 + + - ( + col1 ) IS NULL
----

query II rowsort
SELECT ALL + + 79 + + col1 * + + col0, + 75 AS col1 FROM tab0 AS cor0
----
1294
75
176
75
1906
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + col0 - col1 - + + col0 + col1 * - col2 * col2 * 26 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-631
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col0 + - 81 <= - col1 * CAST( CAST( + 84 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-631
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col0 + - 81 <= - col1 * CAST ( CAST ( + 84 AS INTEGER ) AS INTEGER )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT + CAST( NULL AS SIGNED ) * 18 - + + COUNT( * ) FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT + CAST ( NULL AS INTEGER ) * 18 - + + COUNT ( * ) FROM tab2 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-636
SELECT + col1 + - col0 + + + 65 * 72 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-636
SELECT + col1 + - col0 + + + 65 * 72 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT - col0 + - col1 + - col0 * col0 + 75 DIV - - 95 AS col0 FROM tab2
----
-2213
-4237
-5767

skipif mysql # not compatible
query I rowsort label-637
SELECT - col0 + - col1 + - col0 * col0 + 75 / - - 95 AS col0 FROM tab2
----
-2213
-4237
-5767

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT ALL + 71 DIV + - 55 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + 71 / + - 55 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col1 / 0 + - col0 FROM tab0 WHERE ( + ( 16 ) ) IN ( col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-640
SELECT DISTINCT - col1 + - CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-640
SELECT DISTINCT - col1 + - CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL

query II rowsort
SELECT 48, + 95 AS col0 FROM tab2
----
48
95
48
95
48
95

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

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

query II rowsort
SELECT DISTINCT - 23 + 50, - col1 AS col1 FROM tab0
----
27
-1
27
-21
27
-81

query I rowsort
SELECT DISTINCT - ( col2 ) - + 12 - + + col2 FROM tab1
----
-130
-148
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT + 93 + COUNT( DISTINCT col1 ) col0 FROM tab0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-645
SELECT + 93 + COUNT ( DISTINCT col1 ) col0 FROM tab0
----
96

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= NULL
----

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

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

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

query I rowsort
SELECT ALL - + col1 * - + col2 + - - col1 FROM tab0 AS cor0 WHERE NOT 37 + + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT ( + 44 * 39 + 42 * + col2 ) <= ( + col1 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-651
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT ( + 44 * 39 + 42 * + col2 ) <= ( + col1 )
----
23
40
58

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 49 <= NULL
----

query I rowsort
SELECT ( - - 28 ) FROM tab1
----
28
28
28

query II rowsort
SELECT ALL col2, - col2 * ( - 19 ) + - 53 AS col0 FROM tab1
----
59
1068
68
1239
96
1771

query I rowsort
SELECT DISTINCT ( - - ( + col1 ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT + 68 AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT - COUNT( * ) + + 39 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
36

skipif mysql # not compatible
query I rowsort label-658
SELECT - COUNT ( * ) + + 39 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
36

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 80 * + col1 col2, + 8 AS col0 FROM tab0
----
1680
8
6480
8
80
8

query I rowsort
SELECT DISTINCT col1 + col0 + + col0 FROM tab0
----
111
195

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( ( NULL ) IS NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT col0 * + + col1 + + col0 AS col2 FROM tab2
----
2392
4992
5100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT + - 20 * - AVG ( + col1 ) * COUNT( * ) FROM tab1 AS cor0 WHERE + col2 * + col2 + col1 < 88 * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-666
SELECT + - 20 * - AVG ( + col1 ) * COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 * + col2 + col1 < 88 * + 31
----
NULL

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab2 cor0
----
-83

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IN ( 5 + - + col0 ) OR NOT col0 + + + 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 AS col1, + 76 AS col2 FROM tab0
----
15
76
87
76
97
76

query I rowsort
SELECT DISTINCT + 11 + + 10 + - 45 * - - 32 * + col2 + 65 * + + col0 FROM tab0
----
-136234
-66684
-8724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 72 col2 FROM tab1 WHERE NULL IS NULL
----
-1008
-3384
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT DISTINCT - 84 - - MIN( + col1 ) AS col2 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT - 84 - - MIN ( + col1 ) AS col2 FROM tab1
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-675
SELECT * FROM tab0 AS cor0 WHERE NULL < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-675
SELECT * FROM tab0 AS cor0 WHERE NULL < CAST ( NULL AS REAL )
----

query I rowsort
SELECT 19 + - ( - + col0 ) + - - col2 FROM tab2 AS cor0
----
123
152
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT COUNT( * ) + + 38 AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT COUNT ( * ) + + 38 AS col2 FROM tab2
----
41

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-679
SELECT ALL - col0 AS col1 FROM tab1 WHERE CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - col0 AS col1 FROM tab1 WHERE CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-680
SELECT ALL ( - COUNT( * ) ) DIV + 67 * + 25 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL ( - COUNT ( * ) ) / + 67 * + 25 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-681
SELECT ALL + 49 AS col2 FROM tab1 WHERE NOT + - col2 * + CAST( NULL AS SIGNED ) >= ( + ( + ( 86 ) ) )
----

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL + 49 AS col2 FROM tab1 WHERE NOT + - col2 * + CAST ( NULL AS INTEGER ) >= ( + ( + ( 86 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 46 * + 15, - col1 col0 FROM tab0 WHERE NULL IS NULL
----
690
-1
690
-21
690
-81

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

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT DISTINCT + COUNT( * ) DIV 95 * + - 85 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT + COUNT ( * ) / 95 * + - 85 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + MIN( ALL 24 ) AS col2 FROM tab2 WHERE NOT ( - 52 / 40 ) IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-686
SELECT + MIN ( ALL 24 ) AS col2 FROM tab2 WHERE NOT ( - 52 / 40 ) IS NULL
----
24

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col0 FROM tab0
----
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 36 ) IS NOT NULL OR ( 21 * + col2 * - col1 + ( col2 ) - 15 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 41 * + 82, + 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col2 * col0 col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT + - col0 + + + col1 * + 0 * - + col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + - col0 * - 26 FROM tab0 AS cor0
----
2262
2522
390

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT DISTINCT - COUNT( * ) AS col0, 81 FROM tab1 AS cor0
----
-3
81

skipif mysql # not compatible
query II rowsort label-697
SELECT DISTINCT - COUNT ( * ) AS col0, 81 FROM tab1 AS cor0
----
-3
81

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

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

query I rowsort
SELECT ALL - + 91 + + - col1 AS col1 FROM tab0 cor0
----
-112
-172
-92

query I rowsort
SELECT 86 + - + ( + + col1 ) FROM tab0 AS cor0
----
5
65
85

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

query I rowsort
SELECT ALL + col1 + + 99 AS col1 FROM tab2
----
150
166
176

query I rowsort
SELECT col1 + + ( + col1 ) + - col0 FROM tab2 WHERE NULL IS NULL
----
56
59
90

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL 5 DIV col1 + + + col1 AS col2 FROM tab1
----
14
47
6

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 5 / col1 + + + col1 AS col2 FROM tab1
----
14
47
6

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL COUNT( * ) - - 20 AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL COUNT ( * ) - - 20 AS col2 FROM tab0
----
23

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

query I rowsort
SELECT DISTINCT - 76 - 44 + - col0 * + col0 AS col1 FROM tab0
----
-345
-7689
-9529

query I rowsort
SELECT 33 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - col1 + - 54
----

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

skipif mysql # not compatible
query I rowsort label-709
SELECT - col0 / + - 19 FROM tab0
----
0
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT COUNT( * ) * + 84 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-710
SELECT COUNT ( * ) * + 84 FROM tab2
----
252

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

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

query I rowsort
SELECT DISTINCT + ( 86 ) FROM tab0
----
86

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-713
SELECT ALL + 98 + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT DISTINCT + col2 DIV col0 * 58 FROM tab1 AS cor0
----
0
58

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + col2 / col0 * 58 FROM tab1 AS cor0
----
0
58

query II rowsort
SELECT ALL 87 + - ( - col1 ) + col1 AS col2, 3 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT + col0 * - 50 + col2 FROM tab2 WHERE NOT - col0 IS NULL
----
-2277
-3160
-3692

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-719
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) - + 58 IN ( - - col2 * col1 + col1, - col1 )
----

skipif mysql # not compatible
query III rowsort label-719
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) - + 58 IN ( - - col2 * col1 + col1, - col1 )
----

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

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

query I rowsort
SELECT + 19 * col2 AS col2 FROM tab1
----
1121
1292
1824

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT - COUNT( DISTINCT - 54 ) AS col1 FROM tab0 WHERE NOT - - col1 + + + col0 < - 1 / + col0
----
-1

skipif mysql # not compatible
query I rowsort label-724
SELECT - COUNT ( DISTINCT - 54 ) AS col1 FROM tab0 WHERE NOT - - col1 + + + col0 < - 1 / + col0
----
-1

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

query I rowsort
SELECT ALL - col2 * - + 22 FROM tab1 AS cor0
----
1298
1496
2112

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 = NULL
----

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

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

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

query II rowsort
SELECT ALL - col0, + col2 FROM tab2 WHERE + + col2 - - 98 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT 91 * - col1 * - 60 + - 70 DIV + + col0 FROM tab2
----
278459
365820
420419

skipif mysql # not compatible
query I rowsort label-731
SELECT 91 * - col1 * - 60 + - 70 / + + col0 FROM tab2
----
278459
365820
420419

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + ( + + ( 7 ) )
----

query II rowsort
SELECT 20 + - - col2, + col1 AS col0 FROM tab2
----
43
51
60
77
78
67

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT + ( - MIN( ALL + 7 ) ) AS col2 FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT + ( - MIN ( ALL + 7 ) ) AS col2 FROM tab1 cor0
----
-7

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

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

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

query II rowsort
SELECT DISTINCT 36 * - col2, col1 AS col1 FROM tab2 AS cor0
----
-1440
77
-2088
67
-828
51

query I rowsort
SELECT DISTINCT + 91 FROM tab1 AS cor0 WHERE NOT + 80 IS NULL AND - 90 + - - col1 + - - 48 IS NULL
----

query I rowsort
SELECT - col0 * col0 * - ( 12 ) - 47 AS col1 FROM tab1 cor0
----
31165
86653
99325

query I rowsort
SELECT ALL col1 * - col2 + - col0 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT 95 * col1 - - + 97 FROM tab2
----
4942
6462
7412

query II rowsort
SELECT DISTINCT col1 + - ( + 67 ) AS col2, + col0 + - col1 AS col2 FROM tab0
----
-46
66
-66
96
14
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col1 FROM tab2 WHERE NULL >= col2
----

query I rowsort
SELECT + 16 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT ( - 21 ) AS col0 FROM tab1, tab2 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + + 96 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - - col2 - 38 AS col1 FROM tab0 AS cor0
----
-38

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

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT + col2 * - + CAST ( NULL AS INTEGER ) * + 23 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-749
SELECT ALL + 48 col1, col1 + - + col2 DIV 45 * + col1 FROM tab2 AS cor0
----
48
0
48
51
48
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-749
SELECT ALL + 48 col1, col1 + - + col2 / 45 * + col1 FROM tab2 AS cor0
----
48
0
48
51
48
77

onlyif mysql # DIV for integer division: 
query I rowsort label-750
SELECT ALL + col0 DIV - col1 AS col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL + col0 / - col1 AS col2 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL COUNT( * ) * MAX( 7 ) col0 FROM tab0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-751
SELECT ALL COUNT ( * ) * MAX ( 7 ) col0 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT - + 57 * + + MIN( DISTINCT 52 ) FROM tab1 AS cor0
----
-2964

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT - + 57 * + + MIN ( DISTINCT 52 ) FROM tab1 AS cor0
----
-2964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT DISTINCT 47 / CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT 47 / CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN 2 - - col2 AND col0
----
51
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 >= + ( + 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT - 5 * + 20 AS col0 FROM tab1
----
-100

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

onlyif mysql # aggregate syntax: 
query II rowsort label-759
SELECT - 37 + + COUNT( * ) + COUNT( * ) AS col1, - 45 AS col2 FROM tab2
----
-31
-45

skipif mysql # not compatible
query II rowsort label-759
SELECT - 37 + + COUNT ( * ) + COUNT ( * ) AS col1, - 45 AS col2 FROM tab2
----
-31
-45

query I rowsort
SELECT DISTINCT - col2 + + - col0 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

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

query I rowsort
SELECT - 36 - - 39 + - 58 * - col0 AS col0 FROM tab1
----
2961
4933
5281

query I rowsort
SELECT + col2 AS col2 FROM tab2 cor0 WHERE + col2 * + col2 NOT BETWEEN NULL AND - 13 + - col1 * col1
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-764
SELECT - - 47 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-764
SELECT - - 47 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT + - 53 FROM tab1 cor0
----
-53

query II rowsort
SELECT DISTINCT col1, col2 * col2 * 44 FROM tab0 cor0
----
1
431244
21
4400
81
97196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT + COUNT( - 68 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + COUNT ( - 68 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + 76 * + col1 AS col0 FROM tab0
----
1596
6156
76

query I rowsort
SELECT col0 * - + 65 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT ALL col1 + - - 86 AS col0 FROM tab1
----
100
133
91

query II rowsort
SELECT DISTINCT col1 - col1, - ( col0 ) AS col1 FROM tab0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT DISTINCT - col2 * - 99 AS col0 FROM tab2
----
2277
3960
5742

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

skipif mysql # not compatible
query I rowsort label-775
SELECT ( - COUNT ( * ) ) / + 20 AS col0 FROM tab0
----
0

query I rowsort
SELECT ( + 53 ) FROM tab0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-777
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE col0 + - 4 * - col1 NOT IN ( + col2, - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 + - 4 * - col1 NOT IN ( + col2, - col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 71 AS col1 FROM tab0 cor0
----
-71
-71
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT MAX( - 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-780
SELECT MAX ( - 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col0 BETWEEN - col0 * - col0 * ( - ( + 64 ) ) * - + col1 AND - col1
----
1
21
81

query I rowsort
SELECT col1 FROM tab1 WHERE NOT 93 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - - col1 + + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - - col1 + + col2 AND NULL
----
0

query I rowsort
SELECT ALL - 25 AS col1 FROM tab2 cor0
----
-25
-25
-25

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

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

query I rowsort
SELECT ALL + col1 * - + col0 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-789
SELECT ALL - ( - SUM( DISTINCT + + col0 ) ) AS col0 FROM tab0 WHERE NOT + + CAST( 13 AS SIGNED ) * - col0 - + + 61 NOT BETWEEN ( + + 6 ) AND + col2 * 35 - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - ( - SUM ( DISTINCT + + col0 ) ) AS col0 FROM tab0 WHERE NOT + + CAST ( 13 AS INTEGER ) * - col0 - + + 61 NOT BETWEEN ( + + 6 ) AND + col2 * 35 - col2
----
NULL

query I rowsort
SELECT DISTINCT + 72 + col1 AS col1 FROM tab0
----
153
73
93

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-792
SELECT CAST( - - 23 AS SIGNED ) FROM tab0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-792
SELECT CAST ( - - 23 AS INTEGER ) FROM tab0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-793
SELECT - CAST( + CAST( - ( col2 ) AS SIGNED ) AS SIGNED ) DIV - + col2 AS col2 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT 15 * col2 AS col0 FROM tab1
----
1020
1440
885

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 31 * + col0 + + 70 * col2 <> + col2 * - - col2
----

query I rowsort
SELECT - 70 + - - col1 * + col1 FROM tab2 AS cor0
----
2531
4419
5859

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT 96 >= NULL
----

query I rowsort
SELECT DISTINCT + - col1 - + + col2 FROM tab0 AS cor0
----
-100
-128
-31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT DISTINCT col0 * ( col0 ) DIV col1 FROM tab2 AS cor0
----
41
53
83

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT col0 * ( col0 ) / col1 FROM tab2 AS cor0
----
41
53
83

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

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

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE ( NOT NULL >= 12 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT col2 / 79 * col1 > NULL ) )
----

query I rowsort
SELECT col0 - + 30 AS col1 FROM tab0 AS cor0
----
-15
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT - 6 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-808
SELECT - 6 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT + 85 * - + col0 AS col2, 67 FROM tab2
----
-3910
67
-5440
67
-6375
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-810
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - - 95 AND NULL
----

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

query I rowsort
SELECT DISTINCT 0 FROM tab1 WHERE + col1 * col2 + col0 - + col2 * + col0 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 / - col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * 20 * + col0 AND - 11 * + col2
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 68 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-819
SELECT CAST( NULL AS SIGNED ) * 0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-819
SELECT CAST ( NULL AS INTEGER ) * 0 AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT - 29 + + - col2 AS col1 FROM tab2
----
-52
-69
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ALL + COUNT( * ) * + MAX( + col1 ) * COUNT( DISTINCT col0 ) AS col0 FROM tab1
----
423

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + COUNT ( * ) * + MAX ( + col1 ) * COUNT ( DISTINCT col0 ) AS col0 FROM tab1
----
423

query I rowsort
SELECT DISTINCT - col2 * - - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col0 + + - 67 - - - col2 * + col2 FROM tab1
----
-3463
-4600
-9232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT ALL 44 + - - 19 - CAST( - col1 AS SIGNED ) + - 0 * 45 FROM tab1
----
110
68
77

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL 44 + - - 19 - CAST ( - col1 AS INTEGER ) + - 0 * 45 FROM tab1
----
110
68
77

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

query I rowsort
SELECT - ( 23 ) FROM tab0
----
-23
-23
-23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-830
SELECT - col2 * + - col2 + + col2 DIV + col2 + - col2 * col2 DIV + col1 FROM tab2 AS cor0
----
1581
3315
520

skipif mysql # not compatible
query I rowsort label-830
SELECT - col2 * + - col2 + + col2 / + col2 + - col2 * col2 / + col1 FROM tab2 AS cor0
----
1581
3315
520

query I rowsort
SELECT + col0 * 74 - - - col1 + 89 AS col2 FROM tab0 cor0
----
1118
6506
7266

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

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

query I rowsort
SELECT ALL 15 * + col0 + - + 88 AS col1 FROM tab2 AS cor0
----
1037
602
872

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-835
SELECT ALL COUNT( * ) * - + 86 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL COUNT ( * ) * - + 86 / - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 - + ( - - col2 ) + - col0 + - col2 * + col2 FROM tab2 AS cor0
----
-1627
-3430
-547

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL + - MAX( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( + 59 ) IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + - MAX ( + + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( + 59 ) IS NOT NULL
----
-47

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-840
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * - 52 * + + 21 FROM tab0 cor0
----
3276

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * - 52 * + + 21 FROM tab0 cor0
----
3276

query I rowsort
SELECT + 70 * - 57 FROM tab2 AS cor0
----
-3990
-3990
-3990

query I rowsort
SELECT + col1 * + col0 + + col1 * col0 * - + col1 FROM tab2 AS cor0
----
-117300
-331650
-374528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col1 FROM tab1
----
-17
-17
-17

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

query I rowsort
SELECT ALL + col2 * + 44 FROM tab1
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT + SUM( 47 ) AS col1 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT + SUM ( 47 ) AS col1 FROM tab0 AS cor0
----
141

query I rowsort
SELECT 20 * col0 AS col2 FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN NULL AND - 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col1 ) * + 63, ( col1 ) col1 FROM tab0 AS cor0
----
1323
21
5103
81
63
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-849
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 - + col1 BETWEEN - ( CAST( NULL AS SIGNED ) ) * 41 + - col0 + + + 46 * 46 * - - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-849
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 - + col1 BETWEEN - ( CAST ( NULL AS INTEGER ) ) * 41 + - col0 + + + 46 * 46 * - - col0 AND NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-853
SELECT ALL + MIN( ALL - col1 ) col1, + MIN( col2 ) * ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE - 44 + col2 * - CAST( - 90 AS SIGNED ) IS NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-853
SELECT ALL + MIN ( ALL - col1 ) col1, + MIN ( col2 ) * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE - 44 + col2 * - CAST ( - 90 AS INTEGER ) IS NULL
----
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, + col0 * 91 FROM tab2 cor0
----
-23
4186
-40
5824
-58
6825

query II rowsort
SELECT + 71 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
71
-10
71
-47
71
-99

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

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE + - 67 > NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-860
SELECT ALL - col2 + - + CAST( NULL AS SIGNED ) AS col2, 37 * - + col1 FROM tab2
----
NULL
-1887
NULL
-2479
NULL
-2849

skipif mysql # not compatible
query II rowsort label-860
SELECT ALL - col2 + - + CAST ( NULL AS INTEGER ) AS col2, 37 * - + col1 FROM tab2
----
NULL
-1887
NULL
-2479
NULL
-2849

query I rowsort
SELECT ALL + 91 * + col1 + col0 AS col2 FROM tab2
----
4687
6172
7071

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL - + COUNT( * ) * - 6 FROM tab1 WHERE NULL IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - + COUNT ( * ) * - 6 FROM tab1 WHERE NULL IS NULL
----
18

query I rowsort
SELECT DISTINCT col0 - + 79 + + - ( + + 60 ) FROM tab0
----
-124
-42
-52

query I rowsort
SELECT ALL col2 * - col1 + + col0 - + - col2 AS col1 FROM tab2 AS cor0
----
-1104
-2976
-3753

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT DISTINCT 21 - col2 DIV + col1 + + + col1 DIV + 5 FROM tab0 AS cor0
----
-78
25
37

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT 21 - col2 / + col1 + + + col1 / + 5 FROM tab0 AS cor0
----
-78
25
37

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( + + 91 ) < NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col2, col0 + + col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-10
174
-47
30
-99
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-868
SELECT + col2 + - + CAST( NULL AS SIGNED ) * + col2 FROM tab1 WHERE 61 IN ( - col2, col1, 73 - + col2 + + + col2 / col1 / col0 )
----

skipif mysql # not compatible
query I rowsort label-868
SELECT + col2 + - + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 WHERE 61 IN ( - col2, col1, 73 - + col2 + + + col2 / col1 / col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT ALL - 2 DIV 54 - + - 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL - 2 / 54 - + - 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query II rowsort
SELECT + 61 - + col0 + + + col1 * col0 AS col1, + col2 * 41 FROM tab1
----
401
2419
4247
2788
724
3936

query I rowsort
SELECT ALL ( - 82 ) FROM tab1 cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT 81 + COUNT( - - CAST( col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN 30 AND NULL
----
81

skipif mysql # not compatible
query I rowsort label-872
SELECT 81 + COUNT ( - - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN 30 AND NULL
----
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-875
SELECT - 51 * + + col0 + - - col2 * - col0 * ( + + 12 ) * - ( - col1 ), + CAST( + col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-305235
5
-3494673
47
-825129
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-875
SELECT - 51 * + + col0 + - - col2 * - col0 * ( + + 12 ) * - ( - col1 ), + CAST ( + col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-305235
5
-3494673
47
-825129
14

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + - MIN( ALL - col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-876
SELECT + - MIN ( ALL - col1 ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT COUNT( col1 ) * - - 88 + + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-877
SELECT COUNT ( col1 ) * - - 88 + + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
261

query I rowsort
SELECT ALL col1 * - col2 * + col0 * + col0 + ( - col2 ) * + - col1 AS col1 FROM tab1 AS cor0
----
-2131080
-26462880
-3494400

onlyif mysql # DIV for integer division: 
query I rowsort label-879
SELECT DISTINCT + 23 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT + 23 / - col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + - col0 >= + - 31
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT + + col2 DIV - 54 + - col1 col1 FROM tab0 AS cor0
----
-2
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-881
SELECT + + col2 / - 54 + - col1 col1 FROM tab0 AS cor0
----
-2
-21
-81

query II rowsort
SELECT col0 * - col1 * + col2 AS col2, col0 AS col0 FROM tab1 AS cor0
----
-25075
85
-290836
91
-68544
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * col1 + + + col1 >= - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-884
SELECT DISTINCT CAST( - + 96 AS SIGNED ), + 6 AS col1 FROM tab2
----
-96
6

skipif mysql # not compatible
query II rowsort label-884
SELECT DISTINCT CAST ( - + 96 AS INTEGER ), + 6 AS col1 FROM tab2
----
-96
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col0 col1, - col0 AS col1 FROM tab0
----
225
-15
7569
-87
9409
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT DISTINCT - SUM( ALL + 22 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT - SUM ( ALL + 22 ) FROM tab0
----
-66

query I rowsort
SELECT ALL - 17 * + + col0 FROM tab2
----
-1088
-1275
-782

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-888
SELECT DISTINCT + MAX ( DISTINCT - + col2 ) col1 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-889
SELECT DISTINCT - 99 DIV COUNT( ALL + - col2 ) + + CAST( + 16 AS SIGNED ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT - 99 / COUNT ( ALL + - col2 ) + + CAST ( + 16 AS INTEGER ) FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT 45 + + col2 FROM tab0
----
144
55
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - COUNT( * ) * - - MAX( DISTINCT col2 ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-892
SELECT - COUNT ( * ) * - - MAX ( DISTINCT col2 ) AS col2 FROM tab1
----
-288

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 94 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT DISTINCT CAST( - 43 AS SIGNED ) * - + 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4085

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT CAST ( - 43 AS INTEGER ) * - + 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4085

query I rowsort
SELECT - ( - - 85 ) * - - col1 * + col1 FROM tab2 AS cor0
----
-221085
-381565
-503965

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL = + 99
----

query I rowsort
SELECT - col1 + + + 8 AS col0 FROM tab2 AS cor0
----
-43
-59
-69

query I rowsort
SELECT ALL - col0 * col1 FROM tab1 AS cor0 WHERE ( - 47 * - col2 ) IS NOT NULL AND + col1 * 1 IS NULL
----

query I rowsort
SELECT + 47 + - col0 AS col1 FROM tab1 AS cor0
----
-38
-4
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 AS col0, col2 col2 FROM tab0 cor0
----
15
47
87
10
97
99

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

query I rowsort
SELECT DISTINCT 37 + + + col1 AS col1 FROM tab2 AS cor0
----
104
114
88

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT DISTINCT - 38 DIV - col0 AS col1 FROM tab1 AS cor0 WHERE 45 NOT BETWEEN col1 * + 77 - - + 49 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT - 38 / - col0 AS col1 FROM tab1 AS cor0 WHERE 45 NOT BETWEEN col1 * + 77 - - + 49 AND NULL
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-907
SELECT DISTINCT - COUNT( * ) + + CAST( + COUNT( ALL + col1 ) AS SIGNED ) AS col1, - 81 AS col1 FROM tab0
----
0
-81

skipif mysql # not compatible
query II rowsort label-907
SELECT DISTINCT - COUNT ( * ) + + CAST ( + COUNT ( ALL + col1 ) AS INTEGER ) AS col1, - 81 AS col1 FROM tab0
----
0
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 27 ) col2 FROM tab1 WHERE ( 59 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - 84 * + COUNT( * ) AS col0 FROM tab2 WHERE + 83 * + + 38 <> + ( col1 )
----
-252

skipif mysql # not compatible
query I rowsort label-909
SELECT - 84 * + COUNT ( * ) AS col0 FROM tab2 WHERE + 83 * + + 38 <> + ( col1 )
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL - COUNT( * ) * 78 * + + 31 FROM tab0
----
-7254

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL - COUNT ( * ) * 78 * + + 31 FROM tab0
----
-7254

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

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

query I rowsort
SELECT - ( 2 ) + - col2 * + col2 AS col1 FROM tab0
----
-102
-2211
-9803

query II rowsort
SELECT DISTINCT - 84 - + col0 AS col2, col2 FROM tab2 AS cor0 WHERE NOT col0 * - 8 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT DISTINCT - COUNT( - - ( - 25 ) ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT - COUNT ( - - ( - 25 ) ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 81 * + ( + - col1 ) * + 87 col2 FROM tab2 AS cor0
----
21704760
27384642
8266131

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-920
SELECT DISTINCT - col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-920
SELECT DISTINCT - col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT - 21 * + - 84 AS col0 FROM tab1
----
1764
1764
1764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 15 ) * + + col2 col2, col2 FROM tab0
----
1485
99
150
10
705
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 11 = col0 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE 51 = - 44 - - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-926
SELECT DISTINCT - 68 col2, COUNT( * ) FROM tab2 AS cor0
----
-68
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-926
SELECT DISTINCT - 68 col2, COUNT ( * ) FROM tab2 AS cor0
----
-68
3

query II rowsort
SELECT - 99 AS col0, + 85 * col2 FROM tab2 AS cor0
----
-99
1955
-99
3400
-99
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + + MIN( + col1 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-928
SELECT + + MIN ( + col1 ) col2 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT DISTINCT col2 + ( - col0 ) * ( col0 ) DIV + ( - + col2 ) + - + 5 * + 74 col1 FROM tab2 AS cor0
----
-216
-228
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-929
SELECT DISTINCT col2 + ( - col0 ) * ( col0 ) / + ( - + col2 ) + - + 5 * + 74 col1 FROM tab2 AS cor0
----
-216
-228
-255

query I rowsort
SELECT - + 87 + - col1 FROM tab0 AS cor0
----
-108
-168
-88

query I rowsort
SELECT DISTINCT col0 + - 36 AS col2 FROM tab0
----
-21
51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT MIN( ALL - col1 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-141

skipif mysql # not compatible
query I rowsort label-932
SELECT MIN ( ALL - col1 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-141

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

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

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

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( - 19 ) + 66 col0 FROM tab1 cor0
----
1035
1681
1795

query I rowsort
SELECT ALL - ( - + 75 ) * + 48 + + + col2 + + col0 AS col0 FROM tab2
----
3669
3704
3733

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT - 50 + + 20 DIV - col2 + + 60 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - 50 + + 20 / - col2 + + 60 FROM tab2
----
10

query I rowsort
SELECT - 26 - col1 + - col2 - + col1 FROM tab1
----
-150
-188
-95

query I rowsort
SELECT - 74 - col0 * + ( + 60 ) AS col2 FROM tab2
----
-2834
-3914
-4574

query I rowsort
SELECT + col2 + - 21 AS col0 FROM tab2
----
19
2
37

query I rowsort
SELECT ALL + col0 * - - ( 74 ) + + - col1 + col2 FROM tab0
----
1076
6427
7276

query I rowsort
SELECT - 0 + - - col0 - - + col0 AS col2 FROM tab2
----
128
150
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-945
SELECT ALL - col1 / - - 34, + col2 * - - col2 FROM tab1 AS cor0 WHERE col2 * - col0 * - + 91 - + + CAST( 39 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-945
SELECT ALL - col1 / - - 34, + col2 * - - col2 FROM tab1 AS cor0 WHERE col2 * - col0 * - + 91 - + + CAST ( 39 AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-946
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( col0 AS SIGNED ) IN ( - 98 )
----

skipif mysql # not compatible
query III rowsort label-946
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( col0 AS INTEGER ) IN ( - 98 )
----

query II rowsort
SELECT DISTINCT 75, 96 AS col2 FROM tab0
----
75
96

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL - COUNT( col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - COUNT ( col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + + 99 * + SUM( ( - - 36 ) ) + + 59 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
32135

skipif mysql # not compatible
query I rowsort label-949
SELECT + + 99 * + SUM ( ( - - 36 ) ) + + 59 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
32135

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

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

query I rowsort
SELECT ALL col1 * + ( - col0 ) FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 5 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 96 * + - col2 * + col1 FROM tab2 AS cor0
----
-112608
-295680
-373056

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

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 <= ( 23 )
----
51
14
96
85
5
59

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

skipif mysql # not compatible
query I rowsort label-957
SELECT - - ( MIN ( DISTINCT - 85 ) ) AS col0 FROM tab0 AS cor0
----
-85

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

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

query I rowsort
SELECT + col2 * + 73 AS col0 FROM tab1
----
4307
4964
7008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT DISTINCT COUNT( * ) DIV SUM( col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT COUNT ( * ) / SUM ( col0 ) FROM tab2
----
0

query I rowsort
SELECT ALL - ( + col0 ) * - col1 AS col2 FROM tab0
----
1215
1827
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL COUNT( * ) * - 19 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL COUNT ( * ) * - 19 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

query II rowsort
SELECT DISTINCT ( col1 ) * + col1 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
196
51
2209
91
25
85

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

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

query I rowsort
SELECT ALL + + 55 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT 92 + + - 27 FROM tab0
----
65

query II rowsort
SELECT DISTINCT + 46, col0 AS col0 FROM tab1 cor0 WHERE NOT - 78 > NULL
----

query I rowsort
SELECT + 84 + + ( + + col2 ) FROM tab0 cor0
----
131
183
94

query I rowsort
SELECT + col1 + - 32 AS col2 FROM tab0 AS cor0
----
-11
-31
49

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

query I rowsort
SELECT DISTINCT - ( col1 ) * col0 * 43 - - 77 FROM tab2 AS cor0
----
-100801
-211827
-215998

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT + 43 DIV + col1 AS col2 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-974
SELECT + 43 / + col1 AS col2 FROM tab1
----
0
3
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT MIN( DISTINCT + 62 ) col0 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-976
SELECT MIN ( DISTINCT + 62 ) col0 FROM tab1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 74 + col0 * - - 2 * 75 col0, col2 FROM tab2
----
11324
58
6974
23
9674
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT COUNT( DISTINCT 68 ) col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-979
SELECT COUNT ( DISTINCT 68 ) col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT MIN( - ( col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-980
SELECT MIN ( - ( col0 ) ) FROM tab2
----
-75

query I rowsort
SELECT DISTINCT 56 + + - col2 AS col0 FROM tab1
----
-12
-3
-40

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 58 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 7 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 AS cor0 WHERE NOT + col2 = + + 4
----
1
21
81

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

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

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

query I rowsort
SELECT + col2 * - 26 AS col2 FROM tab0
----
-1222
-2574
-260

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 = ( col0 )
----

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

query II rowsort
SELECT DISTINCT col2, 40 * + col0 AS col2 FROM tab0
----
10
3480
47
600
99
3880

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

query II rowsort
SELECT DISTINCT - 55 AS col0, - col2 FROM tab2
----
-55
-23
-55
-40
-55
-58

query I rowsort
SELECT DISTINCT - col0 + + 64 * col1 FROM tab2 AS cor0 WHERE NOT - 7 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT - 69 * + 64 + - col2 AS col2 FROM tab0
----
-4426
-4463
-4515

query I rowsort
SELECT DISTINCT 41 * + 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
2132

query II rowsort
SELECT - col2 * - - col0, + 75 AS col1 FROM tab1
----
-4896
75
-5015
75
-6188
75

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL - - 90 * + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
810

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - - 90 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
810

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT ALL + 96 * + 33, COUNT( - col2 ) AS col2 FROM tab2 AS cor0
----
3168
3

skipif mysql # not compatible
query II rowsort label-1001
SELECT ALL + 96 * + 33, COUNT ( - col2 ) AS col2 FROM tab2 AS cor0
----
3168
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col0 col1 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1003
SELECT - 30 FROM tab2 AS cor0 WHERE - CAST( col0 AS DECIMAL ) > col2 * - - 9
----

skipif mysql # not compatible
query I rowsort label-1003
SELECT - 30 FROM tab2 AS cor0 WHERE - CAST ( col0 AS REAL ) > col2 * - - 9
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT ALL + CAST( SUM( - + col1 ) AS SIGNED ) * + ( + 99 ) AS col0 FROM tab1 AS cor0
----
-6534

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL + CAST ( SUM ( - + col1 ) AS INTEGER ) * + ( + 99 ) AS col0 FROM tab1 AS cor0
----
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT 71 - + 26 * COUNT( * ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1006
SELECT 71 - + 26 * COUNT ( * ) FROM tab1 AS cor0
----
-7

query I rowsort
SELECT + 1 + col2 AS col0 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT - 7 + + col0 AS col1 FROM tab1
----
44
78
84

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + ( - col0 ) > + ( + col0 )
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1012
SELECT + - ( + col0 ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) >= 71
----

skipif mysql # not compatible
query I rowsort label-1012
SELECT + - ( + col0 ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) >= 71
----

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

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

query I rowsort
SELECT col1 FROM tab0 WHERE ( + col2 + - col2 * + col1 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - 43 + - 30 FROM tab2
----
-73
-73
-73

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

query I rowsort
SELECT ALL 15 AS col2 FROM tab1 WHERE NULL IS NULL
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT COUNT( * ) * - 93 + + COUNT( * ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-1018
SELECT COUNT ( * ) * - 93 + + COUNT ( * ) FROM tab2
----
-276

query I rowsort
SELECT DISTINCT - col0 + 83 FROM tab1
----
-2
-8
32

query I rowsort
SELECT col0 + + 67 * + col1 AS col2 FROM tab1
----
3240
420
989

query I rowsort
SELECT DISTINCT + 55 + + 42 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 80 + col1 col0 FROM tab0
----
1701
6561
81

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

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

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

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE + 10 IS NULL
----

query I rowsort
SELECT 31 * - 14 + 13 FROM tab1 WHERE NULL IN ( + col0 )
----

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

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

query I rowsort
SELECT + 22 * - col0 FROM tab0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - MAX( + 53 ) * - COUNT( * ) AS col2 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-1029
SELECT - MAX ( + 53 ) * - COUNT ( * ) AS col2 FROM tab2
----
159

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

query I rowsort
SELECT ALL 62 FROM tab1 WHERE ( 97 ) NOT BETWEEN - col0 AND NULL
----

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

query I rowsort
SELECT + 6 * 2 AS col2 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1034
SELECT CAST( - 21 AS SIGNED ) DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1034
SELECT CAST ( - 21 AS INTEGER ) / col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 47 col0 FROM tab2 AS cor0
----
1081
1880
2726

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

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

query I rowsort
SELECT - col1 FROM tab2 WHERE - col2 IS NOT NULL
----
-51
-67
-77

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col0 * col2 + 43 FROM tab2
----
1101
2603
4393

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

query III rowsort
SELECT * FROM tab1 WHERE 44 <= - 70
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT + + 14 + + ( 15 + col1 DIV + 94 ) * + 24 AS col0 FROM tab2 AS cor0
----
374
374
374

skipif mysql # not compatible
query I rowsort label-1043
SELECT + + 14 + + ( 15 + col1 / + 94 ) * + 24 AS col0 FROM tab2 AS cor0
----
374
374
374

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

skipif mysql # not compatible
query III rowsort label-1044
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) * - col0 >= NULL
----

query I rowsort
SELECT ALL ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT - CAST( + 75 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
-60
12
22

skipif mysql # not compatible
query I rowsort label-1046
SELECT - CAST ( + 75 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
-60
12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + COUNT( * ) * + 10 - 47 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + COUNT ( * ) * + 10 - 47 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT - - 45 + + ( - ( 4 ) ) AS col0 FROM tab0 AS cor0
----
41
41
41

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

query I rowsort
SELECT 36 AS col2 FROM tab2 AS cor0 WHERE - 49 NOT IN ( + 58 )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL + + SUM( DISTINCT + 49 ) * + 29 + + 56 AS col2 FROM tab0 AS cor0
----
1477

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL + + SUM ( DISTINCT + 49 ) * + 29 + + 56 AS col2 FROM tab0 AS cor0
----
1477

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab1 WHERE NOT ( NULL ) > NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1056
SELECT COUNT ( DISTINCT - + 53 ) * 88 FROM tab0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT + ( + + SUM( + ( - col2 ) ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1058
SELECT + ( + + SUM ( + ( - col2 ) ) ) FROM tab2
----
-121

query I rowsort
SELECT ALL ( + - ( col1 ) ) FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 45 + col2 / - 57 ) NOT BETWEEN ( - col1 + - 13 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT SUM( ALL + - 49 ) AS col1 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-1061
SELECT SUM ( ALL + - 49 ) AS col1 FROM tab1
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) * CAST( col2 * + 69 AS SIGNED ) FROM tab0
----
48645
60030
662607

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) * CAST ( col2 * + 69 AS INTEGER ) FROM tab0
----
48645
60030
662607

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 90 ) NOT BETWEEN - col0 * 56 AND ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL SUM( - - col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL SUM ( - - col2 ) FROM tab1 cor0
----
223

query I rowsort
SELECT col0 * col1 * 15 AS col2 FROM tab2
----
35190
73920
75375

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT DISTINCT ( + MAX( + 17 ) ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT ( + MAX ( + 17 ) ) FROM tab0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT - 17 DIV 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1068
SELECT - 17 / 60 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT 71 * + + MIN( ALL col1 ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1069
SELECT 71 * + + MIN ( ALL col1 ) AS col1 FROM tab0
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1070
SELECT ALL SUM( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL SUM ( DISTINCT CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - 81 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # DIV for integer division: 
query I rowsort label-1072
SELECT + - 40 DIV + 24 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1072
SELECT + - 40 / + 24 AS col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + col0 * + - 58 FROM tab0 AS cor0
----
-5046
-5626
-870

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = ( 69 )
----

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

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT DISTINCT + CAST( - CAST( - ( col1 ) AS SIGNED ) AS SIGNED ) * + 33 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2673
33
693

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT + CAST ( - CAST ( - ( col1 ) AS INTEGER ) AS INTEGER ) * + 33 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2673
33
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT ALL + CAST( + AVG ( - col1 ) AS SIGNED ) * + + COUNT( * ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + CAST ( + AVG ( - col1 ) AS INTEGER ) * + + COUNT ( * ) AS col1 FROM tab1
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT 65 * 39 + + MAX( DISTINCT - col0 ) * 37 col1 FROM tab1
----
648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1083
SELECT DISTINCT 65 * 39 + + MAX ( DISTINCT - col0 ) * 37 col1 FROM tab1
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT COUNT( * ) AS col2 FROM tab1 WHERE col0 > - 22 + 12 * col2
----
0

skipif mysql # not compatible
query I rowsort label-1084
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE col0 > - 22 + 12 * col2
----
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NULL AND NULL <> - + col2
----

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

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

query I rowsort
SELECT DISTINCT + 85 - col1 AS col1 FROM tab1
----
38
71
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT + CAST( NULL AS SIGNED ) + + col2 FROM tab0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1089
SELECT + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - 82 + - col0 ) <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - 29 AS col1 FROM tab0 WHERE ( 66 ) < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL - COUNT( ALL - ( + - CAST( + + 51 AS SIGNED ) ) ) * - 81 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - COUNT ( ALL - ( + - CAST ( + + 51 AS INTEGER ) ) ) * - 81 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
729

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

query I rowsort
SELECT DISTINCT - 8 * - col0 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1095
SELECT ALL + 29, 72 * - - col0 / + col1 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
29
NULL
29
NULL
29
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1095
SELECT ALL + 29, 72 * - - col0 / + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
29
NULL
29
NULL
29
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2 + + 13 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1098
SELECT + CAST( NULL AS SIGNED ) / 18 AS col0, + 87 * + 42 AS col2 FROM tab1
----
NULL
3654
NULL
3654
NULL
3654

skipif mysql # not compatible
query II rowsort label-1098
SELECT + CAST ( NULL AS INTEGER ) / 18 AS col0, + 87 * + 42 AS col2 FROM tab1
----
NULL
3654
NULL
3654
NULL
3654

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT 38 DIV col0 col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1099
SELECT 38 / col0 col2 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1100
SELECT ALL * FROM tab0 WHERE NOT + 99 + col0 NOT BETWEEN ( + - CAST( NULL AS SIGNED ) ) AND col0
----

skipif mysql # not compatible
query III rowsort label-1100
SELECT ALL * FROM tab0 WHERE NOT + 99 + col0 NOT BETWEEN ( + - CAST ( NULL AS INTEGER ) ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT 26 * COUNT( * ) col1 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1101
SELECT DISTINCT 26 * COUNT ( * ) col1 FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( col1 * + 48 + + col1 + col2 ) NOT BETWEEN + col2 AND ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1103
SELECT + col0 AS col2, CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
query II rowsort label-1103
SELECT + col0 AS col2, CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

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

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

query II rowsort
SELECT 60 AS col2, col2 FROM tab1 AS cor0
----
60
59
60
68
60
96

query I rowsort
SELECT - - ( ( - 31 ) ) FROM tab0 AS cor0
----
-31
-31
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1108
SELECT MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * 69 * 0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1111
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-1111
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGER ) = ( NULL )
----

query I rowsort
SELECT + 36 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT 23 FROM tab0 WHERE NOT col1 NOT IN ( 13 / col1 + + col0 + - ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT + + col1 DIV 18 * + 20 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-1114
SELECT + + col1 / 18 * + 20 FROM tab0 AS cor0
----
0
20
80

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 89 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT + col1 + col0 + ( col2 ) DIV 92 * - col2 FROM tab0 AS cor0
----
-1
108
96

skipif mysql # not compatible
query I rowsort label-1116
SELECT + col1 + col0 + ( col2 ) / 92 * - col2 FROM tab0 AS cor0
----
-1
108
96

query I rowsort
SELECT 52 + - - col2 AS col0 FROM tab2 AS cor0
----
110
75
92

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

query II rowsort
SELECT DISTINCT 56 * + + 30 + + col2, + col0 FROM tab2
----
1703
46
1720
64
1738
75

query I rowsort
SELECT DISTINCT - 35 + + ( - - col2 ) FROM tab2
----
-12
23
5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col2 FROM tab0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 40 + 94 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab0
----
52
52
52

query I rowsort
SELECT col2 * + 14 AS col0 FROM tab1
----
1344
826
952

query I rowsort
SELECT DISTINCT + ( col1 ) + - 95 AS col1 FROM tab0
----
-14
-74
-94

query II rowsort
SELECT DISTINCT - + col0 AS col0, - col2 + col0 FROM tab1 AS cor0
----
-51
-45
-85
26
-91
23

query I rowsort
SELECT - 5 + + col2 AS col1 FROM tab2
----
18
35
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT ALL + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT + COUNT( - 19 ) DIV 18 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1130
SELECT + COUNT ( - 19 ) / 18 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-1131
SELECT 7 / + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1132
SELECT DISTINCT - SUM( + col2 ) FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + 0 IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT - SUM ( + col2 ) FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + 0 IS NOT NULL
----
-223

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

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

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

query I rowsort
SELECT DISTINCT 57 * + col2 FROM tab0
----
2679
5643
570

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1136
SELECT + CAST( NULL AS SIGNED ) / + col0 * + - col2, col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1136
SELECT + CAST ( NULL AS INTEGER ) / + col0 * + - col2, col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE - + col0 / - 72 >= - col0 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 col0 FROM tab0 cor0
----
-54
-54
-54

query I rowsort
SELECT + - col1 * + + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT 94 + + + 95 AS col1 FROM tab1
----
189
189
189

query I rowsort
SELECT + 84 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1144
SELECT + COUNT( * ) col0, - COUNT( * ) - - 4 FROM tab0 AS cor0
----
3
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT DISTINCT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE ( + col2 < - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE ( + col2 < - 65 )
----
0

query I rowsort
SELECT ALL - col1 + col1 * col0 AS col2 FROM tab0
----
1134
1806
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL 32 * - ( + COUNT( * ) ) * 61 AS col0 FROM tab2 AS cor0
----
-5856

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL 32 * - ( + COUNT ( * ) ) * 61 AS col0 FROM tab2 AS cor0
----
-5856

query I rowsort
SELECT ALL + col1 + + + col2 - 76 AS col1 FROM tab0 AS cor0
----
-45
24
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL - 40 + + SUM( DISTINCT + + 24 ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL - 40 + + SUM ( DISTINCT + + 24 ) AS col0 FROM tab2
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT 56 * - - col1 FROM tab1 AS cor0
----
2632
280
784

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 NOT BETWEEN - 57 AND col1 * + 89
----
15
81
47
87
21
10

query I rowsort
SELECT + 1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1160
SELECT - ( + COUNT ( * ) ) FROM tab0 WHERE NOT 42 IS NULL
----
-3

query I rowsort
SELECT + 87 * - ( - + 82 ) FROM tab0
----
7134
7134
7134

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1162
SELECT * FROM tab0 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1162
SELECT * FROM tab0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + 63 AS col0 FROM tab1
----
2961
315
882

query II rowsort
SELECT - col1 * + col0, 68 + - - col1 AS col0 FROM tab2 AS cor0
----
-2346
119
-4928
145
-5025
135

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <> - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 17 <> ( - - ( - + col1 ) + + 17 - - ( + 13 ) * 16 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1176
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + 88 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1176
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + 88 + - CAST ( NULL AS REAL )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + + col2 * - 94 col1 FROM tab1 AS cor0
----
-126336
-27730
-300424

query I rowsort
SELECT ALL - + col1 + col2 + - col1 FROM tab1 cor0
----
-26
49
68

query I rowsort
SELECT - - col1 + - 51 * - + 9 + + col0 AS col2 FROM tab2 cor0
----
556
600
601

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

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

query II rowsort
SELECT + col1, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT col1 * col0 - + col0 AS col2 FROM tab2
----
2300
4864
4950

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL COUNT( * ) + 65 AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL COUNT ( * ) + 65 AS col0 FROM tab0
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT DISTINCT col2 - - - CAST( + + col1 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
2277
292
84

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT col2 - - - CAST ( + + col1 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1190
SELECT DISTINCT + CAST( + - SUM( + - col1 ) AS SIGNED ) - - COUNT( * ) + + 92 col1 FROM tab1 AS cor0
----
161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1190
SELECT DISTINCT + CAST ( + - SUM ( + - col1 ) AS INTEGER ) - - COUNT ( * ) + + 92 col1 FROM tab1 AS cor0
----
161

query I rowsort
SELECT ALL ( + 70 ) FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + 90 * - - COUNT( + col2 ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-1192
SELECT + 90 * - - COUNT ( + col2 ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query II rowsort label-1193
SELECT DISTINCT SUM( - + 69 ) AS col0, - 80 FROM tab2
----
-207
-80

skipif mysql # not compatible
query II rowsort label-1193
SELECT DISTINCT SUM ( - + 69 ) AS col0, - 80 FROM tab2
----
-207
-80

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

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

query II rowsort
SELECT DISTINCT + - ( col1 ) AS col1, + 16 AS col0 FROM tab0 AS cor0
----
-1
16
-21
16
-81
16

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1198
SELECT col1 * col0 DIV + col0, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-1198
SELECT col1 * col0 / + col0, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL - MAX( DISTINCT + + ( + col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - MAX ( DISTINCT + + ( + col2 ) ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT COUNT( * ) * + 85 * 48 AS col0 FROM tab0
----
12240

skipif mysql # not compatible
query I rowsort label-1200
SELECT COUNT ( * ) * + 85 * 48 AS col0 FROM tab0
----
12240

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT DISTINCT 14 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( - CAST( + 7 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 14 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( - CAST ( + 7 AS INTEGER ) )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 >= col1 * col0 * 9
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * + col2 NOT BETWEEN + - 29 * + 13 AND + 66
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1206
SELECT + col2 DIV - col2 AS col0, - ( + - 38 ) FROM tab1 cor0
----
-1
38
-1
38
-1
38

skipif mysql # not compatible
query II rowsort label-1206
SELECT + col2 / - col2 AS col0, - ( + - 38 ) FROM tab1 cor0
----
-1
38
-1
38
-1
38

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * - col0 BETWEEN - 86 AND col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + 32 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1210
SELECT + 32 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
29

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

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

query I rowsort
SELECT - - 79 - 70 FROM tab0 AS cor0
----
9
9
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT ALL + col0 + CAST( + col0 AS SIGNED ) FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL + col0 + CAST ( + col0 AS INTEGER ) FROM tab2
----
128
150
92

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

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

query I rowsort
SELECT DISTINCT - 73 + col2 FROM tab2
----
-15
-33
-50

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

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

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

query I rowsort
SELECT 70 + + col0 AS col0 FROM tab2
----
116
134
145

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN 35 * + 1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT COUNT( * ), - 67 AS col2 FROM tab0 AS cor0
----
3
-67

skipif mysql # not compatible
query II rowsort label-1221
SELECT COUNT ( * ), - 67 AS col2 FROM tab0 AS cor0
----
3
-67

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

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

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 * + col1 AS col2 FROM tab2
----
-23
-2346
-40
-4928
-58
-5025

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1226
SELECT CAST( NULL AS SIGNED ) AS col1, 30 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
-2610
NULL
-2910
NULL
-450

skipif mysql # not compatible
query II rowsort label-1226
SELECT CAST ( NULL AS INTEGER ) AS col1, 30 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
-2610
NULL
-2910
NULL
-450

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

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT + 94 * COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
282

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

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

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

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

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

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

query II rowsort
SELECT + ( 10 ) AS col2, - 77 FROM tab2 cor0
----
10
-77
10
-77
10
-77

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1235
SELECT ALL 9 + - COUNT ( * ) AS col0, + 51 FROM tab0 AS cor0
----
6
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL - 63 + + + COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - 63 + + + COUNT ( * ) FROM tab1
----
-60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1237
SELECT 61 + col0, col2 + - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) - - 73 AS col2 FROM tab2
----
107
NULL
125
NULL
136
NULL

skipif mysql # not compatible
query II rowsort label-1237
SELECT 61 + col0, col2 + - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) - - 73 AS col2 FROM tab2
----
107
NULL
125
NULL
136
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT col0 DIV 24 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-1238
SELECT col0 / 24 FROM tab0
----
0
3
4

query I rowsort
SELECT ( + col1 ) * - 9 * - col2 FROM tab1
----
12096
2655
28764

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-32

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

query I rowsort
SELECT DISTINCT - + col0 * + col2 + + col0 FROM tab1 cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL + + col2 * - 84 + - - col0 + 49 + - col2 FROM tab0 AS cor0
----
-3931
-714
-8269

query I rowsort
SELECT DISTINCT - 2 + + 69 FROM tab1 AS cor0
----
67

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL COUNT( * ) + + - MAX( - - col1 ) - - + SUM( + col0 ) + - + 6 AS col0 FROM tab0
----
115

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL COUNT ( * ) + + - MAX ( - - col1 ) - - + SUM ( + col0 ) + - + 6 AS col0 FROM tab0
----
115

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN 83 + + - 92 AND + col2 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + ( col0 ) * - + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT 52 * + COUNT( * ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-1254
SELECT 52 * + COUNT ( * ) FROM tab2
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT DISTINCT + 54 / - - ( + + col2 ) + + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT + 54 / - - ( + + col2 ) + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - + col2 + + col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + - 69 * + col2 FROM tab0 AS cor0
----
-3243
-6831
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-1258
SELECT - col0 DIV - - col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1258
SELECT - col0 / - - col2 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + 86 * - col0 * 74 * col2 AS col2 FROM tab1
----
-31158144
-31915460
-39380432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1260
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + CAST( + col1 AS SIGNED ) * + 17 * - ( + col2 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + CAST ( + col1 AS INTEGER ) * + 17 * - ( + col2 ) IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT + MAX( DISTINCT - - 85 ) AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-1261
SELECT + MAX ( DISTINCT - - 85 ) AS col1 FROM tab1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1262
SELECT ALL COUNT( * ) DIV + 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL COUNT ( * ) / + 95 FROM tab2
----
0

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL + COUNT ( * ) + ( 54 ) FROM tab1
----
57

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 91 <> ( NULL )
----

query I rowsort
SELECT - col1 * - ( col0 ) * + 5 FROM tab0
----
485
6075
9135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT + COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) * + 30 * ( + + CAST( + + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-1267
SELECT + COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) * + 30 * ( + + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
273

query I rowsort
SELECT - ( + col0 ) * - col0 + + 92 + col2 AS col2 FROM tab0 cor0
----
364
7671
9600

query I rowsort
SELECT - 46 + - - ( col1 ) AS col0 FROM tab0 AS cor0
----
-25
-45
35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT ALL - CAST( col0 AS SIGNED ) * - col0 * + col1 * + col2 - - ( 72 ) + col1 * + 7 * - col1 FROM tab1
----
2131272
26450685
3494444

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - CAST ( col0 AS INTEGER ) * - col0 * + col1 * + col2 - - ( 72 ) + col1 * + 7 * - col1 FROM tab1
----
2131272
26450685
3494444

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1272
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) / 75 * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1272
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) / 75 * col2 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col2 ) - + 38 col0 FROM tab0 AS cor0
----
-28
61
9

query I rowsort
SELECT ALL + 79 - - col0 FROM tab2 cor0
----
125
143
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT + COUNT( * ) + - + 16 + - 46 * 84 AS col0 FROM tab1 AS cor0
----
-3877

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + COUNT ( * ) + - + 16 + - 46 * 84 AS col0 FROM tab1 AS cor0
----
-3877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 * - col2 * + + col0 col1, 79 col1 FROM tab0 AS cor0
----
-44415
79
-54810
79
-604989
79

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1278
SELECT MAX ( DISTINCT + ( - col1 ) ) col1 FROM tab2 AS cor0
----
-51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 54 col1 FROM tab0
----
2538
5346
540

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1281
SELECT ALL * FROM tab2 WHERE NOT - + col1 < + 23 + + CAST( + 12 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1281
SELECT ALL * FROM tab2 WHERE NOT - + col1 < + 23 + + CAST ( + 12 AS INTEGER )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT + 8 * + COUNT( * ) * 66 AS col2 FROM tab0 AS cor0
----
1584

skipif mysql # not compatible
query I rowsort label-1284
SELECT + 8 * + COUNT ( * ) * 66 AS col2 FROM tab0 AS cor0
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL MIN( - col2 ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT ALL MIN ( - col2 ) col2 FROM tab2 AS cor0
----
-58

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1287
SELECT + - col1 DIV - col1 AS col1, col0 AS col2 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-1287
SELECT + - col1 / - col1 AS col1, col0 AS col2 FROM tab1 AS cor0
----
1
51
1
85
1
91

query I rowsort
SELECT ALL - col2 + - - 74 FROM tab0 AS cor0
----
-25
27
64

query I rowsort
SELECT 8 + - col0 AS col2 FROM tab0 cor0
----
-7
-79
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1290
SELECT ALL - + CAST( + ( - col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL - + CAST ( + ( - col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 47 NOT BETWEEN 83 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 + - col2 + + + 6 FROM tab2 AS cor0
----
-111
-119
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT - 70 + COUNT( * ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT - 70 + COUNT ( * ) FROM tab2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT ALL 87 DIV 17 AS col1 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL 87 / 17 AS col1 FROM tab1
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL NOT IN ( col0 * col1, col1, - 97, 7 + 80 ) )
----

query I rowsort
SELECT DISTINCT 35 + - col1 + + 58 FROM tab1
----
46
79
88

query I rowsort
SELECT 85 AS col1 FROM tab0 WHERE ( 19 + - - 55 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL 33 + - ( + - 56 ) FROM tab0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT DISTINCT + CAST( - + 96 AS SIGNED ) col1 FROM tab1 WHERE NOT - ( col2 ) IS NULL
----
-96

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - - ( + COUNT( * ) ) + 25 AS col2 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1303
SELECT - - ( + COUNT ( * ) ) + 25 AS col2 FROM tab1 AS cor0
----
28

query I rowsort
SELECT DISTINCT ( col0 ) * + col0 * - 6 FROM tab0 AS cor0
----
-1350
-45414
-56454

query I rowsort
SELECT ALL + - col2 * + 46 * col1 FROM tab1 AS cor0
----
-13570
-147016
-61824

query I rowsort
SELECT ALL - col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

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

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

query I rowsort
SELECT ALL + - 65 AS col0 FROM tab2 cor0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab1 WHERE NOT + 23 * + + 52 - + + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 3 * + col0 >= - col1 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1311
SELECT ALL - 68 DIV - MAX( ALL + col2 ) * - MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL - 68 / - MAX ( ALL + col2 ) * - MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT - MAX( ALL 74 ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-1313
SELECT - MAX ( ALL 74 ) AS col0 FROM tab1
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT + MAX( ALL - - 83 ) col0 FROM tab0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1315
SELECT + MAX ( ALL - - 83 ) col0 FROM tab0
----
83

query I rowsort
SELECT 87 * col0 FROM tab1
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT 36 + - MAX( ALL - ( - col0 ) ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1317
SELECT 36 + - MAX ( ALL - ( - col0 ) ) FROM tab0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT + COUNT( * ) * - 15 AS col1 FROM tab1 WHERE NOT - 82 IS NULL
----
-45

skipif mysql # not compatible
query I rowsort label-1318
SELECT + COUNT ( * ) * - 15 AS col1 FROM tab1 WHERE NOT - 82 IS NULL
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1319
SELECT DISTINCT col1, CAST( NULL AS DECIMAL ) * - - 8 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1319
SELECT DISTINCT col1, CAST ( NULL AS REAL ) * - - 8 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT - COUNT( * ) + + + 48 AS col2 FROM tab1 cor0 WHERE - ( col0 ) BETWEEN col2 - - col2 AND + + col0 - col2
----
48

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - COUNT ( * ) + + + 48 AS col2 FROM tab1 cor0 WHERE - ( col0 ) BETWEEN col2 - - col2 AND + + col0 - col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT col0 DIV + 77 FROM tab0 cor0 WHERE ( col2 ) IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1322
SELECT col0 / + 77 FROM tab0 cor0 WHERE ( col2 ) IS NOT NULL
----
0
1
1

query I rowsort
SELECT 41 AS col1 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT ALL 31 + + col0 FROM tab2
----
106
77
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1325
SELECT ALL - + col0, - CAST( NULL AS SIGNED ) FROM tab2 WHERE + col2 = NULL
----

skipif mysql # not compatible
query II rowsort label-1325
SELECT ALL - + col0, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT - COUNT( * ) + - 5 col2 FROM tab2
----
-8

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

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

query II rowsort
SELECT + 26 + - 9 AS col0, - 99 + - - col2 FROM tab2
----
17
-41
17
-59
17
-76

query I rowsort
SELECT + + col1 + + + col1 AS col1 FROM tab1 AS cor0
----
10
28
94

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

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * - 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT ALL col1 - + col0 AS col1, - 28 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-37
-28
-44
-28
-80
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1336
SELECT - 52 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT - 52 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1337
SELECT ALL 24 DIV - 82 * - + 94 * 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-1337
SELECT ALL 24 / - 82 * - + 94 * col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - - 10 - ( col1 ) FROM tab0 AS cor0
----
389
79
989

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1340
SELECT + COUNT( + col0 ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1340
SELECT + COUNT ( + col0 ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 - col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + - 37 AS col1 FROM tab2 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT DISTINCT col2 * + col2 + + CAST( - col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
2162
90
9702

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1342
SELECT DISTINCT col2 * + col2 + + CAST ( - col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
2162
90
9702

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

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

query I rowsort
SELECT ALL + - 77 FROM tab0 WHERE NOT 37 * - col0 + + 20 * - col1 > col1 / - - col0 - + + ( 51 )
----
-77
-77
-77

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

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

query I rowsort
SELECT ALL - 0 AS col1 FROM tab1 WHERE 15 * - ( + + 89 ) NOT BETWEEN NULL AND + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 80 ) col1 FROM tab2
----
80
80
80

query I rowsort
SELECT ALL + 70 FROM tab2 cor0 WHERE + 8 IS NULL
----

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

query I rowsort
SELECT DISTINCT 22 * - - 89 FROM tab0
----
1958

query I rowsort
SELECT + col0 + + - col1 + - - col0 FROM tab2 AS cor0
----
41
51
83

query I rowsort
SELECT - + col0 + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 ) * + 38 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 + + 55 * - col1 col0 FROM tab1 AS cor0
----
-2606
-329
-852

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT DISTINCT - 22 * + + COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-66
-3

skipif mysql # not compatible
query II rowsort label-1356
SELECT DISTINCT - 22 * + + COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-66
-3

query I rowsort
SELECT ALL col1 + + 24 + - col0 + + col0 * 54 * + + 86 FROM tab2 cor0
----
213653
297253
348316

query III rowsort
SELECT ALL * FROM tab1 WHERE + 69 / col2 BETWEEN NULL AND col1 * + col0 - - col2 * + col0 + 65
----

query I rowsort
SELECT ALL col0 * col0 * col0 + + - col2 + + col0 FROM tab0
----
3343
658580
912671

query II rowsort
SELECT DISTINCT - + col2 AS col1, col2 FROM tab1 WHERE NOT + + 99 * - 91 + - col2 >= NULL
----

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

query I rowsort
SELECT ALL + ( + 51 ) - - col1 FROM tab1
----
56
65
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58 col1, + 47 AS col0 FROM tab1
----
58
47
58
47
58
47

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

skipif mysql # not compatible
query I rowsort label-1364
SELECT COUNT ( DISTINCT - ( - col2 ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 96 col0, 80 + 40 FROM tab2 AS cor0
----
-96
120
-96
120
-96
120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1366
SELECT * FROM tab2 AS cor0 WHERE 56 * - CAST( + + col2 AS SIGNED ) * + + 57 * + col2 * - + CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1366
SELECT * FROM tab2 AS cor0 WHERE 56 * - CAST ( + + col2 AS INTEGER ) * + + 57 * + col2 * - + CAST ( + col0 AS INTEGER ) IS NULL
----

query II rowsort
SELECT - col1 - + 0 AS col2, - 37 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col1 * + - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT - SUM( - 37 ) AS col2 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-1370
SELECT - SUM ( - 37 ) AS col2 FROM tab2 AS cor0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1371
SELECT DISTINCT - 87 * col2, 68 * - CAST( NULL AS SIGNED ) + - 99 * - 14 AS col1 FROM tab1 cor0
----
-5133
NULL
-5916
NULL
-8352
NULL

skipif mysql # not compatible
query II rowsort label-1371
SELECT DISTINCT - 87 * col2, 68 * - CAST ( NULL AS INTEGER ) + - 99 * - 14 AS col1 FROM tab1 cor0
----
-5133
NULL
-5916
NULL
-8352
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT + col0 + - ( col1 ) DIV + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 74 IS NULL
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1372
SELECT + col0 + - ( col1 ) / + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 74 IS NULL
----
16
88
98

query I rowsort
SELECT DISTINCT - 17 * 0 AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT + COUNT( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1374
SELECT + COUNT ( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT - col2 DIV 46 DIV - col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT - col2 / 46 / - col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 46 * + col2 * + col1 * + col2 FROM tab1
----
5935104
800630
9997088

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1377
SELECT + - CAST( - 20 AS DECIMAL ) AS col2 FROM tab0 WHERE NOT + 96 NOT BETWEEN - + col1 + + col0 AND - col1 - + - 35
----

skipif mysql # not compatible
query I rowsort label-1377
SELECT + - CAST ( - 20 AS REAL ) AS col2 FROM tab0 WHERE NOT + 96 NOT BETWEEN - + col1 + + col0 AND - col1 - + - 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1378
SELECT 82, - col2 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
82
NULL
82
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-1378
SELECT 82, - col2 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
82
NULL
82
NULL
82
NULL

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

query II rowsort
SELECT ALL + col1, 36 AS col0 FROM tab0
----
1
36
21
36
81
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT 65 * - 88 * - ( + - 94 ) * + COUNT( - col2 ) + - - 62 - + COUNT( DISTINCT - - col0 ) col1 FROM tab1 AS cor0
----
-1612981

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1383
SELECT DISTINCT 65 * - 88 * - ( + - 94 ) * + COUNT ( - col2 ) + - - 62 - + COUNT ( DISTINCT - - col0 ) col1 FROM tab1 AS cor0
----
-1612981

query II rowsort
SELECT + - col0, col0 + - col2 FROM tab0 WHERE NULL = + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1385
SELECT ALL CAST( - col1 AS SIGNED ) DIV + col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL CAST ( - col1 AS INTEGER ) / + col1 FROM tab1
----
-1
-1
-1

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1387
SELECT - COUNT ( * ) col2, COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3
0

query II rowsort
SELECT ALL + 57, col2 AS col2 FROM tab0 AS cor0
----
57
10
57
47
57
99

query I rowsort
SELECT - col1 - + - col0 AS col0 FROM tab2
----
-13
-5
8

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

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

query I rowsort
SELECT + ( - col0 ) + col1 AS col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab2 WHERE - 27 <= NULL
----

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

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

query I rowsort
SELECT 4 + + - 39 AS col0 FROM tab1
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 87 + - + col0 col1, 38 AS col2 FROM tab0
----
-9
38
153
38
21
38

query I rowsort
SELECT - 54 + + + 33 AS col2 FROM tab1 AS cor0
----
-21
-21
-21

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - - 72 IS NULL OR NOT + 34 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1401
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) * + 80, - 38 AS col0 FROM tab0
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-1401
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) * + 80, - 38 AS col0 FROM tab0
----
NULL
-38

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE + col1 <> - ( - col1 )
----

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

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

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

query II rowsort
SELECT ALL - - col0 AS col1, col1 * col0 AS col0 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col1 * + + ( col0 ) col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL 0 AS col1 FROM tab0 AS cor0 WHERE - 91 IS NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1411
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) col2 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1412
SELECT - col0 * + + 89 * + + col1 * - - col0 AS col0, col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * - - col2 AND - ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-1412
SELECT - col0 * + + 89 * + + col1 * - - col0 AS col0, col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * - - col2 AND - ( - + CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 87 > 4 + + - 25
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1416
SELECT - - COUNT( * ) DIV 42 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT - - COUNT ( * ) / 42 AS col2 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT col0 + 63 * - - 30 AS col1 FROM tab2
----
1936
1954
1965

query I rowsort
SELECT - 30 + - - col0 - - 94 AS col2 FROM tab1
----
115
149
155

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - col0 >= NULL
----

query II rowsort
SELECT - col2 * - 75 * col1 * - 34 + - 16, col1 FROM tab0 AS cor0
----
-252466
1
-535516
21
-9707866
81

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 - + - 28 NOT BETWEEN + ( - 10 ) AND NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col2 * col1
----

query I rowsort
SELECT ALL col2 * col1 + + 27 + - col0 FROM tab1 cor0
----
1320
237
3132

query I rowsort
SELECT DISTINCT + + col2 + + + col2 FROM tab0 AS cor0
----
198
20
94

query II rowsort
SELECT ALL + 91, col2 + 97 AS col2 FROM tab0
----
91
107
91
144
91
196

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + col0
----

query I rowsort
SELECT ALL + ( 39 ) + - col2 FROM tab1
----
-20
-29
-57

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 - col0 - + - col2 col1 FROM tab1
----
-114
-117
-46

query II rowsort
SELECT col2, - col0 - + 13 AS col0 FROM tab0
----
10
-100
47
-28
99
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT ALL ( SUM( + col1 ) ) - COUNT( * ) col2 FROM tab0
----
100

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

query I rowsort
SELECT DISTINCT 35 - + col1 FROM tab0
----
-46
14
34

query I rowsort
SELECT + 14 - 90 AS col1 FROM tab0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT - 62 - COUNT( * ) FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-1438
SELECT - 62 - COUNT ( * ) FROM tab1
----
-65

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + + col1 / - + col0 ) <= - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT SUM( 44 ) AS col1 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-1443
SELECT SUM ( 44 ) AS col1 FROM tab2
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT ALL 53 col1, COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
53
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1444
SELECT ALL 53 col1, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
53
3

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

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

query I rowsort
SELECT col2 * - - col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT DISTINCT + col0 + - + 89 + - ( + col1 ) * - col2 AS col0, + 66 FROM tab0 AS cor0
----
107
66
208
66
3733
66

query I rowsort
SELECT col0 * - + col1 * + 34 AS col2 FROM tab1
----
-14450
-145418
-24276

query I rowsort
SELECT ALL - 99 * - 47 FROM tab2
----
4653
4653
4653

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 20 col2 FROM tab2
----
-1160
-460
-800

query I rowsort
SELECT - 17 + col2 FROM tab2 WHERE 61 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-51
-67
-77

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

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT + - 42 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1457
SELECT + col1 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-1457
SELECT + col1 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
210
3807
99

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

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE ( 82 * col1 ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT col1 FROM tab2 WHERE NULL < 21
----

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

query I rowsort
SELECT ALL + ( + 78 ) * col2 AS col0 FROM tab0
----
3666
7722
780

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT DISTINCT - col2 DIV - 8 FROM tab2
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - col2 / - 8 FROM tab2
----
2
5
7

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

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

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

query I rowsort
SELECT + col2 * col1 + - col1 FROM tab2 WHERE NOT - 15 + - 23 IS NULL
----
1122
3003
3819

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT ALL - col0 DIV + ( + ( - 84 ) * col1 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - col0 / + ( + ( - 84 ) * col1 ) FROM tab1
----
0
0
0

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

query I rowsort
SELECT + ( + col2 ) FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT COUNT( * ) + 77 * + 47 col2 FROM tab0
----
3622

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1470
SELECT COUNT ( * ) + 77 * + 47 col2 FROM tab0
----
3622

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

skipif mysql # not compatible
query I rowsort label-1471
SELECT + col0 / + 83 AS col0 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT - 50 + - COUNT( * ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-1472
SELECT - 50 + - COUNT ( * ) FROM tab2
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col1 FROM tab1
----
8
8
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT DISTINCT + 63 + - SUM( col2 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT + 63 + - SUM ( col2 ) FROM tab0
----
-93

query I rowsort
SELECT DISTINCT + 15 - + col1 FROM tab2 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT ALL - 4 * col1 AS col2 FROM tab2
----
-204
-268
-308

query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * - 50 - - col1 FROM tab1
----
-2945
-3353
-4786

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT + 31 <= ( - col2 + - 14 * + 25 )
----
46
64
75

query I rowsort
SELECT DISTINCT - col2 + col0 * - 6 AS col2 FROM tab2
----
-299
-424
-508

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT DISTINCT - COUNT( ALL - 98 ) * 74 + + 3 AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT - COUNT ( ALL - 98 ) * 74 + + 3 AS col1 FROM tab1
----
-219

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < 83
----

query I rowsort
SELECT DISTINCT 54 + + 91 * + 29 FROM tab2
----
2693

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 68 * col1 IN ( col1 + 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT 3 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + 97 * COUNT( * ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 97 * COUNT ( * ) FROM tab2 AS cor0
----
291

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - 63
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + 63 * + col1 FROM tab2 AS cor0
----
3213
4221
4851

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT + SUM( - 37 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-333

skipif mysql # not compatible
query I rowsort label-1495
SELECT + SUM ( - 37 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-333

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT ( CAST( + col2 AS SIGNED ) ) = 54
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT ( CAST ( + col2 AS INTEGER ) ) = 54
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT DISTINCT ( + COUNT( DISTINCT - 48 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT ( + COUNT ( DISTINCT - 48 ) ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 41 + col2 FROM tab2 AS cor0
----
-1
-18
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT 93 DIV col0 AS col1 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1500
SELECT 93 / col0 AS col1 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT + COUNT( ALL 90 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1501
SELECT + COUNT ( ALL 90 ) AS col2 FROM tab0 AS cor0
----
3

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

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

query I rowsort
SELECT + 34 + col1 * - 76 AS col1 FROM tab1 AS cor0
----
-1030
-346
-3538

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - - 57 + - MIN( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1506
SELECT - - 57 + - MIN ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
47

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + SUM( col1 ) * COUNT( * ) + 71 FROM tab2 WHERE col1 + 79 IS NOT NULL
----
656

skipif mysql # not compatible
query I rowsort label-1510
SELECT + SUM ( col1 ) * COUNT ( * ) + 71 FROM tab2 WHERE col1 + 79 IS NOT NULL
----
656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1511
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL <> 11
----

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL <> 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * col1 + - col2 * col2 col0 FROM tab2
----
-148
1919
2096

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1513
SELECT ALL + COUNT( * ) + COUNT( * ) + COUNT( * ) / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL + COUNT ( * ) + COUNT ( * ) + COUNT ( * ) / + CAST ( NULL AS REAL ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - 84 col1 FROM tab0
----
-5964
-5964
-5964

query I rowsort
SELECT 22 AS col1 FROM tab1 WHERE 7 IS NULL
----

query I rowsort
SELECT - col0 * - - col2 AS col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + col2 + 91 AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1518
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE col0 <> + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 <> + CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT DISTINCT - + 29 * 34 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-986

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1520
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IS NULL OR - CAST( NULL AS SIGNED ) + - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1520
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IS NULL OR - CAST ( NULL AS INTEGER ) + - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT COUNT( * ) - - 36 AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT COUNT ( * ) - - 36 AS col2 FROM tab0 AS cor0
----
39

query I rowsort
SELECT ALL - col2 * 91 FROM tab0 cor0
----
-4277
-9009
-910

query I rowsort
SELECT ALL - 63 AS col1 FROM tab2 AS cor0 WHERE NOT ( 51 ) = NULL
----

query I rowsort
SELECT ALL 19 * + col0 FROM tab2 AS cor0
----
1216
1425
874

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1527
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab0 cor0
----
-2

query I rowsort
SELECT DISTINCT ( + 68 ) * 10 * + + col2 + col1 FROM tab0
----
32041
67321
6821

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT - COUNT( * ) * - - 35 * - - COUNT( * ) AS col0 FROM tab1
----
-315

skipif mysql # not compatible
query I rowsort label-1530
SELECT - COUNT ( * ) * - - 35 * - - COUNT ( * ) AS col0 FROM tab1
----
-315

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

skipif mysql # not compatible
query I rowsort label-1531
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 / col1 AND + col1 AND ( - col2 ) NOT IN ( + col0 + col1 * col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT DISTINCT ( SUM( col1 ) ) FROM tab0 WHERE ( - col2 - - - col2 ) <> ( - col0 )
----
103

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT ( SUM ( col1 ) ) FROM tab0 WHERE ( - col2 - - - col2 ) <> ( - col0 )
----
103

query I rowsort
SELECT col2 * + ( col2 ) FROM tab0
----
100
2209
9801

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN ( col1 ) AND ( col0 * col1 )
----

query I rowsort
SELECT 89 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 29 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 92 * + 5 + - 48 FROM tab0 AS cor0
----
412

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

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL - SUM ( DISTINCT col1 ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 37 + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT + COUNT( * ) + - 48 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-1541
SELECT + COUNT ( * ) + - 48 FROM tab1
----
-45

query I rowsort
SELECT - 5 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1545
SELECT COUNT( DISTINCT - 71 ) * 2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE - col0 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT COUNT ( DISTINCT - 71 ) * 2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE - col0 * col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL - - COUNT( DISTINCT - - col0 ) + + 19 AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL - - COUNT ( DISTINCT - - col0 ) + + 19 AS col0 FROM tab2 AS cor0
----
22

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

query I rowsort
SELECT DISTINCT ( + + col2 ) + 64 AS col0 FROM tab1
----
123
132
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT + MIN( 14 ) col2 FROM tab1
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1551
SELECT + MIN ( 14 ) col2 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL <> - + 79 - col2 * + + col1
----
0

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL <> - + 79 - col2 * + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL SUM( ALL + 12 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL SUM ( ALL + 12 ) FROM tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1554
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - - 89 NOT IN ( - + CAST( - 14 AS SIGNED ) + 15 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-1554
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - - 89 NOT IN ( - + CAST ( - 14 AS INTEGER ) + 15 * + col2 )
----

query I rowsort
SELECT col2 + 46 FROM tab0 AS cor0
----
145
56
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( - 58 / - col2 * + ( col2 ) + 78 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1557
SELECT + CAST( col1 AS SIGNED ) * - + col1 + 99 * + + 85 FROM tab0 cor0
----
1854
7974
8414

skipif mysql # not compatible
query I rowsort label-1557
SELECT + CAST ( col1 AS INTEGER ) * - + col1 + 99 * + + 85 FROM tab0 cor0
----
1854
7974
8414

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE + + col2 NOT BETWEEN col0 AND - 78 - + col1 + - col2 * - col1
----
46
64
75

query I rowsort
SELECT ALL + ( - + col2 ) + + - col1 - + 20 FROM tab2
----
-137
-145
-94

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1562
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT - CAST ( NULL AS REAL ) / + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT + col0 DIV + col1 + + + col2 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-1563
SELECT + col0 / + col1 + + + col2 FROM tab1 AS cor0
----
69
76
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT MIN( - + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT MIN ( - + col1 ) FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1567
SELECT * FROM tab1 WHERE NOT + col2 * - col1 * - col1 + + 47 + + + col1 + col0 * col0 < + CAST( - col2 AS SIGNED ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1567
SELECT * FROM tab1 WHERE NOT + col2 * - col1 * - col1 + + 47 + + + col1 + col0 * col0 < + CAST ( - col2 AS INTEGER ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT + CAST ( - 49 AS INTEGER ) FROM tab2
----
-49
-49
-49

query I rowsort
SELECT DISTINCT 52 * 37 FROM tab2
----
1924

query I rowsort
SELECT ALL + 87 * - ( + col2 ) * + col0 AS col2 FROM tab2
----
-222720
-378450
-92046

query I rowsort
SELECT DISTINCT 18 * + col0 * - - col1 AS col2 FROM tab2
----
42228
88704
90450

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT + col2 <= ( col1 )
----
51
85
91

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 WHERE NOT 83 + + + col2 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - col1
----

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

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

query II rowsort
SELECT ALL - - col2 AS col2, ( col2 ) * col1 AS col0 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1579
SELECT 44 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - SUM( 92 ) AS col0 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-1581
SELECT - SUM ( 92 ) AS col0 FROM tab1
----
-276

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 * - 85 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1584
SELECT + col2 DIV + + 26, - 85 - + CAST( NULL AS SIGNED ) col0 FROM tab1
----
2
NULL
2
NULL
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1584
SELECT + col2 / + + 26, - 85 - + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
2
NULL
2
NULL
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT - ( + col2 ) DIV - - 50 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT - ( + col2 ) / - - 50 AS col1 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 + - col0 col1 FROM tab2 AS cor0
----
-55
-73
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - + 72 + + COUNT( * ) - MIN( ALL col2 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1588
SELECT - + 72 + + COUNT ( * ) - MIN ( ALL col2 ) FROM tab0 AS cor0
----
-79

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1589
SELECT ALL - CAST ( NULL AS REAL ) * + col0 * ( - col1 ) * - + 86 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 41 * + + 70 + + + ( col2 ) + - - 69 AS col0 FROM tab0 AS cor0
----
232586
3038
60349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1591
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE CAST( + col1 AS SIGNED ) * + 34 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE CAST ( + col1 AS INTEGER ) * + 34 IS NOT NULL
----
59
68
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col0 FROM tab0 AS cor0 WHERE col1 > - - col2
----
-2

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

query I rowsort
SELECT ALL 25 + - col2 AS col2 FROM tab2
----
-15
-33
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1596
SELECT ALL 82 + - col1, CAST( NULL AS SIGNED ) + - 48 FROM tab0 WHERE - col0 * + 53 <> NULL
----

skipif mysql # not compatible
query II rowsort label-1596
SELECT ALL 82 + - col1, CAST ( NULL AS INTEGER ) + - 48 FROM tab0 WHERE - col0 * + 53 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT DISTINCT COUNT( * ) + - - 42 col1 FROM tab1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1598
SELECT DISTINCT COUNT ( * ) + - - 42 col1 FROM tab1
----
45

query I rowsort
SELECT ALL 33 * + col0 + - - col0 AS col2 FROM tab1
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL + COUNT( DISTINCT col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + COUNT ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT DISTINCT - 86 DIV + col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - 86 / + col0 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + 90 <> NULL
----

query I rowsort
SELECT ALL + col1 - - 17 FROM tab0
----
18
38
98

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

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

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

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

query I rowsort
SELECT + + 39 AS col0 FROM tab2 cor0
----
39
39
39

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

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

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

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

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

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

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

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

query II rowsort
SELECT - 42 AS col1, col2 AS col2 FROM tab1 WHERE 60 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1613
SELECT ALL - + SUM( 79 ) AS col1, + 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-711
36

skipif mysql # not compatible
query II rowsort label-1613
SELECT ALL - + SUM ( 79 ) AS col1, + 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-711
36

query I rowsort
SELECT DISTINCT - 37 + + + col1 AS col2 FROM tab2
----
14
30
40

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT DISTINCT - col1 * col2 DIV + - col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT - col1 * col2 / + - col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( - 91 + 17 + - col1 * + 6 * col2 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT DISTINCT 76 * - - 16 + - - CAST( + + 9 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1225

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT 76 * - - 16 + - - CAST ( + + 9 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT SUM( col1 ) FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT SUM ( col1 ) FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + 27 * - col1, - col2 * - + 3 * ( - - 70 ) * - col2 AS col1 FROM tab1
----
-1269
-971040
-135
-731010
-378
-1935360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT CAST( + col2 AS SIGNED ) * - 80 col2 FROM tab1
----
-4720
-5440
-7680

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1624
SELECT CAST ( + col2 AS INTEGER ) * - 80 col2 FROM tab1
----
-4720
-5440
-7680

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

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

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

query I rowsort
SELECT + col1 + + col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT col2 DIV + + 10 FROM tab1
----
5
6
9

skipif mysql # not compatible
query I rowsort label-1628
SELECT col2 / + + 10 FROM tab1
----
5
6
9

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

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT MAX ( - - 9 ) AS col0 FROM tab0 cor0
----
9

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

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

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

query I rowsort
SELECT DISTINCT + 81 * + + col1 AS col0 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT + 68 + + 60 + col0 AS col0 FROM tab1
----
179
213
219

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT + col2 DIV + 43 AS col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1635
SELECT + col2 / + 43 AS col0 FROM tab1
----
1
1
2

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

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col0 + + col2 AS col1, + col1 col0 FROM tab1 cor0
----
-4800
14
-4956
5
-6120
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 99 ) <> col1 - - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT - - ( - + col1 ) * + col1 * + - 84 - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-1640
SELECT - - ( - + col1 ) * + col1 * + - 84 - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL + 96 * 62 * 93 FROM tab2 AS cor0
----
553536
553536
553536

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT + - col0 DIV 46 - - 39 FROM tab1 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-1642
SELECT + - col0 / 46 - - 39 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( col1 ) < + col1 + + + col0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT + - 32 AS col1 FROM tab1 WHERE + col1 * - + col1 IN ( + + col1, ( + 37 ) - - col2, + 81, CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1644
SELECT + - 32 AS col1 FROM tab1 WHERE + col1 * - + col1 IN ( + + col1, ( + 37 ) - - col2, + 81, CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT + MIN( ALL + col1 ) - + 97 AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1645
SELECT + MIN ( ALL + col1 ) - + 97 AS col1 FROM tab2
----
-46

query I rowsort
SELECT ALL col2 + - + ( + - col2 ) AS col0 FROM tab0
----
198
20
94

query I rowsort
SELECT col0 - + - col2 * + 69 FROM tab1
----
4156
4783
6675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT 95 + - + CAST( 70 AS SIGNED ) AS col0 FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-1648
SELECT 95 + - + CAST ( 70 AS INTEGER ) AS col0 FROM tab2
----
25
25
25

query III rowsort
SELECT * FROM tab2 WHERE - 73 + + 20 * 15 IN ( - 31 + + col2 )
----

query II rowsort
SELECT ALL + 98 - col0 AS col0, - col2 - - - col0 * col2 FROM tab0
----
1
-9702
11
-880
83
-752

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > - ( - 23 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT + 17 * + 65 AS col0, MIN( DISTINCT - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
1105
23

skipif mysql # not compatible
query II rowsort label-1652
SELECT + 17 * + 65 AS col0, MIN ( DISTINCT - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
1105
23

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

skipif mysql # not compatible
query I rowsort label-1653
SELECT + MAX ( ALL - - 3 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + - col2 * - col0 + 41 FROM tab2 AS cor0
----
1099
2601
4391

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

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

query II rowsort
SELECT col1 AS col0, + 11 + + 44 - - col2 * - + col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL 6 AS col1 FROM tab1 AS cor0
----
6
6
6

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

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

query I rowsort
SELECT - - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT - - 96 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * col1 IN ( - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1663
SELECT DISTINCT + 52, + ( COUNT( * ) ) AS col1 FROM tab1
----
52
3

skipif mysql # not compatible
query II rowsort label-1663
SELECT DISTINCT + 52, + ( COUNT ( * ) ) AS col1 FROM tab1
----
52
3

query I rowsort
SELECT + col0 * + + 98 FROM tab0 AS cor0
----
1470
8526
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT - + 56 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT - + 56 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT + + COUNT( * ), + 98 col0 FROM tab2 AS cor0
----
3
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1666
SELECT + + COUNT ( * ), + 98 col0 FROM tab2 AS cor0
----
3
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT col0 DIV + + col1 + - col0 col0 FROM tab0 AS cor0
----
-15
-83
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1667
SELECT col0 / + + col1 + - col0 col0 FROM tab0 AS cor0
----
-15
-83
0

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < ( + 85 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT DISTINCT MAX( DISTINCT 4 ), - MIN( ALL + col2 ) AS col1 FROM tab1
----
4
-59

skipif mysql # not compatible
query II rowsort label-1672
SELECT DISTINCT MAX ( DISTINCT 4 ), - MIN ( ALL + col2 ) AS col1 FROM tab1
----
4
-59

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

skipif mysql # not compatible
query I rowsort label-1673
SELECT AVG ( + - CAST ( - col0 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * - - 34 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 28 * 45 AS col0 FROM tab1 AS cor0
----
1260
1260
1260

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NOT + col1 * + - 70 + - + col1 IN ( + col2, + col1, 68 ) )
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL COUNT( * ) + + 74 + - 37 * - CAST( NULL AS SIGNED ) + - + COUNT( * ) * + + MAX( ALL - - 47 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL COUNT ( * ) + + 74 + - 37 * - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + + MAX ( ALL - - 47 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + - col0 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE + - 83 IN ( + 98 )
----

query I rowsort
SELECT + 15 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT DISTINCT + MIN( ALL - - col0 ) * + COUNT( * ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT + MIN ( ALL - - col0 ) * + COUNT ( * ) AS col0 FROM tab0
----
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 27 * + - 75 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> 0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( + col0 * - 17 * - col0 * - 90, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ( - 59 ) * col2 FROM tab2
----
-1357
-2360
-3422

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col0 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT - - MAX( ALL - 31 ) FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - - MAX ( ALL - 31 ) FROM tab0 cor0
----
-31

query I rowsort
SELECT 92 FROM tab2 AS cor0 WHERE NOT 37 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL - COUNT( DISTINCT - col2 ) + + 60 AS col1 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - COUNT ( DISTINCT - col2 ) + + 60 AS col1 FROM tab1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT DISTINCT ( - SUM( + - col2 ) ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT ( - SUM ( + - col2 ) ) AS col0 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT + col2 * col1 * col1 DIV - 36 FROM tab2
----
-1661
-6587
-7232

skipif mysql # not compatible
query I rowsort label-1696
SELECT + col2 * col1 * col1 / - 36 FROM tab2
----
-1661
-6587
-7232

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

skipif mysql # not compatible
query I rowsort label-1697
SELECT - 21 / col2 AS col0 FROM tab0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * - col1 col2 FROM tab1
----
3243
345
966

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

query I rowsort
SELECT 31 + + 22 - - + col0 * - col1 * + - col1 + - 83 FROM tab0 AS cor0
----
38337
67
98385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT DISTINCT col1 * + ( - - 98 ) + + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----
-1
2048
7891

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT col1 * + ( - - 98 ) + + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
-1
2048
7891

query I rowsort
SELECT + 58 * + + col0 + col2 AS col2 FROM tab0
----
5056
5725
917

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT - MAX( DISTINCT - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1703
SELECT - MAX ( DISTINCT - col1 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT ALL col1 * - - col0 - + 72 DIV - 79 * 83 FROM tab1 cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL col1 * - - col0 - + 72 / - 79 * 83 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN - 87 AND + 26 + + 45
----

query I rowsort
SELECT - col2 * - - 60 FROM tab1 AS cor0
----
-3540
-4080
-5760

query I rowsort
SELECT col2 - - 10 FROM tab0 AS cor0
----
109
20
57

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

query II rowsort
SELECT ALL - 79 AS col1, col0 AS col0 FROM tab2 AS cor0
----
-79
46
-79
64
-79
75

query I rowsort
SELECT ALL - + 2 + + 72 + 18 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT - + col1 - - 4 - + + col2 + - col0 * + col0 AS col0 FROM tab0 cor0
----
-349
-7596
-9505

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1712
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT col0 + col2 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + col1 * 42 + - col1 + col2 * + 81 * - 49 * - - col0 AS col2 FROM tab0 AS cor0
----
-2794824
-3452169
-38114266

query I rowsort
SELECT + col0 * 12 + + col1 AS col2 FROM tab0
----
1065
1165
261

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT - COUNT( * ) + - + MIN( ALL col1 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT - COUNT ( * ) + - + MIN ( ALL col1 ) FROM tab0
----
-4

query I rowsort
SELECT DISTINCT col1 + 57 FROM tab0
----
138
58
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT - col1 + - - col2 + ( + + CAST( - col1 AS SIGNED ) ) - ( - + col1 ) FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-1717
SELECT - col1 + - - col2 + ( + + CAST ( - col1 AS INTEGER ) ) - ( - + col1 ) FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT col1 + - col2 * col2 AS col2 FROM tab1
----
-3476
-4577
-9202

query II rowsort
SELECT ALL - 22 - + + col2, - col2 AS col1 FROM tab0
----
-121
-99
-32
-10
-69
-47

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

query I rowsort
SELECT + 57 * - + col1 FROM tab0 AS cor0
----
-1197
-4617
-57

query I rowsort
SELECT ( - + 35 ) * - col2 - + - col0 AS col0 FROM tab2
----
1464
2105
851

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT - COUNT( * ) * - - 20 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT - COUNT ( * ) * - - 20 FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT MIN( DISTINCT + - 48 ) FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1725
SELECT MIN ( DISTINCT + - 48 ) FROM tab2 cor0
----
-48

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1727
SELECT ALL col1 DIV col0 * + CAST( col0 AS SIGNED ) + - 46 - - - col2 FROM tab0 AS cor0
----
-145
-18
-56

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL col1 / col0 * + CAST ( col0 AS INTEGER ) + - 46 - - - col2 FROM tab0 AS cor0
----
-145
-18
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1728
SELECT - 56 + CAST( NULL AS SIGNED ), 37 / - col2 FROM tab0 cor0 WHERE NOT + 61 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1728
SELECT - 56 + CAST ( NULL AS INTEGER ), 37 / - col2 FROM tab0 cor0 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - 99 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1729
SELECT - 99 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT DISTINCT - 43 DIV - - col2 + - + ( + + col1 ) AS col1 FROM tab0 cor0
----
-1
-25
-81

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - 43 / - - col2 + - + ( + + col1 ) AS col1 FROM tab0 cor0
----
-1
-25
-81

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1734
SELECT DISTINCT + SUM ( + col1 ) col2 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1735
SELECT DISTINCT 18 DIV - CAST( + col0 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT 18 / - CAST ( + col0 AS INTEGER ) FROM tab1
----
0

query II rowsort
SELECT + ( - col0 ) AS col1, col2 * + col0 AS col1 FROM tab2 AS cor0
----
-46
1058
-64
2560
-75
4350

query I rowsort
SELECT + - col2 + - 97 FROM tab2 AS cor0
----
-120
-137
-155

query I rowsort
SELECT + - 28 + - col0 FROM tab2 AS cor0
----
-103
-74
-92

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

query I rowsort
SELECT DISTINCT col2 * - col2 - - 79 + - col0 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND - col1 + - - 12 + - - col0
----

query I rowsort
SELECT DISTINCT + col0 * col2 + - col0 * - 91 AS col0 FROM tab0
----
18430
2070
8787

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT COUNT( * ) FROM tab0 WHERE NOT - col0 > - - col2
----
3

skipif mysql # not compatible
query I rowsort label-1742
SELECT COUNT ( * ) FROM tab0 WHERE NOT - col0 > - - col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT + COUNT( ALL 12 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + COUNT ( ALL 12 ) FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL - MAX( ALL + 92 ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL - MAX ( ALL + 92 ) FROM tab2
----
-92

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

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

skipif mysql # not compatible
query I rowsort label-1747
SELECT ( - COUNT ( ALL - col0 ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1748
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN 12 + + + CAST( + 67 AS DECIMAL ) AND NULL OR - + 12 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1748
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN 12 + + + CAST ( + 67 AS REAL ) AND NULL OR - + 12 IS NULL
----

query II rowsort
SELECT col0 + + + col1 + col2 AS col1, ( + col2 ) FROM tab2 WHERE NOT + - 15 IS NULL
----
120
23
181
40
200
58

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL MIN( + col1 ) * - + 56 col1 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT ALL MIN ( + col1 ) * - + 56 col1 FROM tab0 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58 - - 42 - + + 52 AS col0, 61 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 22a9358c6fd8e78a192df628d687790e

query I rowsort
SELECT + 78 * + - ( - ( + ( + 58 ) ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be0af2bf711f6208e70cacc3051b0d2d

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - ( MAX( - - 92 ) ) * + - 57 / MAX( ALL 85 ) AS col0 FROM tab0 WHERE NOT ( NOT + ( + 46 ) < NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT - ( MAX ( - - 92 ) ) * + - 57 / MAX ( ALL 85 ) AS col0 FROM tab0 WHERE NOT ( NOT + ( + 46 ) < NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 97 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT - + MAX( + 82 ) FROM tab0 AS cor0 WHERE NOT 21 / - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT - + MAX ( + 82 ) FROM tab0 AS cor0 WHERE NOT 21 / - - col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - col2 + - 44 - - - col1 * - col0 FROM tab1 AS cor0
----
322
4165
574

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

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

query I rowsort
SELECT DISTINCT + col2 + + 15 AS col0 FROM tab2
----
38
55
73

query I rowsort
SELECT ( - 91 ) AS col1 FROM tab0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT MIN( - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1763
SELECT MIN ( - col0 ) AS col0 FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col2, + col2 + - - col0 FROM tab1 AS cor0
----
59
144
68
159
96
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + + 99 + - 15 * col0 / + - col0 col2 FROM tab0 AS cor0 WHERE NULL >= col1 / + ( - col1 )
----

query I rowsort
SELECT ALL 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
95

query I rowsort
SELECT - 37 * + col1 - + col2 FROM tab2 AS cor0
----
-1910
-2537
-2889

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1773
SELECT + + 97 DIV col2 AS col1 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-1773
SELECT + + 97 / col2 AS col1 FROM tab0 AS cor0
----
0
2
9

query I rowsort
SELECT ALL col0 - + col0 * - 50 AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
4437
4947
765

query II rowsort
SELECT - col2 * col1, col2 FROM tab1 cor0
----
-1344
96
-295
59
-3196
68

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

query I rowsort
SELECT DISTINCT + col2 * + ( ( 48 ) ) FROM tab1
----
2832
3264
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT - 33 * COUNT( * ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1778
SELECT - 33 * COUNT ( * ) FROM tab0
----
-99

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

skipif mysql # not compatible
query I rowsort label-1779
SELECT COUNT ( ALL - + 87 ) FROM tab0
----
3

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

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

query I rowsort
SELECT ALL - 27 * + + col2 FROM tab2
----
-1080
-1566
-621

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

query I rowsort
SELECT DISTINCT + 92 * + col0 AS col0 FROM tab2 AS cor0
----
4232
5888
6900

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 20 IS NULL
----

query I rowsort
SELECT + 74 * + 87 AS col1 FROM tab0
----
6438
6438
6438

query I rowsort
SELECT + 75 * 94 - col0 - + 56 AS col1 FROM tab0 AS cor0
----
6897
6907
6979

query II rowsort
SELECT DISTINCT - - 45 AS col0, 96 AS col0 FROM tab2 AS cor0
----
45
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= col1
----

query I rowsort
SELECT - + col2 + - col2 + - + col2 + col0 * + col1 FROM tab2 cor0
----
2277
4808
4851

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT - - col2 DIV col1 + + - ( + - col0 ) + - + 15 AS col0 FROM tab0 AS cor0
----
0
181
72

skipif mysql # not compatible
query I rowsort label-1790
SELECT - - col2 / col1 + + - ( + - col0 ) + - + 15 AS col0 FROM tab0 AS cor0
----
0
181
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + col1, 88 col2 FROM tab2 AS cor0
----
141
88
142
88
97
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT + + col0 DIV + - 74 + - col0 AS col2 FROM tab0 AS cor0
----
-15
-88
-98

skipif mysql # not compatible
query I rowsort label-1792
SELECT + + col0 / + - 74 + - col0 AS col2 FROM tab0 AS cor0
----
-15
-88
-98

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 * - col1 )
----

query I rowsort
SELECT DISTINCT + col0 + - 33 + - 54 * col2 FROM tab1
----
-3134
-3614
-5166

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT + MAX( DISTINCT - 70 ) AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-70

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT + MAX ( DISTINCT - 70 ) AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT DISTINCT col1 + + ( - col1 ) * 43 DIV + col1 + - - col1 AS col2 FROM tab2
----
111
59
91

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT col1 + + ( - col1 ) * 43 / + col1 + - - col1 AS col2 FROM tab2
----
111
59
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + - + 85 + - + col1 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT COUNT( * ) * - 54 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-1798
SELECT COUNT ( * ) * - 54 FROM tab2
----
-162

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

query I rowsort
SELECT col0 * + + 18 AS col2 FROM tab2
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT + ( - MAX( 57 ) ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-1801
SELECT + ( - MAX ( 57 ) ) FROM tab0
----
-57

query I rowsort
SELECT DISTINCT + col2 - - + col1 + - - col2 AS col2 FROM tab1 AS cor0
----
123
183
206

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + 5 * COUNT( * ) + + COUNT( * ) * 45 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-1803
SELECT + 5 * COUNT ( * ) + + COUNT ( * ) * 45 FROM tab1 AS cor0
----
150

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 >= 22 * + + col2 + - ( - col2 ) * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 82 FROM tab1 cor0
----
82
82
82

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

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

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

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

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

query I rowsort
SELECT - - 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT ALL 12 * - + col1 - + 26 DIV + col0 FROM tab1
----
-168
-564
-60

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL 12 * - + col1 - + 26 / + col0 FROM tab1
----
-168
-564
-60

query I rowsort
SELECT - 41 * + - col2 FROM tab0 cor0
----
1927
4059
410

query I rowsort
SELECT - + 32 AS col2 FROM tab2 AS cor0
----
-32
-32
-32

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

query II rowsort
SELECT ALL 41, + col1 FROM tab1 AS cor0
----
41
14
41
47
41
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 < + col1 / + 38 + + 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT DISTINCT 32 DIV + 2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT 32 / + 2 FROM tab0
----
16

query I rowsort
SELECT col0 * + 3 FROM tab1
----
153
255
273

query I rowsort
SELECT - col2 - - 47 AS col2 FROM tab1 WHERE NOT + + ( + + ( + - 55 ) ) IS NOT NULL
----

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

query I rowsort
SELECT + 51 * ( col2 ) AS col1 FROM tab0
----
2397
5049
510

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

query II rowsort
SELECT - 17 * col1, col2 FROM tab0
----
-1377
47
-17
99
-357
10

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

query I rowsort
SELECT DISTINCT + - col2 - - col1 FROM tab1 AS cor0 WHERE + ( - col0 ) BETWEEN ( + col2 ) AND 17 * - + 14 * col2 * + 65 + + col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT - COUNT( * ) * - - 26 AS col1 FROM tab1
----
-78

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

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

query I rowsort
SELECT ALL + - 35 + - col2 FROM tab1 AS cor0
----
-103
-131
-94

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( col2 ) ) IS NULL
----

query I rowsort
SELECT ALL 37 + 71 FROM tab0 AS cor0
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT DISTINCT SUM( ALL + - col2 ) + + 73 AS col1 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT SUM ( ALL + - col2 ) + + 73 AS col1 FROM tab0 AS cor0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL - MIN( + col0 ) + + COUNT( * ) + - MAX( - - col0 ) AS col1 FROM tab0
----
-109

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL - MIN ( + col0 ) + + COUNT ( * ) + - MAX ( - - col0 ) AS col1 FROM tab0
----
-109

query I rowsort
SELECT 80 - col2 FROM tab1
----
-16
12
21

query I rowsort
SELECT ALL + 60 + + ( + - col0 ) AS col1 FROM tab2
----
-15
-4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT - 31 * + COUNT( * ) + + + 47 AS col2 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - 31 * + COUNT ( * ) + + + 47 AS col2 FROM tab1
----
-46

query I rowsort
SELECT DISTINCT col0 * + + 3 + - 32 + - col0 * + + col2 FROM tab1
----
-4775
-4792
-5947

query I rowsort
SELECT 21 + + - col2 + - ( - ( - col1 ) ) FROM tab1
----
-43
-89
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT + SUM( - ( - 65 ) ) + SUM( ALL + 45 ) FROM tab1
----
330

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT + SUM ( - ( - 65 ) ) + SUM ( ALL + 45 ) FROM tab1
----
330

onlyif mysql # DIV for integer division: 
query II rowsort label-1843
SELECT + 85 * + + col0 + - col0 - col0 + - col0 * col2 + - col2 DIV 25 + + 99, 72 AS col0 FROM tab0
----
-1456
72
638
72
6450
72

skipif mysql # not compatible
query II rowsort label-1843
SELECT + 85 * + + col0 + - col0 - col0 + - col0 * col2 + - col2 / 25 + + 99, 72 AS col0 FROM tab0
----
-1456
72
638
72
6450
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT 29 + + MAX( ALL + 43 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1844
SELECT 29 + + MAX ( ALL + 43 ) FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT 47 + - + MAX( ALL col0 ) AS col2 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-1845
SELECT 47 + - + MAX ( ALL col0 ) AS col2 FROM tab0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL - COUNT( col0 ) * + COUNT( * ) + - - 41 AS col0 FROM tab2 cor0
----
32

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL - COUNT ( col0 ) * + COUNT ( * ) + - - 41 AS col0 FROM tab2 cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT col1 DIV - 82 - 46 + - col0 + 28 * - - ( col2 ) AS col0 FROM tab1 cor0
----
1521
1767
2591

skipif mysql # not compatible
query I rowsort label-1847
SELECT col1 / - 82 - 46 + - col0 + 28 * - - ( col2 ) AS col0 FROM tab1 cor0
----
1521
1767
2591

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

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

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

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

query I rowsort
SELECT ALL + 51 AS col2 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT - 36 + - 66 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col1 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT - col2 * + + 87 AS col2 FROM tab1 AS cor0
----
-5133
-5916
-8352

query I rowsort
SELECT + 8 * + 90 * + col2 FROM tab2 AS cor0
----
16560
28800
41760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1856
SELECT + SUM( ALL - 17 ) DIV - 43 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1856
SELECT + SUM ( ALL - 17 ) / - 43 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 * 31 * + ( + 18 ) NOT BETWEEN - col2 + + + 41 + + col0 AND NULL
----

query I rowsort
SELECT col1 * 14 FROM tab2
----
1078
714
938

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT DISTINCT SUM( ALL - 87 ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT SUM ( ALL - 87 ) FROM tab1
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT - + col1 + - + col1 + + col1 FROM tab1 WHERE NOT 62 * + col0 * - + CAST( NULL AS SIGNED ) * - 34 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1860
SELECT - + col1 + - + col1 + + col1 FROM tab1 WHERE NOT 62 * + col0 * - + CAST ( NULL AS INTEGER ) * - 34 IS NOT NULL
----
-14
-47
-5

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

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT col0 / + - col2 FROM tab1
----
-1
0

query I rowsort
SELECT col1 * - - 58 FROM tab0
----
1218
4698
58

query II rowsort
SELECT col1, - ( - + 61 ) AS col0 FROM tab1 AS cor0
----
14
61
47
61
5
61

query I rowsort
SELECT DISTINCT + - 40 * - col0 AS col2 FROM tab0 cor0
----
3480
3880
600

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT DISTINCT - ( 87 ) + - MAX( DISTINCT + 31 ) FROM tab0 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - ( 87 ) + - MAX ( DISTINCT + 31 ) FROM tab0 AS cor0
----
-118

query II rowsort
SELECT ALL - 75 + col0 * - 79, col1 FROM tab2 AS cor0
----
-3709
51
-5131
77
-6000
67

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

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

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

query I rowsort
SELECT 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT * FROM tab2 WHERE col2 <= col0 * - - col1 + + - 72 - - col1 + - col0 - - 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 26 FROM tab2, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT col1 + 59 * - col2 FROM tab1 cor0
----
-3476
-3965
-5650

query I rowsort
SELECT DISTINCT - 93 * + + col0 * + col2 * 24 AS col0 FROM tab0 AS cor0
----
-1573560
-1941840
-21433896

query I rowsort
SELECT + 19 + col0 AS col2 FROM tab2 AS cor0
----
65
83
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1877
SELECT col1 + + CAST( NULL AS DECIMAL ) AS col0, 11 + col0 + 8 * - 31 + + 47 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
-100
NULL
-125
NULL
-52

skipif mysql # not compatible
query II rowsort label-1877
SELECT col1 + + CAST ( NULL AS REAL ) AS col0, 11 + col0 + 8 * - 31 + + 47 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
-100
NULL
-125
NULL
-52

query I rowsort
SELECT DISTINCT ( - 63 ) AS col0 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT ALL + + col0 * col2 AS col0, + 51 FROM tab2 WHERE NULL > 53
----

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

skipif mysql # not compatible
query III rowsort label-1880
SELECT DISTINCT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT + col0 * + col1 - + 13, 76 AS col1 FROM tab1
----
412
76
4264
76
701
76

query I rowsort
SELECT ALL col0 * 15 AS col0 FROM tab1
----
1275
1365
765

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT + 98 * + COUNT( DISTINCT + - 16 ) AS col2 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-1886
SELECT + 98 * + COUNT ( DISTINCT + - 16 ) AS col2 FROM tab2
----
98

query I rowsort
SELECT ALL + ( col1 ) - 24 FROM tab0
----
-23
-3
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT + + CAST( + 85 AS SIGNED ) - - col2 FROM tab2 AS cor0
----
108
125
143

skipif mysql # not compatible
query I rowsort label-1888
SELECT + + CAST ( + 85 AS INTEGER ) - - col2 FROM tab2 AS cor0
----
108
125
143

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

query I rowsort
SELECT + + col2 - + ( - col2 ) FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL + + 10 + ( - 32 ) - + col1 * - - 91 FROM tab0 cor0
----
-113
-1933
-7393

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL ( - COUNT( * ) ) + - - 54 col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1892
SELECT ALL ( - COUNT ( * ) ) + - - 54 col0 FROM tab2 AS cor0
----
51

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 39 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT DISTINCT 95 - - - 99 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

query I rowsort
SELECT ALL 90 * + - ( + - col2 ) * + - col2 AS col2 FROM tab2
----
-144000
-302760
-47610

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1898
SELECT DISTINCT - 53 * - col0 col2, + col0 + 7 * CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1898
SELECT DISTINCT - 53 * - col0 col2, + col0 + 7 * CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT ALL + - col0 DIV col2 * + 49 FROM tab0 AS cor0
----
-392
0
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + - col0 / col2 * + 49 FROM tab0 AS cor0
----
-392
0
0

query I rowsort
SELECT DISTINCT - + col0 * ( col0 ) * + 94 + - col2 AS col1 FROM tab1 AS cor0
----
-244590
-679209
-778482

onlyif mysql # aggregate syntax: 
query II rowsort label-1901
SELECT + 29, COUNT( * ) AS col0 FROM tab1 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-1901
SELECT + 29, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
29
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT ALL + col2 DIV + col2 col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1902
SELECT ALL + col2 / + col2 col1 FROM tab1 AS cor0
----
1
1
1

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

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

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

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

query I rowsort
SELECT ( 61 ) AS col1 FROM tab2
----
61
61
61

query I rowsort
SELECT DISTINCT + 21 + + col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
102
22
42

query I rowsort
SELECT col0 * + + 98 + - + col1 + - 88 AS col2 FROM tab0
----
1301
8417
9417

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1908
SELECT ALL - col0 AS col1, + CAST( NULL AS SIGNED ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1908
SELECT ALL - col0 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

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

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 * - col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL >= - + col2 + - + 20 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1910
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL >= - + col2 + - + 20 * + col2 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1911
SELECT CAST( NULL AS DECIMAL ) * + 77 + + - col0 AS col1, + ( ( + col2 ) ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1911
SELECT CAST ( NULL AS REAL ) * + 77 + + - col0 AS col1, + ( ( + col2 ) ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT - - 64 AS col1, 93 FROM tab2 cor0
----
64
93
64
93
64
93

query I rowsort
SELECT ALL + 20 AS col2 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT ALL col0 + - 32 FROM tab2 AS cor0
----
14
32
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT - + col0 * + col1 - + col1 * - 41 + + + 36 + - CAST( NULL AS SIGNED ) * - + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT - + col0 * + col1 - + col1 * - 41 + + + 36 + - CAST ( NULL AS INTEGER ) * - + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - 45 <> ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT ALL + ( + col0 ) + - - 99 + - col2 DIV - col1 FROM tab2 AS cor0
----
145
163
174

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + ( + col0 ) + - - 99 + - col2 / - col1 FROM tab2 AS cor0
----
145
163
174

query I rowsort
SELECT - - col1 + - 57 AS col2 FROM tab2 AS cor0
----
-6
10
20

query II rowsort
SELECT DISTINCT + col0 + - col1 AS col2, col2 AS col1 FROM tab1
----
37
96
44
68
80
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT ALL - CAST( 54 AS SIGNED ) - AVG ( DISTINCT + 33 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - CAST ( 54 AS INTEGER ) - AVG ( DISTINCT + 33 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1
----
NULL

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

query I rowsort
SELECT ALL - ( - 3 ) + + ( - col2 ) * + col0 AS col0 FROM tab1
----
-4893
-5012
-6185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT DISTINCT - 26 FROM tab0 WHERE CAST( - ( col2 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - 26 FROM tab0 WHERE CAST ( - ( col2 ) AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1924
SELECT - CAST( NULL AS DECIMAL ) + + SUM( + col1 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT - CAST ( NULL AS REAL ) + + SUM ( + col1 ) col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 - 63 * + 20 FROM tab1
----
-1169
-1175
-1209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1926
SELECT ALL - COUNT( ALL + col1 ) AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1926
SELECT ALL - COUNT ( ALL + col1 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * 95 col1, 5 * + 5 AS col0 FROM tab0 AS cor0
----
4465
25
9405
25
950
25

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

query I rowsort
SELECT DISTINCT 47 * col2 FROM tab0
----
2209
4653
470

query III rowsort
SELECT ALL * FROM tab2 WHERE 42 = - col0 * col0
----

query II rowsort
SELECT ALL - - 74, + col0 AS col1 FROM tab1 AS cor0
----
74
51
74
85
74
91

query II rowsort
SELECT - + col1, col0 * + + ( + col1 ) * - col0 + + + 84 AS col1 FROM tab1 cor0
----
-14
-36330
-47
-389123
-5
-36041

query I rowsort
SELECT DISTINCT - ( - 99 ) FROM tab0 cor0
----
99

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

query I rowsort
SELECT ALL - + col2 * - 11 + col1 AS col1 FROM tab1 cor0
----
1070
654
795

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

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

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

query I rowsort
SELECT - - col0 * - ( - + 32 ) + col0 AS col1 FROM tab2 cor0
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL - SUM( - 35 ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - SUM ( - 35 ) FROM tab1 AS cor0
----
105

query I rowsort
SELECT DISTINCT + 90 * + 74 FROM tab0
----
6660

query I rowsort
SELECT - col1 + - + 31 * + col0 FROM tab2
----
-1477
-2061
-2392

query I rowsort
SELECT DISTINCT 48 + + 54 FROM tab0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1944
SELECT DISTINCT COUNT( * ) * COUNT( * ) DIV - MAX( ALL + col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) / - MAX ( ALL + col0 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - 88 * 32 * 43 AS col1 FROM tab2
----
-121088
-121088
-121088

query II rowsort
SELECT DISTINCT col1 * col1 AS col1, col0 FROM tab1
----
196
51
2209
91
25
85

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 8 + - + col2 >= NULL
----

query II rowsort
SELECT DISTINCT col0 * + + col2 AS col2, + col0 AS col0 FROM tab1
----
4896
51
5015
85
6188
91

onlyif mysql # DIV for integer division: 
query II rowsort label-1950
SELECT ALL - 48 DIV - col2 col2, 31 * + 13 AS col1 FROM tab0 AS cor0
----
0
403
1
403
4
403

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1950
SELECT ALL - 48 / - col2 col2, 31 * + 13 AS col1 FROM tab0 AS cor0
----
0
403
1
403
4
403

query I rowsort
SELECT ALL ( - 48 ) FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT - ( - 31 ) FROM tab1 AS cor0
----
31
31
31

onlyif mysql # DIV for integer division: 
query II rowsort label-1953
SELECT + - col0 AS col2, col2 DIV + col2 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

skipif mysql # not compatible
query II rowsort label-1953
SELECT + - col0 AS col2, col2 / + col2 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

query I rowsort
SELECT DISTINCT - 25 + + + col0 AS col2 FROM tab2 AS cor0
----
21
39
50

query II rowsort
SELECT + col1 * + col1 + col0 + - col1 * + - 56, + 54 * + - col0 AS col2 FROM tab2
----
10305
-3456
5503
-2484
8316
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT DISTINCT - - 44 DIV - COUNT( * ) + MAX( + 99 ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - - 44 / - COUNT ( * ) + MAX ( + 99 ) FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL 51 AS col1 FROM tab1 cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT + COUNT( * ) + + MIN( ALL 87 ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT + COUNT ( * ) + + MIN ( ALL 87 ) FROM tab1
----
90

query I rowsort
SELECT ALL 39 + - col1 AS col0 FROM tab2
----
-12
-28
-38

query I rowsort
SELECT ALL col0 * - 47 - - - col1 * + + col0 * + col1 AS col0 FROM tab1
----
-12393
-205296
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL + ( + SUM( ALL 15 ) ) - - - SUM( ALL col0 ) FROM tab0
----
-154

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL + ( + SUM ( ALL 15 ) ) - - - SUM ( ALL col0 ) FROM tab0
----
-154

query I rowsort
SELECT col0 - + 17 FROM tab0
----
-2
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL SUM( 42 ) FROM tab2 WHERE ( NULL ) IS NULL
----
126

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL SUM ( 42 ) FROM tab2 WHERE ( NULL ) IS NULL
----
126

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL + SUM( DISTINCT col1 ) FROM tab1 cor0 WHERE + 69 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + SUM ( DISTINCT col1 ) FROM tab1 cor0 WHERE + 69 >= ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + 82 >= + - col1 * col2 / + + 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT 18 + ( col0 - 14 ) DIV - col2 col0 FROM tab0
----
11
18
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1967
SELECT 18 + ( col0 - 14 ) / - col2 col0 FROM tab0
----
11
18
18

query I rowsort
SELECT - 40 + + col1 * - col2 FROM tab2
----
-1213
-3120
-3926

query I rowsort
SELECT - 56 * 98 + col1 AS col2 FROM tab1
----
-5441
-5474
-5483

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT + 64 + col2 AS col1 FROM tab0
----
111
163
74

query I rowsort
SELECT - col2 + + 76 FROM tab2
----
18
36
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT - MIN( DISTINCT - 95 ) + 31 AS col0 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1974
SELECT - MIN ( DISTINCT - 95 ) + 31 AS col0 FROM tab0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 37 * - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT MAX( CAST( NULL AS SIGNED ) ) - - 89 / MAX( - 17 + col1 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT MAX ( CAST ( NULL AS INTEGER ) ) - - 89 / MAX ( - 17 + col1 ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN 47 AND ( NULL )
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - 15 * 85 AS col2 FROM tab2
----
-1275

query I rowsort
SELECT col1 + - 84 FROM tab0
----
-3
-63
-83

query I rowsort
SELECT - 5 * 51 + col2 AS col0 FROM tab1
----
-159
-187
-196

query I rowsort
SELECT col0 - + 44 FROM tab1 WHERE NOT col0 IN ( - col0 )
----
41
47
7

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT - 4 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - ( col1 ) * + col2 AS col2 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 - - 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 53 + + 20 FROM tab1
----
-33

query I rowsort
SELECT DISTINCT + col2 / + 76 FROM tab1 WHERE NULL NOT BETWEEN - col1 * 53 AND - 13 / col2
----

query I rowsort
SELECT - 49 FROM tab1 AS cor0 WHERE + col0 = + col0 / col1
----

query I rowsort
SELECT ALL - 83 * + 38 AS col1 FROM tab1 AS cor0
----
-3154
-3154
-3154

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE + 27 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT COUNT( * ) * + 3 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT COUNT ( * ) * + 3 FROM tab1 AS cor0
----
9

query I rowsort
SELECT 12 * 4 - 77 FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + - 77 * col0 FROM tab0 AS cor0
----
-1155
-6699
-7469

query I rowsort
SELECT - col2 - 0 * col0 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1996
SELECT + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( + ( CAST( NULL AS DECIMAL ) ) * + col0 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-1996
SELECT + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( + ( CAST ( NULL AS REAL ) ) * + col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT ALL - - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 54 + col2 * 18 AS col1 FROM tab1 AS cor0
----
1008
1170
1674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col0 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT col1 + CAST( + col0 AS SIGNED ) * col1 AS col0 FROM tab2
----
2397
5005
5092

skipif mysql # not compatible
query I rowsort label-2001
SELECT col1 + CAST ( + col0 AS INTEGER ) * col1 AS col0 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT + col0 * + col0 FROM tab1 WHERE ( col2 ) BETWEEN ( NULL ) AND - 2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT - ( + col2 ) FROM tab1 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT ALL - 56 - + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 7 + - col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT ALL + 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( - CAST( NULL AS SIGNED ) * - 95 )
----

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL + 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) * - 95 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col0 FROM tab1
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 cor0 INNER JOIN tab1 AS cor1 ON NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT DISTINCT col0 + + col1 FROM tab0 cor0 WHERE col1 / - CAST( NULL AS SIGNED ) IS NULL
----
108
96
98

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT col0 + + col1 FROM tab0 cor0 WHERE col1 / - CAST ( NULL AS INTEGER ) IS NULL
----
108
96
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2012
SELECT - MAX( ALL - col0 ) DIV 38 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2012
SELECT - MAX ( ALL - col0 ) / 38 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2013
SELECT - + CAST( NULL AS DECIMAL ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT - + CAST ( NULL AS REAL ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
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-2014
SELECT ALL + + CAST ( - col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, - 69 + - col1 FROM tab2 AS cor0
----
-51
-120
-67
-136
-77
-146

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 + - col0 + + ( 96 ) AS col2 FROM tab0 AS cor0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + - - 22 col2 FROM tab1 cor0
----
22
22
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * + 44 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 col2 FROM tab0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT ALL + col2 + - col1 DIV - + col2 AS col1 FROM tab0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + col2 + - col1 / - + col2 AS col1 FROM tab0
----
12
48
99

query III rowsort
SELECT ALL * FROM tab1 WHERE 47 / + ( - 60 ) * - col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT DISTINCT col0 DIV - col0 FROM tab1 WHERE NOT 98 + + col1 + 96 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT col0 / - col0 FROM tab1 WHERE NOT 98 + + col1 + 96 IS NULL
----
-1

query I rowsort
SELECT + 75 * 46 + col0 AS col0 FROM tab1 WHERE - ( + ( col2 ) ) - - 57 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT 43 * 32 DIV col1 FROM tab1
----
275
29
98

skipif mysql # not compatible
query I rowsort label-2026
SELECT 43 * 32 / col1 FROM tab1
----
275
29
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * - col1 + - 85 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT ALL - COUNT( * ) * COUNT( * ) AS col2, - 85 FROM tab2
----
-9
-85

skipif mysql # not compatible
query II rowsort label-2028
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2, - 85 FROM tab2
----
-9
-85

query II rowsort
SELECT ALL ( - - col2 ) AS col1, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT col0 * + col1 * - 37 FROM tab2
----
-182336
-185925
-86802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2031
SELECT + 65 DIV - COUNT( * ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2031
SELECT + 65 / - COUNT ( * ) FROM tab2 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT DISTINCT - col0 + + + col2 DIV 57 * 18 col0 FROM tab2 AS cor0
----
-46
-57
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2032
SELECT DISTINCT - col0 + + + col2 / 57 * 18 col0 FROM tab2 AS cor0
----
-46
-57
-64

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE col0 * + col2 * col2 = col0 * + col1
----

query I rowsort
SELECT ALL 72 + - 49 FROM tab2 AS cor0 WHERE NOT ( + 13 ) IS NULL
----
23
23
23

query I rowsort
SELECT ALL 45 + - col1 FROM tab1
----
-2
31
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 - - col1 col1 FROM tab2
----
64
80
90

query III rowsort
SELECT * FROM tab1 WHERE col0 + - 27 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT col1 + - col2 * - - 26 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT col1 + - col2 * - - 26 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * + - ( + col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT + ( ( - 28 ) ) * + 51 FROM tab2 AS cor0
----
-1428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL col2 / CAST( NULL AS SIGNED ) - 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL col2 / CAST ( NULL AS INTEGER ) - 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + ( + + col0 ) ) / - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <> NULL AND ( - col2 ) BETWEEN + 69 AND ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2044
SELECT COUNT( ALL + 49 ) DIV + - COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2044
SELECT COUNT ( ALL + 49 ) / + - COUNT ( * ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT ALL + ( + 63 ) AS col2 FROM tab1
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT col2 DIV - 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2046
SELECT col2 / - 82 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2047
SELECT + CAST( NULL AS SIGNED ) * + 59 + + + MAX( + 74 ) + 82 * + CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT + CAST ( NULL AS INTEGER ) * + 59 + + + MAX ( + 74 ) + 82 * + CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 30 AS col0 FROM tab2 WHERE NOT col0 <> col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2050
SELECT ALL ( + + 80 ), col2 DIV - 78 * - col2 * - 87 DIV ( + col0 ) AS col1 FROM tab2
----
80
0
80
0
80
0

skipif mysql # not compatible
query II rowsort label-2050
SELECT ALL ( + + 80 ), col2 / - 78 * - col2 * - 87 / ( + col0 ) AS col1 FROM tab2
----
80
0
80
0
80
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2051
SELECT + col1 AS col1, 90 DIV 11 DIV col2 - + col0 col2 FROM tab2
----
51
-46
67
-75
77
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2051
SELECT + col1 AS col1, 90 / 11 / col2 - + col0 col2 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL 57 * - 82 + col2 FROM tab0 AS cor0
----
-4575
-4627
-4664

query I rowsort
SELECT ALL + + col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN 99 + - + col0 + + col1 * col0 AND NULL
----

query II rowsort
SELECT 66 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
66
1
66
21
66
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT ALL COUNT( * ) DIV MAX( ALL - col2 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL COUNT ( * ) / MAX ( ALL - col2 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - + 52 AS col0 FROM tab2 cor0
----
-52

query II rowsort
SELECT col0, + col1 * col0 FROM tab0 cor0
----
15
1215
87
1827
97
97

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2059
SELECT - 7 DIV MIN( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2059
SELECT - 7 / MIN ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT DISTINCT col2 DIV col1 AS col0 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT col2 / col1 AS col0 FROM tab1 cor0
----
1
11
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2061
SELECT ALL + COUNT( * ) + + ( + + CAST( - 53 AS SIGNED ) ) + + COUNT( * ) - + - 24 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL + COUNT ( * ) + + ( + + CAST ( - 53 AS INTEGER ) ) + + COUNT ( * ) - + - 24 FROM tab0 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE ( ( NOT col0 * + ( + col2 ) = NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2063
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( ( NOT col0 * + ( + col2 ) = NULL ) )
----
0

query II rowsort
SELECT + - col1 * - + col0 + + ( - col2 ) * + 74, col0 * 3 AS col0 FROM tab0 AS cor0
----
-2263
45
-7229
291
1087
261

query II rowsort
SELECT - 57 AS col2, 68 AS col1 FROM tab0
----
-57
68
-57
68
-57
68

query I rowsort
SELECT ALL - col1 + + - 63 AS col2 FROM tab0
----
-144
-64
-84

query I rowsort
SELECT + 85 + + + 21 AS col0 FROM tab1
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ALL + COUNT( + col1 ) + + COUNT( + col2 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + COUNT ( + col1 ) + + COUNT ( + col2 ) AS col1 FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT - 12 * + COUNT( * ) * + ( + CAST( - CAST( COUNT( DISTINCT - 17 ) AS SIGNED ) AS SIGNED ) ) + + SUM( col1 ) AS col2 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-2069
SELECT - 12 * + COUNT ( * ) * + ( + CAST ( - CAST ( COUNT ( DISTINCT - 17 ) AS INTEGER ) AS INTEGER ) ) + + SUM ( col1 ) AS col2 FROM tab1
----
102

query III rowsort
SELECT * FROM tab1 WHERE col1 / col0 + + col0 * 26 >= ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT DISTINCT - 71 AS col1, - 19 * COUNT( * ) - + MAX( DISTINCT - col2 ) AS col1 FROM tab1
----
-71
2

skipif mysql # not compatible
query II rowsort label-2071
SELECT DISTINCT - 71 AS col1, - 19 * COUNT ( * ) - + MAX ( DISTINCT - col2 ) AS col1 FROM tab1
----
-71
2

query II rowsort
SELECT - col1, + col2 + - - col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 25 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + 39 + SUM( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2073
SELECT + 39 + SUM ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-82

query I rowsort
SELECT - col0 * col0 + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-144
-7548
-9408

query I rowsort
SELECT col1 * - + col2 AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + MAX( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2076
SELECT + MAX ( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT 4 + COUNT( * ) FROM tab0 AS cor0 WHERE 22 - - col0 * - col0 + - col1 NOT IN ( + - 83, 18 )
----
7

skipif mysql # not compatible
query I rowsort label-2077
SELECT 4 + COUNT ( * ) FROM tab0 AS cor0 WHERE 22 - - col0 * - col0 + - col1 NOT IN ( + - 83, 18 )
----
7

query I rowsort
SELECT DISTINCT - 59 + + col2 FROM tab2 AS cor0
----
-1
-19
-36

query II rowsort
SELECT + 80, - 22 AS col2 FROM tab1, tab0 AS cor0
----
18 values hashing to 9026dfc1fea686ff35d87d8ed9c641b3

query I rowsort
SELECT DISTINCT 10 + 78 FROM tab0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2081
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-2081
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT 37 - + - col2 FROM tab2
----
60
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT 99 * + + COUNT( ALL + 24 ) FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2083
SELECT 99 * + + COUNT ( ALL + 24 ) FROM tab2 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL - MIN( - - ( + + col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - MIN ( - - ( + + col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( - - col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT COUNT( ALL - - 27 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2086
SELECT COUNT ( ALL - - 27 ) FROM tab2 cor0
----
3

query I rowsort
SELECT + col0 * col2 * + 35 * + col0 AS col2 FROM tab2 AS cor0
----
11418750
1703380
5734400

query I rowsort
SELECT ALL - ( + - 60 ) * - col0 + col0 * 81 AS col2 FROM tab2 AS cor0
----
1344
1575
966

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ( MIN( ALL + 72 ) ) AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2090
SELECT ( MIN ( ALL + 72 ) ) AS col1 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2091
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - - 32 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2091
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - - 32 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT + col1 FROM tab1 cor0 WHERE NOT + CAST( + - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2092
SELECT + col1 FROM tab1 cor0 WHERE NOT + CAST ( + - col2 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col1 FROM tab2 cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2094
SELECT - col1 DIV CAST( - + col0 AS SIGNED ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT - col1 / CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT COUNT( * ) * + 83 AS col2 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT COUNT ( * ) * + 83 AS col2 FROM tab2
----
249

query I rowsort
SELECT col1 * col1 FROM tab0 WHERE NOT - ( col1 ) / - - 87 + + ( - col2 ) BETWEEN NULL AND - - col0 - + ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2097
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + SUM( + col0 ) * - - SUM( ALL - 1 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT CAST ( NULL AS REAL ) * + + SUM ( + col0 ) * - - SUM ( ALL - 1 ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 31 col2 FROM tab1 AS cor0
----
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + - col1 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - - ( 85 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT - - col0 / col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 / - - CAST( - col2 AS SIGNED ) - col2, - col0 / 73 - - col0 )
----

skipif mysql # not compatible
query I rowsort label-2101
SELECT - - col0 / col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 / - - CAST ( - col2 AS INTEGER ) - col2, - col0 / 73 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 71 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 71 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - col1 + 97 FROM tab2 AS cor0
----
20
30
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2104
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - + ( + col1 ) AS SIGNED ) / - - col0 * ( + + 25 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2104
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - + ( + col1 ) AS INTEGER ) / - - col0 * ( + + 25 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT DISTINCT + 84 DIV 8 AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + 84 / 8 AS col0 FROM tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + 79 * col2 col1 FROM tab0 AS cor0
----
3698
703
7724

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col0 - + - 13
----

query I rowsort
SELECT DISTINCT + 26 FROM tab0 AS cor0 WHERE ( - 66 + col1 ) >= + col1
----

query I rowsort
SELECT ALL - ( - col2 ) + + + 46 + col2 AS col2 FROM tab2 AS cor0
----
126
162
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE - ( col2 ) * - - col1 NOT BETWEEN NULL AND ( + col2 ) * - + col2
----
-1

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE - ( col2 ) * - - col1 NOT BETWEEN NULL AND ( + col2 ) * - + col2
----
-1

query I rowsort
SELECT DISTINCT + col1 + - col1 * + col0 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT 76 + - + 4 + + col0 * + + 17 FROM tab2 AS cor0
----
1160
1347
854

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 69 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT ALL 62 DIV + + col1 + + 94 col1 FROM tab2
----
94
94
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2114
SELECT ALL 62 / + + col1 + + 94 col1 FROM tab2
----
94
94
95

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col0 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - + ( + 72 ) <= - 62
----

query I rowsort
SELECT DISTINCT col0 - + col2 + - col2 + - - 15 + 28 FROM tab2
----
2
27
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT CAST( 83 AS SIGNED ) AS col2 FROM tab2
----
83
83
83

skipif mysql # not compatible
query I rowsort label-2118
SELECT CAST ( 83 AS INTEGER ) AS col2 FROM tab2
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2119
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - + col1 NOT BETWEEN ( col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2119
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - + col1 NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2120
SELECT ALL + col1 * col1 + - col2 * CAST( NULL AS SIGNED ) / - 41, + col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2120
SELECT ALL + col1 * col1 + - col2 * CAST ( NULL AS INTEGER ) / - 41, + col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT - 11 - + + ( col1 ) * col1 + + - col0 * - - col2 AS col1 FROM tab2 AS cor0
----
-3670
-8500
-8850

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT DISTINCT - + SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - + SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT - 91 + - 91 FROM tab1 cor0
----
-182

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL AND NULL <> + - 6
----

query I rowsort
SELECT - ( - 71 ) AS col0 FROM tab2 AS cor0
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 91 AS col2 FROM tab1 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - - 62 AS col2 FROM tab0 AS cor0
----
62

query II rowsort
SELECT DISTINCT - col1 AS col2, 66 AS col1 FROM tab2 cor0
----
-51
66
-67
66
-77
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT ALL - + CAST( NULL AS SIGNED ) * - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - + CAST ( NULL AS INTEGER ) * - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2132
SELECT DISTINCT + MAX( ALL - ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT + MAX ( ALL - ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ( - - col2 ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL - CAST( - col1 AS SIGNED ) * + col0 AS col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL - CAST ( - col1 AS INTEGER ) * + col0 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + 87 * + 48 FROM tab0
----
4176
4176
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL + COUNT( * ) * - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT + 5 * + + 14 FROM tab0
----
70
70
70

query I rowsort
SELECT DISTINCT - 90 * + col2 * col1 FROM tab1
----
-120960
-26550
-287640

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 * + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 35 + - col0 * - col1 FROM tab2 AS cor0 WHERE NOT + col2 - - + col2 > ( + + ( col0 ) * + col0 * + + 97 * + + 49 )
----
2381
4963
5060

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2141
SELECT - - CAST( NULL AS DECIMAL ) * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT - - CAST ( NULL AS REAL ) * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT - + MAX( 2 ) AS col1, ( + + 28 ) * + + COUNT( * ) + - 5 FROM tab2 WHERE NOT - + 16 >= ( + 48 ) - + col2
----
-2
79

skipif mysql # not compatible
query II rowsort label-2142
SELECT - + MAX ( 2 ) AS col1, ( + + 28 ) * + + COUNT ( * ) + - 5 FROM tab2 WHERE NOT - + 16 >= ( + 48 ) - + col2
----
-2
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT col2 DIV - + col1 + col2 + + 92 AS col2 FROM tab2
----
115
132
150

skipif mysql # not compatible
query I rowsort label-2143
SELECT col2 / - + col1 + col2 + + 92 AS col2 FROM tab2
----
115
132
150

query I rowsort
SELECT + col0 * 82 AS col2 FROM tab2
----
3772
5248
6150

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT + 79 DIV - col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT + 79 / - col0 FROM tab0
----
-5
0

query I rowsort
SELECT DISTINCT 72 * + col1 * col0 FROM tab2
----
168912
354816
361800

onlyif mysql # DIV for integer division: 
query I rowsort label-2147
SELECT - col0 DIV + - 36 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-2147
SELECT - col0 / + - 36 FROM tab0 AS cor0
----
0
2
2

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( - 28 ) AS col2 FROM tab0 cor0
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT - CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2150
SELECT - CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * + - col1 + + col1 col1 FROM tab2 AS cor0
----
-3468
-4556
-5236

query I rowsort
SELECT + col2 - - col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT ALL + 68 + - 71 * - col0 + - 22 DIV col2 FROM tab1 AS cor0
----
3689
6103
6529

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + 68 + - 71 * - col0 + - 22 / col2 FROM tab1 AS cor0
----
3689
6103
6529

query I rowsort
SELECT 54 - + col1 FROM tab0 AS cor0
----
-27
33
53

query I rowsort
SELECT DISTINCT col1 * 78 + + + col0 AS col1 FROM tab0
----
1725
175
6333

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL MIN( + ( + col0 ) ) - - + MAX( ALL + col1 ) FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL MIN ( + ( + col0 ) ) - - + MAX ( ALL + col1 ) FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2157
SELECT + ( CAST( - 40 AS SIGNED ) ) + - 82 - - - col0 - - col1, 93 + - + 98 AS col1 FROM tab2
----
-109
-5
-117
-5
-130
-5

skipif mysql # not compatible
query II rowsort label-2157
SELECT + ( CAST ( - 40 AS INTEGER ) ) + - 82 - - - col0 - - col1, 93 + - + 98 AS col1 FROM tab2
----
-109
-5
-117
-5
-130
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 + col2 + col0 col1 FROM tab2
----
152
187
216

query I rowsort
SELECT ALL - col1 * - ( + 83 ) + - 44 FROM tab2
----
4189
5517
6347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT - ( - 80 ) + - COUNT( * ) * MAX( ALL - - col0 ) / + 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-2160
SELECT - ( - 80 ) + - COUNT ( * ) * MAX ( ALL - - col0 ) / + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 + - 11 FROM tab1
----
48
57
85

query I rowsort
SELECT DISTINCT ( + 89 ) FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL - ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL - ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2164
SELECT DISTINCT + CAST( - - ( + 79 ) AS SIGNED ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + CAST ( - - ( + 79 ) AS INTEGER ) FROM tab0
----
79

query I rowsort
SELECT + 19 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - col0 * + ( + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col2 AND + - 63
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col0 * col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 30 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 64 col2 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT + COUNT( * ) * 42 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2170
SELECT + COUNT ( * ) * 42 FROM tab2 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT MIN( DISTINCT col2 ) * + 55 FROM tab0 AS cor0
----
550

skipif mysql # not compatible
query I rowsort label-2171
SELECT MIN ( DISTINCT col2 ) * + 55 FROM tab0 AS cor0
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - ( + + MAX( ALL + col1 ) ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2172
SELECT - ( + + MAX ( ALL + col1 ) ) AS col2 FROM tab0 cor0
----
-81

query II rowsort
SELECT ALL + col2, 21 AS col2 FROM tab0 cor0 WHERE ( + - 16 ) >= 51
----

query I rowsort
SELECT + ( ( + + col1 ) ) * col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT CAST( - col2 AS SIGNED ) col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2175
SELECT CAST ( - col2 AS INTEGER ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT COUNT( DISTINCT + + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2176
SELECT COUNT ( DISTINCT + + col0 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT 3 AS col0, - 62 FROM tab1
----
3
-62

query I rowsort
SELECT ALL + col2 * ( + col1 ) FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL COUNT( * ) * + ( - MIN( DISTINCT + 26 ) ) col2 FROM tab1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2179
SELECT ALL COUNT ( * ) * + ( - MIN ( DISTINCT + 26 ) ) col2 FROM tab1
----
-78

query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab0, tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( - 51 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( - 51 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT MIN( DISTINCT col0 ) * - 79 FROM tab1
----
-4029

skipif mysql # not compatible
query I rowsort label-2182
SELECT MIN ( DISTINCT col0 ) * - 79 FROM tab1
----
-4029

query II rowsort
SELECT col0, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT ALL - - 81 + col1 AS col2 FROM tab0 AS cor0
----
102
162
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 93 IS NULL
----

query I rowsort
SELECT 95 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT MAX( + ( 14 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-2187
SELECT MAX ( + ( 14 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
14

query I rowsort
SELECT col1 * 90 + + col2 FROM tab1
----
1356
4298
509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 41 col1 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + + 83 * - ( - col2 ) AS col1 FROM tab1 AS cor0
----
4897
5644
7968

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 28 AND 38
----

query I rowsort
SELECT DISTINCT + - col1 + 80 AS col1 FROM tab2 AS cor0
----
13
29
3

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT - - ( + ( + COUNT( ALL 77 ) ) ) * + 87 + - - 18 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-2194
SELECT - - ( + ( + COUNT ( ALL 77 ) ) ) * + 87 + - - 18 FROM tab0 AS cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT DISTINCT col1 - - - CAST( NULL AS SIGNED ) + - 0 * + 50 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT col1 - - - CAST ( NULL AS INTEGER ) + - 0 * + 50 FROM tab1
----
NULL

query I rowsort
SELECT - 38 * col1 * col2 - + ( - 52 ) FROM tab0
----
-144614
-3710
-7928

query III rowsort
SELECT * FROM tab0 WHERE + - ( + 74 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 93 - - - col2 FROM tab1
----
-3
25
34

onlyif mysql # DIV for integer division: 
query II rowsort label-2199
SELECT col2 DIV + 45 - + - 54 * + col1 + - col0 AS col0, + 72 FROM tab0
----
-41
72
1047
72
4360
72

skipif mysql # not compatible
query II rowsort label-2199
SELECT col2 / + 45 - + - 54 * + col1 + - col0 AS col0, + 72 FROM tab0
----
-41
72
1047
72
4360
72

query I rowsort
SELECT + col2 - + 83 FROM tab1
----
-15
-24
13

query II rowsort
SELECT ALL + + 64 AS col1, + 87 * + col1 FROM tab0 AS cor0
----
64
1827
64
7047
64
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2202
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) * + SUM( - 45 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) * + SUM ( - 45 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2203
SELECT ALL + COUNT( * ) AS col2, - SUM( + col0 ) AS col1 FROM tab0
----
3
-199

skipif mysql # not compatible
query II rowsort label-2203
SELECT ALL + COUNT ( * ) AS col2, - SUM ( + col0 ) AS col1 FROM tab0
----
3
-199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 - + col0 * + col2 BETWEEN + - 45 AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2205
SELECT DISTINCT + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + col2 / + col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT 72 FROM tab1 cor0 WHERE NOT NULL IN ( - col0, - col1, - + 10 + ( - + 89 ), + + 33 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 75 ) col2 FROM tab2
----
75
75
75

query I rowsort
SELECT - ( 12 ) AS col2 FROM tab0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT 54 * SUM( + - 60 ) AS col0 FROM tab0
----
-9720

skipif mysql # not compatible
query I rowsort label-2210
SELECT 54 * SUM ( + - 60 ) AS col0 FROM tab0
----
-9720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT - col2 / - col2 + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2211
SELECT - col2 / - col2 + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT ALL - CAST( + ( - AVG ( + + 66 ) ) AS SIGNED ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL - CAST ( + ( - AVG ( + + 66 ) ) AS INTEGER ) AS col2 FROM tab1 cor0
----
66

query I rowsort
SELECT - + col2 + + ( + + col1 ) * - ( + 75 ) AS col1 FROM tab1 AS cor0
----
-1146
-3593
-434

query I rowsort
SELECT ALL - 24 + 45 - + 18 AS col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT + col0 + + - col2 AS col0 FROM tab2 AS cor0 WHERE 19 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2216
SELECT + col0 + + - col2 AS col0 FROM tab2 AS cor0 WHERE 19 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - ( - 50 ) FROM tab1
----
50
50
50

query I rowsort
SELECT ALL + - 5 FROM tab1 cor0
----
-5
-5
-5

query I rowsort
SELECT - 90 - + 26 AS col0 FROM tab2 AS cor0
----
-116
-116
-116

query II rowsort
SELECT - 94 - - col2 * + + 91 AS col0, + 15 FROM tab1 AS cor0
----
5275
15
6094
15
8642
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col2 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL - SUM( ALL col1 ) * - - 6 * - - COUNT( * ) + + + COUNT( * ) * + + 40 + + COUNT( * ) FROM tab1 cor0
----
-1065

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - SUM ( ALL col1 ) * - - 6 * - - COUNT ( * ) + + + COUNT ( * ) * + + 40 + + COUNT ( * ) FROM tab1 cor0
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT MAX( DISTINCT + col1 ) + + 27 FROM tab1 cor0
----
74

skipif mysql # not compatible
query I rowsort label-2224
SELECT MAX ( DISTINCT + col1 ) + + 27 FROM tab1 cor0
----
74

query I rowsort
SELECT + - 85 * - 94 * + col0 + col0 FROM tab0 AS cor0
----
119865
695217
775127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + - col1 col0 FROM tab0
----
-117
-37
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT 51 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT 51 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT - + MIN( ALL + + col0 ) + 2 + - COUNT( * ) FROM tab1 WHERE 55 <> + + 84
----
-52

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT - + MIN ( ALL + + col0 ) + 2 + - COUNT ( * ) FROM tab1 WHERE 55 <> + + 84
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT DISTINCT COUNT( * ) DIV + MAX( DISTINCT + + col2 ) + - ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT COUNT ( * ) / + MAX ( DISTINCT + + col2 ) + - ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT + COUNT( * ) * + 11 - 38 AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2231
SELECT + COUNT ( * ) * + 11 - 38 AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL - + ( + 81 ) * - col1 FROM tab1 AS cor0
----
1134
3807
405

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
25

query I rowsort
SELECT ALL - - 21 * - - col1 * - ( + 19 ) + - ( - + 55 ) - - col0 - + 72 AS col0 FROM tab2 AS cor0
----
-20320
-26675
-30676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT ALL + col2 * 92 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL + col2 * 92 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT DISTINCT + 45 DIV 62 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + 45 / 62 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2240
SELECT ALL * FROM tab2 WHERE NOT + col2 > + ( - - CAST( - - ( - + col0 ) AS SIGNED ) ) + - CAST( - col0 AS SIGNED ) + 35 + + - col0 + col2 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2240
SELECT ALL * FROM tab2 WHERE NOT + col2 > + ( - - CAST ( - - ( - + col0 ) AS INTEGER ) ) + - CAST ( - col0 AS INTEGER ) + 35 + + - col0 + col2 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 16 AS col2, 11 AS col0 FROM tab1
----
16
11
16
11
16
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + MIN( DISTINCT 5 ) * - ( COUNT( DISTINCT - 55 ) ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2242
SELECT + MIN ( DISTINCT 5 ) * - ( COUNT ( DISTINCT - 55 ) ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT 23 * - ( - - 2 ) AS col0 FROM tab0
----
-46
-46
-46

query I rowsort
SELECT + 27 * + - 34 * - 67 + + 63 AS col1 FROM tab1 AS cor0
----
61569
61569
61569

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2245
SELECT DISTINCT CAST( NULL AS DECIMAL ) / ( + col0 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2245
SELECT DISTINCT CAST ( NULL AS REAL ) / ( + col0 ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query II rowsort
SELECT 2 + col1 AS col2, 82 AS col2 FROM tab2
----
53
82
69
82
79
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + + 68 col1 FROM tab1
----
150
150
150

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - - col2 + + - col1 * 63 <> + ( 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT MAX( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT MAX ( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 32 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - 29 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT SUM( DISTINCT - col2 ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2254
SELECT DISTINCT SUM ( DISTINCT - col2 ) col0 FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT + ( + - col0 ) 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-2255
SELECT + ( + - col0 ) / - col2 col1 FROM tab2
----
1
1
2

query I rowsort
SELECT ALL col1 * + + col0 AS col2 FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT ALL CAST( NULL AS SIGNED ) * - col0 * - - col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2258
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 * - - col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 4 col0 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL - + col2 * + CAST( 89 AS SIGNED ) FROM tab2 cor0
----
-2047
-3560
-5162

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - + col2 * + CAST ( 89 AS INTEGER ) FROM tab2 cor0
----
-2047
-3560
-5162

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 18 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 18 AS col0 FROM tab0 AS cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - col2 col0 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > col1 - - - ( + col1 ) * - - col1 / + col2 + - col2 * - col2 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2265
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT COUNT( * ) * - MIN( DISTINCT col2 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 51 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT COUNT ( * ) * - MIN ( DISTINCT col2 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 51 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 20 + - 14 col2 FROM tab1 cor0
----
11
20
53

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT COUNT( - col1 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2269
SELECT COUNT ( - col1 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col0 + + col0 + - ( - col0 ) AS col2, col1 + + + col0 * + 10 + + 85 + - col2 FROM tab2 AS cor0
----
138
573
192
762
225
844

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + 24 * col0
----

query I rowsort
SELECT col1 * col2 * - col1 AS col0 FROM tab1
----
-1475
-150212
-18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col2 FROM tab2
----
56
56
56

query I rowsort
SELECT + col0 + - + 60 FROM tab2
----
-14
15
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT - col2 + + 55 DIV + 91 AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2275
SELECT - col2 + + 55 / + 91 AS col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE + - 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT + 5 + - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2277
SELECT + 5 + - COUNT ( * ) FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 8, 34 col0 FROM tab0 AS cor0
----
8
34
8
34
8
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 92 * - + col0 col2 FROM tab1 AS cor0
----
4678
7815
8325

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT ALL - + 17 + col0 DIV - col1 AS col0 FROM tab1 cor0
----
-18
-20
-34

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL - + 17 + col0 / - col1 AS col0 FROM tab1 cor0
----
-18
-20
-34

query I rowsort
SELECT ALL - + 22 + 92 * col0 FROM tab1 AS cor0
----
4670
7798
8350

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL + 98 * + COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
891

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + 98 * + COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
891

query II rowsort
SELECT ALL - 6, + 87 AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
-6
87
-6
87
-6
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT SUM( - 19 ) * + COUNT( * ) + 38 FROM tab2
----
-133

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT SUM ( - 19 ) * + COUNT ( * ) + 38 FROM tab2
----
-133

query I rowsort
SELECT col0 + + col0 * - 36 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1610
-2240
-2625

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT - col0 * - + col0 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT - col0 * - + col0 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 27 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col0 * + col2 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT ALL + - 12 AS col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 57 + 40 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + SUM( DISTINCT - + col2 ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2294
SELECT + SUM ( DISTINCT - + col2 ) AS col2 FROM tab0 cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * col2 * - col2 FROM tab0 cor0
----
-33135
-8700
-950697

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + - 92 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 74 * + col0 BETWEEN - col2 * - + col0 / - + 72 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT col2 + - - col0 DIV - - col0 + + col0 FROM tab1 AS cor0
----
145
148
160

skipif mysql # not compatible
query I rowsort label-2299
SELECT col2 + - - col0 / - - col0 + + col0 FROM tab1 AS cor0
----
145
148
160

query II rowsort
SELECT DISTINCT - + col0, + ( - col0 ) - - col2 - 53 AS col2 FROM tab1 AS cor0
----
-51
-8
-85
-79
-91
-76

query I rowsort
SELECT - 50 + + col2 * 13 FROM tab0 AS cor0
----
1237
561
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT + 77 DIV + col0 + + col0 - col1 - + - ( + + col1 ) DIV - col2 - + col2 FROM tab1 AS cor0
----
-24
-58
21

skipif mysql # not compatible
query I rowsort label-2302
SELECT + 77 / + col0 + + col0 - col1 - + - ( + + col1 ) / - col2 - + col2 FROM tab1 AS cor0
----
-24
-58
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL - 84 + - - MIN( ALL - col2 ) AS col0 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL - 84 + - - MIN ( ALL - col2 ) AS col0 FROM tab1
----
-180

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab2 WHERE 3 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - - col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - 1 * - + MAX( ALL - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2306
SELECT - 1 * - + MAX ( ALL - col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT ALL - + 52 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col1 * 5
----

query II rowsort
SELECT 8 * + 47 AS col0, + 13 + col1 AS col1 FROM tab1
----
376
18
376
27
376
60

onlyif mysql # DIV for integer division: 
query II rowsort label-2310
SELECT - ( - col0 ), col0 * 92 DIV + - col1 col0 FROM tab2 AS cor0
----
46
-82
64
-76
75
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2310
SELECT - ( - col0 ), col0 * 92 / + - col1 col0 FROM tab2 AS cor0
----
46
-82
64
-76
75
-102

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT + + col0 DIV - 39 - + col1 AS col0 FROM tab0 AS cor0
----
-23
-3
-81

skipif mysql # not compatible
query I rowsort label-2312
SELECT + + col0 / - 39 - + col1 AS col0 FROM tab0 AS cor0
----
-23
-3
-81

query I rowsort
SELECT DISTINCT + ( col1 ) - - 4 AS col1 FROM tab1
----
18
51
9

query I rowsort
SELECT DISTINCT 61 * ( col0 ) - + col1 AS col0 FROM tab0
----
5286
5916
834

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + + MIN( col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2315
SELECT + + MIN ( col2 ) FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT - - MIN( 51 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2316
SELECT - - MIN ( 51 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, - col1 AS col2 FROM tab0 AS cor0 WHERE 9 <= NULL
----

query I rowsort
SELECT - - col1 * + + 60 FROM tab1 AS cor0
----
2820
300
840

query II rowsort
SELECT ALL 5 AS col2, + 20 FROM tab2
----
5
20
5
20
5
20

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN + ( 1 ) * + + 52 + - col1 AND NULL )
----

query I rowsort
SELECT col1 * - 33 * - - ( - col2 ) * - col2 FROM tab1
----
-4257792
-574365
-7171824

query II rowsort
SELECT col1 AS col0, - 99 AS col0 FROM tab0
----
1
-99
21
-99
81
-99

query II rowsort
SELECT DISTINCT col1 AS col0, - col2 * col2 AS col2 FROM tab0
----
1
-9801
21
-100
81
-2209

query II rowsort
SELECT ALL 46 AS col0, 42 FROM tab2
----
46
42
46
42
46
42

query I rowsort
SELECT + col1 + + - col0 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT col0 * - col1 DIV - col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT col0 * - col1 / - col1 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + col2 * + 97 + - col1 AS col2 FROM tab0
----
4478
949
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - SUM( + 42 ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-2328
SELECT - SUM ( + 42 ) FROM tab1
----
-126

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 52 IS NOT NULL
----

query II rowsort
SELECT 1 * + col2 AS col1, + col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT + ( - ( 99 ) ) AS col0 FROM tab1
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT CAST( + col1 AS SIGNED ) * - ( + col2 ) * - 12 AS col2 FROM tab2
----
14076
36960
46632

skipif mysql # not compatible
query I rowsort label-2332
SELECT CAST ( + col1 AS INTEGER ) * - ( + col2 ) * - 12 AS col2 FROM tab2
----
14076
36960
46632

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT DISTINCT + - 90 * COUNT( * ) + + MAX( col1 ) FROM tab2 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + - 90 * COUNT ( * ) + + MAX ( col1 ) FROM tab2 AS cor0
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT COUNT( ALL 51 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT COUNT ( ALL 51 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2335
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / col1 > CAST( + col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2335
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / col1 > CAST ( + col2 AS REAL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2336
SELECT DISTINCT - col2 * + 16 AS col0, - col2 DIV + 64 + - + col1 * - 56 AS col0 FROM tab2 AS cor0
----
-368
2856
-640
4312
-928
3752

skipif mysql # not compatible
query II rowsort label-2336
SELECT DISTINCT - col2 * + 16 AS col0, - col2 / + 64 + - + col1 * - 56 AS col0 FROM tab2 AS cor0
----
-368
2856
-640
4312
-928
3752

query I rowsort
SELECT DISTINCT + 43 * + col1 + - col0 FROM tab1 cor0
----
130
1930
551

query I rowsort
SELECT DISTINCT 0 + - + col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL + + 60 + + COUNT( * ) * 60 AS col2 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + + 60 + + COUNT ( * ) * 60 AS col2 FROM tab0 AS cor0
----
240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2340
SELECT CAST( NULL AS DECIMAL ) + - col1 * - col2 - - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT CAST ( NULL AS REAL ) + - col1 * - col2 - - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT COUNT( * ) * - MIN( + - col2 ) + - - 60 AS col2 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-2341
SELECT COUNT ( * ) * - MIN ( + - col2 ) + - - 60 AS col2 FROM tab2
----
234

query I rowsort
SELECT DISTINCT col2 + - ( + + col1 ) + + + col1 FROM tab1
----
59
68
96

query II rowsort
SELECT DISTINCT 68 AS col2, 55 FROM tab0
----
68
55

query I rowsort
SELECT 22 * + - 48 + + col2 * - col2 AS col0 FROM tab1
----
-10272
-4537
-5680

query I rowsort
SELECT + 94 + - + col2 * + - ( - + ( - 23 ) ) AS col2 FROM tab1
----
1451
1658
2302

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL - COUNT( * ) + - + 98 FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - COUNT ( * ) + - + 98 FROM tab2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT + - col1 DIV 19 + col0 AS col1 FROM tab1 AS cor0
----
51
85
89

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + - col1 / 19 + col0 AS col1 FROM tab1 AS cor0
----
51
85
89

query I rowsort
SELECT ALL 77 * - + col0 - + + 8 FROM tab1
----
-3935
-6553
-7015

query I rowsort
SELECT + ( 94 ) AS col0 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL 75 FROM tab0 AS cor0 WHERE NOT + 28 + col0 * - - col0 * + col1 IS NULL
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT DISTINCT + + col0 * + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + + col0 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL 91 * - + COUNT( * ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL 91 * - + COUNT ( * ) FROM tab0 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + + SUM( ALL - - col1 ) col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2353
SELECT + + SUM ( ALL - - col1 ) col2 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT + + 5 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2354
SELECT + + 5 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - + COUNT( * ) * 8 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2355
SELECT - + COUNT ( * ) * 8 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT - 80 * 71 + - + COUNT( * ) FROM tab1 AS cor0
----
-5683

skipif mysql # not compatible
query I rowsort label-2356
SELECT - 80 * 71 + - + COUNT ( * ) FROM tab1 AS cor0
----
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL - MIN( + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - MIN ( + col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NULL <> + + col1
----
0

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NULL <> + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT MIN( - 53 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-2359
SELECT MIN ( - 53 ) FROM tab1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2360
SELECT + MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT + COUNT( DISTINCT - 60 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + COUNT ( DISTINCT - 60 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT - 67 DIV - ( - - col1 ) + - + col1 + + ( + + col1 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2362
SELECT - 67 / - ( - - col1 ) + - + col1 + + ( + + col1 ) FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT CAST( col2 AS SIGNED ) + - col0 AS col0 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-2363
SELECT CAST ( col2 AS INTEGER ) + - col0 AS col0 FROM tab0
----
-77
2
32

query II rowsort
SELECT DISTINCT + 73, - 14 + - - 87 AS col1 FROM tab1 AS cor0
----
73
73

query I rowsort
SELECT DISTINCT - col2 + - 9 + col2 AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2367
SELECT CAST( NULL AS DECIMAL ) + + 66 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT CAST ( NULL AS REAL ) + + 66 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 76 FROM tab2 AS cor0
----
-1
-12
-30

query II rowsort
SELECT ALL - + col0, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE + col0 + + col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col0 + + 50 FROM tab0
----
-37
-47
35

query I rowsort
SELECT + col2 - - 56 FROM tab1
----
115
124
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT col0 - - + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT col0 - - + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab1 cor0
----
76
76
76

query II rowsort
SELECT + 26, col1 FROM tab2
----
26
51
26
67
26
77

query I rowsort
SELECT - col2 * - 85 + - col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT - col0 DIV + - ( col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2378
SELECT - col0 / + - ( col0 ) FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2379
SELECT col1, col1 DIV + col0 AS col0 FROM tab0
----
1
0
21
0
81
5

skipif mysql # not compatible
query II rowsort label-2379
SELECT col1, col1 / + col0 AS col0 FROM tab0
----
1
0
21
0
81
5

query I rowsort
SELECT DISTINCT + + col0 * - 99 AS col2 FROM tab2 AS cor0
----
-4554
-6336
-7425

query I rowsort
SELECT + + col1 + + + 26 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT ALL + col1 DIV - col1 - - 46 FROM tab1 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL + col1 / - col1 - - 46 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL + col0 * 20 FROM tab2 AS cor0
----
1280
1500
920

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 66 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 69 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) + + col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) + + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT + col1 * + 23 FROM tab1
----
1081
115
322

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + 56 - - col1 + + 84 + + 67 IS NOT NULL
----

query I rowsort
SELECT 29 * + - 15 AS col0 FROM tab2
----
-435
-435
-435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT + SUM( - col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT + SUM ( - col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT - col2 DIV + col1 * - 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2391
SELECT - col2 / + col1 * - 76 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT MIN( DISTINCT - + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2392
SELECT MIN ( DISTINCT - + col2 ) FROM tab1
----
-96

query I rowsort
SELECT ALL + col0 * - col0 * - col2 FROM tab2
----
163840
326250
48668

onlyif mysql # DIV for integer division: 
query II rowsort label-2394
SELECT ALL 0 DIV col1, + col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-2394
SELECT ALL 0 / col1, + col2 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT 78 * - col0 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2396
SELECT ALL - + 98 + + + ( - 33 ) * - CAST( + - col0 AS SIGNED ) * + + col1 AS col0 FROM tab2 AS cor0
----
-162722
-165923
-77516

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - + 98 + + + ( - 33 ) * - CAST ( + - col0 AS INTEGER ) * + + col1 AS col0 FROM tab2 AS cor0
----
-162722
-165923
-77516

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT + 15 + - col0 DIV + - col0 - col0 FROM tab1 AS cor0
----
-35
-69
-75

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 15 + - col0 / + - col0 - col0 FROM tab1 AS cor0
----
-35
-69
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * - ( + + col0 ) + - col0 * + + col0 col2 FROM tab2 AS cor0
----
-3496
-6016
-7875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2399
SELECT ALL ( - col0 ), - col0 + - 82 col0 FROM tab1 AS cor0 WHERE NOT - CAST( - 7 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2399
SELECT ALL ( - col0 ), - col0 + - 82 col0 FROM tab1 AS cor0 WHERE NOT - CAST ( - 7 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE + 40 NOT IN ( + 46, + col1, + + 73 * - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-2400
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE + 40 NOT IN ( + 46, + col1, + + 73 * - col1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT COUNT( 51 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT COUNT ( 51 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + col0 ) + 40 FROM tab0 AS cor0
----
-47
-57
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 98 - + col1 + + col1 * + + 78 FROM tab1 AS cor0
----
1176
3717
483

query I rowsort
SELECT DISTINCT - col0 * - - col0 + 64 FROM tab1 AS cor0
----
-2537
-7161
-8217

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2406
SELECT - col2 / CAST( NULL AS DECIMAL ) + + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT - col2 / CAST ( NULL AS REAL ) + + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 95 * - col0 + col0 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - 66 + - SUM( DISTINCT + - 32 ) col2 FROM tab1
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2408
SELECT - 66 + - SUM ( DISTINCT + - 32 ) col2 FROM tab1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT + col1 + ( + col1 ) DIV col2 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-2409
SELECT + col1 + ( + col1 ) / col2 FROM tab2
----
53
68
78

query I rowsort
SELECT ALL - col1 + + + col0 * col1 FROM tab2
----
2295
4851
4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT DISTINCT col1 * + - col1 * - col1 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT col1 * + - col1 * - col1 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2412
SELECT - col0 AS col1 FROM tab1 WHERE NULL BETWEEN + + 46 * + col1 + + CAST( NULL AS SIGNED ) AND - + 10
----

skipif mysql # not compatible
query I rowsort label-2412
SELECT - col0 AS col1 FROM tab1 WHERE NULL BETWEEN + + 46 * + col1 + + CAST ( NULL AS INTEGER ) AND - + 10
----

query III rowsort
SELECT * FROM tab1 WHERE ( 79 ) NOT BETWEEN col0 AND NULL
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - col2 < - + 62 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT + MAX( DISTINCT + 13 ) AS col0, 40 FROM tab2 AS cor0
----
13
40

skipif mysql # not compatible
query II rowsort label-2415
SELECT + MAX ( DISTINCT + 13 ) AS col0, 40 FROM tab2 AS cor0
----
13
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT ALL + MIN( - col2 ) DIV - - COUNT( * ) AS col2 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + MIN ( - col2 ) / - - COUNT ( * ) AS col2 FROM tab2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT - col2 DIV col2 * col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2417
SELECT - col2 / col2 * col1 FROM tab2
----
-51
-67
-77

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----

query II rowsort
SELECT ALL - ( col1 ) AS col1, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT - COUNT( * ) * + SUM( DISTINCT 76 ) col1 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2420
SELECT - COUNT ( * ) * + SUM ( DISTINCT 76 ) col1 FROM tab0 AS cor0
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - 52 * - 31 * - - 82 AS col2 FROM tab1
----
132184
132184
132184

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2423
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + 73 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + CAST ( NULL AS REAL ) / + 73 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2424
SELECT - COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * + 8 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT ( + ( + ( 60 ) ) ) * COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT ( + ( + ( 60 ) ) ) * COUNT ( * ) FROM tab1
----
180

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN NULL AND 80 + + 1 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT 65 * col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT 65 * col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 95 * col0 + ( - ( col0 ) ) AS col2 FROM tab0
----
1410
8178
9118

query I rowsort
SELECT 98 * col1 AS col1 FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT COUNT( * ) + - COUNT( * ) * - 31 AS col2 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-2431
SELECT COUNT ( * ) + - COUNT ( * ) * - 31 AS col2 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT COUNT( * ) + + MIN( 44 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2432
SELECT COUNT ( * ) + + MIN ( 44 ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL IN ( + 7 )
----

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL IN ( + 7 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL ( - col1 ) DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL ( - col1 ) / col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT COUNT( * ) + + 97 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-2435
SELECT COUNT ( * ) + + 97 FROM tab2
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2436
SELECT - col1 * + col2 - - 92 * + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2436
SELECT - col1 * + col2 - - 92 * + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 95 + + col2 FROM tab2
----
118
135
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 / + col0 + col1 = col0 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 22 + + col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( 54 ) AS col0 FROM tab1
----
54
54
54

query I rowsort
SELECT ALL col1 * + 45 AS col1 FROM tab2
----
2295
3015
3465

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 - col2 ) >= + 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT - 38 DIV - 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT - 38 / - 67 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT 88 DIV col1 FROM tab0
----
1
4
88

skipif mysql # not compatible
query I rowsort label-2445
SELECT 88 / col1 FROM tab0
----
1
4
88

query I rowsort
SELECT ALL col2 + - 26 * + 91 AS col2 FROM tab1 WHERE - 96 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 + col0 ) IS NULL
----

query I rowsort
SELECT + col0 * - 25 - + 0 AS col0 FROM tab0
----
-2175
-2425
-375

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT col2 DIV 8 AS col0 FROM tab2
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2449
SELECT col2 / 8 AS col0 FROM tab2
----
2
5
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 60 )
----

query I rowsort
SELECT DISTINCT + 31 + col1 AS col2 FROM tab1 AS cor0 WHERE NULL >= - ( 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT 23 + + 52 DIV + 4 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif mysql # not compatible
query I rowsort label-2452
SELECT 23 + + 52 / + 4 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2453
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * - MIN( - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * - MIN ( - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 * - col0 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 18 * ( col0 * + col1 ) AS col0 FROM tab0 AS cor0
----
-1746
-21870
-32886

query I rowsort
SELECT ALL - - 88 * + 2 FROM tab0 AS cor0
----
176
176
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL - ( COUNT( DISTINCT col2 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - ( COUNT ( DISTINCT col2 ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 84 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - COUNT( * ) * + 87 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT - COUNT ( * ) * + 87 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 - + 22 <= + col0 * ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT + 13 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + 13 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 78 AS col0 FROM tab1 WHERE ( 58 * col0 ) NOT BETWEEN ( - col1 / col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT - ( - - CAST( col2 AS SIGNED ) ) * - 69 col2 FROM tab2
----
1587
2760
4002

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2464
SELECT - ( - - CAST ( col2 AS INTEGER ) ) * - 69 col2 FROM tab2
----
1587
2760
4002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 * 76 col1 FROM tab2
----
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT COUNT( ALL col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2466
SELECT COUNT ( ALL col2 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE + col2 - + 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + + ( - col0 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL OR col0 * col0 >= - ( 45 )
----
51
85
91

query I rowsort
SELECT DISTINCT ( + 16 ) FROM tab1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2471
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( - SUM( DISTINCT + col0 ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - SUM ( DISTINCT + col0 ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + + + 55 + + 60 * col1 AS col0 FROM tab1 AS cor0
----
2922
360
909

query I rowsort
SELECT ALL + col2 / col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT ALL + + col1 + + - 86 + - 71 FROM tab1 AS cor0
----
-110
-143
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT + + 52 + - SUM( col2 ) AS col1 FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT + + 52 + - SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
-104

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 54 ) BETWEEN ( col0 * 25 ) AND + 6 * + col0
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL + COUNT( * ) + - 32 AS col2 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + COUNT ( * ) + - 32 AS col2 FROM tab0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + - col2 col1 FROM tab1
----
110
115
64

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 65 NOT IN ( + 39 )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( + col0 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + + 1 ) AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2483
SELECT * FROM tab0 cor0 WHERE NULL > CAST( NULL AS SIGNED ) * + col1 + 83
----

skipif mysql # not compatible
query III rowsort label-2483
SELECT * FROM tab0 cor0 WHERE NULL > CAST ( NULL AS INTEGER ) * + col1 + 83
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IN ( 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL - 85 + MAX( + ( - col2 ) ) FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL - 85 + MAX ( + ( - col2 ) ) FROM tab2 AS cor0
----
-108

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 49 + col1 NOT IN ( col1 )
----

query I rowsort
SELECT + + col2 + - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 16 * col2 - - 37 AS col2 FROM tab2 AS cor0
----
405
677
965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT DISTINCT COUNT( + + 71 ) * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT COUNT ( + + 71 ) * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 * - ( - col1 ) NOT BETWEEN + ( col0 ) AND col1
----

query I rowsort
SELECT + 5 * + 30 AS col1 FROM tab1
----
150
150
150

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE - 92 >= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL ( + - COUNT( + 97 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL ( + - COUNT ( + 97 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + COUNT( * ) * - AVG ( 79 ) FROM tab0 WHERE NOT - col0 * - ( + 76 ) * - 71 + 86 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT + COUNT ( * ) * - AVG ( 79 ) FROM tab0 WHERE NOT - col0 * - ( + 76 ) * - 71 + 86 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - col0 + - 60 / - col1 * - col2 NOT BETWEEN NULL AND + col1 / col2 + 17
----

query I rowsort
SELECT col2 * + col0 AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + - 50 * 18 + - col2 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col0 FROM tab1 cor0
----
-44

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 96 * + 86 < + col1 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 42 FROM tab0 cor0 WHERE NULL NOT IN ( col1 * - col2 )
----

query II rowsort
SELECT DISTINCT + 71 AS col2, 70 FROM tab2
----
71
70

query I rowsort
SELECT DISTINCT - - 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT + SUM( ALL + 98 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
882

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT + SUM ( ALL + 98 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT - SUM( ALL col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT - SUM ( ALL col0 ) AS col1 FROM tab0 cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT ALL col2 FROM tab0 cor0 WHERE NOT col2 IN ( - CAST( NULL AS SIGNED ) * + - ( col1 ) + col2 )
----

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL col2 FROM tab0 cor0 WHERE NOT col2 IN ( - CAST ( NULL AS INTEGER ) * + - ( col1 ) + col2 )
----

query I rowsort
SELECT - col1 + - col1 + col0 AS col2 FROM tab2 AS cor0
----
-56
-59
-90

query I rowsort
SELECT + col1 + - 9 + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1339
-299
-3158

query I rowsort
SELECT + - 47 + col2 AS col2 FROM tab0 cor0
----
-37
0
52

query I rowsort
SELECT - + col2 + 16 FROM tab2 AS cor0
----
-24
-42
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2513
SELECT ALL col1 AS col2, CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-2513
SELECT ALL col1 AS col2, CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 + 12 * col1 col1 FROM tab1 cor0
----
162
54
558

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT - 9 + - + COUNT( * ) AS col0 FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2515
SELECT - 9 + - + COUNT ( * ) AS col0 FROM tab0 cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL - SUM( col1 ) + ( - - 16 ) AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - SUM ( col1 ) + ( - - 16 ) AS col0 FROM tab0 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2517
SELECT - CAST( - col2 AS SIGNED ) * + 30 + col2 AS col0, col1 * - + col0 FROM tab2
----
1240
-4928
1798
-5025
713
-2346

skipif mysql # not compatible
query II rowsort label-2517
SELECT - CAST ( - col2 AS INTEGER ) * + 30 + col2 AS col0, col1 * - + col0 FROM tab2
----
1240
-4928
1798
-5025
713
-2346

query I rowsort
SELECT ALL - 48 AS col1 FROM tab2 WHERE + 48 = + 16
----

query II rowsort
SELECT col1, 49 * + + 81 FROM tab0
----
1
3969
21
3969
81
3969

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL - + ( - - COUNT( * ) ) AS col1 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - + ( - - COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT + COUNT( ( + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT + COUNT ( ( + col2 ) ) FROM tab0
----
3

query I rowsort
SELECT + col1 * - + col1 * - + col1 FROM tab0
----
1
531441
9261

query I rowsort
SELECT DISTINCT - col1 - - - ( 53 ) FROM tab2 WHERE NOT ( NULL ) BETWEEN + col2 * - 75 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2525
SELECT + COUNT( * ) DIV 62 * - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT + COUNT ( * ) / 62 * - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2526
SELECT SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 65 / - - col0 ) NOT IN ( 84 + - + 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col1 * - 13 col2 FROM tab0 AS cor0
----
-1287
-2730
-49491

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 19 ) NOT BETWEEN NULL AND 52
----

query III rowsort
SELECT * FROM tab2 WHERE ( + + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2532
SELECT - CAST( 53 AS SIGNED ) AS col1, col2 AS col2 FROM tab2
----
-53
23
-53
40
-53
58

skipif mysql # not compatible
query II rowsort label-2532
SELECT - CAST ( 53 AS INTEGER ) AS col1, col2 AS col2 FROM tab2
----
-53
23
-53
40
-53
58

query I rowsort
SELECT ALL - ( col2 ) - - + col1 AS col2 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 * 37, col0 FROM tab0 AS cor0
----
1739
15
3663
97
370
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 45 ) <= col1
----
51
14
96
85
5
59

query II rowsort
SELECT DISTINCT - + 25 * + col0 AS col1, - col2 FROM tab1 AS cor0
----
-1275
-96
-2125
-59
-2275
-68

query I rowsort
SELECT ALL - col2 * col0 * + col2 FROM tab0 cor0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT 87 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) / ( col0 ) * - col2 * + + CAST( NULL AS SIGNED ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2539
SELECT 87 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) / ( col0 ) * - col2 * + + CAST ( NULL AS INTEGER ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT ALL - col1 DIV - col0 AS col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - col1 / - col0 AS col0 FROM tab2 cor0
----
0
1
1

query I rowsort
SELECT + - col1 + + + 83 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <> + + 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 82 * - col0 FROM tab2
----
-3772
-5248
-6150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * col2 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT + 57 DIV + ( - + col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 57 / + ( - + col2 ) FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( col0 ) + 37 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2548
SELECT DISTINCT COUNT( * ) DIV - 62 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT COUNT ( * ) / - 62 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) > col1 + - col1
----

query II rowsort
SELECT - col1 AS col0, + 9 FROM tab1 AS cor0
----
-14
9
-47
9
-5
9

query I rowsort
SELECT + 50 + col0 FROM tab2 AS cor0 WHERE NOT ( col2 + + col2 ) IN ( - col2 )
----
114
125
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2552
SELECT ALL + COUNT( DISTINCT + col1 ) col1, COUNT( * ) AS col2 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2552
SELECT ALL + COUNT ( DISTINCT + col1 ) col1, COUNT ( * ) AS col2 FROM tab1 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - col0 + + 38 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2554
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 + + 38 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - - 95 - - + col1 col1 FROM tab2 AS cor0
----
100
108
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col0 FROM tab2 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 37 col2 FROM tab1
----
14
48
54

query I rowsort
SELECT col0 + + 22 * col1 FROM tab2
----
1168
1549
1758

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT ALL 28 + + - 26 DIV + col1 + + col0 AS col1 FROM tab0
----
114
43
99

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL 28 + + - 26 / + col1 + + col0 AS col1 FROM tab0
----
114
43
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - SUM( DISTINCT - ( - - col0 ) ) + + + COUNT( * ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-2560
SELECT - SUM ( DISTINCT - ( - - col0 ) ) + + + COUNT ( * ) FROM tab2
----
188

query I rowsort
SELECT ALL col1 + col2 + - col0 + + 12 FROM tab2
----
40
62
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT + 81 + - + col2 DIV col2 AS col2 FROM tab2
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2562
SELECT + 81 + - + col2 / col2 AS col2 FROM tab2
----
80
80
80

query I rowsort
SELECT col1 + col0 * + 67 + + - 6 AS col1 FROM tab2
----
3127
4359
5086

query I rowsort
SELECT DISTINCT + ( - - col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + col1 * + + col2 + + 22 FROM tab2 AS cor0
----
1195
3102
3908

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 64 - + 28 AS col2 FROM tab0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT ALL 17 * col1 - + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL 17 * col1 - + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT - col2 AS col2 FROM tab2 WHERE NOT - - CAST( col0 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2569
SELECT - col2 AS col2 FROM tab2 WHERE NOT - - CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT MIN( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT MIN ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2572
SELECT + CAST( NULL AS DECIMAL ) + + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT + CAST ( NULL AS REAL ) + + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2573
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - ( col1 ) - - col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2573
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - ( col1 ) - - col1, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT + 55 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < - 87
----

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT + 55 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < - 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15 AS col1, + col2 * + col0 col1 FROM tab0 AS cor0
----
15
705
15
870
15
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 79 AND + ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 79 AND + ( - col2 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2577
SELECT + COUNT( * ) DIV COUNT( * ) + 85 AS col2 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2577
SELECT + COUNT ( * ) / COUNT ( * ) + 85 AS col2 FROM tab2 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-2578
SELECT - col1 DIV 70, 76 AS col0 FROM tab1
----
0
76
0
76
0
76

skipif mysql # not compatible
query II rowsort label-2578
SELECT - col1 / 70, 76 AS col0 FROM tab1
----
0
76
0
76
0
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2579
SELECT ( + CAST( NULL AS DECIMAL ) ) * col1 - col2 FROM tab1 WHERE NOT col1 * + col0 * + + 11 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2579
SELECT ( + CAST ( NULL AS REAL ) ) * col1 - col2 FROM tab1 WHERE NOT col1 * + col0 * + + 11 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2580
SELECT + COUNT( + CAST( col2 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2580
SELECT + COUNT ( + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2581
SELECT - CAST( NULL AS SIGNED ) * - + 62 col1, col1 * - 79 * - 61 * col2 FROM tab2 AS cor0
----
NULL
14842520
NULL
18726634
NULL
5652687

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2581
SELECT - CAST ( NULL AS INTEGER ) * - + 62 col1, col1 * - 79 * - 61 * col2 FROM tab2 AS cor0
----
NULL
14842520
NULL
18726634
NULL
5652687

query II rowsort
SELECT DISTINCT + col1 + + col1 AS col2, - 74 AS col2 FROM tab1 AS cor0
----
10
-74
28
-74
94
-74

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 NOT BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + - COUNT( * ) + + 2 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2585
SELECT + - COUNT ( * ) + + 2 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT - - ( + + SUM( ALL + + col0 ) ) + + - 7 FROM tab2 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-2587
SELECT - - ( + + SUM ( ALL + + col0 ) ) + + - 7 FROM tab2 AS cor0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL MAX( ALL ( col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL MAX ( ALL ( col1 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT col1 * - + col1 * ( + 61 ) AS col0 FROM tab0 AS cor0 WHERE col1 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT + + col1 * + 36 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT + + col1 * + 36 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - + 11 * - col1 + + col1 + 43 AS col2 FROM tab0 AS cor0
----
-1045
-2246
-41753

onlyif mysql # DIV for integer division: 
query II rowsort label-2592
SELECT col1 DIV col0 + 16, - col0 AS col1 FROM tab2 AS cor0
----
16
-75
17
-46
17
-64

skipif mysql # not compatible
query II rowsort label-2592
SELECT col1 / col0 + 16, - col0 AS col1 FROM tab2 AS cor0
----
16
-75
17
-46
17
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL + SUM( ALL col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2593
SELECT ALL + SUM ( ALL col0 ) col1 FROM tab0 AS cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 17 * + col0 + + col1 <= NULL
----

query I rowsort
SELECT DISTINCT - 48 + - col2 AS col2 FROM tab0 cor0
----
-147
-58
-95

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - - col1 * ( col0 ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2597
SELECT ALL + + 58 DIV + COUNT( * ) + + 55 FROM tab0 WHERE col1 >= + - CAST( + col2 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + + 58 / + COUNT ( * ) + + 55 FROM tab0 WHERE col1 >= + - CAST ( + col2 AS INTEGER )
----
74

query III rowsort
SELECT ALL * FROM tab0 WHERE - 61 IS NULL
----

query II rowsort
SELECT + col2, col0 * + - col1 * col0 AS col1 FROM tab2 WHERE NULL >= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL - COUNT( - - col0 ) + - 59 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - COUNT ( - - col0 ) + - 59 FROM tab0
----
-62

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 46 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - COUNT( - col1 ) - - SUM( + - 76 ) FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-2602
SELECT - COUNT ( - col1 ) - - SUM ( + - 76 ) FROM tab2 cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT 32 - - MAX( - - col0 ) AS col1 FROM tab2 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-2603
SELECT 32 - - MAX ( - - col0 ) AS col1 FROM tab2 AS cor0
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2604
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( CAST( + col1 AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-2604
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( CAST ( + col1 AS INTEGER ), col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 93 col1 FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT DISTINCT - - AVG ( ALL CAST( NULL AS SIGNED ) ) + + AVG ( DISTINCT - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - - AVG ( ALL CAST ( NULL AS INTEGER ) ) + + AVG ( DISTINCT - col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * col1 + - - ( col0 ) FROM tab2 AS cor0
----
2647
4564
5993

onlyif mysql # DIV for integer division: 
query II rowsort label-2608
SELECT ALL + col1 AS col1, + col0 DIV col2 - 81 FROM tab1 AS cor0
----
14
-81
47
-80
5
-80

skipif mysql # not compatible
query II rowsort label-2608
SELECT ALL + col1 AS col1, + col0 / col2 - 81 FROM tab1 AS cor0
----
14
-81
47
-80
5
-80

query II rowsort
SELECT - 49 AS col0, col0 * + + col0 FROM tab0 AS cor0
----
-49
225
-49
7569
-49
9409

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2611
SELECT DISTINCT - 33 col2, CAST( + + 2 AS SIGNED ) + + - col0 * - + col1 FROM tab0 cor0
----
-33
1217
-33
1829
-33
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2611
SELECT DISTINCT - 33 col2, CAST ( + + 2 AS INTEGER ) + + - col0 * - + col1 FROM tab0 cor0
----
-33
1217
-33
1829
-33
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT DISTINCT - MIN( DISTINCT + - 85 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - MIN ( DISTINCT + - 85 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 <> ( NULL )
----
NULL

query I rowsort
SELECT col2 * 55 * - - 9 + + col1 + + col1 * + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
29235
35916
47730

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL COUNT( ALL - - 83 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL COUNT ( ALL - - 83 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT ( - col1 ) DIV - col2 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2615
SELECT ( - col1 ) / - col2 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT ( col1 ) * - + col2 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
-27

query II rowsort
SELECT col1 AS col0, 4 AS col1 FROM tab0
----
1
4
21
4
81
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - 71, + col2 col1 FROM tab1
----
-3621
96
-6035
59
-6461
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL - MAX( + ( + col2 ) ) * + COUNT( * ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL - MAX ( + ( + col2 ) ) * + COUNT ( * ) AS col0 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + COUNT( ALL + col0 ) * + - 50 AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2621
SELECT + COUNT ( ALL + col0 ) * + - 50 AS col0 FROM tab0
----
-150

query I rowsort
SELECT DISTINCT + + 55 * + + col0 + + + col2 AS col2 FROM tab1 AS cor0
----
2901
4734
5073

query I rowsort
SELECT ALL + ( - 71 ) AS col2 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2624
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col2 * + CAST( NULL AS SIGNED ) / - col0 )
----

skipif mysql # not compatible
query III rowsort label-2624
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col2 * + CAST ( NULL AS INTEGER ) / - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT col1 * + 5 + col2 DIV 88 FROM tab1 AS cor0
----
235
25
71

skipif mysql # not compatible
query I rowsort label-2625
SELECT col1 * + 5 + col2 / 88 FROM tab1 AS cor0
----
235
25
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + + MIN( ALL - 31 ) + + 16 AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2626
SELECT + + MIN ( ALL - 31 ) + + 16 AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + col2 + + col2 + col1 - col2 * 7 FROM tab2
----
-123
-223
-64

query I rowsort
SELECT + ( - - col0 ) * + col0 * - ( col0 ) + - col1 FROM tab1
----
-132665
-614130
-753618

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2629
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-2629
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, - col0 + - col0 * + col1 * - col1 + + + col1 col2 FROM tab2 cor0 WHERE NULL IS NULL
----
51
119651
67
336667
77
379469

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 88 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 88 IS NULL
----
3

query I rowsort
SELECT ALL ( + 85 ) * - col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT - ( + MAX( - 23 ) ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - ( + MAX ( - 23 ) ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT - 80 + col0 FROM tab1 AS cor0
----
-29
11
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2635
SELECT DISTINCT - 66 + + + COUNT( * ) AS col2, + 89 AS col2 FROM tab1 AS cor0
----
-63
89

skipif mysql # not compatible
query II rowsort label-2635
SELECT DISTINCT - 66 + + + COUNT ( * ) AS col2, + 89 AS col2 FROM tab1 AS cor0
----
-63
89

query I rowsort
SELECT col2 * - col0 - + col0 * + 52 FROM tab0 cor0
----
-14647
-1485
-5394

onlyif mysql # DIV for integer division: 
query I rowsort label-2637
SELECT DISTINCT + col2 + 46 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
113
136
94

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + col2 + 46 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
113
136
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN col2 AND NULL AND NOT - col1 * + - col0 + + 14 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - COUNT( * ) + - ( COUNT( * ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2639
SELECT - COUNT ( * ) + - ( COUNT ( * ) ) FROM tab1
----
-6

query I rowsort
SELECT ALL + col0 + 8 FROM tab0
----
105
23
95

query I rowsort
SELECT ALL col2 * ( col1 ) - - 51 + ( col2 ) AS col1 FROM tab1
----
1491
3315
405

query I rowsort
SELECT ALL + 37 + - col2 * 78 FROM tab0
----
-3629
-743
-7685

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT - MIN( + + ( col1 ) ) * - MAX( + + col0 ) AS col1 FROM tab2 AS cor0
----
3825

skipif mysql # not compatible
query I rowsort label-2643
SELECT - MIN ( + + ( col1 ) ) * - MAX ( + + col0 ) AS col1 FROM tab2 AS cor0
----
3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT + 31 + + CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 = 81 + + - ( col0 ) + + col1 * - 60
----
-50
10
30

skipif mysql # not compatible
query I rowsort label-2644
SELECT + 31 + + CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 = 81 + + - ( col0 ) + + col1 * - 60
----
-50
10
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2645
SELECT col0, - CAST( - + 2 AS SIGNED ) AS col2 FROM tab1 cor0
----
51
2
85
2
91
2

skipif mysql # not compatible
query II rowsort label-2645
SELECT col0, - CAST ( - + 2 AS INTEGER ) AS col2 FROM tab1 cor0
----
51
2
85
2
91
2

query I rowsort
SELECT + col0 * - 25 AS col1 FROM tab0
----
-2175
-2425
-375

query I rowsort
SELECT ALL ( - 82 ) AS col1 FROM tab2
----
-82
-82
-82

query I rowsort
SELECT 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - COUNT( + - col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2649
SELECT - COUNT ( + - col1 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT + - SUM( ALL 3 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2650
SELECT + - SUM ( ALL 3 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - + SUM( DISTINCT + 94 ) AS col0 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2651
SELECT - + SUM ( DISTINCT + 94 ) AS col0 FROM tab1 AS cor0
----
-94

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) > - col0 / col0 + + col2
----

query I rowsort
SELECT ALL col1 * + + 17 FROM tab1
----
238
799
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT - col1 DIV 26 * col1 AS col0 FROM tab2
----
-134
-154
-51

skipif mysql # not compatible
query I rowsort label-2654
SELECT - col1 / 26 * col1 AS col0 FROM tab2
----
-134
-154
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 * - - 81 col2 FROM tab1
----
2511
2511
2511

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT ( - 37 ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT - COUNT( DISTINCT 7 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2657
SELECT - COUNT ( DISTINCT 7 ) FROM tab0
----
-1

query I rowsort
SELECT ALL - col2 * - + 84 + col2 + + 34 AS col2 FROM tab2 AS cor0
----
1989
3434
4964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT CAST( col2 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
23

query I rowsort
SELECT DISTINCT - + col1 * + - 47 FROM tab1 AS cor0
----
2209
235
658

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= + col0
----

query I rowsort
SELECT - + col2 * - ( ( + col0 ) ) FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - col0 * - 32 FROM tab1 AS cor0
----
1632
2720
2912

query I rowsort
SELECT + ( col0 ) FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2668
SELECT DISTINCT * FROM tab1 cor0 WHERE 88 * - 50 * 52 * CAST( NULL AS SIGNED ) * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2668
SELECT DISTINCT * FROM tab1 cor0 WHERE 88 * - 50 * 52 * CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * 79 FROM tab2 WHERE + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT - ( 50 ) + col2 FROM tab0
----
-3
-40
49

query I rowsort
SELECT DISTINCT col1 - + 10 FROM tab2
----
41
57
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT col2 - + CAST( - - ( - ( col1 ) ) AS SIGNED ) AS col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2673
SELECT col2 - + CAST ( - - ( - ( col1 ) ) AS INTEGER ) AS col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT + CAST( 7 AS SIGNED ) - col1 col0 FROM tab2
----
-44
-60
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2674
SELECT + CAST ( 7 AS INTEGER ) - col1 col0 FROM tab2
----
-44
-60
-70

query I rowsort
SELECT DISTINCT + 96 - 35 + - + 78 AS col0 FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL + MIN( ALL + + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL + MIN ( ALL + + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - 40 AS col0 FROM tab0 cor0
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT - + col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2678
SELECT - + col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2679
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) BETWEEN NULL AND NULL ) )
----

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT ( ( ( NULL ) BETWEEN NULL AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT + - SUM( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2681
SELECT + - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
223

query II rowsort
SELECT DISTINCT - col0 * + + col0 * - - col0 AS col1, - col0 AS col1 FROM tab0 AS cor0
----
-3375
-15
-658503
-87
-912673
-97

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE 77 * - + col0 NOT BETWEEN - 75 AND NULL
----
10
47
99

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 <> - col1 * col0
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2686
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( - col0 AS SIGNED ) <> - 43
----

skipif mysql # not compatible
query III rowsort label-2686
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) <> - 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * col1 col1 FROM tab1
----
-1692
-180
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT CAST( 28 AS SIGNED ) * + col2 * + col0 * - - col1 AS col1 FROM tab2
----
1510824
5519360
8160600

skipif mysql # not compatible
query I rowsort label-2688
SELECT CAST ( 28 AS INTEGER ) * + col2 * + col0 * - - col1 AS col1 FROM tab2
----
1510824
5519360
8160600

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT - 69 + - SUM( DISTINCT col0 ) + SUM( 26 ) FROM tab2
----
-176

skipif mysql # not compatible
query I rowsort label-2689
SELECT - 69 + - SUM ( DISTINCT col0 ) + SUM ( 26 ) FROM tab2
----
-176

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NULL <> + 94
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <> + col2 OR + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT + + COUNT( * ) + - 5 AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + + COUNT ( * ) + - 5 AS col0 FROM tab1 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT ALL + col0 DIV col2 + + 42 AS col2 FROM tab0
----
42
42
50

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + col0 / col2 + + 42 AS col2 FROM tab0
----
42
42
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - COUNT( ALL ( 11 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - COUNT ( ALL ( 11 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL ( 34 ) FROM tab2 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL MAX( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL MAX ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT + ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE ( NULL ) < 17 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-2698
SELECT + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE ( NULL ) < 17 + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 10 * + col1 * + 54 <> - 24
----
-3

skipif mysql # not compatible
query I rowsort label-2699
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 10 * + col1 * + 54 <> - 24
----
-3

query I rowsort
SELECT + 62 + - col2 FROM tab1 AS cor0
----
-34
-6
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT + 40 * + CAST( + col0 AS SIGNED ) + - col0 + - + col2 FROM tab0 AS cor0
----
3383
3684
538

skipif mysql # not compatible
query I rowsort label-2701
SELECT + 40 * + CAST ( + col0 AS INTEGER ) + - col0 + - + col2 FROM tab0 AS cor0
----
3383
3684
538

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL - MIN( DISTINCT + 31 ) * - + COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - MIN ( DISTINCT + 31 ) * - + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
96

query I rowsort
SELECT + col0 + - 0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL + COUNT( * ) + + 42 AS col1 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + COUNT ( * ) + + 42 AS col1 FROM tab1 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT CAST( + col2 AS SIGNED ) * + 54 + - + 14 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2705
SELECT CAST ( + col2 AS INTEGER ) * + 54 + - + 14 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 85 + + col0 AS col0, - col2 AS col1 FROM tab2
----
131
-23
149
-40
160
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL COUNT( * ) + - COUNT( DISTINCT + + col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT + + col0 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL - 69 + col1 AS col1 FROM tab1
----
-22
-55
-64

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + col2 = - 42
----

query I rowsort
SELECT DISTINCT + 37 * - ( - col1 ) AS col1 FROM tab1
----
1739
185
518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2712
SELECT DISTINCT + 21 * COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT + 21 * COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + col1 * - 53 AS col0 FROM tab0 AS cor0
----
-1113
-4293
-53

query II rowsort
SELECT - + col1 AS col0, col2 AS col1 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT - + 96 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-96
-96
-96

query I rowsort
SELECT ALL + col1 * + + col2 + 35 AS col0 FROM tab2 AS cor0
----
1208
3115
3921

onlyif mysql # DIV for integer division: 
query I rowsort label-2717
SELECT + 97 DIV - col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2717
SELECT + 97 / - col0 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL COUNT( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL COUNT ( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT ALL - col0 DIV - + col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - col0 / - + col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT DISTINCT - MIN( 2 ) AS col2, 27 AS col2 FROM tab1
----
-2
27

skipif mysql # not compatible
query II rowsort label-2720
SELECT DISTINCT - MIN ( 2 ) AS col2, 27 AS col2 FROM tab1
----
-2
27

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN - ( ( + col1 ) ) AND NULL
----

query I rowsort
SELECT ALL - col0 * + col2 * + 94 AS col0 FROM tab0
----
-66270
-81780
-902682

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT DISTINCT SUM( + 68 ) FROM tab0, tab1 AS cor0
----
612

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT SUM ( + 68 ) FROM tab0, tab1 AS cor0
----
612

onlyif mysql # DIV for integer division: 
query II rowsort label-2724
SELECT DISTINCT + 27 DIV - col1, col1 FROM tab1 AS cor0
----
-1
14
-5
5
0
47

skipif mysql # not compatible
query II rowsort label-2724
SELECT DISTINCT + 27 / - col1, col1 FROM tab1 AS cor0
----
-1
14
-5
5
0
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT - - ( + 43 ) * + CAST( NULL AS SIGNED ) * - 79 + - - col1 / - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - - ( + 43 ) * + CAST ( NULL AS INTEGER ) * - 79 + - - col1 / - col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 85 col2 FROM tab1 cor0
----
-85

query I rowsort
SELECT col0 * 64 + - + col0 + + col1 FROM tab2 AS cor0
----
2949
4109
4792

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT + MIN( + - 43 ) + - SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2728
SELECT + MIN ( + - 43 ) + - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT col2 + 5 AS col1, + col0 FROM tab1 AS cor0
----
101
51
64
85
73
91

query I rowsort
SELECT DISTINCT + + 5 + + 13 AS col0 FROM tab2 AS cor0
----
18

query I rowsort
SELECT ALL col1 + 39 FROM tab2 AS cor0
----
106
116
90

query I rowsort
SELECT - ( - 79 ) AS col1 FROM tab1
----
79
79
79

query II rowsort
SELECT + 48 AS col2, + 45 * - - col1 + - col0 AS col2 FROM tab1
----
48
140
48
2024
48
579

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 45 IS NOT NULL
----

query I rowsort
SELECT 88 * - - col2 - + col1 FROM tab0 AS cor0
----
4055
859
8711

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT ALL - + COUNT( * ) AS col2, - 38 col1 FROM tab2 AS cor0
----
-3
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2736
SELECT ALL - + COUNT ( * ) AS col2, - 38 col1 FROM tab2 AS cor0
----
-3
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2737
SELECT DISTINCT + col2 * col0 * + col0 + col1 + CAST( NULL AS DECIMAL ) * - col0 * 99 / - + 78 * - col2 - 34 / + + ( + col2 ) * + + col0 * 94 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + col2 * col0 * + col0 + col1 + CAST ( NULL AS REAL ) * - col0 * 99 / - + 78 * - col2 - 34 / + + ( + col2 ) * + + col0 * 94 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col0 - + col2, col1 AS col1 FROM tab2
----
17
67
23
51
24
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 29 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * - + col2 col0, - col0 AS col1 FROM tab0 AS cor0
----
-210
-87
-3807
-15
-99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col1 FROM tab2 AS cor0
----
38
38
38

query III rowsort
SELECT * FROM tab2 WHERE NOT - 82 * + + 60 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) * - col0 - col0 BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) * - col0 - col0 BETWEEN NULL AND col0
----
0

query I rowsort
SELECT ALL col1 * 0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ( - MIN( ALL - - col1 ) ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2745
SELECT ( - MIN ( ALL - - col1 ) ) AS col0 FROM tab2
----
-51

query I rowsort
SELECT ALL col1 * + + col1 AS col2 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= + col2 / - 68 + + + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT + COUNT( * ) * - 83 col1 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT DISTINCT + COUNT ( * ) * - 83 col1 FROM tab1 AS cor0
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL CAST( NULL AS SIGNED ) * + col2 / - col1 + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 / - col1 + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 89 AS col1 FROM tab0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + MAX( ALL 18 ) * - 52 AS col0 FROM tab2
----
-936

skipif mysql # not compatible
query I rowsort label-2752
SELECT + MAX ( ALL 18 ) * - 52 AS col0 FROM tab2
----
-936

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT col0 DIV col2 * + col0 * + + col1 FROM tab0
----
0
0
14616

skipif mysql # not compatible
query I rowsort label-2753
SELECT col0 / col2 * + col0 * + + col1 FROM tab0
----
0
0
14616

query I rowsort
SELECT DISTINCT - 97 * 71 FROM tab1
----
-6887

query I rowsort
SELECT ALL - + 11 * - col1 AS col2 FROM tab0 AS cor0
----
11
231
891

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 74 * + + col1 + + col0 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 + + col1 col2 FROM tab0 AS cor0 WHERE NOT ( + 23 ) IS NULL
----
24
4
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 94 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT DISTINCT - 27 + - col0 DIV + - col0 AS col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - 27 + - col0 / + - col0 AS col0 FROM tab2 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT DISTINCT 44 + + CAST( NULL AS SIGNED ) + - 84 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2760
SELECT DISTINCT 44 + + CAST ( NULL AS INTEGER ) + - 84 col2 FROM tab2
----
NULL

query I rowsort
SELECT col1 + col0 + + col1 * col0 FROM tab1
----
4415
515
779

query I rowsort
SELECT col2 + - 74 FROM tab1
----
-15
-6
22

query I rowsort
SELECT col0 + + col2 + col1 * + + col2 AS col1 FROM tab2
----
1242
3184
4019

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN - 18 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + + MAX( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2765
SELECT + + MAX ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-2767
SELECT - 69 DIV + 95 AS col1, - 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to a8d67d3e9419e731e69a282603b3cbfe

skipif mysql # not compatible
query II rowsort label-2767
SELECT - 69 / + 95 AS col1, - 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to a8d67d3e9419e731e69a282603b3cbfe

query I rowsort
SELECT DISTINCT - 70 FROM tab2, tab0 cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col0 + - 16 col1 FROM tab2 AS cor0
----
-46
30
-64
48
-75
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT - + col2 * - 76 - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT - + col2 * - 76 - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * + 7 * + 80 FROM tab1 AS cor0
----
-33040
-38080
-53760

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL OR NOT - 72 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2773
SELECT - + 16, + col2 * + + col2 + col2 + col0 DIV - 91 AS col2 FROM tab0 cor0
----
-16
110
-16
2256
-16
9899

skipif mysql # not compatible
query II rowsort label-2773
SELECT - + 16, + col2 * + + col2 + col2 + col0 / - 91 AS col2 FROM tab0 cor0
----
-16
110
-16
2256
-16
9899

query I rowsort
SELECT + 40 * + col0 FROM tab2 AS cor0
----
1840
2560
3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT CAST( - col2 AS SIGNED ) col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2775
SELECT CAST ( - col2 AS INTEGER ) col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL MAX( ALL - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL MAX ( ALL - col0 ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - MIN( DISTINCT + col1 ) * + MIN( ALL + 70 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3573

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - MIN ( DISTINCT + col1 ) * + MIN ( ALL + 70 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3573

query I rowsort
SELECT + - ( 2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT SUM( 19 ) AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT SUM ( 19 ) AS col2 FROM tab2
----
57

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab0 WHERE NOT 54 IS NULL
----
-1
-21
-81

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL IN ( + - col2 * - 7 + col1, - col2 - - + col2 )
----

query II rowsort
SELECT ALL + 23 AS col0, - 22 AS col0 FROM tab1 AS cor0
----
23
-22
23
-22
23
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - 2 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2785
SELECT - 2 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT ALL - 70 + + ( - - col0 ) FROM tab0 cor0
----
-55
17
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( col2 ) + - col0 + 57 * + col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT - COUNT( - + 41 ) * - SUM( ALL CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - COUNT ( - + 41 ) * - SUM ( ALL CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > 45 + + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT - 68 - + col1 DIV - 13 - 55 AS col2 FROM tab0 AS cor0
----
-117
-122
-123

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 68 - + col1 / - 13 - 55 AS col2 FROM tab0 AS cor0
----
-117
-122
-123

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE + 13 * - col1 + - - col0 + + + col1 + - col1 / 36 IS NULL
----

query I rowsort
SELECT - 72 - + 17 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT + col1 * + col1 * col2 + + + col1 * + - 2 FROM tab0 cor0
----
308205
4368
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT ALL + col1 DIV col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + col1 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
2

query I rowsort
SELECT + 27 AS col2 FROM tab0 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + col1 - - 93 AS col1 FROM tab0
----
114
174
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT - COUNT( * ) + - COUNT( * ) col1 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2800
SELECT - COUNT ( * ) + - COUNT ( * ) col1 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT DISTINCT - COUNT( * ) - + - 31 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - COUNT ( * ) - + - 31 FROM tab2
----
28

query I rowsort
SELECT - + 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT DISTINCT + col0 + + - 30 + - col2 AS col1 FROM tab1 WHERE - 33 IS NOT NULL
----
-4
-7
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2804
SELECT DISTINCT - CAST( - 84 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - CAST ( - 84 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - 13 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT MIN( - 46 ) * + + SUM( - + col1 ) col0 FROM tab0 AS cor0
----
4738

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2806
SELECT MIN ( - 46 ) * + + SUM ( - + col1 ) col0 FROM tab0 AS cor0
----
4738

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col0 + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) col1 FROM tab1
----
59
68
96

query I rowsort
SELECT col2 * + col1 * - - col1 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT 54 * + + COUNT( * ) AS col1 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2810
SELECT 54 * + + COUNT ( * ) AS col1 FROM tab1
----
162

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 - + col2 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 47 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT + MIN( ALL - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + MIN ( ALL - col2 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT ( - + ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - ( + col1 ) - col1 + - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-194
-4
35

query I rowsort
SELECT col0 + 60 AS col2 FROM tab0 AS cor0
----
147
157
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= - + ( + col1 ) + + 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 + ( col2 ) col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT + col0 + col2 AS col0 FROM tab2 WHERE + CAST( CAST( - col2 AS SIGNED ) AS SIGNED ) IS NOT NULL
----
104
133
69

skipif mysql # not compatible
query I rowsort label-2820
SELECT + col0 + col2 AS col0 FROM tab2 WHERE + CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) IS NOT NULL
----
104
133
69

query I rowsort
SELECT - 82 * + ( - 74 ) + + col0 FROM tab1
----
6119
6153
6159

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT 53 + - COUNT( * ) AS col2 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-2822
SELECT 53 + - COUNT ( * ) AS col2 FROM tab2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + - col0 - - + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + - - col1 * col2 + - 35 AS col1 FROM tab1 AS cor0
----
1258
175
3070

query I rowsort
SELECT + 56 * - col1 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT DISTINCT - 58 * + CAST( NULL AS SIGNED ) * - - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT - 58 * + CAST ( NULL AS INTEGER ) * - - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 30 * ( - 90 ) AS col0 FROM tab0 AS cor0
----
-2700
-2700
-2700

query I rowsort
SELECT ALL + col0 * - - 43 AS col1 FROM tab0 AS cor0
----
3741
4171
645

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL + SUM( ( + col2 ) ) * + ( 42 ) AS col2 FROM tab1 AS cor0
----
9366

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL + SUM ( ( + col2 ) ) * + ( 42 ) AS col2 FROM tab1 AS cor0
----
9366

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2832
SELECT DISTINCT col1 * col0 / + + 92 - + + CAST( NULL AS SIGNED ) + - col2 / - - ( - - ( col1 ) ) + col1 AS col2, - col0 * - 31 col1 FROM tab0 AS cor0
----
NULL
2697
NULL
3007
NULL
465

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2832
SELECT DISTINCT col1 * col0 / + + 92 - + + CAST ( NULL AS INTEGER ) + - col2 / - - ( - - ( col1 ) ) + col1 AS col2, - col0 * - 31 col1 FROM tab0 AS cor0
----
NULL
2697
NULL
3007
NULL
465

query I rowsort
SELECT ALL - col2 + 77 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 72
----

query I rowsort
SELECT DISTINCT 80 FROM tab2 cor0 WHERE NOT - 68 IS NULL
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col1 FROM tab0 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL + SUM( DISTINCT + + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + SUM ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT DISTINCT - col2 DIV + 96 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - col2 / + 96 AS col0 FROM tab0
----
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * ( - 75 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - ( - + col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 78 <> + + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT + col2 DIV - + 8 AS col2 FROM tab2 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2840
SELECT + col2 / - + 8 AS col2 FROM tab2 AS cor0
----
-2
-5
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT DISTINCT - - COUNT( * ) + - COUNT( * ), 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0
21

skipif mysql # not compatible
query II rowsort label-2841
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( * ), 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0
21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - + col0 ) + - ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT SUM( + col2 ) col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2843
SELECT DISTINCT SUM ( + col2 ) col2 FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 + - 52 col2 FROM tab1 AS cor0
----
-134
-134
-134

query I rowsort
SELECT DISTINCT 21 * - col2 / 99 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 72 + 37 * + col0 + + 16 AS col2 FROM tab0 AS cor0
----
3307
3677
643

query III rowsort
SELECT * FROM tab0 WHERE + col2 / - - col1 IS NULL
----

query I rowsort
SELECT + 52 - + + col0 FROM tab0
----
-35
-45
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT DISTINCT COUNT( * ) + + 0 AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT COUNT ( * ) + + 0 AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 0 * col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - col2 * + - col0 - + col2 AS col1 FROM tab0
----
658
860
9504

query I rowsort
SELECT - col0 - - + col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 14 - + col2 AS col0 FROM tab1 AS cor0
----
-110
-73
-82

query I rowsort
SELECT + col1 + + 73 - + col2 AS col0 FROM tab1 AS cor0
----
-9
19
52

query I rowsort
SELECT DISTINCT + + 71 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT AVG ( + - col1 ) - - + ( 9 ) + + 53 FROM tab0 AS cor0 WHERE - 42 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL 73 + COUNT( * ) * - 88 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-719

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL 73 + COUNT ( * ) * - 88 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-719

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2859
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL - 2 * 16 + + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
19
53
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT DISTINCT col2 DIV - - col2 col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2861
SELECT DISTINCT col2 / - - col2 col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2864
SELECT DISTINCT - - ( + CAST( col0 AS SIGNED ) ) * - 65 * - 6 FROM tab2 AS cor0
----
17940
24960
29250

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - - ( + CAST ( col0 AS INTEGER ) ) * - 65 * - 6 FROM tab2 AS cor0
----
17940
24960
29250

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + 72 * - MIN( col2 ) FROM tab0
----
-720

skipif mysql # not compatible
query I rowsort label-2866
SELECT + 72 * - MIN ( col2 ) FROM tab0
----
-720

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 + + 3 IS NOT NULL
----

query I rowsort
SELECT - 39 * + col1 AS col0 FROM tab1
----
-1833
-195
-546

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT col0, - col1 DIV 84 AS col1 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-2869
SELECT col0, - col1 / 84 AS col1 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT COUNT( + 65 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2870
SELECT COUNT ( + 65 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + col2, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2872
SELECT DISTINCT 29 AS col1, + COUNT( * ) AS col1 FROM tab2
----
29
3

skipif mysql # not compatible
query II rowsort label-2872
SELECT DISTINCT 29 AS col1, + COUNT ( * ) AS col1 FROM tab2
----
29
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 38 / + col1 - - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col2 col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT DISTINCT - - col1 DIV + + 85 + 20 AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT - - col1 / + + 85 + 20 AS col2 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL 15 + + COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL 15 + + COUNT ( * ) FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + - 53 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-53

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL + ( + col2 ) FROM tab2 WHERE NOT + col0 IN ( - + col2 )
----
23
40
58

query II rowsort
SELECT 38 * col2 AS col0, col0 FROM tab1
----
2242
85
2584
91
3648
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 7 + col2 + + col2 NOT BETWEEN col1 AND + ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 37 * - + col0 AS col1 FROM tab0 cor0
----
3219
3589
555

query I rowsort
SELECT ALL + 87 * - - ( col1 ) AS col0 FROM tab0 cor0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL + - MAX( + col2 ) * - - 25 + - 19 FROM tab2 AS cor0
----
-1469

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + - MAX ( + col2 ) * - - 25 + - 19 FROM tab2 AS cor0
----
-1469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + - + col2 col0 FROM tab2
----
21
39
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT COUNT( * ) - 34 AS col0 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT COUNT ( * ) - 34 AS col0 FROM tab0
----
-31

query I rowsort
SELECT + col0 * col0 * + + col0 + col1 FROM tab0
----
3456
658524
912674

query I rowsort
SELECT - col0 + - - col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - 43 + - COUNT( * ) col2 FROM tab1
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2892
SELECT - 43 + - COUNT ( * ) col2 FROM tab1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT - CAST( - 72 AS SIGNED ) AS col1 FROM tab2
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2893
SELECT - CAST ( - 72 AS INTEGER ) AS col1 FROM tab2
----
72
72
72

query I rowsort
SELECT ALL col1 - + 82 AS col0 FROM tab1
----
-35
-68
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT DISTINCT col1 - ( + + 10 ) * - + CAST( - col2 AS SIGNED ) * + ( + 85 ) + - ( + + col1 ) AS col2 FROM tab0
----
-39950
-84150
-8500

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT col1 - ( + + 10 ) * - + CAST ( - col2 AS INTEGER ) * + ( + 85 ) + - ( + + col1 ) AS col2 FROM tab0
----
-39950
-84150
-8500

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2896
SELECT - 97 * + AVG ( - col1 ) / + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT - 97 * + AVG ( - col1 ) / + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + 75 AS col0, - col0 FROM tab0 cor0
----
75
-15
75
-87
75
-97

query II rowsort
SELECT + col2, col0 + col2 * + col0 * col2 FROM tab0 AS cor0
----
10
8787
47
33150
99
950794

query I rowsort
SELECT - ( 83 ) FROM tab1
----
-83
-83
-83

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab2 WHERE NULL BETWEEN col1 + 94 AND - col1
----

query I rowsort
SELECT DISTINCT - 93 * 72 AS col0 FROM tab1 WHERE ( + 95 ) NOT BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT MAX( 59 ) AS col0 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT MAX ( 59 ) AS col0 FROM tab0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col1 FROM tab1
----
51
51
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT + MAX( ALL col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT + MAX ( ALL col0 ) AS col2 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT ( + MAX( 86 ) ) col0 FROM tab0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2907
SELECT ( + MAX ( 86 ) ) col0 FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT MIN( ALL col1 ) * - 99 FROM tab1
----
-495

skipif mysql # not compatible
query I rowsort label-2908
SELECT MIN ( ALL col1 ) * - 99 FROM tab1
----
-495

query I rowsort
SELECT DISTINCT + 52 - col2 FROM tab1
----
-16
-44
-7

query I rowsort
SELECT - col0 + 35 AS col2 FROM tab0
----
-52
-62
20

query III rowsort
SELECT * FROM tab1 WHERE 38 / 39 IS NULL
----

query I rowsort
SELECT - col1 * - 21 FROM tab2
----
1071
1407
1617

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT CAST( + 26 AS SIGNED ) FROM tab2
----
26
26
26

skipif mysql # not compatible
query I rowsort label-2914
SELECT CAST ( + 26 AS INTEGER ) FROM tab2
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2915
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( - CAST( + col1 AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-2915
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( - CAST ( + col1 AS INTEGER ) + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 21 col0 FROM tab1 WHERE NULL IS NULL
----
-1239
-1428
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT DISTINCT CAST( AVG ( + 33 ) AS SIGNED ) AS col1 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT CAST ( AVG ( + 33 ) AS INTEGER ) AS col1 FROM tab2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2918
SELECT ALL * FROM tab2 WHERE NOT ( + col0 * - col1 + ( 71 + CAST( NULL AS DECIMAL ) / - col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2918
SELECT ALL * FROM tab2 WHERE NOT ( + col0 * - col1 + ( 71 + CAST ( NULL AS REAL ) / - col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 31 - col2 AS col1 FROM tab0 WHERE - ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( - col0 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( col0 / col1 ) NOT BETWEEN ( col2 ) AND ( - col1 ) * + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( 46 ) + + col2 / col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2923
SELECT DISTINCT + ( ( COUNT( * ) ) ) DIV SUM( DISTINCT - 59 * - 69 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2923
SELECT DISTINCT + ( ( COUNT ( * ) ) ) / SUM ( DISTINCT - 59 * - 69 ) col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + ( col1 + - col0 ) * - 8 FROM tab0 AS cor0
----
-447
549
769

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT ALL col0 DIV ( col2 * 99 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL col0 / ( col2 * 99 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + 58 AS col1 FROM tab2 AS cor0
----
109
125
135

query I rowsort
SELECT ALL 34 + + 1 AS col1 FROM tab1 AS cor0
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT ALL + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT ALL CAST( NULL AS SIGNED ) + + 21 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL CAST ( NULL AS INTEGER ) + + 21 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT 68 - + MIN( DISTINCT col2 + + col2 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT 68 - + MIN ( DISTINCT col2 + + col2 ) FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT + 56 + + SUM( ALL col2 + + col2 ) AS col1 FROM tab1
----
502

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 56 + + SUM ( ALL col2 + + col2 ) AS col1 FROM tab1
----
502

query I rowsort
SELECT col0 * 34 + col2 FROM tab1
----
1830
2949
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT - SUM( DISTINCT + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2934
SELECT - SUM ( DISTINCT + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT COUNT( * ) * + 57 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2935
SELECT COUNT ( * ) * + 57 FROM tab1 AS cor0
----
171

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 64 ) IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + COUNT( * ) * 79 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2937
SELECT + COUNT ( * ) * 79 FROM tab2 AS cor0
----
237

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - col0 IN ( col0 + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT - col2 DIV - ( - col1 ) AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT - col2 / - ( - col1 ) AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + + COUNT( DISTINCT + 22 ) * - 79 col1 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2940
SELECT + + COUNT ( DISTINCT + 22 ) * - 79 col1 FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( ( - col1 ) * col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( ( - col1 ) * col0 ) IS NOT NULL
----
0

query I rowsort
SELECT ( - 40 ) FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + 39 <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 71 + - col1 FROM tab1
----
24
57
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT MAX( - 39 ) col0 FROM tab2
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2946
SELECT MAX ( - 39 ) col0 FROM tab2
----
-39

query I rowsort
SELECT ALL + ( - col2 ) - + col1 AS col1 FROM tab2 WHERE ( - 39 + ( + 21 ) ) IS NOT NULL
----
-117
-125
-74

query I rowsort
SELECT ALL ( + + 38 ) FROM tab1
----
38
38
38

query I rowsort
SELECT 11 FROM tab2 cor0 WHERE NOT - col2 + 12 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col1 + + col1 col1 FROM tab2 AS cor0
----
2652
4556
6006

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - col1 ) <= ( col0 * col1 - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( col1 ) AND - col2 + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT DISTINCT - COUNT( * ) DIV - 37 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT - COUNT ( * ) / - 37 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT - 58 DIV col1 * - col2 FROM tab2
----
0
0
23

skipif mysql # not compatible
query I rowsort label-2954
SELECT - 58 / col1 * - col2 FROM tab2
----
0
0
23

query I rowsort
SELECT col2 * 27 + col0 AS col0 FROM tab0 cor0 WHERE NOT ( NOT NULL IS NULL ) OR col2 NOT IN ( 90 * col1 )
----
1284
2770
357

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - col2 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT - - COUNT( ALL 76 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2957
SELECT - - COUNT ( ALL 76 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + col1 AS col1, + ( - ( col1 ) ) * col2 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT - - SUM( col2 ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - - SUM ( col2 ) AS col1 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
3

query I rowsort
SELECT ALL + col1 + - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + col0 * - 63 AS col1 FROM tab0 cor0
----
-5481
-6111
-945

query I rowsort
SELECT DISTINCT + col1 + - 76 AS col0 FROM tab1 AS cor0
----
-29
-62
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2964
SELECT ALL * FROM tab1 WHERE NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2964
SELECT ALL * FROM tab1 WHERE NULL = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col1 + - - col2 AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2966
SELECT + 65 * + - CAST( NULL AS SIGNED ) * + + ( - col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT + 65 * + - CAST ( NULL AS INTEGER ) * + + ( - col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT 28 FROM tab1 WHERE ( + ( CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2967
SELECT 28 FROM tab1 WHERE ( + ( CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----

query I rowsort
SELECT 81 * + col2 * + col2 * - + 97 + + 11 FROM tab1
----
-27350206
-36330757
-72410101

query I rowsort
SELECT DISTINCT - - 16 * - - 21 + col2 + 48 * col2 FROM tab2 AS cor0
----
1463
2296
3178

query I rowsort
SELECT - 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query III rowsort
SELECT * FROM tab2 WHERE ( + - col0 * + col0 / - col0 ) IN ( + col2 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT - SUM( col0 ) col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2972
SELECT DISTINCT - SUM ( col0 ) col1 FROM tab0 cor0
----
-199

query I rowsort
SELECT ALL 15 - - + ( - ( - col1 ) ) + col2 * + ( col2 ) FROM tab0 AS cor0
----
136
2305
9817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + - 18 * col1 AS col1, + ( - col1 ) + + 68 col2 FROM tab2 AS cor0
----
-21114
17
-55440
-9
-69948
1

query I rowsort
SELECT + 62 FROM tab0 AS cor0 WHERE + col2 + + col2 = ( - col1 - - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2976
SELECT CAST( NULL AS SIGNED ) + + 6 / - MAX( 24 ) * - + 55 * - CAST( MAX( + col1 ) AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT CAST ( NULL AS INTEGER ) + + 6 / - MAX ( 24 ) * - + 55 * - CAST ( MAX ( + col1 ) AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 * + 54 ) IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col2, col2 + 65 FROM tab0 AS cor0
----
10
75
47
112
99
164

query I rowsort
SELECT col1 * - 18 AS col1 FROM tab1 AS cor0
----
-252
-846
-90

query I rowsort
SELECT - 64 * col2 AS col0 FROM tab2
----
-1472
-2560
-3712

query II rowsort
SELECT + col1, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT + COUNT( * ) col0 FROM tab0 WHERE NOT ( col0 IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2982
SELECT + COUNT ( * ) col0 FROM tab0 WHERE NOT ( col0 IS NOT NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT col1 DIV + 80 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT col1 / + 80 col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col2 / + col1 * + col2 + col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT ALL + COUNT( * ) / - CAST( NULL AS SIGNED ) * + - ( AVG ( ALL col1 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + - ( AVG ( ALL col1 ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 + + 72 - 17 AS col1 FROM tab2 WHERE ( - - col2 + - 92 ) IS NULL
----

query II rowsort
SELECT - col1 AS col1, - col1 + col0 AS col2 FROM tab0 AS cor0
----
-1
96
-21
66
-81
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT col0 * + 76 + col2 * - + col1 = col2
----
3

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT col0 * + 76 + col2 * - + col1 = col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - 7 + - MAX( - 93 ) col1 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2989
SELECT - 7 + - MAX ( - 93 ) col1 FROM tab1 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + col0 col0 FROM tab2 cor0
----
70
88
99

query II rowsort
SELECT col0 + + col2 * + col2 + + ( 41 ), col1 AS col0 FROM tab2 AS cor0
----
1705
77
3480
67
616
51

query I rowsort
SELECT ALL + + 46 + + - col2 FROM tab2 AS cor0
----
-12
23
6

query I rowsort
SELECT DISTINCT col1 + - col0 - col2 AS col2 FROM tab2
----
-18
-27
-66

query III rowsort
SELECT * FROM tab1 WHERE + 8 - + col0 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 AS col2, + col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT + ( - col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query II rowsort
SELECT ALL col0 AS col2, + 45 AS col0 FROM tab1
----
51
45
85
45
91
45

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab1 WHERE NOT col0 * + 60 - + col2 IS NULL
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT + COUNT( * ) - - MAX( + col1 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2999
SELECT + COUNT ( * ) - - MAX ( + col1 ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT ALL - 75 * 59 AS col2 FROM tab0 AS cor0
----
-4425
-4425
-4425

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT - 38 - col0 + 87 + + col0 * 14 - - col1 * + ( - + col2 ) * col1 + 19 DIV col2 AS col2 FROM tab0 AS cor0
----
-308123
-3229
1211

skipif mysql # not compatible
query I rowsort label-3001
SELECT - 38 - col0 + 87 + + col0 * 14 - - col1 * + ( - + col2 ) * col1 + 19 / col2 AS col2 FROM tab0 AS cor0
----
-308123
-3229
1211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT - 42 - - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
22
33
4

skipif mysql # not compatible
query I rowsort label-3002
SELECT - 42 - - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
22
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 * - + col0 + - 55 + + 12 col0 FROM tab2 AS cor0
----
2579
3605
4232

query I rowsort
SELECT ALL + 51 + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-108
-93
-96

query II rowsort
SELECT DISTINCT - col2 * - - col0 AS col2, - 49 FROM tab1 AS cor0
----
-4896
-49
-5015
-49
-6188
-49

query I rowsort
SELECT + col2 * - ( col0 ) * + col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT ALL - - col2 DIV col2 * - + col0 + + - col2 * 23 * 1 FROM tab2 AS cor0
----
-1409
-575
-984

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - - col2 / col2 * - + col0 + + - col2 * 23 * 1 FROM tab2 AS cor0
----
-1409
-575
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT + MAX( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3008
SELECT + MAX ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT ( + col2 ) DIV + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT ( + col2 ) / + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT - SUM( + + CAST( + col1 AS SIGNED ) ) FROM tab0 WHERE NOT - 32 * + + 63 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT - SUM ( + + CAST ( + col1 AS INTEGER ) ) FROM tab0 WHERE NOT - 32 * + + 63 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + COUNT( + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3012
SELECT + COUNT ( + col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE ( + 49 + - col2 ) <> + 7
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3014
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( col0, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3014
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( col0, + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * + 26 + + 19 col2 FROM tab0 AS cor0
----
-1905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3016
SELECT + CAST( MIN( DISTINCT - col0 ) AS SIGNED ), COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 - + 10 BETWEEN NULL AND NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3016
SELECT + CAST ( MIN ( DISTINCT - col0 ) AS INTEGER ), COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 - + 10 BETWEEN NULL AND NULL
----
NULL
0

query II rowsort
SELECT DISTINCT col1, 70 FROM tab0
----
1
70
21
70
81
70

query II rowsort
SELECT - col2 AS col0, - ( 20 ) AS col0 FROM tab0
----
-10
-20
-47
-20
-99
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3019
SELECT DISTINCT - - MAX( col1 ) + + 24 * - + CAST( + - 22 AS SIGNED ) col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN - - 8 AND - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT DISTINCT - - MAX ( col1 ) + + 24 * - + CAST ( + - 22 AS INTEGER ) col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN - - 8 AND - col1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 - + + col1 <= + col2 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0, - 5 FROM tab1 AS cor0
----
51
-5
85
-5
91
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT 30 DIV - - SUM( ALL - - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT 30 / - - SUM ( ALL - - col2 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 2 = + col2 + col0 - + col2
----

query I rowsort
SELECT ALL - - col1 * - - col2 + ( - 95 ) AS col0 FROM tab2 AS cor0
----
1078
2985
3791

onlyif mysql # aggregate syntax: 
query II rowsort label-3025
SELECT DISTINCT - 35 AS col0, + 3 - + - ( + COUNT( * ) ) FROM tab2 cor0
----
-35
6

skipif mysql # not compatible
query II rowsort label-3025
SELECT DISTINCT - 35 AS col0, + 3 - + - ( + COUNT ( * ) ) FROM tab2 cor0
----
-35
6

query I rowsort
SELECT + 46 + col1 - - col1 * - 43 AS col1 FROM tab1 AS cor0
----
-164
-1928
-542

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT - COUNT( * ) * - COUNT( * ) + + MIN( + 84 ) col0 FROM tab0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3027
SELECT - COUNT ( * ) * - COUNT ( * ) + + MIN ( + 84 ) col0 FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT col0 FROM tab1 WHERE - + CAST( NULL AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3028
SELECT col0 FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL - MAX( + col0 ) FROM tab1 WHERE + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - MAX ( + col0 ) FROM tab1 WHERE + col1 = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 * - + col0 - - + col0 NOT IN ( + col2, 82 * + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT + COUNT( * ) + + 14 * + COUNT( ALL + col0 ) + + COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-3031
SELECT + COUNT ( * ) + + 14 * + COUNT ( ALL + col0 ) + + COUNT ( * ) FROM tab0
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3032
SELECT ALL - - ( - - COUNT( col2 ) ) FROM tab0 WHERE - 59 + col0 IN ( + - col0 * + 70 * - - CAST( NULL AS DECIMAL ), col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - - ( - - COUNT ( col2 ) ) FROM tab0 WHERE - 59 + col0 IN ( + - col0 * + 70 * - - CAST ( NULL AS REAL ), col0 )
----
0

query II rowsort
SELECT ALL 39 - - col1 AS col0, - ( + col2 ) AS col2 FROM tab0
----
120
-47
40
-99
60
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 16 * 35 col1 FROM tab0 AS cor0
----
-560

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab2 AS cor0 WHERE NOT - ( col2 ) IS NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT + MIN( ALL - 25 ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3037
SELECT + MIN ( ALL - 25 ) AS col0 FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL - ( + col1 ) + - - CAST( NULL AS SIGNED ) + + 35 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL - ( + col1 ) + - - CAST ( NULL AS INTEGER ) + + 35 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * + 49 FROM tab0
----
-2303
-4851
-490

query I rowsort
SELECT 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ( + + 12 ) AS col1 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT DISTINCT 61 DIV 64 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT 61 / 64 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT MAX( ALL - 98 ) AS col0 FROM tab2 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3045
SELECT MAX ( ALL - 98 ) AS col0 FROM tab2 cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3046
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 IN ( + + col2, CAST( + 91 AS SIGNED ), - col1, + - 39 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3046
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 IN ( + + col2, CAST ( + 91 AS INTEGER ), - col1, + - 39 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 94 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 87 + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT + COUNT( * ) * + + 28 AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3049
SELECT + COUNT ( * ) * + + 28 AS col1 FROM tab2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT - col1 DIV col0 * + 82 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3050
SELECT - col1 / col0 * + 82 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * + + ( + col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT + 60 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT ( - + 1 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT ( - + 1 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - col2 + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 91 + + col1 + 85 AS col0 FROM tab1 AS cor0
----
181
190
223

query I rowsort
SELECT 52 + - 47 AS col2 FROM tab0
----
5
5
5

query I rowsort
SELECT + 48 + - - col2 AS col1 FROM tab1 AS cor0
----
107
116
144

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3060
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3060
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + col2 ) IS NOT NULL
----

query I rowsort
SELECT + - 0 + - - col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3062
SELECT DISTINCT col2 DIV - - col2 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT col2 / - - col2 AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3063
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col1 + - - ( - ( + + 38 ) ) FROM tab2 AS cor0
----
-105
-115
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT DISTINCT + 32 + MIN( - - 17 ) DIV + - 93 AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + 32 + MIN ( - - 17 ) / + - 93 AS col1 FROM tab1
----
32

query I rowsort
SELECT ALL - 28 * col2 * col2 * 90 - 92 AS col1 FROM tab2
----
-1333172
-4032092
-8477372

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL MIN( ALL + ( + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL MIN ( ALL + ( + col1 ) ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT 69 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - ( + 79 ) * col0 - - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3978
-6630
-7098

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT + COUNT( * ) * 35 AS col0 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3070
SELECT + COUNT ( * ) * 35 AS col0 FROM tab2 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT - - 94 * + ( - + 79 ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-22278

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT - - 94 * + ( - + 79 ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-22278

query I rowsort
SELECT ALL - - 34 AS col1 FROM tab2 cor0
----
34
34
34

query I rowsort
SELECT ALL + 28 FROM tab1 cor0
----
28
28
28

query II rowsort
SELECT DISTINCT + col0, + 21 FROM tab0
----
15
21
87
21
97
21

query II rowsort
SELECT + 88 * - ( col1 ) AS col2, + col0 FROM tab2
----
-4488
46
-5896
75
-6776
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT - 6 DIV - col1 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3076
SELECT - 6 / - col1 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - col1 * + 51 FROM tab0
----
-1071
-4131
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3078
SELECT CAST( NULL AS SIGNED ) * - CAST( - + 42 AS SIGNED ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT CAST ( NULL AS INTEGER ) * - CAST ( - + 42 AS INTEGER ) * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3079
SELECT DISTINCT + col1 AS col1, - col0 + - + col2 + - 32 + - 81 + + + CAST( + col0 AS SIGNED ) * + col1 col0 FROM tab1
----
14
454
47
4005
5
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3079
SELECT DISTINCT + col1 AS col1, - col0 + - + col2 + - 32 + - 81 + + + CAST ( + col0 AS INTEGER ) * + col1 col0 FROM tab1
----
14
454
47
4005
5
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3080
SELECT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3081
SELECT + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL 21 AS col2 FROM tab0 cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query II rowsort label-3083
SELECT ALL - col1 DIV + col1 col1, 77 FROM tab2 AS cor0
----
-1
77
-1
77
-1
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3083
SELECT ALL - col1 / + col1 col1, 77 FROM tab2 AS cor0
----
-1
77
-1
77
-1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT - + MAX( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT - + MAX ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + - 58 - + ( + 35 ) * - - 61 FROM tab0 AS cor0
----
-2193
-2193
-2193

query I rowsort
SELECT ALL + col2 + + + col1 + 5 + 84 * - 70 * - + ( col1 ) AS col0 FROM tab0 AS cor0
----
123516
476413
5985

query II rowsort
SELECT ALL + col1, - 75 FROM tab0 AS cor0 WHERE col2 + 24 BETWEEN 9 * col0 AND + + col2
----

query I rowsort
SELECT DISTINCT 13 + + 33 FROM tab0
----
46

query III rowsort
SELECT * FROM tab0 WHERE col0 < - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT - 20 * + - MIN( DISTINCT - + col0 ) + - COUNT( * ) DIV + + 17 * - - 69 FROM tab0
----
-1940

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 20 * + - MIN ( DISTINCT - + col0 ) + - COUNT ( * ) / + + 17 * - - 69 FROM tab0
----
-1940

query I rowsort
SELECT + ( + + col2 ) + col0 + + + col1 AS col0 FROM tab1
----
149
161
206

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT col2 DIV + col1 + col1 DIV - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3092
SELECT col2 / + col1 + col1 / - col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + 79 + - - 30 + - 50 * COUNT( * ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 79 + - - 30 + - 50 * COUNT ( * ) FROM tab1
----
-41

query I rowsort
SELECT DISTINCT 58 + + 8 AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3095
SELECT ALL + 25 * + 58 * + col0 * - col0 - + + CAST( NULL AS SIGNED ) AS col2, + 82 AS col2 FROM tab0
----
NULL
82
NULL
82
NULL
82

skipif mysql # not compatible
query II rowsort label-3095
SELECT ALL + 25 * + 58 * + col0 * - col0 - + + CAST ( NULL AS INTEGER ) AS col2, + 82 AS col2 FROM tab0
----
NULL
82
NULL
82
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL - COUNT( * ) - COUNT( - col1 ) col1 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3096
SELECT ALL - COUNT ( * ) - COUNT ( - col1 ) col1 FROM tab0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 68 IS NULL OR NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT + 71 - + COUNT( * ) AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + 71 - + COUNT ( * ) AS col0 FROM tab2
----
68

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 62 IS NULL
----

query I rowsort
SELECT - ( + 24 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT - ( + 8 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + + 41 + 87 - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL - CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL + - COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + - COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT + SUM( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + SUM ( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
199

query II rowsort
SELECT ALL col0, + col2 + + col0 * col2 + - 29 FROM tab0 AS cor0
----
15
723
87
851
97
9673

query I rowsort
SELECT col0 * + 22 + - 26 FROM tab0 AS cor0
----
1888
2108
304

query I rowsort
SELECT ( + col0 ) * - + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - - SUM( ALL + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - SUM ( ALL + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT - + 26 * - MAX( - + col2 ) FROM tab1 AS cor0
----
-1534

skipif mysql # not compatible
query I rowsort label-3111
SELECT - + 26 * - MAX ( - + col2 ) FROM tab1 AS cor0
----
-1534

query II rowsort
SELECT DISTINCT 31 * + col0 AS col1, - col1 FROM tab1
----
1581
-14
2635
-5
2821
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT COUNT( ALL + 22 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3113
SELECT COUNT ( ALL + 22 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT IN ( - 96, - ( col0 ), - - col2 - + - col2 )
----

query I rowsort
SELECT ALL 4 * col1 AS col1 FROM tab2
----
204
268
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT CAST( + + 39 AS SIGNED ) * + col2 FROM tab1
----
2301
2652
3744

skipif mysql # not compatible
query I rowsort label-3116
SELECT CAST ( + + 39 AS INTEGER ) * + col2 FROM tab1
----
2301
2652
3744

query II rowsort
SELECT - - ( + col2 ), - col2 + - - 49 AS col2 FROM tab2 AS cor0
----
23
26
40
9
58
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - + col1 AS col2 FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - - col1 + + col2 BETWEEN col1 + + col1 + - + col2 + - - 59 * - 66 AND ( + col0 ) - - col2
----
67

query I rowsort
SELECT col2 * + + col1 + - - col2 * + + 20 * col2 * + col2 FROM tab2 AS cor0
----
1283080
244513
3906126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 81, - col0 col1 FROM tab0 AS cor0
----
81
-15
81
-87
81
-97

query I rowsort
SELECT 92 - - 17 FROM tab2
----
109
109
109

query I rowsort
SELECT + 48 * col1 - + ( + - 60 ) AS col0 FROM tab0
----
1068
108
3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT DISTINCT + col1 - + + ( ( - - CAST( NULL AS SIGNED ) ) ) + - - col2 * - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + col1 - + + ( ( - - CAST ( NULL AS INTEGER ) ) ) + - - col2 * - col1 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * + col0 * + + 35 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT - - CAST( 68 AS SIGNED ) FROM tab1 cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-3127
SELECT - - CAST ( 68 AS INTEGER ) FROM tab1 cor0
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - - 53 BETWEEN + 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL + MIN( DISTINCT - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + MIN ( DISTINCT - + col0 ) FROM tab2
----
-75

query I rowsort
SELECT ALL - ( 55 ) AS col2 FROM tab1 WHERE NOT - ( + col2 ) <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + ( SUM( - col0 ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3131
SELECT + ( SUM ( - col0 ) ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT + 94 * + col2 FROM tab0
----
4418
9306
940

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT + SUM( col1 ) AS col0 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3133
SELECT + SUM ( col1 ) AS col0 FROM tab2 cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 + col2 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT ALL col2 + CAST( + 32 AS SIGNED ) FROM tab0 cor0
----
131
42
79

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL col2 + CAST ( + 32 AS INTEGER ) FROM tab0 cor0
----
131
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL MAX( DISTINCT col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL MAX ( DISTINCT col1 ) FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + ( - col2 ) col0 FROM tab2
----
-17
1
18

query III rowsort
SELECT DISTINCT 55 AS col2, 17, 66 AS col1 FROM tab1
----
55
17
66

query II rowsort
SELECT - col0 * - col0 + - 18 * 90 * col0 * - col2 AS col1, col1 FROM tab2
----
1716076
51
4151296
77
7052625
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 32 BETWEEN NULL AND col1 * - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NOT - - ( + col0 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col0 AS col2, 90 FROM tab2
----
-46
90
-64
90
-75
90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * 5 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( - 86 ) AS col2 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - COUNT( * ) + MIN( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT - COUNT ( * ) + MIN ( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3147
SELECT - - 79 AS col2, - COUNT( * ) * - 3 FROM tab0 cor0
----
79
9

skipif mysql # not compatible
query II rowsort label-3147
SELECT - - 79 AS col2, - COUNT ( * ) * - 3 FROM tab0 cor0
----
79
9

query I rowsort
SELECT ALL - 61 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col1 NOT IN ( col2, col1 * + col1, - 43 ) )
----
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col0 ) NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - 57 + - + 70 + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-3152
SELECT - 57 + - + 70 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + 57 col0 FROM tab0 cor0
----
144
154
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3153
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + 57 col0 FROM tab0 cor0
----
144
154
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT + 62 + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-3154
SELECT + 62 + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 cor0
----
68

query I rowsort
SELECT ALL 42 + col1 + - col1 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT + ( - 12 ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3156
SELECT + ( - 12 ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3157
SELECT ALL - col0 AS col2, col2 / - col0 * + CAST( NULL AS DECIMAL ) - - 48 * + col0 * - - col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL - col0 AS col2, col2 / - col0 * + CAST ( NULL AS REAL ) - - 48 * + col0 * - - col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col2 FROM tab2 WHERE - + col1 * + 87 <= + col2 + + ( + - col0 )
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT 0 * ( COUNT( * ) ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3159
SELECT 0 * ( COUNT ( * ) ) col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - 61, - col1 AS col0 FROM tab2
----
-61
-51
-61
-67
-61
-77

query II rowsort
SELECT ALL + col0 AS col2, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + 35 ) + - 29 + - + col0 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - ( 12 ) AS col0 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL + - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT ALL - 39 DIV - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - 39 / - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + - col2 * - col1 * + - 89 AS col2, - col1 FROM tab0 cor0
----
-18690
-21
-338823
-81
-8811
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT + - COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 * col2 / + 43 + - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3169
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 13 AS col1 FROM tab2 WHERE NOT - + col0 IN ( 42 * - 3, - col2, + - 46, + col0, + - col0 * col0, + col1 )
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 13 AS col1 FROM tab2 WHERE NOT - + col0 IN ( 42 * - 3, - col2, + - 46, + col0, + - col0 * col0, + col1 )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT + 18 * COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3171
SELECT + 18 * COUNT ( * ) FROM tab2
----
54

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * + - 86 + col2 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * col2 col2 FROM tab2
----
2208
3840
5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3174
SELECT 10 + - 0 + MAX( ALL + CAST( NULL AS SIGNED ) ) / - 3 AS col2, + 81 FROM tab1 AS cor0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-3174
SELECT 10 + - 0 + MAX ( ALL + CAST ( NULL AS INTEGER ) ) / - 3 AS col2, + 81 FROM tab1 AS cor0
----
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + - + 62 col0 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL + col1 + + + 49 AS col0 FROM tab2 AS cor0
----
100
116
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT ALL col0 + + + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL col0 + + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - 57 + + col0 + + col1 FROM tab1 AS cor0
----
33
8
81

query I rowsort
SELECT ALL - + 4 FROM tab1 cor0 WHERE 69 IS NOT NULL
----
-4
-4
-4

query I rowsort
SELECT DISTINCT col0 + - 77 * + col1 FROM tab2
----
-3881
-5084
-5865

query I rowsort
SELECT DISTINCT + ( - 38 ) AS col1 FROM tab1
----
-38

query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE NULL IS NULL
----
66
66
66

query I rowsort
SELECT DISTINCT + 26 + - + 39 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ALL 7 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
7
7
7

query I rowsort
SELECT DISTINCT col0 + + - col1 + - col2 + col2 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT + 80 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
80

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 2 * - 75 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 76 - col0 FROM tab1 AS cor0
----
-15
-9
25

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT - ( MAX( DISTINCT + col0 ) ) * - COUNT( * ) col1 FROM tab2 cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3191
SELECT - ( MAX ( DISTINCT + col0 ) ) * - COUNT ( * ) col1 FROM tab2 cor0
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 - + 26 col0 FROM tab0 AS cor0
----
23

query II rowsort
SELECT - col1 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + - col2 <> NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT COUNT( * ) * - MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3197
SELECT COUNT ( * ) * - MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT - col1 * + + col2 * - - 22 AS col0 FROM tab0 cor0
----
-2178
-4620
-83754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3199
SELECT DISTINCT + + col0 AS col2, + CAST( 32 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
32
87
32
97
32

skipif mysql # not compatible
query II rowsort label-3199
SELECT DISTINCT + + col0 AS col2, + CAST ( 32 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
32
87
32
97
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT col0 DIV + col0 + - col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-3200
SELECT col0 / + col0 + - col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-45
-63
-74

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 < - 27 * + + col2 / - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 21 * - col1 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT MIN( + 32 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3203
SELECT MIN ( + 32 ) FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT ALL CAST( NULL AS SIGNED ) * - ( - + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL CAST ( NULL AS INTEGER ) * - ( - + col0 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL + MAX( DISTINCT 54 ) * + - COUNT( col2 ) AS col2 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + MAX ( DISTINCT 54 ) * + - COUNT ( col2 ) AS col2 FROM tab2
----
-162

query I rowsort
SELECT DISTINCT - 27 * - 74 * - col0 FROM tab1
----
-101898
-169830
-181818

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT + 57 * - SUM( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2736

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + 57 * - SUM ( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL 49 * COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 49 * COUNT ( * ) FROM tab2
----
147

query II rowsort
SELECT col1 AS col2, 42 AS col0 FROM tab1 AS cor0
----
14
42
47
42
5
42

query II rowsort
SELECT col0, + col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT MIN( DISTINCT - - col1 ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT MIN ( DISTINCT - - col1 ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, 52 * - 35 col1 FROM tab2 cor0
----
23
-1820
40
-1820
58
-1820

query I rowsort
SELECT DISTINCT + 73 + - col1 * col2 FROM tab1 AS cor0
----
-1271
-222
-3123

query I rowsort
SELECT DISTINCT + + 40 * - col0 FROM tab1 cor0
----
-2040
-3400
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3215
SELECT * FROM tab2 AS cor0 WHERE - CAST( + + 48 AS SIGNED ) * 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3215
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + + 48 AS INTEGER ) * 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3217
SELECT * FROM tab1 cor0 WHERE col2 NOT IN ( - + col2 * ( + CAST( + col2 AS SIGNED ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3217
SELECT * FROM tab1 cor0 WHERE col2 NOT IN ( - + col2 * ( + CAST ( + col2 AS INTEGER ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 80 * + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3219
SELECT DISTINCT + col0 DIV + - col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT + col0 / + - col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL 16 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL 16 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
19

query I rowsort
SELECT + 2 + - ( - 27 ) FROM tab1
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT - 34 + + - CAST( NULL AS SIGNED ) + - - col2 + - - 90 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT - 34 + + - CAST ( NULL AS INTEGER ) + - - col2 + - - 90 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 48 col0 FROM tab0
----
129
49
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL - col1 + + - ( col1 ) + - CAST( - col2 AS SIGNED ) * 38 AS col0 FROM tab0
----
1624
338
3760

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - col1 + + - ( col1 ) + - CAST ( - col2 AS INTEGER ) * 38 AS col0 FROM tab0
----
1624
338
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT + COUNT( ALL - 8 ) + + 9 AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT + COUNT ( ALL - 8 ) + + 9 AS col2 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT + COUNT( * ) + + SUM( + col1 ) col0 FROM tab2
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3226
SELECT + COUNT ( * ) + + SUM ( + col1 ) col0 FROM tab2
----
198

query I rowsort
SELECT ALL + 32 * 86 AS col0 FROM tab2
----
2752
2752
2752

query I rowsort
SELECT - col2 + - + col1 AS col2 FROM tab0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT ALL 6 DIV + col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3229
SELECT ALL 6 / + col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 FROM tab1 WHERE - col2 + - col0 * - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 99 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + - 18 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + - 18 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + col0 * + 47 AS col1 FROM tab0 cor0
----
4089
4559
705

query I rowsort
SELECT + - col1 * - 95 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col2 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT - - MIN( - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - - MIN ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT - 97 * COUNT( * ) FROM tab1 cor0 WHERE NOT - 71 <> + 25 * 15
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - 97 * COUNT ( * ) FROM tab1 cor0 WHERE NOT - 71 <> + 25 * 15
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT + ( + 64 ) * - col1 + 95 + col0 DIV - col1 AS col2 FROM tab0
----
-1253
-5089
-66

skipif mysql # not compatible
query I rowsort label-3239
SELECT + ( + 64 ) * - col1 + 95 + col0 / - col1 AS col2 FROM tab0
----
-1253
-5089
-66

query I rowsort
SELECT - col0 * 20 * - - col2 AS col0 FROM tab1
----
-100300
-123760
-97920

query I rowsort
SELECT ALL 72 * - 37 AS col1 FROM tab0
----
-2664
-2664
-2664

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 33 IS NULL
----

query I rowsort
SELECT ( + 75 ) AS col0 FROM tab0
----
75
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT DISTINCT - COUNT( * ) AS col1, + ( + - COUNT( * ) ) AS col2 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3244
SELECT DISTINCT - COUNT ( * ) AS col1, + ( + - COUNT ( * ) ) AS col2 FROM tab1
----
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <> - + 1 * col2 + - col1 + - col0 + + 58 + + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - + col1 ) * + - col2 + col1 AS col1 FROM tab1 cor0
----
1358
300
3243

query I rowsort
SELECT ALL - + 16 * - col0 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL - MAX( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - MAX ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-3251
SELECT DISTINCT - + 71 + - 43 AS col1, - 95 DIV 30 * + col1 * - - col0 AS col0 FROM tab2 AS cor0
----
-114
-14784
-114
-15075
-114
-7038

skipif mysql # not compatible
query II rowsort label-3251
SELECT DISTINCT - + 71 + - 43 AS col1, - 95 / 30 * + col1 * - - col0 AS col0 FROM tab2 AS cor0
----
-114
-14784
-114
-15075
-114
-7038

query I rowsort
SELECT DISTINCT ( + 25 ) * - col0 AS col1 FROM tab1
----
-1275
-2125
-2275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 / 75 + + col2 * - col1 col1 FROM tab0 AS cor0 WHERE NOT ( + col1 * + - 12 + + col2 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + + 38 * - - SUM( DISTINCT ( 13 ) ) + + ( + MAX( + col1 ) ) FROM tab1 AS cor0
----
541

skipif mysql # not compatible
query I rowsort label-3254
SELECT + + 38 * - - SUM ( DISTINCT ( 13 ) ) + + ( + MAX ( + col1 ) ) FROM tab1 AS cor0
----
541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT ALL + CAST( 94 AS SIGNED ) col0 FROM tab2 AS cor0
----
94
94
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3255
SELECT ALL + CAST ( 94 AS INTEGER ) col0 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL - 32 + + + 85 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT + + col1 DIV + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT + + col1 / + + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3258
SELECT DISTINCT - MIN( - CAST( NULL AS SIGNED ) ) + + - 72 AS col0, COUNT( * ) col2, CAST( NULL AS SIGNED ) FROM tab0
----
NULL
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3258
SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) + + - 72 AS col0, COUNT ( * ) col2, CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
3
NULL

query I rowsort
SELECT 14 * col1 FROM tab0
----
1134
14
294

query I rowsort
SELECT + 39 + - + col1 AS col2 FROM tab2 AS cor0 WHERE - col0 * - + 31 + - + col0 - - - col0 + 76 NOT BETWEEN ( NULL ) AND - col2
----
-12
-28
-38

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 70 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - col0 * - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 26 BETWEEN NULL AND + 47
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT 0 * + - 62 / - 81 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT - MAX( - CAST( 94 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3265
SELECT - MAX ( - CAST ( 94 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT - MAX( DISTINCT - 67 ) AS col2 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3266
SELECT - MAX ( DISTINCT - 67 ) AS col2 FROM tab1 AS cor0
----
67

query I rowsort
SELECT ALL ( + 70 ) AS col0 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT - MIN( ALL ( - - col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3268
SELECT - MIN ( ALL ( - - col2 ) ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND - 23 * 15
----

query I rowsort
SELECT - 9 * + col1 AS col0 FROM tab1
----
-126
-423
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3271
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 WHERE 57 * + 15 + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 WHERE 57 * + 15 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 / ( 81 ) NOT BETWEEN NULL AND - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT - COUNT( * ) * - COUNT( * ) * - 11 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT - COUNT ( * ) * - COUNT ( * ) * - 11 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 28 * + 5 FROM tab1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT - COUNT( DISTINCT + 59 ) * - 15 AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3275
SELECT - COUNT ( DISTINCT + 59 ) * - 15 AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - + col2 + - - 24 AS col0 FROM tab1 AS cor0
----
-35
-44
-72

query II rowsort
SELECT - - col2 AS col0, 69 - - 77 AS col2 FROM tab1 AS cor0
----
59
146
68
146
96
146

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 * + + col1 FROM tab1 AS cor0
----
59
425
68
4277
96
714

query I rowsort
SELECT DISTINCT - ( - 77 ) + 93 AS col1 FROM tab1 AS cor0
----
170

query I rowsort
SELECT - 81 + - col1 FROM tab2 AS cor0
----
-132
-148
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - 29 + - 34 + + COUNT( * ) - - COUNT( * ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-3281
SELECT - 29 + - 34 + + COUNT ( * ) - - COUNT ( * ) FROM tab2
----
-57

query I rowsort
SELECT + 95 + + 23 FROM tab0
----
118
118
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + - 97 + + col0 + + col1 * + col0 col1 FROM tab1
----
4315
457
712

query I rowsort
SELECT 62 + - 44 FROM tab2
----
18
18
18

query II rowsort
SELECT col0, col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 32 AS col1 FROM tab2 cor0
----
-32

query I rowsort
SELECT + 26 - col1 AS col1 FROM tab2 AS cor0
----
-25
-41
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT DISTINCT + + col1 DIV - 60 + - - col0 AS col1 FROM tab2 AS cor0
----
46
63
74

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT + + col1 / - 60 + - - col0 AS col1 FROM tab2 AS cor0
----
46
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL + ( - - COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + ( - - COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 54 / col1 * - + 98 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 54 / col1 * - + 98 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + col0 > 71 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 19 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
19
-14
19
-47
19
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-3293
SELECT + col0 col1, - col0 + + + col2 + col2 DIV + col2 AS col0 FROM tab2 AS cor0
----
46
-22
64
-23
75
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3293
SELECT + col0 col1, - col0 + + + col2 + col2 / + col2 AS col0 FROM tab2 AS cor0
----
46
-22
64
-23
75
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3294
SELECT col2 * - col1 / + col0 + 43, + col0 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL < col2 + + col1 + - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-3294
SELECT col2 * - col1 / + col0 + 43, + col0 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL < col2 + + col1 + - col1 + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3295
SELECT ALL * FROM tab2 cor0 WHERE NOT + 57 * - 87 * + CAST( NULL AS SIGNED ) IN ( + col1 + + - col2 )
----

skipif mysql # not compatible
query III rowsort label-3295
SELECT ALL * FROM tab2 cor0 WHERE NOT + 57 * - 87 * + CAST ( NULL AS INTEGER ) IN ( + col1 + + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT 18 * - col0 * CAST( - 95 AS SIGNED ) FROM tab0 AS cor0
----
148770
165870
25650

skipif mysql # not compatible
query I rowsort label-3296
SELECT 18 * - col0 * CAST ( - 95 AS INTEGER ) FROM tab0 AS cor0
----
148770
165870
25650

query I rowsort
SELECT + col0 * + 16 AS col0 FROM tab0 AS cor0
----
1392
1552
240

onlyif mysql # DIV for integer division: 
query II rowsort label-3298
SELECT col1, + col2 DIV - 72 FROM tab1 AS cor0
----
14
-1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-3298
SELECT col1, + col2 / - 72 FROM tab1 AS cor0
----
14
-1
47
0
5
0

query I rowsort
SELECT + ( + col1 ) * - - ( - col2 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT DISTINCT - + ( col0 ) DIV - 34 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT - + ( col0 ) / - 34 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT - 48 * col2 AS col0 FROM tab0 AS cor0
----
-2256
-4752
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT col2 * - CAST( NULL AS SIGNED ) * - - 56 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT col2 * - CAST ( NULL AS INTEGER ) * - - 56 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 36 * + + 8 FROM tab1
----
288
288
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT - ( col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3304
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT - ( col1 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT ( - 79 ) + + 32 * - col0 FROM tab0 WHERE NOT ( NULL ) >= 9 * + col1
----

query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab2 AS cor0 WHERE col0 * - col1 - - ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT ALL CAST( - + 58 AS SIGNED ) FROM tab1 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL CAST ( - + 58 AS INTEGER ) FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT + col2 + - 4 AS col0 FROM tab0 AS cor0
----
43
6
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL - CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
95

query I rowsort
SELECT DISTINCT - 57 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT + SUM( - 59 ) AS col2 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT + SUM ( - 59 ) AS col2 FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT - COUNT( * ) + + + 30 AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3313
SELECT - COUNT ( * ) + + + 30 AS col0 FROM tab1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 62 + + + col0 FROM tab0 AS cor0
----
149
159
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 69 AND NULL
----

query I rowsort
SELECT + col2 * - + 98 FROM tab2 AS cor0
----
-2254
-3920
-5684

query II rowsort
SELECT + + col1 AS col1, - col0 + - col2 * - col1 FROM tab1 AS cor0
----
14
1293
47
3105
5
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT + + CAST( NULL AS SIGNED ) * - + AVG ( ( 38 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT + + CAST ( NULL AS INTEGER ) * - + AVG ( ( 38 ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 92 ) col0 FROM tab1 cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3321
SELECT 13 DIV - ( - - 13 ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-3321
SELECT 13 / - ( - - 13 ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT - col1 DIV + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3322
SELECT - col1 / + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

query I rowsort
SELECT ALL - 48 * - col1 + col1 - 84 FROM tab1
----
161
2219
602

query I rowsort
SELECT DISTINCT - ( col2 ) - + + col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL ( col1 ) + + + col1 AS col1 FROM tab0
----
162
2
42

query I rowsort
SELECT + 78 + - + 26 AS col1 FROM tab1
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT + CAST( NULL AS SIGNED ) + + + col2 * + 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT + CAST ( NULL AS INTEGER ) + + + col2 * + 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col0 ) - + 36 + - col0 col1, col1 + - col2 FROM tab1 AS cor0
----
-138
-82
-206
-54
-218
-21

query I rowsort
SELECT DISTINCT + ( - + 17 ) AS col2 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT + - COUNT( * ) * ( - 3 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT + - COUNT ( * ) * ( - 3 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT COUNT( * ) * + 15 AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3331
SELECT COUNT ( * ) * + 15 AS col1 FROM tab2
----
45

query I rowsort
SELECT - ( - ( - col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL COUNT( * ) * + + COUNT( ALL - 98 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL COUNT ( * ) * + + COUNT ( ALL - 98 ) AS col1 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 74 ) col0 FROM tab1 AS cor0
----
-74
-74
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 65 ) FROM tab1 AS cor0 WHERE NOT + 45 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT ALL - + CAST( ( + CAST( - 40 AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab1 cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL - + CAST ( ( + CAST ( - 40 AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab1 cor0
----
40
40
40

query I rowsort
SELECT col1 * + - ( - col0 ) AS col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 - 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT + MIN( ALL + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + MIN ( ALL + col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ALL + 99 * + 61 AS col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT - 4 DIV col2 + - - ( - col1 ) * - 40 FROM tab1
----
1880
200
560

skipif mysql # not compatible
query I rowsort label-3342
SELECT - 4 / col2 + - - ( - col1 ) * - 40 FROM tab1
----
1880
200
560

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - COUNT( DISTINCT + - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - COUNT ( DISTINCT + - col0 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT DISTINCT col2 DIV - 31 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT col2 / - 31 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + ( + MAX( ALL - col1 ) ) + + + COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3345
SELECT + ( + MAX ( ALL - col1 ) ) + + + COUNT ( * ) FROM tab1
----
-2

query I rowsort
SELECT - 0 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - ( + + ( - + COUNT( * ) ) ) * - 21 + + 7 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 40, col2, + ( - col2 ) + - col2 * + + col0, 3 + + col2 )
----
7

skipif mysql # not compatible
query I rowsort label-3347
SELECT - ( + + ( - + COUNT ( * ) ) ) * - 21 + + 7 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 40, col2, + ( - col2 ) + - col2 * + + col0, 3 + + col2 )
----
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IS NULL OR NOT - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT - COUNT( * ) * 57 AS col2 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - COUNT ( * ) * 57 AS col2 FROM tab1
----
-171

query I rowsort
SELECT 4 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT MIN( DISTINCT 93 ) AS col0 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT MIN ( DISTINCT 93 ) AS col0 FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT col1 FROM tab2 WHERE NOT + 72 + - CAST( + col1 - col2 / + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3354
SELECT col1 FROM tab2 WHERE NOT + 72 + - CAST ( + col1 - col2 / + col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 58 + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE - 40 - col2 * 59 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + 81 AS col1 FROM tab0
----
81
81
81

query I rowsort
SELECT + col1 * - col0 FROM tab0 WHERE - col2 IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT 43 * 75 AS col1 FROM tab0
----
3225
3225
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT 81 * SUM( - ( 20 ) ) AS col2 FROM tab2
----
-4860

skipif mysql # not compatible
query I rowsort label-3361
SELECT 81 * SUM ( - ( 20 ) ) AS col2 FROM tab2
----
-4860

query I rowsort
SELECT 49 * + col0 FROM tab2
----
2254
3136
3675

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 57 * - col0 NOT BETWEEN + col2 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + + 12 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 22 * col0 FROM tab0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - COUNT( + col1 ) - - 91 col0 FROM tab2
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3366
SELECT - COUNT ( + col1 ) - - 91 col0 FROM tab2
----
88

query I rowsort
SELECT + 12 * + col2 FROM tab2
----
276
480
696

query I rowsort
SELECT 60 * 18 FROM tab1
----
1080
1080
1080

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 43 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * col2 + - col2 BETWEEN ( - col1 / - 16 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN col0 / - col0 + 30 * + col2 AND - 27 * 50
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT BETWEEN - col0 / 93 AND - 6
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) < + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT col2 * + col2 FROM tab2 WHERE NOT CAST( col0 AS SIGNED ) + col2 NOT BETWEEN col1 + - CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) AND ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3377
SELECT col2 * + col2 FROM tab2 WHERE NOT CAST ( col0 AS INTEGER ) + col2 NOT BETWEEN col1 + - CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AND ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( col1 / + col1 ) AND ( 75 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE col2 NOT BETWEEN ( + col0 ) AND - col0 - 55 * - col0
----
87

query I rowsort
SELECT ALL + col2 * 71 AS col2 FROM tab1 AS cor0
----
4189
4828
6816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3381
SELECT DISTINCT 40 * MIN( DISTINCT - col2 * + col1 ) AS col1 FROM tab1 AS cor0 WHERE ( - CAST( col0 AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT 40 * MIN ( DISTINCT - col2 * + col1 ) AS col1 FROM tab1 AS cor0 WHERE ( - CAST ( col0 AS INTEGER ) ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3382
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 18 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3382
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 18 AND ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 6 * col1 AS col2 FROM tab0
----
-126
-486
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT + COUNT( * ) DIV - 71 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COUNT ( * ) / - 71 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT ALL + ( CAST( - 60 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL + ( CAST ( - 60 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT - 89 FROM tab0 WHERE NOT col2 BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( + col1 ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( + col1 ) <> ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3389
SELECT ALL + COUNT( * ) * - AVG ( ALL + 61 ) + ( 67 ) FROM tab2 AS cor0 WHERE ( CAST( NULL AS DECIMAL ) ) BETWEEN + 45 AND ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + COUNT ( * ) * - AVG ( ALL + 61 ) + ( 67 ) FROM tab2 AS cor0 WHERE ( CAST ( NULL AS REAL ) ) BETWEEN + 45 AND ( + col2 )
----
NULL

query I rowsort
SELECT ALL col1 * 24 FROM tab2 cor0
----
1224
1608
1848

onlyif mysql # DIV for integer division: 
query I rowsort label-3391
SELECT 86 * + 6 + - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
515
515
515

skipif mysql # not compatible
query I rowsort label-3391
SELECT 86 * + 6 + - col2 / col2 AS col1 FROM tab1 AS cor0
----
515
515
515

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 3 * - 29 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT COUNT( * ) - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3393
SELECT COUNT ( * ) - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 9 + 8 FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT - col0 * + 56 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + 13 * - - COUNT( * ) * COUNT( DISTINCT + 4 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + 13 * - - COUNT ( * ) * COUNT ( DISTINCT + 4 ) FROM tab1
----
39

query I rowsort
SELECT col2 * - 72 * - col1 FROM tab0
----
15120
274104
7128

query I rowsort
SELECT ALL col1 * - col1 + col2 * - col1 AS col1 FROM tab2
----
-3774
-8375
-9009

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 94 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3400
SELECT ALL * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-3400
SELECT ALL * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT IN ( - col0 )
----

query I rowsort
SELECT 18 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL + ( COUNT( * ) ) FROM tab1 WHERE + 87 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + ( COUNT ( * ) ) FROM tab1 WHERE + 87 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 + - 4 * + col1 FROM tab0 AS cor0
----
-277
-74
95

query I rowsort
SELECT - + 2 * ( - 25 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT 29 + 92 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * 90 - col1 / - ( + 36 ) > + col2 / + 16 - + 35
----

query I rowsort
SELECT DISTINCT col1 - + + col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3408
SELECT * FROM tab2 cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3408
SELECT * FROM tab2 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT ALL - + col2 * + CAST( NULL AS SIGNED ) * + + col1 + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - + col2 * + CAST ( NULL AS INTEGER ) * + + col1 + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT ALL + col2 - col0 FROM tab2 WHERE - ( + - col2 ) * + col1 IS NOT NULL
----
-17
-23
-24

query III rowsort
SELECT * FROM tab1 WHERE NOT + 62 NOT IN ( - - col2 * - 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT MAX( DISTINCT - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3413
SELECT MAX ( DISTINCT - col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3414
SELECT CAST( COUNT( * ) AS SIGNED ), ( COUNT( * ) ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3414
SELECT CAST ( COUNT ( * ) AS INTEGER ), ( COUNT ( * ) ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT 45 AS col1 FROM tab1 WHERE NOT col2 NOT IN ( - 91 - - 15 )
----

query I rowsort
SELECT DISTINCT 51 * - - col2 FROM tab1
----
3009
3468
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT + COUNT( * ) * 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT + COUNT ( * ) * 42 FROM tab2
----
126

query I rowsort
SELECT DISTINCT - col0 * + - col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT + + MIN( ALL 72 ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + + MIN ( ALL 72 ) AS col2 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL col0 * 54 AS col1 FROM tab1 AS cor0
----
2754
4590
4914

query I rowsort
SELECT ALL col2 + + + col2 AS col2 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 44 ) / + - 61 + col1 * col2 <> ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col1 FROM tab0 cor0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT DISTINCT + col1 * col1 + 81 AS col0 FROM tab1 AS cor0 WHERE ( 3 + - CAST( NULL AS SIGNED ) ) <= CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + col1 * col1 + 81 AS col0 FROM tab1 AS cor0 WHERE ( 3 + - CAST ( NULL AS INTEGER ) ) <= CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT - + col0 * + ( - col1 ) * col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT - MAX( - 61 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
61

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT - MAX ( - 61 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT DISTINCT COUNT( * ) DIV - + MAX( DISTINCT - + col0 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3427
SELECT DISTINCT COUNT ( * ) / - + MAX ( DISTINCT - + col0 ) col1 FROM tab0
----
0

query I rowsort
SELECT - col0 + + col1 + - - 98 AS col0 FROM tab0
----
164
2
32

query I rowsort
SELECT ALL col0 + 75 AS col1 FROM tab2
----
121
139
150

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 23 AND ( + ( - - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3431
SELECT DISTINCT CAST( + + 67 AS SIGNED ) DIV - 47 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT CAST ( + + 67 AS INTEGER ) / - 47 FROM tab0
----
-1

query I rowsort
SELECT - col1 + + col2 * - + col2 AS col2 FROM tab0
----
-121
-2290
-9802

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - 64 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 72 col1, 98 FROM tab2 AS cor0
----
72
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 5 * - + 72 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 81 IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3437
SELECT ALL - col0 + CAST( + + col1 AS SIGNED ) - + ( - 35 ) DIV + - 74 + col0 * + 43 AS col1 FROM tab2 AS cor0
----
1983
2765
3217

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - col0 + CAST ( + + col1 AS INTEGER ) - + ( - 35 ) / + - 74 + col0 * + 43 AS col1 FROM tab2 AS cor0
----
1983
2765
3217

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3438
SELECT - + ( - + col1 ) AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3438
SELECT - + ( - + col1 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3439
SELECT COUNT( * ) DIV 24 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3439
SELECT COUNT ( * ) / 24 col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 - + col2 AND - 68
----

query I rowsort
SELECT col2 * + - ( - col2 ) FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL + col2 + - 78 FROM tab1
----
-10
-19
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL COUNT( DISTINCT + 22 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL COUNT ( DISTINCT + 22 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT col2 IN ( + ( - col2 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL 78 - - COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL 78 - - COUNT ( * ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3446
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT - CAST( + col1 AS SIGNED ) NOT BETWEEN - - col1 AND 48 + 99 * 30 ) )
----

skipif mysql # not compatible
query III rowsort label-3446
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT - CAST ( + col1 AS INTEGER ) NOT BETWEEN - - col1 AND 48 + 99 * 30 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > - 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT + 72 DIV + + col2 FROM tab2 cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-3448
SELECT + 72 / + + col2 FROM tab2 cor0
----
1
1
3

query II rowsort
SELECT + col0 * + col0, 52 AS col1 FROM tab0 AS cor0
----
225
52
7569
52
9409
52

query I rowsort
SELECT ( + 25 ) AS col2 FROM tab0 cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT ALL + col0 DIV + - col0 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3451
SELECT ALL + col0 / + - col0 col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT ALL + 0 * - COUNT( 47 ), + MIN( + col0 ) AS col0 FROM tab0
----
0
15

skipif mysql # not compatible
query II rowsort label-3452
SELECT ALL + 0 * - COUNT ( 47 ), + MIN ( + col0 ) AS col0 FROM tab0
----
0
15

query II rowsort
SELECT col0 * - col0 * + - 6 AS col1, - 2 FROM tab1
----
15606
-2
43350
-2
49686
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT - 9 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT - 9 / - col1 FROM tab2
----
0
0
0

query II rowsort
SELECT col0 AS col1, 76 AS col2 FROM tab0
----
15
76
87
76
97
76

onlyif mysql # DIV for integer division: 
query II rowsort label-3456
SELECT + col2 * - col0 * 8, col1 DIV - - col0 * col2 AS col1 FROM tab1
----
-39168
0
-40120
0
-49504
0

skipif mysql # not compatible
query II rowsort label-3456
SELECT + col2 * - col0 * 8, col1 / - - col0 * col2 AS col1 FROM tab1
----
-39168
0
-40120
0
-49504
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0 WHERE NULL IS NULL
----
-39

query I rowsort
SELECT DISTINCT - col0 * - + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
225
7569
9409

query II rowsort
SELECT - col1 AS col1, + col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3461
SELECT DISTINCT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3461
SELECT DISTINCT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 46 * col2 col2 FROM tab0
----
2115
4455
450

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 62 * - col0 * ( + + col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 5 ) AS col1 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT + + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT + + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + + 74 FROM tab2 AS cor0
----
-3
23
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT - col2 + - col1 - col0 * col0 FROM tab2 cor0 WHERE - col1 + CAST( + - 98 AS SIGNED ) BETWEEN + - col0 - + ( - - col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3467
SELECT - col2 + - col1 - col0 * col0 FROM tab2 cor0 WHERE - col1 + CAST ( + - 98 AS INTEGER ) BETWEEN + - col0 - + ( - - col0 ) AND NULL
----

query I rowsort
SELECT - 45 AS col1 FROM tab0 cor0
----
-45
-45
-45

query I rowsort
SELECT ALL - col1 + - - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 IN ( 20 )
----

query I rowsort
SELECT DISTINCT + 87 * col2 * + col2 + - - col2 FROM tab1
----
302906
402356
801888

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3472
SELECT ALL * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3472
SELECT ALL * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - 91 - - col0 + - 12 AS col2 FROM tab2
----
-28
-39
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3474
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL - MIN( ALL - - col0 ) - + COUNT( * ) * + COUNT( * ) * - 69 FROM tab1
----
570

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL - MIN ( ALL - - col0 ) - + COUNT ( * ) * + COUNT ( * ) * - 69 FROM tab1
----
570

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT col2 DIV col1 DIV + - col0 + - + 82 - + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-67
14
5

skipif mysql # not compatible
query I rowsort label-3476
SELECT col2 / col1 / + - col0 + - + 82 - + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-67
14
5

query I rowsort
SELECT ALL + col2 - + + col2 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 73 NOT IN ( - ( 7 ) + + 17, + 24, col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 37 * - col0 AS col2 FROM tab0
----
3219
3589
555

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE ( col1 ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT + 74, MIN( DISTINCT + col2 ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
74
20

skipif mysql # not compatible
query II rowsort label-3481
SELECT + 74, MIN ( DISTINCT + col2 ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
74
20

query I rowsort
SELECT 48 * + + col0 FROM tab0 cor0
----
4176
4656
720

query I rowsort
SELECT DISTINCT + + 48 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT ALL + col2 * - + col1 DIV - - col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL + col2 * - + col1 / - - col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT MAX( DISTINCT ( col0 ) ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT MAX ( DISTINCT ( col0 ) ) AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 < + 60 * col2 + + col2 + + + 35
----

query II rowsort
SELECT - 51 AS col2, 65 FROM tab0 AS cor0
----
-51
65
-51
65
-51
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * - 40 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT DISTINCT - col1 * - col1 - col1 DIV - 85 + + col0 AS col2 FROM tab1 AS cor0
----
110
2300
247

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - col1 * - col1 - col1 / - 85 + + col0 AS col2 FROM tab1 AS cor0
----
110
2300
247

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 88 / 80 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT CAST( - col0 AS SIGNED ) * - + col0 + 0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3491
SELECT CAST ( - col0 AS INTEGER ) * - + col0 + 0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab1 WHERE NOT - 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 36 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - 62 + col2, - col1, col1 * - col2 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 + + col1 * col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) * col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL + MIN( ALL col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + MIN ( ALL col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE 64 * + - col2 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE 64 * + - col2 IS NOT NULL
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3501
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) * + + 18 * 97 * CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) * + + 18 * 97 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + - 26 + + col2 AS col2 FROM tab1 AS cor0
----
33
42
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - col2 + 75 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 2 + col1 + + - col0 * col1 - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - 47 + - COUNT( * ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3505
SELECT - 47 + - COUNT ( * ) FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ALL - col0 + col2 * + + 90 AS col2 FROM tab2
----
2024
3536
5145

query I rowsort
SELECT DISTINCT ( + 86 ) AS col2 FROM tab1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT ( - - 18 ) DIV - + col1 * col2 + + + 94 AS col1 FROM tab2
----
94
94
94

skipif mysql # not compatible
query I rowsort label-3508
SELECT ( - - 18 ) / - + col1 * col2 + + + 94 AS col1 FROM tab2
----
94
94
94

query III rowsort
SELECT * FROM tab1 WHERE - 79 <= NULL
----

query I rowsort
SELECT ALL + col0 * + 34 + col0 + - col1 FROM tab0 AS cor0
----
3024
3394
444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3511
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) - - COUNT( * ) * + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-729

query I rowsort
SELECT 41 + + + 62 + 88 * - + col1 * + ( col2 ) * col1 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL COUNT( * ) * + 74 AS col2 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL COUNT ( * ) * + 74 AS col2 FROM tab0 AS cor0
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3514
SELECT ALL + SUM( DISTINCT + - col0 ) DIV - - 75 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + SUM ( DISTINCT + - col0 ) / - - 75 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col0 * - 35 FROM tab2 AS cor0
----
-1610
-2240
-2625

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT col1 DIV 34 col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3517
SELECT col1 / 34 col0 FROM tab2
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT 26 DIV - + col2 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT 26 / - + col2 AS col1 FROM tab0
----
-2
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col1 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - AVG ( ALL + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - 29 / + + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + MIN( - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3523
SELECT + MIN ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col0 + + col1 + + col1 * + col2 + - col0 col2 FROM tab1 AS cor0
----
14
1256
47
3061
5
130

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE - 3 NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT + MIN( DISTINCT 72 ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + MIN ( DISTINCT 72 ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL - - ( + 7 ) FROM tab2 AS cor0
----
7
7
7

query II rowsort
SELECT - col1 + - 63 - - + 42 AS col1, + 37 FROM tab1 AS cor0
----
-26
37
-35
37
-68
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT COUNT( * ) + + 89 col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3530
SELECT COUNT ( * ) + + 89 col0 FROM tab1 AS cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT DISTINCT - 77 DIV - col1 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - 77 / - col1 FROM tab1 AS cor0
----
1
15
5

query I rowsort
SELECT - + col0 + - 84 + - col1 FROM tab2 cor0
----
-181
-225
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + + SUM( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3533
SELECT + + SUM ( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3534
SELECT * FROM tab1 AS cor0 WHERE col2 + - - col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3534
SELECT * FROM tab1 AS cor0 WHERE col2 + - - col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( - - col2 * - - 0 + + + col0, ( - + col0 ), - 9, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT DISTINCT - 29 + - COUNT( * ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT - 29 + - COUNT ( * ) FROM tab1 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT DISTINCT - 8 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - 8 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) <= NULL )
----

query I rowsort
SELECT - - 63 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) + - 52 AS col0 FROM tab2
----
-110
-75
-92

query I rowsort
SELECT ALL 56 * + 5 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to bb7b999648fdece98c89ef94f1d23e93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3542
SELECT * FROM tab0 WHERE + - 52 BETWEEN - - 6 + + + col1 AND CAST( NULL AS SIGNED ) * + col0 / + col1 + - 99
----

skipif mysql # not compatible
query III rowsort label-3542
SELECT * FROM tab0 WHERE + - 52 BETWEEN - - 6 + + + col1 AND CAST ( NULL AS INTEGER ) * + col0 / + col1 + - 99
----

query I rowsort
SELECT + - col0 + ( 98 ) AS col0 FROM tab2 AS cor0
----
23
34
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT DISTINCT - col0 - - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - col0 - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + col1 + - col0 + + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT ALL + CAST( + + ( + 8 ) AS SIGNED ) * + col0 FROM tab0 AS cor0
----
120
696
776

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL + CAST ( + + ( + 8 ) AS INTEGER ) * + col0 FROM tab0 AS cor0
----
120
696
776

query I rowsort
SELECT + ( + 76 ) AS col0 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT ALL - - col1 - 53 FROM tab2 AS cor0 WHERE - col2 * + CAST( - col2 AS SIGNED ) + - col1 IS NOT NULL
----
-2
14
24

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - - col1 - 53 FROM tab2 AS cor0 WHERE - col2 * + CAST ( - col2 AS INTEGER ) + - col1 IS NOT NULL
----
-2
14
24

query I rowsort
SELECT DISTINCT - 75 * - - ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-3825
-5025
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT ALL + CAST( + + ( col2 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + CAST ( + + ( col2 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT - 46 * COUNT( * ) AS col2 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 46 * COUNT ( * ) AS col2 FROM tab1
----
-138

query II rowsort
SELECT 84, - 18 + - col2 AS col0 FROM tab0
----
84
-117
84
-28
84
-65

query I rowsort
SELECT + 78 * - 89 FROM tab2
----
-6942
-6942
-6942

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT - 73 * COUNT( 60 ) FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT - 73 * COUNT ( 60 ) FROM tab0
----
-219

query II rowsort
SELECT col1 AS col1, 8 AS col2 FROM tab1
----
14
8
47
8
5
8

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col1 * - 55 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT DISTINCT - COUNT( * ) * + 12 AS col1 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - COUNT ( * ) * + 12 AS col1 FROM tab2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT - AVG ( - 13 ) + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT - AVG ( - 13 ) + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col1 + col1 + - 61 AS col1 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT DISTINCT col2 + - 29 AS col2 FROM tab1 AS cor0
----
30
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT 31 + MIN( col1 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT 31 + MIN ( col1 ) FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3564
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 68 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT 32 + + 23 FROM tab0
----
55

query I rowsort
SELECT - 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 col2, col0 AS col2 FROM tab1
----
92
51
92
85
92
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT - COUNT( * ) AS col2, + ( + + 76 ) AS col0 FROM tab0
----
-3
76

skipif mysql # not compatible
query II rowsort label-3569
SELECT - COUNT ( * ) AS col2, + ( + + 76 ) AS col0 FROM tab0
----
-3
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT ALL - + 14 DIV + + ( - ( + 16 ) ) + + + 23 - - col1 AS col0 FROM tab0 AS cor0
----
104
24
44

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - + 14 / + + ( - ( + 16 ) ) + + + 23 - - col1 AS col0 FROM tab0 AS cor0
----
104
24
44

query I rowsort
SELECT col1 + 51 FROM tab2 AS cor0
----
102
118
128

query II rowsort
SELECT ALL + col1 AS col2, - 12 AS col1 FROM tab2 AS cor0
----
51
-12
67
-12
77
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 + + 54 FROM tab2 AS cor0
----
105
121
131

query I rowsort
SELECT + col2 + + + col0 FROM tab1
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( + col2 ) col1 FROM tab2
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT ALL + col2 DIV - + col0 - - 59 AS col2 FROM tab0
----
56
58
59

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + col2 / - + col0 - - 59 AS col2 FROM tab0
----
56
58
59

query I rowsort
SELECT ALL col0 + - + 27 + - - col0 * 27 FROM tab1
----
1401
2353
2521

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3579
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) IN ( col0, CAST( col1 AS SIGNED ), - + 45 )
----

skipif mysql # not compatible
query III rowsort label-3579
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IN ( col0, CAST ( col1 AS INTEGER ), - + 45 )
----

query I rowsort
SELECT DISTINCT + col0 * + + 40 - col2 AS col2 FROM tab2
----
1817
2520
2942

query I rowsort
SELECT ALL 23 + + col1 AS col1 FROM tab2
----
100
74
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( 89 - - col2 * - col0 - + 13, col2 )
----

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL MAX( - + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL MAX ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - - MIN( 76 ) AS col0 FROM tab2 WHERE NOT 81 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT - - MIN ( 76 ) AS col0 FROM tab2 WHERE NOT 81 >= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT 63 * ( - + SUM( ALL + CAST( NULL AS SIGNED ) ) ) * - MIN( DISTINCT 32 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT 63 * ( - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) * - MIN ( DISTINCT 32 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL + COUNT( * ) * 57 AS col2 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL + COUNT ( * ) * 57 AS col2 FROM tab0
----
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30, + 70 col2 FROM tab0
----
30
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - - col0 * - ( + 99 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / - 42 <= - - 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 68 col0 FROM tab2 AS cor0
----
-68
-68
-68

query II rowsort
SELECT - - col0, - col0 AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT + + ( CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3594
SELECT + + ( CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE 81 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL + CAST( NULL AS SIGNED ) * + + 51 + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 51 + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT - 55 DIV + 59 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3599
SELECT - 55 / + 59 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + - col1 AS col1 FROM tab2 WHERE NOT ( NOT col2 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + ( - col0 ) * - col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT - 29 * 56 FROM tab2
----
-1624
-1624
-1624

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE NOT 57 IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL col2 * + 68 + - col2 AS col2 FROM tab1 AS cor0
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT - 15 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3605
SELECT - 15 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT + + 7 + + ( - col0 ) AS col1 FROM tab2 cor0 WHERE + col2 = CAST( NULL AS SIGNED ) * col2 - + - col1
----

skipif mysql # not compatible
query I rowsort label-3606
SELECT + + 7 + + ( - col0 ) AS col1 FROM tab2 cor0 WHERE + col2 = CAST ( NULL AS INTEGER ) * col2 - + - col1
----

query I rowsort
SELECT ALL 14 + - 39 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT - 18 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT - COUNT( * ) * - 74 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-3609
SELECT - COUNT ( * ) * - 74 FROM tab0 AS cor0
----
222

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 6 + col1 + + - col1 + + - col1 + col0 / - - col0 + 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 42 * col2 + - + col0 FROM tab2 AS cor0
----
1616
2361
920

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col0 IS NULL
----

query I rowsort
SELECT + + col1 * + - ( + col2 ) FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT 55 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT 55 / - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + - col2
----
0

query I rowsort
SELECT - ( - 37 ) FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT - + col2 * - col1 + - - col2 + - col0 - col0 + + col1 * - + 41 FROM tab2 AS cor0
----
-165
-987
1047

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT col1 + + + ( + col2 ) * - col2 FROM tab0 AS cor0
----
-2128
-79
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL - COUNT( * ) + + 62 AS col0 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - COUNT ( * ) + + 62 AS col0 FROM tab0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3621
SELECT DISTINCT CAST( 84 AS SIGNED ) + + col1 / + 49 * + ( - col0 ) AS col2, + col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3621
SELECT DISTINCT CAST ( 84 AS INTEGER ) + + col1 / + 49 * + ( - col0 ) AS col2, + col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT COUNT( - 67 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3623
SELECT COUNT ( - 67 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + + - col2 col2 FROM tab0 cor0 WHERE NOT ( NULL ) > 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT MAX( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT MAX ( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3626
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3628
SELECT DISTINCT + + CAST( col1 AS SIGNED ) AS col2, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-3628
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) AS col2, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 <> 81
----

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab1 AS cor0 WHERE col2 + + - 65 = + col2
----

query I rowsort
SELECT DISTINCT - - col1 * + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + 21 * + col0 AS col0 FROM tab0 AS cor0
----
1827
2037
315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( - 67 ) + + - col0 + col1 * - - col0 col0 FROM tab0 AS cor0
----
-1949
-6633
1070

query I rowsort
SELECT ALL 46 + 51 * - col2 AS col2 FROM tab2 cor0
----
-1127
-1994
-2912

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + col1 AND - 63
----

query I rowsort
SELECT ( - + 40 ) FROM tab2
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT DISTINCT 51 + + CAST( + + col1 AS SIGNED ) * col0 FROM tab1
----
4328
476
765

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT 51 + + CAST ( + + col1 AS INTEGER ) * col0 FROM tab1
----
4328
476
765

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT DISTINCT 88 AS col2, + COUNT( * ) * + - 71 + + 95 FROM tab0
----
88
-118

skipif mysql # not compatible
query II rowsort label-3638
SELECT DISTINCT 88 AS col2, + COUNT ( * ) * + - 71 + + 95 FROM tab0
----
88
-118

query I rowsort
SELECT + col0 FROM tab2 WHERE 16 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3640
SELECT - 39 + - + MAX( CAST( - col2 AS SIGNED ) ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-3640
SELECT - 39 + - + MAX ( CAST ( - col2 AS INTEGER ) ) FROM tab2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT - 87 DIV + 26 + 13 - col1 AS col1 FROM tab2
----
-41
-57
-67

skipif mysql # not compatible
query I rowsort label-3641
SELECT - 87 / + 26 + 13 - col1 AS col1 FROM tab2
----
-41
-57
-67

query I rowsort
SELECT 69 + - col0 FROM tab1
----
-16
-22
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT 37 * - - COUNT( * ) + - COUNT( ALL col2 ) AS col1 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-3643
SELECT 37 * - - COUNT ( * ) + - COUNT ( ALL col2 ) AS col1 FROM tab2
----
108

query I rowsort
SELECT DISTINCT + 6 + - - col1 * - 26 * + 44 - + + col0 AS col1 FROM tab2 AS cor0
----
-58384
-76717
-88146

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 - - col1 IS NULL AND NOT NULL BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 - - col1 IS NULL AND NOT NULL BETWEEN col0 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 53 * + col2 col0, + col0 * col0 AS col2 FROM tab0 AS cor0
----
2491
225
5247
9409
530
7569

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT - col0 + + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-12
-87
-96

skipif mysql # not compatible
query I rowsort label-3647
SELECT - col0 + + col2 / + col0 AS col0 FROM tab0 AS cor0
----
-12
-87
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT - 80 * - - COUNT( ALL + + col0 ) AS col0 FROM tab2 AS cor0 WHERE - ( + col2 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT - 80 * - - COUNT ( ALL + + col0 ) AS col0 FROM tab2 AS cor0 WHERE - ( + col2 ) < NULL
----
0

query I rowsort
SELECT ALL - + 71 * - - 14 AS col0 FROM tab1 AS cor0
----
-994
-994
-994

query I rowsort
SELECT DISTINCT + 97 * + - col2 AS col0 FROM tab0 cor0
----
-4559
-9603
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 63 + col2 col1 FROM tab1 AS cor0
----
127
173
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab2 AS cor0 WHERE + 67 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col0 * - - col2 * + 54, col0 + - col1 AS col2 FROM tab1
----
264384
37
270810
80
334152
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 + + 37 + + col0 * col1 / + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3655
SELECT 86 DIV SUM( ALL - - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3655
SELECT 86 / SUM ( ALL - - col2 ) FROM tab2
----
0

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab2 WHERE NULL >= - 1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 = + + 86
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - - col2 AND - - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT DISTINCT - 71 * - CAST( - col1 AS SIGNED ) * + col0 col1 FROM tab2 cor0
----
-166566
-349888
-356775

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3659
SELECT DISTINCT - 71 * - CAST ( - col1 AS INTEGER ) * + col0 col1 FROM tab2 cor0
----
-166566
-349888
-356775

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + 72 FROM tab1 AS cor0 WHERE + col1 / + col1 IS NOT NULL
----
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + + ( - col2 ) AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-3664
SELECT ALL + col2 AS col0, - col0 + + + col1 + col1 DIV + 65 FROM tab0
----
10
-66
47
67
99
-96

skipif mysql # not compatible
query II rowsort label-3664
SELECT ALL + col2 AS col0, - col0 + + + col1 + col1 / + 65 FROM tab0
----
10
-66
47
67
99
-96

query I rowsort
SELECT + + col1 + - - 21 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT 3 * col0 + col1 + + col0 FROM tab0 cor0
----
141
369
389

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + - 88 + - + COUNT( * ) FROM tab2 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3667
SELECT + - 88 + - + COUNT ( * ) FROM tab2 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( - col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - col2 IS NOT NULL )
----
3

query I rowsort
SELECT DISTINCT - 38 + - + col0 + - + col2 - ( col1 ) AS col1 FROM tab2 AS cor0
----
-158
-219
-238

query I rowsort
SELECT + 30 + 27 * - col2 FROM tab2 AS cor0
----
-1050
-1536
-591

query I rowsort
SELECT DISTINCT 38 - - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3673
SELECT DISTINCT + col2 + col1 + + CAST( 13 AS DECIMAL ) + + col1 + 14 * - - 69 * + CAST( NULL AS DECIMAL ) / 52 + + - 36 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT + col2 + col1 + + CAST ( 13 AS REAL ) + + col1 + 14 * - - 69 * + CAST ( NULL AS REAL ) / 52 + + - 36 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3674
SELECT DISTINCT COUNT( * ), SUM( - + col2 ) AS col1 FROM tab1 AS cor0
----
3
-223

skipif mysql # not compatible
query II rowsort label-3674
SELECT DISTINCT COUNT ( * ), SUM ( - + col2 ) AS col1 FROM tab1 AS cor0
----
3
-223

query II rowsort
SELECT - col0 AS col2, col2 FROM tab2 cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT - col0 * + col1 + + 85 AS col2 FROM tab0 AS cor0
----
-1130
-12
-1742

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL COUNT( * ) col2 FROM tab0 WHERE + + 55 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3677
SELECT ALL COUNT ( * ) col2 FROM tab0 WHERE + + 55 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT ALL col0 * + 42 + + 2 DIV + col1 + ( + col2 ) col0 FROM tab2
----
1955
2728
3208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3678
SELECT ALL col0 * + 42 + + 2 / + col1 + ( + col2 ) col0 FROM tab2
----
1955
2728
3208

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT ( - 44 ) + - COUNT( * ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT ( - 44 ) + - COUNT ( * ) FROM tab2
----
-47

query I rowsort
SELECT - + col0 + + col0 + + ( 53 ) * col2 AS col0 FROM tab1 WHERE - + 96 * + - col2 * + + col0 / 65 * - - col1 + col1 - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT - SUM( DISTINCT 9 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT - SUM ( DISTINCT 9 ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT COUNT( * ) * - - 63 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-3682
SELECT COUNT ( * ) * - - 63 FROM tab2
----
189

query I rowsort
SELECT 12 + + + 47 FROM tab1 AS cor0
----
59
59
59

query II rowsort
SELECT col1 * + + col2 + - - 40 AS col1, - 32 + col1 AS col1 FROM tab0
----
139
-31
250
-11
3847
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT DISTINCT + col1 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT + col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * - + col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 38 IN ( + + col2, - 75, - 43, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT - MIN( - col2 ) - + ( - 22 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - MIN ( - col2 ) - + ( - 22 ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT DISTINCT + 25 * + - col1 * - + 63 AS col2 FROM tab1 AS cor0
----
22050
74025
7875

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + SUM( + col1 ) * + ( - 14 ) FROM tab1 AS cor0 WHERE NOT 53 BETWEEN NULL AND + + 51 * - col0 + + + col1 + + 78
----
-924

skipif mysql # not compatible
query I rowsort label-3690
SELECT + SUM ( + col1 ) * + ( - 14 ) FROM tab1 AS cor0 WHERE NOT 53 BETWEEN NULL AND + + 51 * - col0 + + + col1 + + 78
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + 5 * + COUNT( * ) AS col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 5 * + COUNT ( * ) AS col0 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3692
SELECT ALL 15 DIV - COUNT( * ) FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL 15 / - COUNT ( * ) FROM tab0 cor0
----
-5

query II rowsort
SELECT DISTINCT col2, 54 FROM tab2 AS cor0
----
23
54
40
54
58
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT - COUNT( ALL 93 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT - COUNT ( ALL 93 ) FROM tab2
----
-3

query I rowsort
SELECT - col2 * + 50 AS col0 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL <> + + 51 * 70 * 68
----

query I rowsort
SELECT 7 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - ( - ( + 22 ) ) * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT - COUNT( DISTINCT 68 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3698
SELECT - COUNT ( DISTINCT 68 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + ( - - 8 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - 30 + 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query II rowsort
SELECT DISTINCT + - col0 * - - ( + col1 ) - + 27 * - col0 * + col2 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
112425
67
26220
51
64192
77

query I rowsort
SELECT DISTINCT + 70 + 89 FROM tab1 cor0
----
159

query I rowsort
SELECT DISTINCT - - 3 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT SUM( DISTINCT col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3704
SELECT SUM ( DISTINCT col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT ALL + col2 + - + col1 AS col0 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT - col2 * + col0 FROM tab1 cor0 WHERE 49 + col1 IS NOT NULL
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - 12 + - col2 AS col2 FROM tab0 AS cor0
----
-111
-22
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3708
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + ( ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - + CAST ( NULL AS REAL ) + ( ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 21 + 20 FROM tab2
----
41
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT ALL - 88 DIV - col2 + - col1 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - 88 / - col2 + - col1 FROM tab1
----
-14
-4
-46

query I rowsort
SELECT ALL - - col0 * + 26 + - col0 AS col1 FROM tab0 WHERE NOT - 73 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT MIN( col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3712
SELECT DISTINCT MIN ( col2 ) col1 FROM tab0
----
10

query I rowsort
SELECT ( col0 ) + + - col0 + 42 * - col0 + col2 * 45 AS col2 FROM tab2
----
-540
-888
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT DISTINCT 32 DIV + col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT 32 / + col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT 69 + - col2 FROM tab0
----
-30
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * 10 - ( MIN( - - col2 ) ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * 10 - ( MIN ( - - col2 ) ) FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + COUNT( DISTINCT - 46 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + COUNT ( DISTINCT - 46 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT + col2 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3719
SELECT + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3720
SELECT + - col0 AS col2, col2 DIV + col2 FROM tab0 AS cor0
----
-15
1
-87
1
-97
1

skipif mysql # not compatible
query II rowsort label-3720
SELECT + - col0 AS col2, col2 / + col2 FROM tab0 AS cor0
----
-15
1
-87
1
-97
1

query I rowsort
SELECT + col2 - - 81 + + col0 + - 32 FROM tab1
----
193
196
208

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT - SUM( DISTINCT - 22 ) - + ( 82 ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-3722
SELECT - SUM ( DISTINCT - 22 ) - + ( 82 ) FROM tab0
----
-60

query I rowsort
SELECT - col0 + + 67 * + col2 AS col0 FROM tab2
----
1495
2616
3811

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 42 * 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 52 ) * - + col2 AS col1 FROM tab2 AS cor0
----
-1196
-2080
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT - MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT - MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT col1 * - ( + - col2 ) + col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

query II rowsort
SELECT 21, 87 AS col1 FROM tab2
----
21
87
21
87
21
87

query I rowsort
SELECT ALL + + 63 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + MAX( + 29 ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3731
SELECT + MAX ( + 29 ) FROM tab1 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, col0 col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3733
SELECT * FROM tab1 WHERE NOT ( NOT CAST( NULL AS SIGNED ) + - - 48 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3733
SELECT * FROM tab1 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) + - - 48 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT ( COUNT( * ) ) FROM tab2 WHERE NOT + + 91 * ( - col1 ) * col0 + + col0 + col2 NOT BETWEEN col1 * 39 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2 WHERE NOT + + 91 * ( - col1 ) * col0 + + col0 + col2 NOT BETWEEN col1 * 39 AND NULL
----
0

query I rowsort
SELECT col1 + 74 AS col2 FROM tab0
----
155
75
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col1 * + 66 col1 FROM tab1 AS cor0
----
-3193
-415
-975

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3737
SELECT ALL + - CAST( NULL AS DECIMAL ) / - - col2 * - + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + - CAST ( NULL AS REAL ) / - - col2 * - + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE 7 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - 25 - 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3739
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - 25 - 11 IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 + + + col2 * - col0 FROM tab0 AS cor0
----
-690
-783
-9506

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL ( 41 ) + COUNT( * ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL ( 41 ) + COUNT ( * ) AS col0 FROM tab1
----
44

query I rowsort
SELECT ( - ( col0 ) ) - + 10 FROM tab1
----
-101
-61
-95

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT 22 - + COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT 22 - + COUNT ( * ) FROM tab2
----
19

query I rowsort
SELECT ALL + AVG ( - - col0 ) AS col0 FROM tab2 cor0 WHERE ( NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT + 44 * 99 + 18 FROM tab1 AS cor0
----
4374
4374
4374

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 41 AND NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN col2 + + 15 AND NULL
----

query I rowsort
SELECT DISTINCT 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT CAST( AVG ( ALL + 99 ) AS SIGNED ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT CAST ( AVG ( ALL + 99 ) AS INTEGER ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL COUNT( + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL COUNT ( + col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 72 AS col0 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT + 12 FROM tab2 cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT + 85 * - 42 + - - MAX( ALL + col1 ) * - CAST( NULL AS SIGNED ) * ( - 50 ) + + + COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT + 85 * - 42 + - - MAX ( ALL + col1 ) * - CAST ( NULL AS INTEGER ) * ( - 50 ) + + + COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col2, col2 + - + 31 + - col1 * col2 * col2 + 42 * + 74 FROM tab1 cor0
----
-51
-125851
-85
-14269
-91
-214183

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT MIN( ( col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT MIN ( ( col0 ) ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT col2 * 30 AS col1 FROM tab1
----
1770
2040
2880

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + + - 4 - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT + 94 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3760
SELECT + 94 / + col2 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 IS NOT NULL )
----

query I rowsort
SELECT ALL 36 * + col1 AS col1 FROM tab2 WHERE NOT - - col2 * - - 58 IS NULL
----
1836
2412
2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT ALL + CAST( - col1 AS SIGNED ) * col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + CAST ( - col1 AS INTEGER ) * col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 13 * ( + - col0 ) AS col2 FROM tab1
----
-1105
-1183
-663

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3765
SELECT ALL + COUNT( * ) * CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + COUNT ( * ) * CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL MIN( col0 ) + 39 + - SUM( DISTINCT - + 65 ) AS col0 FROM tab0
----
119

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL MIN ( col0 ) + 39 + - SUM ( DISTINCT - + 65 ) AS col0 FROM tab0
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT COUNT( DISTINCT - CAST( - + col2 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3767
SELECT COUNT ( DISTINCT - CAST ( - + col2 AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT ALL col0 * + 56 AS col2 FROM tab2
----
2576
3584
4200

onlyif mysql # DIV for integer division: 
query II rowsort label-3769
SELECT DISTINCT - col1, col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
-14
1
-47
1
-5
1

skipif mysql # not compatible
query II rowsort label-3769
SELECT DISTINCT - col1, col1 / + col1 AS col1 FROM tab1 AS cor0
----
-14
1
-47
1
-5
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + + col2 col2 FROM tab0 cor0
----
132
43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL - SUM( DISTINCT + - 27 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - SUM ( DISTINCT + - 27 ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT + 48 + col2 + - col0 FROM tab1 AS cor0
----
22
25
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT COUNT( * ) + SUM( 32 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3773
SELECT COUNT ( * ) + SUM ( 32 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - + 71 + + COUNT( * ) + - 57 FROM tab0 WHERE col0 < NULL
----
-128

skipif mysql # not compatible
query I rowsort label-3774
SELECT - + 71 + + COUNT ( * ) + - 57 FROM tab0 WHERE col0 < NULL
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT ALL - CAST( NULL AS SIGNED ) + + 10 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - CAST ( NULL AS INTEGER ) + + 10 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - ( - - col0 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 53 + - 73 * col0 * + col2 FROM tab2
----
-186933
-317603
-77287

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL OR NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3779
SELECT - CAST( + COUNT( * ) AS SIGNED ), + 76 AS col2 FROM tab1
----
-3
76

skipif mysql # not compatible
query II rowsort label-3779
SELECT - CAST ( + COUNT ( * ) AS INTEGER ), + 76 AS col2 FROM tab1
----
-3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT - 22 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - 22 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 58 AND NULL
----

query I rowsort
SELECT - - 58 * - - col0 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT ALL col1 * - - 92 AS col1 FROM tab1
----
1288
4324
460

query I rowsort
SELECT ALL - 8 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT + 64 * + ( + 7 ) * - COUNT( * ) * 90 AS col2, - 9 FROM tab0 AS cor0
----
-120960
-9

skipif mysql # not compatible
query II rowsort label-3785
SELECT + 64 * + ( + 7 ) * - COUNT ( * ) * 90 AS col2, - 9 FROM tab0 AS cor0
----
-120960
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT ALL - col0 DIV - + col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL - col0 / - + col0 FROM tab1 cor0
----
1
1
1

query II rowsort
SELECT DISTINCT + col1, - 54 * col0 FROM tab0 AS cor0
----
1
-5238
21
-4698
81
-810

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 65 * + - col0 - - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 81 / col1 NOT BETWEEN + col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL - COUNT( DISTINCT - col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - COUNT ( DISTINCT - col2 ) FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 43
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( ( NULL ) NOT BETWEEN col1 + - ( col1 ) AND col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT - ( - + MIN( DISTINCT col1 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3793
SELECT - ( - + MIN ( DISTINCT col1 ) ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3794
SELECT - col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-3794
SELECT - col2, CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3795
SELECT - col0 AS col2, col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
0

skipif mysql # not compatible
query II rowsort label-3795
SELECT - col0 AS col2, col1 / - col0 AS col0 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
0

query I rowsort
SELECT DISTINCT col1 - + col0 AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-3797
SELECT ALL col0 * + col0 AS col1, - ( + 88 ) DIV - col0 FROM tab2
----
2116
1
4096
1
5625
1

skipif mysql # not compatible
query II rowsort label-3797
SELECT ALL col0 * + col0 AS col1, - ( + 88 ) / - col0 FROM tab2
----
2116
1
4096
1
5625
1

query I rowsort
SELECT - 51 * + 93 AS col1 FROM tab2 AS cor0
----
-4743
-4743
-4743

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - - + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3800
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3800
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT + MAX( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT + MAX ( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3802
SELECT + CAST( + + CAST( - 42 AS SIGNED ) AS SIGNED ) DIV 35 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3802
SELECT + CAST ( + + CAST ( - 42 AS INTEGER ) AS INTEGER ) / 35 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT DISTINCT CAST( + ( - + col2 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT CAST ( + ( - + col2 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - - col1 + col1 + + 21 AS col2 FROM tab0 AS cor0
----
183
23
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT + COUNT( * ) - 50 + - + CAST( MAX( + col2 ) AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab1
----
241

skipif mysql # not compatible
query I rowsort label-3805
SELECT + COUNT ( * ) - 50 + - + CAST ( MAX ( + col2 ) AS INTEGER ) * - + COUNT ( * ) AS col2 FROM tab1
----
241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3806
SELECT DISTINCT - CAST( - - 60 AS SIGNED ) + COUNT( * ) AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - CAST ( - - 60 AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2
----
-57

query I rowsort
SELECT DISTINCT - 81 - + col1 AS col1 FROM tab1
----
-128
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT 48 - SUM( ALL - col2 ) FROM tab1
----
271

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT 48 - SUM ( ALL - col2 ) FROM tab1
----
271

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT + MAX( + + 88 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT + MAX ( + + 88 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT ALL 75 DIV - - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL 75 / - - col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3811
SELECT col0 AS col2, - ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3811
SELECT col0 AS col2, - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 96 <= + col0
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 98 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 53 + col1 * + col2 FROM tab1
----
1397
3249
348

query I rowsort
SELECT col2 + - 66 FROM tab0
----
-19
-56
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT ALL - CAST( NULL AS SIGNED ) + col1 / col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 / col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 29 ) AS col1 FROM tab0
----
-29

query I rowsort
SELECT ALL 51 FROM tab2 WHERE ( 33 + col1 ) IS NOT NULL
----
51
51
51

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( NULL ) < col2
----

query I rowsort
SELECT col0 * - 73 AS col0 FROM tab0 WHERE NULL IN ( - 56 * - 45 )
----

query I rowsort
SELECT DISTINCT col1 * col0 + + col2 AS col1 FROM tab1
----
4345
484
810

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3822
SELECT DISTINCT - 15 * 16 + + col0 FROM tab1 WHERE ( col0 * + CAST( NULL AS DECIMAL ) + 91 ) BETWEEN NULL AND ( col2 + + 69 * 88 )
----

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - 15 * 16 + + col0 FROM tab1 WHERE ( col0 * + CAST ( NULL AS REAL ) + 91 ) BETWEEN NULL AND ( col2 + + 69 * 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT COUNT( - 96 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3823
SELECT COUNT ( - 96 ) FROM tab2
----
3

query I rowsort
SELECT col1 + 64 FROM tab1
----
111
69
78

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + 91 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 36 - + col1 AS col0 FROM tab0
----
-45
15
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 68 - 41 )
----
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 68 - 41 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT 73 + + COUNT( * ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-3828
SELECT 73 + + COUNT ( * ) AS col2 FROM tab1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT ALL + 81 AS col2 FROM tab1 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + 81 AS col2 FROM tab1 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 * + ( 72 ) col1 FROM tab1
----
-4536

query I rowsort
SELECT col1 + + 54 FROM tab0
----
135
55
75

query I rowsort
SELECT - col1 * - 91 - + col1 FROM tab1
----
1260
4230
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT col0 AS col0 FROM tab1 WHERE - col2 / CAST( NULL AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3833
SELECT col0 AS col0 FROM tab1 WHERE - col2 / CAST ( NULL AS INTEGER ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT - CAST( 95 AS SIGNED ) FROM tab2
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-3834
SELECT - CAST ( 95 AS INTEGER ) FROM tab2
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col0 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT DISTINCT col2 + 41 AS col1 FROM tab0 WHERE NOT 7 + - ( - 76 ) NOT BETWEEN + CAST( + col1 AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT col2 + 41 AS col1 FROM tab0 WHERE NOT 7 + - ( - 76 ) NOT BETWEEN + CAST ( + col1 AS INTEGER ) AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT DISTINCT - CAST( - ( COUNT( col0 ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT - CAST ( - ( COUNT ( col0 ) ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT - 99 * - COUNT( col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-3838
SELECT - 99 * - COUNT ( col2 ) FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT COUNT( 10 ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT COUNT ( 10 ) FROM tab1 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT ALL + col1 + - col2 * col2 FROM tab1
----
-3476
-4577
-9202

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL COUNT( ( col0 ) ) + 65 col0 FROM tab0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3841
SELECT ALL COUNT ( ( col0 ) ) + 65 col0 FROM tab0
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3842
SELECT DISTINCT + ( 45 ) * + 72 AS col2 FROM tab0 WHERE NULL = + CAST( NULL AS DECIMAL ) / - 36
----

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT + ( 45 ) * + 72 AS col2 FROM tab0 WHERE NULL = + CAST ( NULL AS REAL ) / - 36
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 90 <= ( ( ( - col2 ) ) * - col0 + col0 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - 25 ) * - 32 > NULL
----

query I rowsort
SELECT ( - col1 ) * col1 + - col1 FROM tab1 AS cor0
----
-210
-2256
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col1 * + ( 54 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col1 * + ( 54 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT + 76 + COUNT( * ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + 76 + COUNT ( * ) FROM tab0 AS cor0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT col1 DIV col2 + 52 FROM tab0 AS cor0
----
52
53
54

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT col1 / col2 + 52 FROM tab0 AS cor0
----
52
53
54

query I rowsort
SELECT ALL ( - 90 ) FROM tab2 AS cor0 WHERE - col1 + - 15 NOT IN ( + col1 * col0 + 26 / 79 )
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT MAX( + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-3850
SELECT MAX ( + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT col0 * ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT col0 * ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( + 85 ) + - col2 ) NOT BETWEEN + col0 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 99 AND 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) - + 33 col0 FROM tab1
----
26
35
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT DISTINCT + CAST( + 37 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT + CAST ( + 37 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( + ( col2 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 89 + + 11 / col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3861
SELECT * FROM tab0 AS cor0 WHERE ( + 86 * col2 ) NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND - col0 / ( - 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3861
SELECT * FROM tab0 AS cor0 WHERE ( + 86 * col2 ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - col0 / ( - 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT + CAST( NULL AS SIGNED ) + 36 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT + CAST ( NULL AS INTEGER ) + 36 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 3 * + 24 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL COUNT( ALL + 56 ) + 11 AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL COUNT ( ALL + 56 ) + 11 AS col2 FROM tab0 AS cor0
----
14

query I rowsort
SELECT 14 AS col2 FROM tab1 cor0 WHERE col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3866
SELECT + - ( COUNT( - col1 ) ) DIV COUNT( * ) + + MAX( DISTINCT + ( col0 ) ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3866
SELECT + - ( COUNT ( - col1 ) ) / COUNT ( * ) + + MAX ( DISTINCT + ( col0 ) ) FROM tab1 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 71 + + col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - SUM( DISTINCT col2 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-3868
SELECT - SUM ( DISTINCT col2 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-220

query I rowsort
SELECT DISTINCT + 9 + + 31 FROM tab2 AS cor0
----
40

query I rowsort
SELECT col1 * + ( + col1 ) AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT DISTINCT + 38 - - COUNT( * ) + - CAST( - COUNT( + 8 ) AS SIGNED ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + 38 - - COUNT ( * ) + - CAST ( - COUNT ( + 8 ) AS INTEGER ) FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT 6 * 62 - COUNT( ALL col2 ) AS col2 FROM tab1
----
369

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT 6 * 62 - COUNT ( ALL col2 ) AS col2 FROM tab1
----
369

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT - col1 DIV - - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3874
SELECT - col1 / - - col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) <= col1
----
15
81
47
87
21
10

query I rowsort
SELECT col0 * - 52 FROM tab1
----
-2652
-4420
-4732

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT COUNT( ALL ( col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT COUNT ( ALL ( col1 ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 30 > - 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + ( + col1 ) + - 49 FROM tab1 AS cor0
----
376
4228
665

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT + SUM( - - 75 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT + SUM ( - - 75 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3883
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + - ( - col0 ) * + col1 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3883
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + - ( - col0 ) * + col1 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 67 FROM tab1 WHERE NOT ( NOT ( col1 ) <> ( - ( col2 ) ) )
----
67
67
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT - COUNT( ( + - 13 ) ) DIV - 63 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT - COUNT ( ( + - 13 ) ) / - 63 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 32 NOT BETWEEN - 84 AND NULL
----

query I rowsort
SELECT ALL 14 * + 59 AS col0 FROM tab2 cor0
----
826
826
826

query I rowsort
SELECT - 82 + + + col0 AS col1 FROM tab2 AS cor0
----
-18
-36
-7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) <= ( ( col1 ) )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
12

query I rowsort
SELECT ALL - ( 76 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 81 * 48 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + CAST( + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3893
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + - ( - + col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + 4 * - COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3895
SELECT + 4 * - COUNT ( * ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL - - col0 + 85 - - - col2 * - 83 AS col0 FROM tab0 AS cor0
----
1002
4001
8399

query I rowsort
SELECT + 97 AS col1 FROM tab0 cor0 WHERE NOT 75 * + + col2 IS NULL
----
97
97
97

query II rowsort
SELECT - + col1, - ( - 98 ) * + ( + col1 * - 10 + + col2 ) - 22 AS col2 FROM tab2 AS cor0
----
-51
-47748
-67
-59998
-77
-71562

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT col0 * - ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT DISTINCT ( + MIN( ALL col2 ) ) FROM tab0 cor0 WHERE ( 79 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT ( + MIN ( ALL col2 ) ) FROM tab0 cor0 WHERE ( 79 ) <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3901
SELECT + + col0 col2, 55 DIV - col0 + 36 * col1 AS col2 FROM tab0 AS cor0
----
15
2913
87
756
97
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3901
SELECT + + col0 col2, 55 / - col0 + 36 * col1 AS col2 FROM tab0 AS cor0
----
15
2913
87
756
97
36

query II rowsort
SELECT DISTINCT - col0 + - 62, 50 AS col2 FROM tab2
----
-108
50
-126
50
-137
50

query I rowsort
SELECT DISTINCT - ( + + col2 ) * - - 22 AS col0 FROM tab0
----
-1034
-2178
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT ALL + col0 DIV + col0 FROM tab2 WHERE NOT + col1 * + + col1 - col1 * col2 IN ( - col0 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL + col0 / + col0 FROM tab2 WHERE NOT + col1 * + + col1 - col1 * col2 IN ( - col0 )
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > ( ( + + col0 ) + + 52 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col1 col2 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 17 AND + col1 - 69
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT - + ( + 5 ) DIV - COUNT( * ) + + - 79 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3908
SELECT - + ( + 5 ) / - COUNT ( * ) + + - 79 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT + + col1 + - 49 * col1 AS col1 FROM tab0 AS cor0
----
-1008
-3888
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( + - col1 ) BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT 55 * - + 50 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT col0 * - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT col0 * - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT + SUM( DISTINCT - 54 ) AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + SUM ( DISTINCT - 54 ) AS col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL + + col2 - + col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + 0 - + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3918
SELECT + 0 - + COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - - 87 * - col0 AS col1 FROM tab0 AS cor0
----
-1305
-7569
-8439

query I rowsort
SELECT col2 * - + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= - - col0 + + col0 AND NULL > NULL
----

query I rowsort
SELECT DISTINCT - col1 + + ( - 88 ) * + - col1 * - - col2 * 58 FROM tab2 AS cor0
----
15720243
19834077
5986941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 72, + col0 col1 FROM tab2 cor0
----
-72
46
-72
64
-72
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 = 41
----
-3

skipif mysql # not compatible
query I rowsort label-3925
SELECT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 = 41
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND ( + + ( - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3926
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND ( + + ( - col1 ) )
----
0

query I rowsort
SELECT ALL ( col0 ) FROM tab1 WHERE ( - 18 ) = 58 * col1
----

query I rowsort
SELECT ALL col1 * ( + col0 ) AS col2 FROM tab0
----
1215
1827
97

query II rowsort
SELECT ALL 70, + 27 * + 6 + + - col2 AS col2 FROM tab2 AS cor0
----
70
104
70
122
70
139

query I rowsort
SELECT + + col1 * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL - 16 * col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND col0
----

query I rowsort
SELECT DISTINCT + + ( + col0 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 5 ) IS NOT NULL
----

query I rowsort
SELECT ALL 70 * col2 AS col0 FROM tab1 WHERE col1 * 93 * - ( - - col0 ) * + 79 BETWEEN 83 * - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - COUNT( * ) * - ( 29 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
261

skipif mysql # not compatible
query I rowsort label-3935
SELECT - COUNT ( * ) * - ( 29 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
261

query II rowsort
SELECT 55 * col2, col1 FROM tab2
----
1265
51
2200
77
3190
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT ALL CAST( MAX( col2 ) AS SIGNED ) + + - SUM( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL CAST ( MAX ( col2 ) AS INTEGER ) + + - SUM ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab1 AS cor0 WHERE + 30 + - - col1 > - 83
----
-59
-68
-96

query I rowsort
SELECT - 73 * - col1 + + - 14 AS col2 FROM tab2 AS cor0
----
3709
4877
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL COUNT( * ) + 81 AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL COUNT ( * ) + 81 AS col0 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT - ( + COUNT( * ) ) + - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - ( + COUNT ( * ) ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3942
SELECT * FROM tab1 WHERE 18 >= CAST( + col1 AS DECIMAL ) + + 51
----

skipif mysql # not compatible
query III rowsort label-3942
SELECT * FROM tab1 WHERE 18 >= CAST ( + col1 AS REAL ) + + 51
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT ALL + 14 DIV - col2 + - 35 + - col2 FROM tab0
----
-134
-46
-82

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + 14 / - col2 + - 35 + - col2 FROM tab0
----
-134
-46
-82

query III rowsort
SELECT * FROM tab2 WHERE + col2 / col1 NOT BETWEEN ( col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * col2 * - 23 * col1 + - col2 FROM tab2
----
2833560
5183866
620494

query I rowsort
SELECT + col1 + - - 14 FROM tab2
----
65
81
91

query I rowsort
SELECT DISTINCT - 15 + + col0 AS col2 FROM tab1
----
36
70
76

query I rowsort
SELECT ALL + col2 + - 68 FROM tab1
----
-9
0
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3950
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, - CAST( NULL AS SIGNED ), col0 * 26 * - 3 + - - col0 )
----

skipif mysql # not compatible
query III rowsort label-3950
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, - CAST ( NULL AS INTEGER ), col0 * 26 * - 3 + - - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3951
SELECT + col0 FROM tab0 AS cor0 WHERE + col0 = - - CAST( NULL AS DECIMAL ) * - 74 + - col0 - 8 + - col0 + - col0
----

skipif mysql # not compatible
query I rowsort label-3951
SELECT + col0 FROM tab0 AS cor0 WHERE + col0 = - - CAST ( NULL AS REAL ) * - 74 + - col0 - 8 + - col0 + - col0
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE col2 > NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 72 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 > NULL )
----

query I rowsort
SELECT ALL - ( col1 ) - + col1 FROM tab0 AS cor0
----
-162
-2
-42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < + col0 / - col2 + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 - + + 0 AS col2 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + + ( - + 70 ) AS col0 FROM tab0 cor0
----
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-3959
SELECT - col2 DIV 92, col0 AS col1 FROM tab0 AS cor0
----
-1
97
0
15
0
87

skipif mysql # not compatible
query II rowsort label-3959
SELECT - col2 / 92, col0 AS col1 FROM tab0 AS cor0
----
-1
97
0
15
0
87

query I rowsort
SELECT - col1 * 51 AS col0 FROM tab0
----
-1071
-4131
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 24 / col2 BETWEEN - 57 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT 51 DIV + - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3962
SELECT 51 / + - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT - 57 AS col2, - ( 99 ) + ( + - SUM( ALL + col0 ) ) AS col2 FROM tab0
----
-57
-298

skipif mysql # not compatible
query II rowsort label-3963
SELECT - 57 AS col2, - ( 99 ) + ( + - SUM ( ALL + col0 ) ) AS col2 FROM tab0
----
-57
-298

query I rowsort
SELECT ALL 19 * + 12 FROM tab2
----
228
228
228

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT COUNT( + ( + - 56 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3965
SELECT COUNT ( + ( + - 56 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - - col2 * - ( + ( + 92 ) ) AS col2 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-4324
-9108
-920

query I rowsort
SELECT + - col0 * - 26 AS col1 FROM tab1 AS cor0
----
1326
2210
2366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT DISTINCT - CAST( - + ( - + col1 ) AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - CAST ( - + ( - + col1 ) AS INTEGER ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col2 + + - 87 AS col0 FROM tab1 AS cor0
----
-146
-155
-183

query I rowsort
SELECT - ( + - col1 ) + + 80 AS col1 FROM tab0 AS cor0
----
101
161
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3971
SELECT ALL col0, col0, + + CAST( NULL AS SIGNED ) * col0 + - + col0 * + ( + - col1 ) * + 72 FROM tab0 AS cor0
----
9 values hashing to 171e9b799c550fed11f4bf85d20e9ca5

skipif mysql # not compatible
query III rowsort label-3971
SELECT ALL col0, col0, + + CAST ( NULL AS INTEGER ) * col0 + - + col0 * + ( + - col1 ) * + 72 FROM tab0 AS cor0
----
9 values hashing to 171e9b799c550fed11f4bf85d20e9ca5

query I rowsort
SELECT ( - 43 ) FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + col2 + + - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - 49 * - col0 AS col0 FROM tab0 WHERE ( NOT col1 IS NULL )
----
4263
4753
735

query I rowsort
SELECT ALL 37 + + - col1 + - 64 FROM tab1
----
-32
-41
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT DISTINCT 55 + + 79 DIV - - COUNT( * ) * + - MIN( DISTINCT + col1 ) col2 FROM tab0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3976
SELECT DISTINCT 55 + + 79 / - - COUNT ( * ) * + - MIN ( DISTINCT + col1 ) col2 FROM tab0
----
29

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3979
SELECT + CAST( NULL AS DECIMAL ) AS col1, + 16 AS col1 FROM tab1, tab2 AS cor0
----
18 values hashing to ff6902972393b5e5b85d3a76fd8e356c

skipif mysql # not compatible
query II rowsort label-3979
SELECT + CAST ( NULL AS REAL ) AS col1, + 16 AS col1 FROM tab1, tab2 AS cor0
----
18 values hashing to ff6902972393b5e5b85d3a76fd8e356c

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + MIN( DISTINCT + - col0 ) * 84 + - 3 + - 85 AS col1 FROM tab2 AS cor0
----
-6388

skipif mysql # not compatible
query I rowsort label-3980
SELECT + MIN ( DISTINCT + - col0 ) * 84 + - 3 + - 85 AS col1 FROM tab2 AS cor0
----
-6388

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT DISTINCT 82 * - COUNT( - 76 ) AS col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT 82 * - COUNT ( - 76 ) AS col2 FROM tab1 AS cor0
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT - + col0 DIV + 13 + col1 AS col1 FROM tab0 AS cor0
----
-6
15
80

skipif mysql # not compatible
query I rowsort label-3982
SELECT - + col0 / + 13 + col1 AS col1 FROM tab0 AS cor0
----
-6
15
80

query I rowsort
SELECT - - col1 + + 41 AS col0 FROM tab1 AS cor0
----
46
55
88

query I rowsort
SELECT ALL + 86 * 42 AS col1 FROM tab1 AS cor0
----
3612
3612
3612

query I rowsort
SELECT + col0 + col2 * 13 * + 89 * + + 2 AS col0 FROM tab0 AS cor0
----
108773
229183
23227

query I rowsort
SELECT ALL 96 - 75 AS col1 FROM tab1
----
21
21
21

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 0 NOT BETWEEN NULL AND - + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL + 19 + COUNT( - - 41 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + 19 + COUNT ( - - 41 ) FROM tab1
----
22

query I rowsort
SELECT + - 93 AS col1 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT + col2 * + + col2 * + 93 AS col1 FROM tab0 AS cor0
----
205437
911493
9300

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL MIN( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL MIN ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT DISTINCT + ( + col0 ) DIV - + ( 66 ) + + 18 + - col2 AS col2 FROM tab1 AS cor0
----
-42
-51
-78

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + ( + col0 ) / - + ( 66 ) + + 18 + - col2 AS col2 FROM tab1 AS cor0
----
-42
-51
-78

query II rowsort
SELECT DISTINCT - col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT - + 83 + + + 81 AS col0, + col1 AS col0 FROM tab2 WHERE NOT - 63 + - 42 NOT IN ( - col1, - col0 + - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 15 + 45 + - 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT + CAST( + 92 AS SIGNED ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + CAST ( + 92 AS INTEGER ) FROM tab2
----
92

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT + 78 + + + 90 IS NOT NULL
----

query I rowsort
SELECT + ( + 98 ) AS col1 FROM tab1
----
98
98
98

query I rowsort
SELECT DISTINCT + ( + 26 ) FROM tab1 cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + + col2 * + col0 + col0
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON + - 54 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL + COUNT( * ) + MIN( ALL col1 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL + COUNT ( * ) + MIN ( ALL col1 ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 * + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - - 3 * + col1 * col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( col0 ) AND col2 * + 24
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT 91 + + + 16 - + - MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4008
SELECT 91 + + + 16 - + - MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT - 79 + + 63 AS col1 FROM tab2 AS cor0
----
-16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * col1 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 9 + - ( + - col2 ) * - col2 * + + col2 * 61 FROM tab2 AS cor0
----
-11901841
-3904009
-742196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - - col0 + + 72 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - col0 + + 72 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT AVG ( + - col1 ) FROM tab0 WHERE - 3 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT ALL col0 + CAST( + col1 AS SIGNED ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL col0 + CAST ( + col1 AS INTEGER ) FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT col0 + + 81 FROM tab1
----
132
166
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, ( + 51 ) col0 FROM tab1
----
14
51
47
51
5
51

query I rowsort
SELECT DISTINCT + 31 * col1 FROM tab1
----
1457
155
434

query I rowsort
SELECT ALL col1 + + col0 * 92 + + 33 + + col2 FROM tab2
----
4339
6038
7058

query I rowsort
SELECT ALL - 59 * + + 23 FROM tab0
----
-1357
-1357
-1357

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) < - + ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) < - + ( - col0 )
----
0

query I rowsort
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 91 = col2 + - col1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT + 44 * 21 + SUM( ALL col1 ) FROM tab1 AS cor0
----
990

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT + 44 * 21 + SUM ( ALL col1 ) FROM tab1 AS cor0
----
990

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4023
SELECT DISTINCT - CAST( + 94 AS SIGNED ) DIV 32 col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4023
SELECT DISTINCT - CAST ( + 94 AS INTEGER ) / 32 col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - + 68 FROM tab2 AS cor0 WHERE NOT ( NULL ) < col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 5 * 84 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-19740
-2100
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL MIN( ALL + col2 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL MIN ( ALL + col2 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + 47 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + MIN( - + col1 ) + + - 98 FROM tab0 AS cor0 WHERE NOT + col0 + + - col2 IS NULL
----
-179

skipif mysql # not compatible
query I rowsort label-4030
SELECT + MIN ( - + col1 ) + + - 98 FROM tab0 AS cor0 WHERE NOT + col0 + + - col2 IS NULL
----
-179

query II rowsort
SELECT DISTINCT - 66, 99 AS col1 FROM tab0
----
-66
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - 39 * - - SUM( ALL col2 ) AS col1 FROM tab1
----
-8697

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 39 * - - SUM ( ALL col2 ) AS col1 FROM tab1
----
-8697

query I rowsort
SELECT ALL 72 * + col1 AS col0 FROM tab0
----
1512
5832
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT - COUNT( * ) + + + 94 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - COUNT ( * ) + + + 94 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( col1 IS NOT NULL ) ) OR col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 BETWEEN CAST( 16 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 BETWEEN CAST ( 16 AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 77 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT + - 54 + 51 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL + + MIN( ALL + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + - ( - COUNT( - - 77 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4041
SELECT + - ( - COUNT ( - - 77 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4042
SELECT ALL - col1 + - - col2 AS col0, - ( + col1 ) * col2 - col0 DIV + + col1 - + col0 AS col1 FROM tab2 AS cor0
----
-28
-1219
-37
-3144
-9
-3962

skipif mysql # not compatible
query II rowsort label-4042
SELECT ALL - col1 + - - col2 AS col0, - ( + col1 ) * col2 - col0 / + + col1 - + col0 AS col1 FROM tab2 AS cor0
----
-28
-1219
-37
-3144
-9
-3962

query II rowsort
SELECT ALL - col2 + + - ( + 12 ), col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + 12 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-175
-199
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4046
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4046
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE ( + col2 * + ( - col0 ) * + 30 / + col1 + 12 + + ( - col1 ) ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT + 64 * + 0 - + col0 DIV + 63 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT + 64 * + 0 - + col0 / + 63 AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) - - col0 AS col1 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN - - 49 AND NULL
----

query I rowsort
SELECT ALL + col1 * + col0 - col2 FROM tab0
----
-2
1168
1817

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col0, + 32 * 72 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL ( - COUNT( * ) ) + + 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL ( - COUNT ( * ) ) + + 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL - 96 * - COUNT( * ) FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - 96 * - COUNT ( * ) FROM tab0 AS cor0
----
288

query I rowsort
SELECT DISTINCT col0 * - ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4057
SELECT - col0 AS col0, + CAST( NULL AS SIGNED ) * 20 * + col2 AS col1, - 9 DIV + + col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to a0b1198f0d7fbca0948b103b639d03a8

skipif mysql # not compatible
query III rowsort label-4057
SELECT - col0 AS col0, + CAST ( NULL AS INTEGER ) * 20 * + col2 AS col1, - 9 / + + col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to a0b1198f0d7fbca0948b103b639d03a8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <> + ( - 80 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, ( col1 ) col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT MIN( DISTINCT + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4060
SELECT MIN ( DISTINCT + col2 ) AS col1 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ( - 9 ) * - + 71 * - + COUNT( * ) + + 31 FROM tab2
----
-1886

skipif mysql # not compatible
query I rowsort label-4061
SELECT ( - 9 ) * - + 71 * - + COUNT ( * ) + + 31 FROM tab2
----
-1886

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + MAX( + col2 ) + - - 84 FROM tab2
----
142

skipif mysql # not compatible
query I rowsort label-4062
SELECT + MAX ( + col2 ) + - - 84 FROM tab2
----
142

onlyif mysql # DIV for integer division: 
query II rowsort label-4063
SELECT + col2 + + 49 DIV - col1 + + col1 - col2 * + col2 + + 50 * - col0 AS col0, 22 AS col0 FROM tab2
----
-2755
22
-4683
22
-6989
22

skipif mysql # not compatible
query II rowsort label-4063
SELECT + col2 + + 49 / - col1 + + col1 - col2 * + col2 + + 50 * - col0 AS col0, 22 AS col0 FROM tab2
----
-2755
22
-4683
22
-6989
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col1 AS col2, 38 col2 FROM tab2
----
-1173
38
-3080
38
-3886
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 7 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT COUNT( * ) + 30 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-4066
SELECT COUNT ( * ) + 30 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + COUNT( * ) + SUM( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4067
SELECT + COUNT ( * ) + SUM ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
198

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 47 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT DISTINCT col0 DIV + - col2 AS col2 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT col0 / + - col2 AS col2 FROM tab0
----
-8
0

query II rowsort
SELECT DISTINCT col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col1 FROM tab2 cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT + + CAST( NULL AS SIGNED ) + - 35 * COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT + + CAST ( NULL AS INTEGER ) + - 35 * COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col0 * 43 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
1978
2752
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + + COUNT( * ) * + 36 AS col0 FROM tab2 AS cor0 WHERE 16 + + col1 / + ( - 68 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT + + COUNT ( * ) * + 36 AS col0 FROM tab2 AS cor0 WHERE 16 + + col1 / + ( - 68 ) IS NULL
----
0

query I rowsort
SELECT ALL + col1 * + col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( 0 / + col0 * - 14 )
----

query I rowsort
SELECT + - col1 + - + col0 - col0 FROM tab0 AS cor0
----
-111
-195
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT - COUNT( * ) + ( - COUNT( * ) ) * + - MIN( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT - COUNT ( * ) + ( - COUNT ( * ) ) * + - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 61 + - 26 FROM tab2
----
35
35
35

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN ( - - ( - 45 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT MAX( 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-4080
SELECT MAX ( 5 ) FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + ( + MIN( DISTINCT col0 ) ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4081
SELECT + ( + MIN ( DISTINCT col0 ) ) FROM tab2 cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4082
SELECT DISTINCT - 73 * + 91 AS col2, + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-6643
NULL

skipif mysql # not compatible
query II rowsort label-4082
SELECT DISTINCT - 73 * + 91 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-6643
NULL

query I rowsort
SELECT ALL + - 5 AS col1 FROM tab2 cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4084
SELECT 52 DIV - - COUNT( * ) col0, CAST( NULL AS SIGNED ) + + 25 * 28 + + + COUNT( ALL - + col0 ) FROM tab2 cor0
----
17
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4084
SELECT 52 / - - COUNT ( * ) col0, CAST ( NULL AS INTEGER ) + + 25 * 28 + + + COUNT ( ALL - + col0 ) FROM tab2 cor0
----
17
NULL

query I rowsort
SELECT ALL - - 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 93 * + col1 AS col1 FROM tab2
----
4743
6231
7161

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 < - col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
66

query I rowsort
SELECT - + col1 AS col0 FROM tab0 WHERE NOT + col0 BETWEEN + - 79 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4091
SELECT + SUM( - col0 ), CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-185
NULL

skipif mysql # not compatible
query II rowsort label-4091
SELECT + SUM ( - col0 ), CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-185
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 25 > + col1
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= 66
----

query I rowsort
SELECT ALL - col1 - + - col1 FROM tab2 AS cor0 WHERE 65 + + 42 = 90 + col0
----

query I rowsort
SELECT ALL + 50 * - + col0 AS col0 FROM tab1 AS cor0
----
-2550
-4250
-4550

query II rowsort
SELECT - + col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT + + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4097
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + 75 AS col2 FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( 32 * + col2 * col2 )
----

query I rowsort
SELECT + - ( - 21 ) FROM tab1 AS cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4101
SELECT DISTINCT col1 * - 84 * ( - - col1 ) AS col1, 69 DIV CAST( + col0 AS SIGNED ) + - 16 FROM tab2
----
-218484
-15
-377076
-16
-498036
-15

skipif mysql # not compatible
query II rowsort label-4101
SELECT DISTINCT col1 * - 84 * ( - - col1 ) AS col1, 69 / CAST ( + col0 AS INTEGER ) + - 16 FROM tab2
----
-218484
-15
-377076
-16
-498036
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + + 48 FROM tab2
----
1104
1920
2784

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - - 14 ) * + - col2 * - - ( - col0 ) * - 79 - + 64 - 99 + - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - - COUNT( * ) + + - COUNT( * ) * + COUNT( ALL - col1 ) * AVG ( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0 WHERE + col1 < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT - - COUNT ( * ) + + - COUNT ( * ) * + COUNT ( ALL - col1 ) * AVG ( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0 WHERE + col1 < col1
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + - 43 NOT IN ( 37, 2 ) )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + 70 + - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-4107
SELECT + 70 + - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + - col0 IS NOT NULL
----

query I rowsort
SELECT - - col1 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 55 * + + col0 AS col0 FROM tab0 AS cor0
----
-4785
-5335
-825

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col1 FROM tab2
----
104
133
69

query II rowsort
SELECT + col1 AS col0, ( + 14 ) AS col2 FROM tab1
----
14
14
47
14
5
14

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 15 / - + col1 IS NOT NULL
----

query II rowsort
SELECT - col1, - 51 AS col2 FROM tab1
----
-14
-51
-47
-51
-5
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT + + 76 AS col2, - 65 * COUNT( * ) FROM tab2 cor0
----
76
-195

skipif mysql # not compatible
query II rowsort label-4115
SELECT + + 76 AS col2, - 65 * COUNT ( * ) FROM tab2 cor0
----
76
-195

query II rowsort
SELECT DISTINCT + + 1, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4117
SELECT + COUNT( ( - col0 ) ) AS col2, 97 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
291

skipif mysql # not compatible
query II rowsort label-4117
SELECT + COUNT ( ( - col0 ) ) AS col2, 97 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
291

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 NOT IN ( - col1, col0, - col0, col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - 98 * + 66 + - col0 AND NULL
----

query I rowsort
SELECT + col1 * - 65 AS col0 FROM tab0
----
-1365
-5265
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT + 62 DIV col0 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4123
SELECT + 62 / col0 AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 BETWEEN ( - col0 ) - - col2 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 23 NOT BETWEEN - col0 AND - - col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + - col0 col1 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT DISTINCT - - col2 DIV + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT - - col2 / + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 * + + 86 * + 59 + - + 46 col2 FROM tab1
----
-233450
-233450
-233450

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT + col2 * - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL - COUNT( * ) FROM tab2, tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - COUNT ( * ) FROM tab2, tab1 cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( 37 + - - col0 = - - col1 )
----

query I rowsort
SELECT - 43 + col0 AS col1 FROM tab0
----
-28
44
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT - COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4135
SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 22 + - + col2 - + ( col0 ) * + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT col0 - - col2 + - CAST( - col2 AS SIGNED ) FROM tab0
----
107
109
295

skipif mysql # not compatible
query I rowsort label-4137
SELECT col0 - - col2 + - CAST ( - col2 AS INTEGER ) FROM tab0
----
107
109
295

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT - COUNT( * ) - - 41 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-4138
SELECT - COUNT ( * ) - - 41 FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL COUNT( * ) * + ( + + 0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL COUNT ( * ) * + ( + + 0 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + 49 * - 53 * col2 FROM tab0 AS cor0 WHERE NULL = col2 * col0 * + ( + 27 )
----

query I rowsort
SELECT ALL - + 96 * + ( - + 75 ) * - col1 FROM tab0 AS cor0
----
-151200
-583200
-7200

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT - CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT - CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL + 13 AS col1 FROM tab1 AS cor0 WHERE NOT ( - CAST( + 92 AS SIGNED ) + col1 <> - col0 )
----

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL + 13 AS col1 FROM tab1 AS cor0 WHERE NOT ( - CAST ( + 92 AS INTEGER ) + col1 <> - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT ALL - col1 DIV + + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL - col1 / + + col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT - col0 * - - col2 + + col2 FROM tab2 WHERE - - col2 + + - col1 - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT ( - SUM( 21 ) ) AS col2 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT ( - SUM ( 21 ) ) AS col2 FROM tab2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - MAX( DISTINCT - 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4148
SELECT - MAX ( DISTINCT - 14 ) FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NULL > - col1
----
0

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NULL > - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 7 IN ( col1 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - + col1 * + 68 FROM tab0 AS cor0
----
-1428
-5508
-68

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + col2 - - - col0 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 - - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + COUNT( DISTINCT + + 15 ) + - - 81 - + 88 * COUNT( * ) FROM tab0 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-4155
SELECT + COUNT ( DISTINCT + + 15 ) + - - 81 - + 88 * COUNT ( * ) FROM tab0 AS cor0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT + COUNT( * ) + + 26 AS col1 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT + COUNT ( * ) + + 26 AS col1 FROM tab1 AS cor0
----
29

query I rowsort
SELECT - col1 - col0 FROM tab0 cor0 WHERE NULL BETWEEN + col1 AND - - col2 OR - 9 / col2 IS NOT NULL
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 85 col0, col2 FROM tab2 AS cor0
----
85
23
85
40
85
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - SUM( ALL + + col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4159
SELECT - SUM ( ALL + + col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + MIN( 91 ) + - - COUNT( * ) AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + MIN ( 91 ) + - - COUNT ( * ) AS col2 FROM tab0
----
94

query II rowsort
SELECT - + col0 * col1, - 91 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1215
-91
-1827
-91
-97
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-4162
SELECT + 60 * + - col2, col2 DIV - col0 AS col2 FROM tab0
----
-2820
-3
-5940
-1
-600
0

skipif mysql # not compatible
query II rowsort label-4162
SELECT + 60 * + - col2, col2 / - col0 AS col2 FROM tab0
----
-2820
-3
-5940
-1
-600
0

query I rowsort
SELECT + 92 - + col1 FROM tab2
----
15
25
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT + SUM( ALL - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT + SUM ( ALL - col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL + - 62 * + COUNT( ALL + + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + - 62 * + COUNT ( ALL + + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-186

query I rowsort
SELECT - - col2 + - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

query II rowsort
SELECT + 27 + - 22 AS col0, - col0 FROM tab0 AS cor0
----
5
-15
5
-87
5
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( col0 ) AS col2, col2 * + col0 col2 FROM tab2 cor0
----
46
1058
64
2560
75
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-4169
SELECT col2 + - - col1 + - + col0 DIV col1 AS col2, - 77 FROM tab1 cor0
----
107
-77
114
-77
47
-77

skipif mysql # not compatible
query II rowsort label-4169
SELECT col2 + - - col1 + - + col0 / col1 AS col2, - 77 FROM tab1 cor0
----
107
-77
114
-77
47
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT - - 61 * + - col0 AS col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - + COUNT( * ) * MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4172
SELECT - + COUNT ( * ) * MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT + col1 * - 6 FROM tab2 AS cor0
----
-306
-402
-462

query I rowsort
SELECT + col1 * - + col0 + + col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT ALL + col0 * - 50 * + + 71 FROM tab0 AS cor0
----
-308850
-344350
-53250

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4177
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4178
SELECT DISTINCT + - 29 DIV - 8 + - - col2 FROM tab0 cor0
----
102
13
50

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT + - 29 / - 8 + - - col2 FROM tab0 cor0
----
102
13
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4179
SELECT * FROM tab1 WHERE NOT + 95 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4179
SELECT * FROM tab1 WHERE NOT + 95 + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL MAX( ALL - 52 ) AS col1 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL MAX ( ALL - 52 ) AS col1 FROM tab0
----
-52

query II rowsort
SELECT col2 AS col2, col1 * - 79 AS col1 FROM tab1
----
59
-395
68
-3713
96
-1106

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT - MAX( - 7 ) AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4183
SELECT - MAX ( - 7 ) AS col1 FROM tab2 AS cor0
----
7

query I rowsort
SELECT + 81 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT + CAST( + col1 AS SIGNED ) FROM tab0 WHERE NOT NULL >= - - 97 * + - col1
----

skipif mysql # not compatible
query I rowsort label-4185
SELECT + CAST ( + col1 AS INTEGER ) FROM tab0 WHERE NOT NULL >= - - 97 * + - col1
----

query I rowsort
SELECT DISTINCT col1 * 61 FROM tab2
----
3111
4087
4697

query I rowsort
SELECT DISTINCT col2 + col0 * + - col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT - + col1 + + col2 * - 11 AS col2 FROM tab0 AS cor0
----
-1090
-131
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * - - col2 + + + col0 * + col1 col1 FROM tab1 AS cor0
----
10669
5971
9738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL 84 + col0 + + + CAST( NULL AS SIGNED ) + ( - 44 ) - - ( col0 ) / col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL 84 + col0 + + + CAST ( NULL AS INTEGER ) + ( - 44 ) - - ( col0 ) / col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT DISTINCT 36 + - 69 + - 45 DIV - COUNT( * ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT 36 + - 69 + - 45 / - COUNT ( * ) AS col1 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT ALL ( - + ( CAST( - - 38 AS SIGNED ) ) ) * - + col2 col1 FROM tab0
----
1786
3762
380

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4192
SELECT ALL ( - + ( CAST ( - - 38 AS INTEGER ) ) ) * - + col2 col1 FROM tab0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + 2 + + COUNT( * ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4193
SELECT + 2 + + COUNT ( * ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - COUNT( * ) + + 26 AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-4194
SELECT - COUNT ( * ) + + 26 AS col0 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT 90 - + COUNT( * ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT 90 - + COUNT ( * ) AS col0 FROM tab2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT + SUM( CAST( NULL AS SIGNED ) ) + - ( + COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) + - ( + COUNT ( * ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4197
SELECT DISTINCT + col1 + + col1 DIV - CAST( - - col2 AS SIGNED ) + + col0 AS col1 FROM tab2
----
140
141
95

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + col1 + + col1 / - CAST ( - - col2 AS INTEGER ) + + col0 AS col1 FROM tab2
----
140
141
95

query I rowsort
SELECT DISTINCT col1 - col1 + + - ( - + 1 ) FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4199
SELECT + + COUNT( DISTINCT - col1 ) * + COUNT( * ) FROM tab0 WHERE + CAST( NULL AS DECIMAL ) NOT BETWEEN - 17 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4199
SELECT + + COUNT ( DISTINCT - col1 ) * + COUNT ( * ) FROM tab0 WHERE + CAST ( NULL AS REAL ) NOT BETWEEN - 17 AND NULL
----
0

query I rowsort
SELECT col0 * + col0 + + 28 AS col1 FROM tab1 AS cor0
----
2629
7253
8309

query I rowsort
SELECT DISTINCT ( - 71 ) FROM tab1 cor0
----
-71

query I rowsort
SELECT 51 - 71 + col2 + + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 22 + - col2 AS col2 FROM tab1
----
-37
-46
-74

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 - 73 BETWEEN - col0 * + col1 * - - col2 AND - + col2 + + col0
----

query I rowsort
SELECT ALL - - 35 * - - col1 FROM tab0 AS cor0
----
2835
35
735

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - ( + 1 ) IS NOT NULL
----

query I rowsort
SELECT + + 30 * + 13 * + + col2 AS col2 FROM tab0 AS cor0
----
18330
38610
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT - 80 * 89 * + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-64080

skipif mysql # not compatible
query I rowsort label-4208
SELECT - 80 * 89 * + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-64080

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT SUM( + 24 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-4209
SELECT SUM ( + 24 ) FROM tab0
----
72

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + 56 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col1 * 58 AS col1 FROM tab0
----
1218
4698
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT DISTINCT col0 DIV - 73 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT col0 / - 73 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT + + col2 * + col0 - - col2 * + col0 AS col2 FROM tab2 AS cor0
----
2116
5120
8700

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col1 FROM tab0 cor0
----
25
25
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT + 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL ( 32 ) * col1 AS col2 FROM tab1
----
1504
160
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL - + MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - + MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT ( - ( CAST( NULL AS SIGNED ) ) ) * col2 * + - CAST( - 7 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT ( - ( CAST ( NULL AS INTEGER ) ) ) * col2 * + - CAST ( - 7 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 81 AS col0 FROM tab2 AS cor0 WHERE 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT - - ( COUNT( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT - - ( COUNT ( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 71 + - 74 AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT - 74 DIV + 86 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT - 74 / + 86 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + - - col1 + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT - + ( - MAX( ALL + - col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4226
SELECT - + ( - MAX ( ALL + - col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + col0 + - + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL ( + col0 ) AS col1 FROM tab1 WHERE 12 * - + col1 IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 87 IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL NOT BETWEEN ( - 74 ) AND NULL
----

query I rowsort
SELECT ALL col1 - + - 63 * col2 FROM tab0
----
3042
6238
651

query I rowsort
SELECT 7 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + col0 ) - - col1 + - 5 AS col1 FROM tab2
----
-13
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT 4 + CAST( - col0 AS SIGNED ) FROM tab2
----
-42
-60
-71

skipif mysql # not compatible
query I rowsort label-4234
SELECT 4 + CAST ( - col0 AS INTEGER ) FROM tab2
----
-42
-60
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT - CAST( NULL AS SIGNED ) * - - col2 + + + col0 + col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4235
SELECT - CAST ( NULL AS INTEGER ) * - - col2 + + + col0 + col2 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT - col0 * + - CAST( + col2 AS SIGNED ) + + 41 + col0 AS col2 FROM tab2 AS cor0
----
1145
2665
4466

skipif mysql # not compatible
query I rowsort label-4236
SELECT - col0 * + - CAST ( + col2 AS INTEGER ) + + 41 + col0 AS col2 FROM tab2 AS cor0
----
1145
2665
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT ALL CAST( + - col0 AS SIGNED ) * 93 + - - ( - 12 ) FROM tab0 cor0
----
-1407
-8103
-9033

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL CAST ( + - col0 AS INTEGER ) * 93 + - - ( - 12 ) FROM tab0 cor0
----
-1407
-8103
-9033

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + ( - - MAX( + col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4238
SELECT + ( - - MAX ( + col1 ) ) FROM tab2
----
77

query II rowsort
SELECT + col0, col1 FROM tab1 cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 AS col0, 75 col0 FROM tab1 cor0
----
14
75
47
75
5
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4241
SELECT ALL + + 61, - CAST( - 61 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
61
61
61
61
61
61

skipif mysql # not compatible
query II rowsort label-4241
SELECT ALL + + 61, - CAST ( - 61 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
61
61
61
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + SUM( - - 80 ) * - + COUNT( * ) AS col2 FROM tab2
----
-720

skipif mysql # not compatible
query I rowsort label-4242
SELECT + SUM ( - - 80 ) * - + COUNT ( * ) AS col2 FROM tab2
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT - col1 DIV - - 4 AS col2 FROM tab2
----
-12
-16
-19

skipif mysql # not compatible
query I rowsort label-4243
SELECT - col1 / - - 4 AS col2 FROM tab2
----
-12
-16
-19

query I rowsort
SELECT DISTINCT - col2 * 61 * col2 FROM tab2
----
-205204
-32269
-97600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col2 FROM tab0
----
11

query I rowsort
SELECT col2 + - - 86 AS col2 FROM tab2
----
109
126
144

query I rowsort
SELECT + col0 + - col2 + - + col0 - - + col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT DISTINCT + col0 DIV + + 7 + - + 90 FROM tab1 AS cor0
----
-77
-78
-83

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + col0 / + + 7 + - + 90 FROM tab1 AS cor0
----
-77
-78
-83

query I rowsort
SELECT ALL + 47 * + 99 + - + col1 FROM tab0 AS cor0
----
4572
4632
4652

query II rowsort
SELECT - - col1 * col1 AS col1, col2 * + col0 AS col2 FROM tab1 AS cor0
----
196
4896
2209
6188
25
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + COUNT( DISTINCT + - 62 ) * ( - 3 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4251
SELECT + COUNT ( DISTINCT + - 62 ) * ( - 3 ) col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 51 FROM tab2 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT DISTINCT + 8 + COUNT( * ) * COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
89
9

skipif mysql # not compatible
query II rowsort label-4253
SELECT DISTINCT + 8 + COUNT ( * ) * COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
89
9

query I rowsort
SELECT ALL 28 AS col2 FROM tab2 cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT + 74 + COUNT( ALL - - col0 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + 74 + COUNT ( ALL - - col0 ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT - - col1, + 54 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + + 25 >= - col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL + 15 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + 15 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT + COUNT( + - col1 ) * + + CAST( NULL AS SIGNED ) + - 31 * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT + COUNT ( + - col1 ) * + + CAST ( NULL AS INTEGER ) + - 31 * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + 71 AS col0 FROM tab2
----
-6
20
4

query I rowsort
SELECT + 63 + + col2 * - col0 AS col2 FROM tab2
----
-2497
-4287
-995

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT + COUNT( * ) + - 74 AS col0 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + COUNT ( * ) + - 74 AS col0 FROM tab2
----
-71

query I rowsort
SELECT DISTINCT col0 - - - 31 AS col0 FROM tab1
----
20
54
60

query I rowsort
SELECT ALL + 78 + col0 * + 54 FROM tab1
----
2832
4668
4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT col1 FROM tab1 WHERE + col0 NOT BETWEEN col1 * - 59 + col1 * CAST( NULL AS SIGNED ) * - - col1 * 7 * col0 AND col1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4265
SELECT col1 FROM tab1 WHERE + col0 NOT BETWEEN col1 * - 59 + col1 * CAST ( NULL AS INTEGER ) * - - col1 * 7 * col0 AND col1
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 - 52 AS col1 FROM tab0
----
-42
-5
47

query I rowsort
SELECT 25 * ( + - col1 ) FROM tab0
----
-2025
-25
-525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) - col2 col2 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4269
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - CAST( NULL AS SIGNED ) = ( + col1 ) * - - col0 + 37
----

skipif mysql # not compatible
query III rowsort label-4269
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) = ( + col1 ) * - - col0 + 37
----

query I rowsort
SELECT + - ( col1 ) AS col1 FROM tab1 AS cor0 WHERE col0 = + col0 - - 92
----

query II rowsort
SELECT DISTINCT col0, - col1 * - col2 FROM tab0 AS cor0
----
15
3807
87
210
97
99

query I rowsort
SELECT DISTINCT + ( 55 ) * - + col1 FROM tab1 AS cor0
----
-2585
-275
-770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4273
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
1

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - + col0 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE - col1 + 56 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL - + SUM( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - + SUM ( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT ALL + CAST( NULL AS SIGNED ) * + 94 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4277
SELECT ALL + CAST ( NULL AS INTEGER ) * + 94 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT MIN( ALL + - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4278
SELECT MIN ( ALL + - col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ( - MAX( - col2 ) ) * - 87 AS col1 FROM tab1
----
-5133

skipif mysql # not compatible
query I rowsort label-4279
SELECT ( - MAX ( - col2 ) ) * - 87 AS col1 FROM tab1
----
-5133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT ALL + AVG ( col0 ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL + AVG ( col0 ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL MIN( + - CAST( - 57 AS SIGNED ) ) FROM tab0, tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL MIN ( + - CAST ( - 57 AS INTEGER ) ) FROM tab0, tab0 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT SUM( ALL + 91 ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4283
SELECT SUM ( ALL + 91 ) FROM tab0 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL COUNT( * ) + - 79 AS col1 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL COUNT ( * ) + - 79 AS col1 FROM tab0 AS cor0
----
-76

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <= col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - 65 * COUNT( * ) + - 47 FROM tab0
----
-242

skipif mysql # not compatible
query I rowsort label-4286
SELECT - 65 * COUNT ( * ) + - 47 FROM tab0
----
-242

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE 69 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + 13 + COUNT( * ) col1 FROM tab0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4289
SELECT + 13 + COUNT ( * ) col1 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT 58 + - COUNT( * ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT 58 + - COUNT ( * ) FROM tab1
----
55

query I rowsort
SELECT ALL col0 + - 82 * - col0 FROM tab1
----
4233
7055
7553

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( 57 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 - + col1 ) >= + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 7 * 46 AS col1 FROM tab0
----
322
322
322

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT COUNT( + 33 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT COUNT ( + 33 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 60 ) BETWEEN ( NULL ) AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT 59 DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4297
SELECT 59 / + col2 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT - 48 * ( + ( col2 ) ) AS col0 FROM tab2
----
-1104
-1920
-2784

query I rowsort
SELECT 91 FROM tab2 WHERE ( 85 ) NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 NOT BETWEEN ( col1 ) AND col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT DISTINCT col0 DIV 2 AS col1 FROM tab0
----
43
48
7

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT col0 / 2 AS col1 FROM tab0
----
43
48
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT ALL + 63 DIV + col1 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + 63 / + col1 AS col1 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL 97 * - COUNT( * ) AS col0 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL 97 * - COUNT ( * ) AS col0 FROM tab0
----
-291

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - ( 61 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL MIN( + 59 ) * 12 AS col2 FROM tab2
----
708

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL MIN ( + 59 ) * 12 AS col2 FROM tab2
----
708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * - col0 col1 FROM tab0
----
1140
6612
7372

query III rowsort
SELECT * FROM tab0 WHERE + 1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0 WHERE - col2 >= - col1 / col2
----

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0 WHERE - col2 >= - col1 / col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IN ( - 75 + 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * ( 50 ) AS col2 FROM tab1 AS cor0
----
2350
250
700

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT ALL 37 DIV col1 AS col0 FROM tab0 AS cor0
----
0
1
37

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL 37 / col1 AS col0 FROM tab0 AS cor0
----
0
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL - ( MIN( DISTINCT col0 ) ) * 49 FROM tab1 AS cor0
----
-2499

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - ( MIN ( DISTINCT col0 ) ) * 49 FROM tab1 AS cor0
----
-2499

query I rowsort
SELECT DISTINCT - col1 * - 77 AS col1 FROM tab0 AS cor0
----
1617
6237
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 * 0 - + col2 ) = 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / col2 + col1 / - 47 NOT BETWEEN col2 AND - col2
----

query I rowsort
SELECT DISTINCT 21 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + col0 ) * col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT - 93 * + col2 AS col1 FROM tab0 AS cor0
----
-4371
-9207
-930

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 33 * - 46 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 81 ) BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL 13 + 29 * - COUNT( * ) FROM tab1 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL 13 + 29 * - COUNT ( * ) FROM tab1 cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT + COUNT( - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT + COUNT ( - col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT - col0 - - 80 col1 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IN ( - col1 * - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4325
SELECT - col0 - - 80 col1 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IN ( - col1 * - col0 )
----

query I rowsort
SELECT - 43 + + col1 * col1 AS col1 FROM tab1
----
-18
153
2166

query I rowsort
SELECT DISTINCT ( col2 ) - col2 FROM tab1 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4328
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4328
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT + 71 * - ( col0 ) * CAST( col2 AS SIGNED ) + - col2 AS col2 FROM tab0
----
-50102
-61780
-681912

skipif mysql # not compatible
query I rowsort label-4329
SELECT + 71 * - ( col0 ) * CAST ( col2 AS INTEGER ) + - col2 AS col2 FROM tab0
----
-50102
-61780
-681912

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT - col1 + + col0 DIV + 96 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4330
SELECT - col1 + + col0 / + 96 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT + - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4331
SELECT + - col0 / - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 * + 15 + col0 FROM tab0 AS cor0
----
-1200
-228
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - + SUM( ALL - - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4333
SELECT - + SUM ( ALL - - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT + col2 - col2 * CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT + col2 - col2 * CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - - 97 AS col0 FROM tab1
----
12
46
6

query I rowsort
SELECT - col2 * 51 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + 99
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE 73 - + 79 IN ( 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT DISTINCT + + col0 - - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT + + col0 - - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + col2 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 23 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 80 * + 12 * + - 8 AS col2 FROM tab2 cor0
----
-7680
-7680
-7680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT ALL + ( SUM( + ( CAST( NULL AS SIGNED ) ) ) ) col0 FROM tab1 AS cor0 WHERE NOT + col0 <> ( + - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4342
SELECT ALL + ( SUM ( + ( CAST ( NULL AS INTEGER ) ) ) ) col0 FROM tab1 AS cor0 WHERE NOT + col0 <> ( + - col0 )
----
NULL

query I rowsort
SELECT + 76 * + 1 * col2 AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * 71 * + - col2 AS col2 FROM tab1 AS cor0
----
247151
328304
654336

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 >= ( - col2 )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT + col1 DIV col0 * - 12 * col2 AS col2 FROM tab0 cor0
----
-2820
0
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT + col1 / col0 * - 12 * col2 AS col2 FROM tab0 cor0
----
-2820
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT ALL col2 - - - col0 DIV col1 + - 49 AS col1 FROM tab2 AS cor0
----
-26
-9
8

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL col2 - - - col0 / col1 + - 49 AS col1 FROM tab2 AS cor0
----
-26
-9
8

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT 68 / + - ( - CAST( NULL AS SIGNED ) ) * ( + 88 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT 68 / + - ( - CAST ( NULL AS INTEGER ) ) * ( + 88 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + 31 ) AS col0 FROM tab0
----
31
31
31

query I rowsort
SELECT + col2 * 96 - col1 AS col1 FROM tab0 AS cor0
----
4431
939
9503

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - + ( SUM( DISTINCT - 99 ) ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4353
SELECT - + ( SUM ( DISTINCT - 99 ) ) FROM tab2 AS cor0
----
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 81 + - + col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT ( - col2 * - col2 / - col2 ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL - + 59 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( col2 / col2 ) BETWEEN col0 * col0 AND NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col0 / + - 39 - - col0
----

query I rowsort
SELECT ALL + + col2 * + + 69 FROM tab2 cor0
----
1587
2760
4002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / MAX( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / MAX ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT - col1 DIV + - col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - col1 / + - col1 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4362
SELECT ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - CAST( NULL AS DECIMAL ) + - 4 - 44 < - ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - CAST ( NULL AS REAL ) + - 4 - 44 < - ( col0 )
----
0

query I rowsort
SELECT ( - 32 ) + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 25 - - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4364
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - col1 + - col1 FROM tab0 cor0
----
189
3726
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 67 col1 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT + 91 AS col2, + MIN( ALL + col1 ) * - + 11 AS col1 FROM tab2 AS cor0
----
91
-561

skipif mysql # not compatible
query II rowsort label-4367
SELECT + 91 AS col2, + MIN ( ALL + col1 ) * - + 11 AS col1 FROM tab2 AS cor0
----
91
-561

query II rowsort
SELECT DISTINCT - 68 AS col1, 73 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
-68
1512
-68
5832
-68
72

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + + + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * + + 27 AS col1 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE + 50 - - 58 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT - CAST( - CAST( 17 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-4372
SELECT - CAST ( - CAST ( 17 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + col1 * - 7 FROM tab0 AS cor0 WHERE col2 * col2 IS NOT NULL
----
-147
-567
-7

query I rowsort
SELECT ( col1 ) AS col0 FROM tab1 WHERE ( NOT col2 * col0 + + - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL - 37 AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT - 27 * - MIN( ALL + - 85 ) * + ( + SUM( ALL col1 ) ) col0 FROM tab0
----
-236385

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4377
SELECT DISTINCT - 27 * - MIN ( ALL + - 85 ) * + ( + SUM ( ALL col1 ) ) col0 FROM tab0
----
-236385

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 68 < 84 * - - 28
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( + 36 ) >= + 22 * + - 93 ) OR NOT ( 7 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4380
SELECT - - 11 + CAST( COUNT( * ) AS SIGNED ) - + COUNT( * ) + + - 18 col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4380
SELECT - - 11 + CAST ( COUNT ( * ) AS INTEGER ) - + COUNT ( * ) + + - 18 col1 FROM tab0 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 27 - - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL + COUNT( - + ( ( - + 65 ) ) ) * + 33 * - 64 + COUNT( + col1 + + col0 ) AS col1 FROM tab1 AS cor0
----
-6333

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + COUNT ( - + ( ( - + 65 ) ) ) * + 33 * - 64 + COUNT ( + col1 + + col0 ) AS col1 FROM tab1 AS cor0
----
-6333

query II rowsort
SELECT ALL 28 + - col2 AS col0, - 76 * 99 * col1 FROM tab2
----
-12
-579348
-30
-504108
5
-383724

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - COUNT( * ) * 18 AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4384
SELECT - COUNT ( * ) * 18 AS col0 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT + 58 - + col0 FROM tab2 cor0
----
-17
-6
12

query II rowsort
SELECT ALL + col1 - + 36 AS col2, + 78 FROM tab1 AS cor0
----
-22
78
-31
78
11
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - 66 - - + COUNT( * ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4387
SELECT - 66 - - + COUNT ( * ) FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT ALL - MAX( ALL + 83 ), 0 AS col0 FROM tab2 AS cor0
----
-83
0

skipif mysql # not compatible
query II rowsort label-4388
SELECT ALL - MAX ( ALL + 83 ), 0 AS col0 FROM tab2 AS cor0
----
-83
0

query I rowsort
SELECT DISTINCT + - 44 AS col1 FROM tab1 AS cor0
----
-44

query III rowsort
SELECT * FROM tab1 WHERE NOT - 76 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE 10 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - - col1 + 22 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab0 WHERE + col2 - 10 < - - col2 + + - 63
----

query I rowsort
SELECT DISTINCT 46 * - 51 * - col0 AS col2 FROM tab1
----
119646
199410
213486

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4395
SELECT col2, + ( + + CAST( NULL AS DECIMAL ) ) / col1 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4395
SELECT col2, + ( + + CAST ( NULL AS REAL ) ) / col1 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT col0 AS col2, - 57 FROM tab1
----
51
-57
85
-57
91
-57

query I rowsort
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL - SUM( ALL + + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - SUM ( ALL + + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

query I rowsort
SELECT + 43 AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT DISTINCT - 38 * col2 DIV + ( - col2 ) AS col0 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT - 38 * col2 / + ( - col2 ) AS col0 FROM tab2
----
38

query I rowsort
SELECT DISTINCT col1 * - - 19 FROM tab2
----
1273
1463
969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT + CAST( NULL AS SIGNED ) * + 21 / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT + CAST ( NULL AS INTEGER ) * + 21 / + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT ALL - COUNT( * ) * + 38 AS col0, + 22 AS col0 FROM tab1 AS cor0
----
-114
22

skipif mysql # not compatible
query II rowsort label-4404
SELECT ALL - COUNT ( * ) * + 38 AS col0, + 22 AS col0 FROM tab1 AS cor0
----
-114
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 44 + + + col1, col0 * + col0, + col0, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4406
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / CAST( NULL AS DECIMAL ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + + 12 ) FROM tab0 AS cor0 WHERE ( NULL ) > + col0 / + col0 - col2 - ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL - COUNT( * ) * + 78 + COUNT( ALL - 73 ) - + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL - COUNT ( * ) * + 78 + COUNT ( ALL - 73 ) - + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 74
----
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 74
----
0

query I rowsort
SELECT - col1 + + + 15 AS col0 FROM tab1
----
-32
1
10

query I rowsort
SELECT DISTINCT - col1 + col0 - - + 59 * - + col2 FROM tab2
----
-1362
-2373
-3414

query I rowsort
SELECT ALL - col1 + - 12 AS col1 FROM tab1
----
-17
-26
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL ( - COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4413
SELECT ALL ( - COUNT ( * ) ) col1 FROM tab0
----
-3

query I rowsort
SELECT + 86 + - ( + col0 ) * 90 AS col0 FROM tab0
----
-1264
-7744
-8644

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( 16 ) + col1 ) IS NULL
----

query I rowsort
SELECT ( - - 10 ) - col2 FROM tab1
----
-49
-58
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - 71 + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 11 * 80 FROM tab0 AS cor0
----
-880
-880
-880

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4422
SELECT + 15, + COUNT( * ) DIV - 93 AS col2 FROM tab0 cor0
----
15
0

skipif mysql # not compatible
query II rowsort label-4422
SELECT + 15, + COUNT ( * ) / - 93 AS col2 FROM tab0 cor0
----
15
0

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT ( - col1 * - col0 < 16 * 98 + + - col1 * + col2 + col1 )
----
-14
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT - 57 DIV + ( - 81 ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT - 57 / + ( - 81 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT + ( - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + ( - COUNT ( * ) ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT - 16 - + COUNT( * ) * - + MIN( - - 41 ) FROM tab1, tab0 AS cor0
----
353

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT - 16 - + COUNT ( * ) * - + MIN ( - - 41 ) FROM tab1, tab0 AS cor0
----
353

query I rowsort
SELECT - col2 * + + col0 * col2 * + - col0 AS col1 FROM tab1 AS cor0
----
23970816
25150225
38291344

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL MIN( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL MIN ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + + 70 + + col1 * - + col1 AND - + col1
----

query I rowsort
SELECT DISTINCT col0 / - col1 FROM tab1 WHERE NOT 63 NOT BETWEEN + + 23 + + col1 + col0 * - - 8 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL - COUNT( * ) * 7 AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - COUNT ( * ) * 7 AS col0 FROM tab1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT DISTINCT 74 * + + col2 DIV + + col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT 74 * + + col2 / + + col2 FROM tab0
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4434
SELECT - - col0 DIV CAST( - + 93 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - col0 / CAST ( - + 93 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT DISTINCT - + 88 + col0 * col2 + + 62 DIV col2 * - 96 * - 58 FROM tab2 AS cor0
----
12106
8040
9830

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - + 88 + col0 * col2 + + 62 / col2 * - 96 * - 58 FROM tab2 AS cor0
----
12106
8040
9830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT - col1 FROM tab2 AS cor0 WHERE CAST( 50 AS SIGNED ) = - col2 * + - CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-4437
SELECT - col1 FROM tab2 AS cor0 WHERE CAST ( 50 AS INTEGER ) = - col2 * + - CAST ( NULL AS INTEGER ) * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 23 ) col1 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT MAX( ALL - - 90 ) col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4439
SELECT MAX ( ALL - - 90 ) col1 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL + COUNT( + col1 ) + + COUNT( * ) - - COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4440
SELECT ALL + COUNT ( + col1 ) + + COUNT ( * ) - - COUNT ( * ) col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT ALL + - col2 * + ( + CAST( NULL AS SIGNED ) ) + + col2 + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + - col2 * + ( + CAST ( NULL AS INTEGER ) ) + + col2 + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 44 AS col0 FROM tab2 cor0 WHERE - col1 + - 99 / - - col1 NOT BETWEEN ( 80 ) AND + col0
----
-44
-44
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - + 85 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 47 + - 34 FROM tab1
----
13

query I rowsort
SELECT + 96 * col0 FROM tab0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL COUNT( * ) + - COUNT( col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL COUNT ( * ) + - COUNT ( col2 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT + - col0 * 71 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT CAST( + 29 AS SIGNED ) - + col2 FROM tab1
----
-30
-39
-67

skipif mysql # not compatible
query I rowsort label-4448
SELECT CAST ( + 29 AS INTEGER ) - + col2 FROM tab1
----
-30
-39
-67

query I rowsort
SELECT 19 * col1 + - - ( + + col2 ) AS col2 FROM tab1
----
154
362
961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4450
SELECT - COUNT( * ) FROM tab1 WHERE + - 80 * - ( CAST( NULL AS SIGNED ) ) - + 20 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4450
SELECT - COUNT ( * ) FROM tab1 WHERE + - 80 * - ( CAST ( NULL AS INTEGER ) ) - + 20 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4451
SELECT - col2 DIV col0 + col0 + + 99, - col2 AS col2 FROM tab1 AS cor0
----
149
-96
184
-59
190
-68

skipif mysql # not compatible
query II rowsort label-4451
SELECT - col2 / col0 + col0 + + 99, - col2 AS col2 FROM tab1 AS cor0
----
149
-96
184
-59
190
-68

query I rowsort
SELECT DISTINCT col2 * 50 FROM tab0 AS cor0 WHERE NOT ( + col0 * - + col0 + - 69 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + 49 + + COUNT( col0 ) col2 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT DISTINCT + 49 + + COUNT ( col0 ) col2 FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + MAX( - - 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4455
SELECT + MAX ( - - 3 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 1 + + ( - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - SUM( DISTINCT + + ( + col0 ) ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4457
SELECT - SUM ( DISTINCT + + ( + col0 ) ) col0 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - 72 AS col1, col2 FROM tab0 AS cor0
----
-72
10
-72
47
-72
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4461
SELECT - COUNT( * ) * - + 41 + - - 3 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
126
3

skipif mysql # not compatible
query II rowsort label-4461
SELECT - COUNT ( * ) * - + 41 + - - 3 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
126
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 + col0, col0, - ( - + col1 ), - + 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - MIN( ALL col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - MIN ( ALL col1 ) AS col0 FROM tab2
----
-51

query II rowsort
SELECT DISTINCT - col0, 78 AS col0 FROM tab2
----
-46
78
-64
78
-75
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT ALL col1 DIV 25 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL col1 / 25 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4466
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab0
----
-3
-3

query I rowsort
SELECT 29 * + 3 FROM tab2
----
87
87
87

query II rowsort
SELECT - col2 AS col1, - ( - 48 ) FROM tab1
----
-59
48
-68
48
-96
48

query II rowsort
SELECT ALL 99 AS col0, col2 AS col0 FROM tab2
----
99
23
99
40
99
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 NOT IN ( - + col1, ( - 9 ) * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4471
SELECT DISTINCT + 94, - ( + CAST( - - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1
----
94
-3

skipif mysql # not compatible
query II rowsort label-4471
SELECT DISTINCT + 94, - ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1
----
94
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 2 / + + col0 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - - ( + 46 ) AS col0 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT + CAST( - col1 AS SIGNED ) col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4474
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - col1 AND ( + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT + 41 + COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + 41 + COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( col0 ) <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4477
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( col0 ) <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT ( + - 68 ) DIV 92 AS col0 FROM tab2 AS cor0 WHERE - col2 NOT IN ( col0 + + col0 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4478
SELECT ( + - 68 ) / 92 AS col0 FROM tab2 AS cor0 WHERE - col2 NOT IN ( col0 + + col0 )
----
0
0
0

query I rowsort
SELECT + col2 * - col0 + + 11 FROM tab2
----
-1047
-2549
-4339

query I rowsort
SELECT ALL col2 + col1 - - - col0 FROM tab2
----
28
50
53

query III rowsort
SELECT * FROM tab0 WHERE - + col0 * + + col1 * + col2 * - col0 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT - MIN( DISTINCT - + 8 ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-4482
SELECT - MIN ( DISTINCT - + 8 ) AS col0 FROM tab2
----
8

query I rowsort
SELECT DISTINCT - col1 + 14 FROM tab0
----
-67
-7
13

query I rowsort
SELECT ALL col0 + - - col1 AS col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL MIN( DISTINCT + 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL MIN ( DISTINCT + 80 ) FROM tab1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT col2 * + - col1 DIV col1 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4486
SELECT col2 * + - col1 / col1 AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE col2 * - 66 + + col0 - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT - ( - SUM( DISTINCT + - 79 ) ) + + - COUNT( * ) AS col2 FROM tab1 WHERE ( NOT NULL BETWEEN 91 AND - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT - ( - SUM ( DISTINCT + - 79 ) ) + + - COUNT ( * ) AS col2 FROM tab1 WHERE ( NOT NULL BETWEEN 91 AND - - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT + SUM( - ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4489
SELECT + SUM ( - ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT ALL 75 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ), col1 / + col2, + col1, + - col1, - 91, col0 )
----

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL 75 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ), col1 / + col2, + col1, + - col1, - 91, col0 )
----

query I rowsort
SELECT + 63 * - - col0 AS col1 FROM tab0
----
5481
6111
945

query I rowsort
SELECT ALL - 9 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT ALL - CAST( NULL AS SIGNED ) * + - 94 / + 52 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 94 / + 52 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT ( + col1 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT ( + col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4496
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 + + 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4499
SELECT DISTINCT + + COUNT( * ) DIV - CAST( - - 6 AS SIGNED ) + 41 AS col0 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + + COUNT ( * ) / - CAST ( - - 6 AS INTEGER ) + 41 AS col0 FROM tab1 AS cor0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT 40 DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4500
SELECT 40 / - col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT COUNT( * ) * + + 91 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-4501
SELECT COUNT ( * ) * + + 91 FROM tab0
----
273

query II rowsort
SELECT ALL col2 AS col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT + 29 * col0 AS col0 FROM tab1
----
1479
2465
2639

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND 18
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT ALL 13 AS col2, MAX( + + col0 ) AS col1 FROM tab0 WHERE NOT NULL = col1 * - col1 * + - col2 + + 35 * + col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4505
SELECT ALL 13 AS col2, MAX ( + + col0 ) AS col1 FROM tab0 WHERE NOT NULL = col1 * - col1 * + - col2 + + 35 * + col2
----
13
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4506
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST( - ( + - col0 ) AS SIGNED ) / + col2 - - + 48 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4506
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST ( - ( + - col0 ) AS INTEGER ) / + col2 - - + 48 AND ( NULL )
----

query I rowsort
SELECT ALL + + ( - col1 ) + + + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4508
SELECT + 12 AS col1, COUNT( * ) FROM tab2 AS cor0
----
12
3

skipif mysql # not compatible
query II rowsort label-4508
SELECT + 12 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
12
3

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
70

query I rowsort
SELECT col1 + ( - + col2 ) FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT - ( + + col0 ) + - - col2 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT - 10 - - ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4512
SELECT - 10 - - ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + col0 - - col0 IS NULL )
----

query II rowsort
SELECT DISTINCT 73 AS col0, col1 FROM tab0 AS cor0
----
73
1
73
21
73
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4515
SELECT + 51, + 92 - + - ( + + col1 ) * + - CAST( - + CAST( + - col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
-1081
51
-2988
51
-3794

skipif mysql # not compatible
query II rowsort label-4515
SELECT + 51, + 92 - + - ( + + col1 ) * + - CAST ( - + CAST ( + - col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
-1081
51
-2988
51
-3794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4516
SELECT + ( - ( 0 ) ) DIV + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT + ( - ( 0 ) ) / + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
128
31

query II rowsort
SELECT DISTINCT col0 * + col0 AS col0, col1 * + col0 * - 80 + + col1 AS col1 FROM tab2 AS cor0
----
2116
-187629
4096
-394163
5625
-401933

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + - ( COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4519
SELECT + - ( COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 - + col1 * - col0 + - col0 * - col1 col1, + col0 col0 FROM tab0
----
2477
15
293
97
3664
87

query I rowsort
SELECT ALL - col0 * - 44 * + col0 * col2 FROM tab1
----
10986624
18756100
24776752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 32 AS col0, - 45 col1 FROM tab0
----
113
-45
33
-45
53
-45

query II rowsort
SELECT DISTINCT + col0 - - col0, + col2 AS col2 FROM tab2
----
128
40
150
58
92
23

query I rowsort
SELECT - col1 + col1 + - + 37 FROM tab1 cor0
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT + col0 + 30 DIV + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4526
SELECT + col0 + 30 / + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT col0 + 12 AS col0 FROM tab1 AS cor0
----
103
63
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4528
SELECT - - 44 DIV 15, col2 FROM tab0 AS cor0
----
2
10
2
47
2
99

skipif mysql # not compatible
query II rowsort label-4528
SELECT - - 44 / 15, col2 FROM tab0 AS cor0
----
2
10
2
47
2
99

query I rowsort
SELECT DISTINCT + 19 * + col0 FROM tab0 AS cor0
----
1653
1843
285

onlyif mysql # DIV for integer division: 
query II rowsort label-4530
SELECT DISTINCT - col1 DIV - - col2 + + - col1, col0 AS col2 FROM tab2 AS cor0
----
-53
46
-68
75
-78
64

skipif mysql # not compatible
query II rowsort label-4530
SELECT DISTINCT - col1 / - - col2 + + - col1, col0 AS col2 FROM tab2 AS cor0
----
-53
46
-68
75
-78
64

query II rowsort
SELECT + col1, + col0 FROM tab2 cor0
----
51
46
67
75
77
64

query II rowsort
SELECT col0, ( - col1 ) AS col0 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - 35 * - - col0 AS col1 FROM tab0 AS cor0
----
-24675
-30450
-336105

query II rowsort
SELECT DISTINCT col2 AS col1, col2 * + col0 AS col1 FROM tab0 cor0
----
10
870
47
705
99
9603

query I rowsort
SELECT + - 48 * + col1 + + + col2 AS col2 FROM tab1 WHERE NOT - col2 * col2 * 8 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 FROM tab1 WHERE NOT NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4538
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT CAST( - 43 AS SIGNED ) > CAST( - col0 AS DECIMAL ) - - col0 )
----

skipif mysql # not compatible
query III rowsort label-4538
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT CAST ( - 43 AS INTEGER ) > CAST ( - col0 AS REAL ) - - col0 )
----

query I rowsort
SELECT DISTINCT ( - 50 ) * - + col0 FROM tab0
----
4350
4850
750

query II rowsort
SELECT - col0 + - 74, col1 FROM tab0
----
-161
21
-171
1
-89
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL MIN( DISTINCT - + 6 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL MIN ( DISTINCT - + 6 ) FROM tab1
----
-6

query I rowsort
SELECT + + ( - + col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-11

query I rowsort
SELECT - col1 * col2 * col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL COUNT( * ) + + - 19 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL COUNT ( * ) + + - 19 FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT + MIN( + col1 ) - 19 AS col2, - 43 FROM tab2
----
32
-43

skipif mysql # not compatible
query II rowsort label-4546
SELECT + MIN ( + col1 ) - 19 AS col2, - 43 FROM tab2
----
32
-43

query I rowsort
SELECT ( 26 ) - + col0 FROM tab0
----
-61
-71
11

query I rowsort
SELECT - 84 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-84
-84
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT DISTINCT + + COUNT( * ) DIV + 37 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + + COUNT ( * ) / + 37 AS col1 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4551
SELECT ALL * FROM tab2 WHERE - CAST( + ( - - col0 ) AS SIGNED ) * - - col2 < 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4551
SELECT ALL * FROM tab2 WHERE - CAST ( + ( - - col0 ) AS INTEGER ) * - - col2 < 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL + ( COUNT( * ) ) * - - COUNT( * ) - - - SUM( - + col1 ) AS col2 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + ( COUNT ( * ) ) * - - COUNT ( * ) - - - SUM ( - + col1 ) AS col2 FROM tab2
----
204

query I rowsort
SELECT + ( + 94 ) FROM tab0
----
94
94
94

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN NULL AND 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL 52 - - COUNT( * ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL 52 - - COUNT ( * ) FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT + ( + - COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4556
SELECT DISTINCT + ( + - COUNT ( * ) ) col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 65 * + ( + + col2 ) NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT 32 * + + 64 FROM tab2 AS cor0
----
2048
2048
2048

query II rowsort
SELECT - - 12, col2 AS col1 FROM tab1 AS cor0
----
12
59
12
68
12
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT ALL - col1 DIV + col2 + - - col2 AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - col1 / + col2 + - - col2 AS col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL + COUNT( ALL + 58 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + COUNT ( ALL + 58 ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 19 col1 FROM tab0 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT + - MIN( ALL + col0 ) + + 10 AS col2 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + - MIN ( ALL + col0 ) + + 10 AS col2 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - ( + COUNT( * ) ) * COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4565
SELECT - ( + COUNT ( * ) ) * COUNT ( * ) FROM tab2 cor0
----
-9

query I rowsort
SELECT + col2 * 19 + 7 AS col1 FROM tab2 AS cor0
----
1109
444
767

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 99 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT - AVG ( ALL - 53 ) / - + AVG ( ALL + + col0 ) / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT - AVG ( ALL - 53 ) / - + AVG ( ALL + + col0 ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT + 3 * - 85 * - col2 * col1 AS col0 FROM tab0
----
25245
53550
970785

query I rowsort
SELECT ALL - col2 + - + 20 AS col0 FROM tab2
----
-43
-60
-78

query I rowsort
SELECT ALL 23 * col0 AS col0 FROM tab0
----
2001
2231
345

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT - ( - 96 ) DIV - + 19 + - - col0 AS col0 FROM tab0 AS cor0
----
10
82
92

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - ( - 96 ) / - + 19 + - - col0 AS col0 FROM tab0 AS cor0
----
10
82
92

query I rowsort
SELECT 11 + - 99 - + 78 + 32 AS col2 FROM tab2 AS cor0
----
-134
-134
-134

query I rowsort
SELECT ALL + - col2 + 27 AS col0 FROM tab2 AS cor0
----
-13
-31
4

query I rowsort
SELECT col0 + - 86 FROM tab0 AS cor0
----
-71
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL + CAST( + col1 AS SIGNED ) * + col0 + + 90 FROM tab2 AS cor0
----
2436
5018
5115

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL + CAST ( + col1 AS INTEGER ) * + col0 + + 90 FROM tab2 AS cor0
----
2436
5018
5115

query I rowsort
SELECT + + col0 AS col1 FROM tab1 WHERE - col0 BETWEEN 39 AND - + 93 * - col1
----

query III rowsort
SELECT * FROM tab0 WHERE 0 + + - 68 NOT BETWEEN NULL AND 45
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 52 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 74 BETWEEN 29 / - col0 * + ( - - 52 ) AND ( - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 47 col0 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT DISTINCT col1 DIV col2 + - - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT col1 / col2 + - - col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + - 54 * 45 AS col1, 77 + - col2 FROM tab0 AS cor0
----
-2430
-22
-2430
30
-2430
67

query I rowsort
SELECT DISTINCT 52 * - + 69 + - - col1 FROM tab2 AS cor0
----
-3511
-3521
-3537

query I rowsort
SELECT + col0 - col1 - - - 15 FROM tab2
----
-20
-28
-7

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4588
SELECT * FROM tab0 WHERE NOT + CAST( - + col1 AS SIGNED ) NOT IN ( - col2, 93 + col2 * + col1 + - 99, + + 33 + col1 )
----

skipif mysql # not compatible
query III rowsort label-4588
SELECT * FROM tab0 WHERE NOT + CAST ( - + col1 AS INTEGER ) NOT IN ( - col2, 93 + col2 * + col1 + - 99, + + 33 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL 59 * + 24 + - COUNT( * ) AS col0 FROM tab2 WHERE ( ( NOT ( ( col2 IS NULL ) ) ) )
----
1413

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL 59 * + 24 + - COUNT ( * ) AS col0 FROM tab2 WHERE ( ( NOT ( ( col2 IS NULL ) ) ) )
----
1413

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT DISTINCT COUNT( * ), + ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4590
SELECT DISTINCT COUNT ( * ), + ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - - COUNT( ALL + ( + col1 ) ) FROM tab0 WHERE NOT col2 + - - 17 <= + - col0
----
3

skipif mysql # not compatible
query I rowsort label-4591
SELECT - - COUNT ( ALL + ( + col1 ) ) FROM tab0 WHERE NOT col2 + - - 17 <= + - col0
----
3

query II rowsort
SELECT ALL 85, + col0 FROM tab2
----
85
46
85
64
85
75

query II rowsort
SELECT - 81, + col1 AS col2 FROM tab0
----
-81
1
-81
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - SUM( ALL + + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4594
SELECT - SUM ( ALL + + col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT 74 - COUNT( * ) * + + CAST( + + 64 AS SIGNED ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-118

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT 74 - COUNT ( * ) * + + CAST ( + + 64 AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-4596
SELECT + - 24, - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-24
-3

skipif mysql # not compatible
query II rowsort label-4596
SELECT + - 24, - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-24
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + - + col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 14 + + + 61 AS col0 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT col0 + 36 AS col0 FROM tab1
----
121
127
87

query I rowsort
SELECT ALL col1 + + + col0 + col1 * + - col1 * - - col1 FROM tab0
----
-531345
-9153
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

query II rowsort
SELECT 1 + - col0 AS col0, - col2 FROM tab2
----
-45
-23
-63
-40
-74
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL ( - + COUNT( col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL ( - + COUNT ( col1 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT + col1 * + col2 + + + col1 FROM tab1 WHERE ( + + 71 + 8 ) IS NULL
----

query I rowsort
SELECT ALL 53 * + 56 AS col2 FROM tab2
----
2968
2968
2968

query I rowsort
SELECT 42 + + col2 + + - 25 FROM tab2
----
40
57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT 60 * + + ( - COUNT( * ) ) AS col2 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-4608
SELECT 60 * + + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-180

query II rowsort
SELECT DISTINCT - col0 + + col1, 55 AS col2 FROM tab2 AS cor0
----
-8
55
13
55
5
55

query I rowsort
SELECT DISTINCT + - 8 * + - 67 FROM tab1 AS cor0
----
536

query I rowsort
SELECT - 87 / - AVG ( DISTINCT col1 ) FROM tab0 cor0 WHERE - 89 * 45 = NULL
----
NULL

query I rowsort
SELECT 49 - - - col0 FROM tab0
----
-38
-48
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4613
SELECT 95 - - + CAST( + - col0 AS SIGNED ), col0, + - 28 AS col2 FROM tab2
----
9 values hashing to 3387856f03c9b285c2a44e71f1e38d57

skipif mysql # not compatible
query III rowsort label-4613
SELECT 95 - - + CAST ( + - col0 AS INTEGER ), col0, + - 28 AS col2 FROM tab2
----
9 values hashing to 3387856f03c9b285c2a44e71f1e38d57

query I rowsort
SELECT ALL - col0 - + col1 + col1 + col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT 24 + ( + - 38 ) AS col2 FROM tab2, tab2 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT - 39 + + col1 + + - CAST( + col1 AS SIGNED ) * + col1 AS col1 FROM tab0
----
-39
-459
-6519

skipif mysql # not compatible
query I rowsort label-4616
SELECT - 39 + + col1 + + - CAST ( + col1 AS INTEGER ) * + col1 AS col1 FROM tab0
----
-39
-459
-6519

query II rowsort
SELECT - col2 + + col0 * - + col2, + col0 FROM tab1 AS cor0
----
-4992
51
-5074
85
-6256
91

query I rowsort
SELECT DISTINCT + + col1 * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col0, col1 - + 9 + + col1 FROM tab0 AS cor0
----
15
153
87
33
97
-7

query II rowsort
SELECT - 83 AS col2, + 90 FROM tab1 cor0
----
-83
90
-83
90
-83
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT - 11 * 70 DIV + + col1 AS col1 FROM tab2
----
-10
-11
-15

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 11 * 70 / + + col1 AS col1 FROM tab2
----
-10
-11
-15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 <= + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 47 * - 56 + 91 AS col2 FROM tab0 AS cor0
----
-2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT ALL - CAST( + + ( + col0 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4625
SELECT ALL - CAST ( + + ( + col0 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT - CAST( + - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4626
SELECT - CAST ( + - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + col2 * + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT COUNT( ALL ( - 0 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT COUNT ( ALL ( - 0 ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 61 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 34 + col1 AS col1 FROM tab0 AS cor0
----
-13
-33
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4632
SELECT MIN( - ( CAST( NULL AS DECIMAL ) ) ) * - 4 * 76 AS col0 FROM tab2 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT MIN ( - ( CAST ( NULL AS REAL ) ) ) * - 4 * 76 AS col0 FROM tab2 WHERE + col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4633
SELECT 85 DIV + col0 + - col0 DIV - 3 AS col2, - ( + 38 ) FROM tab0
----
10
-38
29
-38
32
-38

skipif mysql # not compatible
query II rowsort label-4633
SELECT 85 / + col0 + - col0 / - 3 AS col2, - ( + 38 ) FROM tab0
----
10
-38
29
-38
32
-38

query I rowsort
SELECT ( col0 ) + + - 19 FROM tab2 AS cor0
----
27
45
56

query I rowsort
SELECT + col2 + col2 + - 22 FROM tab2 AS cor0
----
24
58
94

query I rowsort
SELECT - col2 + + + col0 * - + col1 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT - col0 + ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT COUNT( * ) - - 48 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT COUNT ( * ) - - 48 FROM tab1
----
51

query II rowsort
SELECT - ( - - col2 ), + col0 + col0 AS col0 FROM tab0
----
-10
174
-47
30
-99
194

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * col1 - + 28 AS col0 FROM tab0 AS cor0
----
1187
1799
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT + + MIN( - col2 ) * - COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT + + MIN ( - col2 ) * - COUNT ( * ) FROM tab2 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT COUNT( - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4643
SELECT COUNT ( - col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT DISTINCT + 10 DIV + + col1 FROM tab0 AS cor0
----
0
10

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + 10 / + + col1 FROM tab0 AS cor0
----
0
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT + + col2 DIV - + col2 col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4646
SELECT DISTINCT + + col2 / - + col2 col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + MAX( ALL + + col0 ) * - - COUNT( * ) AS col0 FROM tab0 cor0
----
291

skipif mysql # not compatible
query I rowsort label-4647
SELECT + MAX ( ALL + + col0 ) * - - COUNT ( * ) AS col0 FROM tab0 cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL ( + COUNT( ALL + 52 ) ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL ( + COUNT ( ALL + 52 ) ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT + 1 * + col0 DIV - 27 FROM tab1 AS cor0
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-4649
SELECT + 1 * + col0 / - 27 FROM tab1 AS cor0
----
-1
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT DISTINCT + col1 DIV + - 75 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + col1 / + - 75 FROM tab0 AS cor0
----
-1
0

query II rowsort
SELECT - col0 * + - col0 * - 61 AS col2, col1 * + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-158661
-2744
-440725
-125
-505141
-103823

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - col2 - - - col1 > NULL )
----

query II rowsort
SELECT + 77 * - + 8 * - + col0 + - ( col1 ), col0 AS col1 FROM tab1 AS cor0
----
31402
51
52355
85
56009
91

query II rowsort
SELECT ALL - 95, + col2 FROM tab0
----
-95
10
-95
47
-95
99

query II rowsort
SELECT DISTINCT col1, col2 + 85 AS col0 FROM tab2
----
51
108
67
143
77
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL COUNT( DISTINCT - - col0 ) * - 13 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL COUNT ( DISTINCT - - col0 ) * - 13 FROM tab1
----
-39

query I rowsort
SELECT DISTINCT + 44 - col1 * + - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 76
----

query I rowsort
SELECT 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
94

query I rowsort
SELECT - 94 * + col1 * - col0 FROM tab0
----
114210
171738
9118

query I rowsort
SELECT + 74 * - + 9 AS col0 FROM tab2
----
-666
-666
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT + MIN( ALL - - col1 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT + MIN ( ALL - - col1 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + - - ( col1 ) FROM tab1 AS cor0
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col1 FROM tab0 AS cor0 WHERE col1 * + ( + - col1 ) IN ( - 50 )
----

query I rowsort
SELECT - - col2 * + col2 * col2 * 55 + col1 * - ( - col2 ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 21 ) + - - 46, - col2 col0 FROM tab0
----
25
-10
25
-47
25
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + ( + + col2 ) ) + - col1 col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT ALL - 63 - - + col2 FROM tab1
----
-4
33
5

query II rowsort
SELECT - col1 AS col1, col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4671
SELECT + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 3 + + col0 AS col2, + col1 FROM tab1
----
54
14
88
5
94
47

query I rowsort
SELECT col2 * - 72 + - 21 FROM tab1
----
-4269
-4917
-6933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4674
SELECT CAST( NULL AS SIGNED ) + - MIN( + CAST( - col0 AS SIGNED ) ) + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT CAST ( NULL AS INTEGER ) + - MIN ( + CAST ( - col0 AS INTEGER ) ) + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT - ( + ( - ( + 69 ) ) ), col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
69
15
69
87
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + SUM( ALL + 63 ) + + - 10 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
179

skipif mysql # not compatible
query I rowsort label-4676
SELECT + SUM ( ALL + 63 ) + + - 10 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT 84 * - COUNT( * ) AS col0 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-4677
SELECT 84 * - COUNT ( * ) AS col0 FROM tab2
----
-252

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4678
SELECT DISTINCT + + 55 + - - CAST( NULL AS DECIMAL ) * col0 + col0 FROM tab0 WHERE NOT col1 + - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + + 55 + - - CAST ( NULL AS REAL ) * col0 + col0 FROM tab0 WHERE NOT col1 + - col2 IS NULL
----
NULL

query II rowsort
SELECT ALL 32 * + + col1 AS col1, - col2 FROM tab0
----
2592
-47
32
-99
672
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT 64 * - - COUNT( * ) AS col1 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT 64 * - - COUNT ( * ) AS col1 FROM tab2
----
192

query I rowsort
SELECT DISTINCT - + 60 * + col1 * - 28 AS col2 FROM tab1 AS cor0
----
23520
78960
8400

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ( - + 33 ) AS col2 FROM tab1 AS cor0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + 97 IS NULL
----

query II rowsort
SELECT - col2 AS col0, - 60 AS col0 FROM tab2 AS cor0
----
-23
-60
-40
-60
-58
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT col1 DIV - 99 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT col1 / - 99 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 + + ( col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4687
SELECT + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 + + ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + - col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT col0 + - col0 * - col1 + 27 AS col2 FROM tab1
----
4395
537
792

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab0 WHERE 12 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + 76 + 72 * col1 FROM tab1
----
1084
3460
436

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + - ( 89 ) + + MIN( - + col1 ) col2 FROM tab0 AS cor0
----
-170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4692
SELECT + - ( 89 ) + + MIN ( - + col1 ) col2 FROM tab0 AS cor0
----
-170

query I rowsort
SELECT 94 + 84 AS col1 FROM tab2 AS cor0
----
178
178
178

query I rowsort
SELECT + col0 + + + ( - + col2 ) FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - COUNT( - - 80 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4696
SELECT - COUNT ( - - 80 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL col1 * - col0 * col0 * + col2 FROM tab2
----
-12615680
-21858750
-2482068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT MIN( ALL - + CAST( + col1 AS SIGNED ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4698
SELECT MIN ( ALL - + CAST ( + col1 AS INTEGER ) ) FROM tab2
----
-77

query I rowsort
SELECT + + 49 FROM tab0 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - ( 52 ) AS col2 FROM tab0 AS cor0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col0, col2 * col0 + - col2, + 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT 47 * COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4703
SELECT 47 * COUNT ( * ) FROM tab1 AS cor0
----
141

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL >= col1
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 2 + - col1 AS col1 FROM tab1
----
-12
-3
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT MIN( + col2 ) + 43 AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4708
SELECT MIN ( + col2 ) + 43 AS col1 FROM tab2
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 37 + + 79 * 16 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 77 * - col2 * + + 58 AND + + ( + 12 )
----

query II rowsort
SELECT + col0 AS col2, - ( 40 ) FROM tab1 cor0
----
51
-40
85
-40
91
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT + MIN( DISTINCT - 1 ) DIV - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT + MIN ( DISTINCT - 1 ) / - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT - + COUNT( * ) * + 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-864

skipif mysql # not compatible
query I rowsort label-4713
SELECT - + COUNT ( * ) * + 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT col1 * - + CAST( NULL AS SIGNED ) + + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT col1 * - + CAST ( NULL AS INTEGER ) + + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT + 46 DIV col2 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT + 46 / col2 FROM tab0 AS cor0
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 45 + - - 80 * - 84 col1 FROM tab0 cor0
----
-6676
-6696
-6756

query I rowsort
SELECT DISTINCT 72 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT + - COUNT( * ) * - COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4718
SELECT + - COUNT ( * ) * - COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT DISTINCT 61 DIV 60 + - col0 + + col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT 61 / 60 + - col0 + + col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT 21 - + - col2 + 16 * + col2 * - 72 + + - 80, + 60 AS col2 FROM tab1
----
-110555
60
-67968
60
-78327
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT SUM( + - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4721
SELECT SUM ( + - col0 ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + + MIN( + 10 ) * - + 66 + + COUNT( * ) FROM tab0 WHERE + col2 IS NOT NULL
----
-657

skipif mysql # not compatible
query I rowsort label-4722
SELECT + + MIN ( + 10 ) * - + 66 + + COUNT ( * ) FROM tab0 WHERE + col2 IS NOT NULL
----
-657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL - CAST( NULL AS SIGNED ) - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - CAST ( NULL AS INTEGER ) - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT COUNT( * ) - - + 19 col2 FROM tab2
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4724
SELECT DISTINCT COUNT ( * ) - - + 19 col2 FROM tab2
----
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 34 * - 27 = - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + 59 ) ) = + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2 * - col0 + + col2, - col0 * + + col0 AS col2 FROM tab2 AS cor0
----
-1035
-2116
-2520
-4096
-4292
-5625

query I rowsort
SELECT DISTINCT + 93 AS col0 FROM tab0 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT + col1 DIV + 52 + 31 FROM tab1
----
31
31
31

skipif mysql # not compatible
query I rowsort label-4729
SELECT + col1 / + 52 + 31 FROM tab1
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT SUM( - col0 ) + - COUNT( * ) AS col1 FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-4730
SELECT SUM ( - col0 ) + - COUNT ( * ) AS col1 FROM tab0
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL COUNT( * ) + ( - 41 ) AS col0 FROM tab1 WHERE NOT 76 BETWEEN NULL AND ( NULL )
----
-41

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL COUNT ( * ) + ( - 41 ) AS col0 FROM tab1 WHERE NOT 76 BETWEEN NULL AND ( NULL )
----
-41

query I rowsort
SELECT DISTINCT ( - 26 ) FROM tab2
----
-26

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + col1 NOT IN ( col2 )
----

query I rowsort
SELECT - col1 * + col2 + + col0 AS col2 FROM tab0
----
-123
-2
-3792

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * - 16 ) >= 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4737
SELECT ALL - CAST( MIN( + 64 ) AS SIGNED ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - CAST ( MIN ( + 64 ) AS INTEGER ) FROM tab2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 24 + col2 FROM tab0
----
-14
23
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 3 <= + ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + col2 * - col0 AS col1 FROM tab0
----
-720
-957
-9700

query I rowsort
SELECT 47 AS col0 FROM tab1 WHERE NOT 7 * ( + 11 ) + col2 IN ( col1 )
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT MIN( - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT MIN ( - col2 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT - COUNT( * ) * 85 AS col2 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - COUNT ( * ) * 85 AS col2 FROM tab2
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT COUNT( * ) - - 22 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-4745
SELECT COUNT ( * ) - - 22 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT COUNT( * ) - 84 AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-4746
SELECT COUNT ( * ) - 84 AS col2 FROM tab1
----
-81

query I rowsort
SELECT ALL AVG ( DISTINCT ( 94 ) ) FROM tab0 WHERE ( NULL ) > - col1 * + col0 + + col0
----
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT 77 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) >= + col2
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4750
SELECT - ( + COUNT( ALL CAST( + col2 AS DECIMAL ) ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4750
SELECT - ( + COUNT ( ALL CAST ( + col2 AS REAL ) ) ) col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 13 * col0 ) BETWEEN + col1 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4752
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4752
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col2 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) > NULL
----

query I rowsort
SELECT 61 + - col2 FROM tab1
----
-35
-7
2

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN col1 AND ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL COUNT( * ) - - MIN( + col2 + col2 * + col1 ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL COUNT ( * ) - - MIN ( + col2 + col2 * + col1 ) FROM tab0
----
201

query I rowsort
SELECT col2 * + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT - MAX( ALL 66 ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4759
SELECT - MAX ( ALL 66 ) AS col0 FROM tab1 cor0
----
-66

query III rowsort
SELECT * FROM tab0 cor0 WHERE 36 - + col0 * col1 >= ( col1 + - col2 )
----
97
1
99

query I rowsort
SELECT DISTINCT - ( 39 ) FROM tab0 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - ( 39 ) + - ( - 71 ) AS col1 FROM tab2 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + col1 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT + col1 DIV 69 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4764
SELECT + col1 / 69 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col0 + 29 * col0 FROM tab2 AS cor0
----
1288
1792
2100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4766
SELECT - col1 - CAST( NULL AS DECIMAL ) * 75 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT - col1 - CAST ( NULL AS REAL ) * 75 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( col0 ) - + col1 * - 41 FROM tab0 AS cor0
----
-56
3306
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + MAX( DISTINCT col1 ) FROM tab1 AS cor0 WHERE + col1 * + col1 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-4768
SELECT + MAX ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE + col1 * + col1 IS NOT NULL
----
47

query I rowsort
SELECT DISTINCT + + 39 * 40 AS col0 FROM tab1 AS cor0
----
1560

query I rowsort
SELECT + col0 - - - 69 - - col0 FROM tab1
----
101
113
33

query I rowsort
SELECT ALL - ( col1 ) + 10 FROM tab1
----
-37
-4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE col1 * 21 + - col0 * col1 = col0
----
0

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE col1 * 21 + - col0 * col1 = col0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - 46
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4774
SELECT ALL CAST( NULL AS SIGNED ) + + - MIN( 73 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL CAST ( NULL AS INTEGER ) + + - MIN ( 73 ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 * 23 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT + CAST( + 32 AS SIGNED ) AS col0 FROM tab0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-4776
SELECT + CAST ( + 32 AS INTEGER ) AS col0 FROM tab0
----
32
32
32

query I rowsort
SELECT 55 * - 45 AS col1 FROM tab2
----
-2475
-2475
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT + CAST( col2 AS SIGNED ) * + CAST( col1 + - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-9702
110
1598

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4778
SELECT + CAST ( col2 AS INTEGER ) * + CAST ( col1 + - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-9702
110
1598

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4779
SELECT ALL 40 * - + col0 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL 40 * - + col0 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - ( - col1 ) FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4781
SELECT * FROM tab0 AS cor0 WHERE NOT 82 * - 51 <> ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4781
SELECT * FROM tab0 AS cor0 WHERE NOT 82 * - 51 <> ( + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + ( - col2 ) col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + 61 FROM tab2 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL + COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4784
SELECT ALL + COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL 22 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT - MAX( DISTINCT col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4786
SELECT - MAX ( DISTINCT col0 ) FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + 45 * 31 FROM tab1 WHERE ( NULL ) IS NULL
----
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT - 92 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 92 <> NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 57 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - ( MAX( - col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4790
SELECT - ( MAX ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT 92 * - COUNT( DISTINCT - 65 ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT 92 * - COUNT ( DISTINCT - 65 ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 23 IS NULL
----

query I rowsort
SELECT ALL + 8 + col1 * col0 AS col0 FROM tab2 AS cor0 WHERE ( + 71 ) + - ( + col1 ) NOT BETWEEN - col1 * - ( col0 ) AND col1
----
2354
4936
5033

query I rowsort
SELECT 14 FROM tab1 AS cor0 WHERE NOT + 16 BETWEEN NULL AND - 89
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + + col2 * 60 col1 FROM tab0 cor0
----
-12600
-228420
-5940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4797
SELECT ALL + COUNT( * ) DIV - COUNT( col1 ) + 13 DIV + 45 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + COUNT ( * ) / - COUNT ( col1 ) + 13 / + 45 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col0 * - - 17 AS col0 FROM tab1 cor0
----
-1445
-1547
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col1 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4799
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col1 * col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT DISTINCT - CAST( - 74 AS SIGNED ) + - ( 55 ) AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - CAST ( - 74 AS INTEGER ) + - ( 55 ) AS col0 FROM tab0
----
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 12 * + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 59 IS NOT NULL
----

query I rowsort
SELECT ALL + 2 * + 72 FROM tab1 WHERE NOT ( + 68 ) IS NULL
----
144
144
144

query I rowsort
SELECT + 26 FROM tab1 WHERE col2 * col2 IS NOT NULL
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + + col0 col1 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT - + col1 FROM tab1 WHERE - - 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT COUNT( - ( - 81 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT COUNT ( - ( - 81 ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT col0 + - col0 DIV - + ( - + col2 ) + + ( - col2 ) FROM tab2
----
16
21
23

skipif mysql # not compatible
query I rowsort label-4808
SELECT col0 + - col0 / - + ( - + col2 ) + + ( - col2 ) FROM tab2
----
16
21
23

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + - col1 ) > ( col2 / - col1 - + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < 49
----

query I rowsort
SELECT - 22 * 62 AS col0 FROM tab1
----
-1364
-1364
-1364

query I rowsort
SELECT DISTINCT - col1 + - + col2 * - col1 AS col2 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT + COUNT( * ) DIV - ( - SUM( + col2 ) ) + 50 FROM tab2 cor0
----
50

skipif mysql # not compatible
query I rowsort label-4813
SELECT + COUNT ( * ) / - ( - SUM ( + col2 ) ) + 50 FROM tab2 cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT ALL - - 96 + + ( + + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
119
136
154

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - - 96 + + ( + + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
119
136
154

query I rowsort
SELECT 30 - + - col0 AS col1 FROM tab2
----
105
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT COUNT( ALL + 66 ) * COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4816
SELECT COUNT ( ALL + 66 ) * COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
6

query II rowsort
SELECT ALL - col2, 70 + ( - col1 ) AS col2 FROM tab0
----
-10
49
-47
-11
-99
69

query I rowsort
SELECT col1 FROM tab0 WHERE - + ( - col0 ) * - col2 - + col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4819
SELECT - COUNT( * ) + - COUNT( * ) + - - 90 * + COUNT( * ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4819
SELECT - COUNT ( * ) + - COUNT ( * ) + - - 90 * + COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0
----
-96

query I rowsort
SELECT ALL + col2 * + - 92 * + - 42 AS col0 FROM tab2 cor0
----
154560
224112
88872

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 98 * + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL 67 * SUM( ALL + 82 ) FROM tab1 AS cor0
----
16482

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL 67 * SUM ( ALL + 82 ) FROM tab1 AS cor0
----
16482

query I rowsort
SELECT ALL 83 * - col2 / + 54 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT - 52 DIV - - 33 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4824
SELECT - 52 / - - 33 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( - - 57 ) AS col2 FROM tab0
----
-57
-57
-57

query II rowsort
SELECT + 48, col0 AS col0 FROM tab2
----
48
46
48
64
48
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT + MIN( ALL + 84 ) AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4827
SELECT + MIN ( ALL + 84 ) AS col1 FROM tab0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 4 AS col1, - 64 * col2 + 86 col0 FROM tab0
----
4
-2922
4
-554
4
-6250

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 IN ( + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - MIN( - col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4830
SELECT - MIN ( - col0 ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + SUM( + - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4831
SELECT + SUM ( + - col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE ( - col1 NOT BETWEEN ( + + 53 - + col2 ) AND + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE ( - col1 NOT BETWEEN ( + + 53 - + col2 ) AND + col0 )
----
NULL

query I rowsort
SELECT col2 * + + col0 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL + CAST( NULL AS SIGNED ) * 87 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + CAST ( NULL AS INTEGER ) * 87 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + 15 * - + col2 * 62
----

query I rowsort
SELECT ALL + 36 * + - 76 * - 57 FROM tab0
----
155952
155952
155952

query I rowsort
SELECT ALL col2 + - + col1 * - col2 * + + col0 FROM tab0 cor0
----
18280
57152
9702

query I rowsort
SELECT ALL - col2 * - + 3 + + + 35 AS col0 FROM tab2 AS cor0
----
104
155
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT - COUNT( * ) * + MIN( ALL - col1 ) FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-4840
SELECT - COUNT ( * ) * + MIN ( ALL - col1 ) FROM tab1 cor0
----
141

query I rowsort
SELECT DISTINCT + col0 * - + 39 + + col1 AS col1 FROM tab1 AS cor0
----
-1975
-3310
-3502

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT ALL 44 + + ( + COUNT( * ) ) AS col0, COUNT( * ) AS col1 FROM tab0
----
47
3

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL 44 + + ( + COUNT ( * ) ) AS col0, COUNT ( * ) AS col1 FROM tab0
----
47
3

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-4845
SELECT DISTINCT - col0, 53 + col0 DIV col0 AS col0 FROM tab2
----
-46
54
-64
54
-75
54

skipif mysql # not compatible
query II rowsort label-4845
SELECT DISTINCT - col0, 53 + col0 / col0 AS col0 FROM tab2
----
-46
54
-64
54
-75
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT DISTINCT + 71, - COUNT( * ) col0 FROM tab1
----
71
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4846
SELECT DISTINCT + 71, - COUNT ( * ) col0 FROM tab1
----
71
-3

query II rowsort
SELECT ALL + col2 AS col0, + col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4848
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * col0 * + CAST( NULL AS SIGNED ) + + col2 * + col2 <> - ( - 9 )
----

skipif mysql # not compatible
query III rowsort label-4848
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * col0 * + CAST ( NULL AS INTEGER ) + + col2 * + col2 <> - ( - 9 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4849
SELECT - ( - 58 ) + - 14, - COUNT( * ) col1 FROM tab0 AS cor0
----
44
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4849
SELECT - ( - 58 ) + - 14, - COUNT ( * ) col1 FROM tab0 AS cor0
----
44
-3

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 cor0 WHERE col0 / + - col0 BETWEEN 47 AND ( NULL )
----

query II rowsort
SELECT ALL - 70 AS col0, col1 FROM tab1 AS cor0
----
-70
14
-70
47
-70
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT DISTINCT - 54 DIV + + col0 + - + col0 AS col0 FROM tab2 cor0
----
-47
-64
-75

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - 54 / + + col0 + - + col0 AS col0 FROM tab2 cor0
----
-47
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL - - COUNT( - col1 ) FROM tab1 AS cor0 WHERE col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - - COUNT ( - col1 ) FROM tab1 AS cor0 WHERE col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL + COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE ( NULL NOT IN ( - ( - 97 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4856
SELECT - ( - + COUNT( * ) ), CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-4856
SELECT - ( - + COUNT ( * ) ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

query I rowsort
SELECT DISTINCT + + col0 * - col0 * col2 + col1 - col1 AS col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT - 62 - - col2 FROM tab2 AS cor0
----
-22
-39
-4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * - 25 IS NOT NULL
----

query I rowsort
SELECT - ( col2 ) * - col0 FROM tab2 AS cor0 WHERE NOT - col0 / + ( + + 69 ) * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT col2 DIV + 84 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4861
SELECT col2 / + 84 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL + 92 * COUNT( * ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + 92 * COUNT ( * ) FROM tab0
----
276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * + col0 col0 FROM tab1
----
1938
3230
3458

onlyif mysql # DIV for integer division: 
query I rowsort label-4864
SELECT 85 DIV + col1 FROM tab0
----
1
4
85

skipif mysql # not compatible
query I rowsort label-4864
SELECT 85 / + col1 FROM tab0
----
1
4
85

query III rowsort
SELECT col1, col0 * + col1, + - col1 * col0 * + col0 + - - 65 + - 43 AS col2 FROM tab0
----
9 values hashing to 1f88587ae7a2f406cab2be2e5c688ccf

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT MAX( DISTINCT 11 ) col0 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4866
SELECT MAX ( DISTINCT 11 ) col0 FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL MAX( + + 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL MAX ( + + 5 ) FROM tab0
----
5

query I rowsort
SELECT DISTINCT + ( + 57 ) AS col2 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4869
SELECT + CAST( - SUM( DISTINCT + col1 ) AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4869
SELECT + CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-195

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + + col1 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 58 <= NULL
----

query II rowsort
SELECT col0 * - col0 AS col2, col2 FROM tab2 AS cor0
----
-2116
23
-4096
40
-5625
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT - MIN( - col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4873
SELECT - MIN ( - col2 ) FROM tab0 cor0
----
99

query II rowsort
SELECT - 55, col1 * + 27 AS col0 FROM tab0 AS cor0
----
-55
2187
-55
27
-55
567

query II rowsort
SELECT + ( - - 77 ), col1 FROM tab0 AS cor0
----
77
1
77
21
77
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT DISTINCT - + 55 AS col2, SUM( col2 ) AS col2 FROM tab2 AS cor0
----
-55
121

skipif mysql # not compatible
query II rowsort label-4876
SELECT DISTINCT - + 55 AS col2, SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
-55
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT + + COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT + + COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT + 34 AS col0, + col1 FROM tab1 AS cor0
----
34
14
34
47
34
5

query I rowsort
SELECT ALL + 47 + + col1 AS col1 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT - MIN( + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-4880
SELECT - MIN ( + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT - col1 * + CAST( NULL AS SIGNED ) * col0 * col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT - col1 * + CAST ( NULL AS INTEGER ) * col0 * col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 99 / - 15 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + - 5 AS col0 FROM tab2 AS cor0
----
18
35
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT COUNT( * ) + 48 * - + 89 AS col2 FROM tab2
----
-4269

skipif mysql # not compatible
query I rowsort label-4884
SELECT COUNT ( * ) + 48 * - + 89 AS col2 FROM tab2
----
-4269

query II rowsort
SELECT - col1 + - col2 AS col2, 13 FROM tab2
----
-117
13
-125
13
-74
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT 79 * 23 + COUNT( * ) FROM tab0
----
1820

skipif mysql # not compatible
query I rowsort label-4886
SELECT 79 * 23 + COUNT ( * ) FROM tab0
----
1820

query II rowsort
SELECT ( - - 24 ), 58 AS col0 FROM tab2
----
24
58
24
58
24
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NULL ) <> NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT ALL COUNT( * ) DIV - 7 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL COUNT ( * ) / - 7 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT + 75 DIV - MIN( - + ( - col0 ) ) AS col0 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-4890
SELECT + 75 / - MIN ( - + ( - col0 ) ) AS col0 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT + COUNT( ALL + 97 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT + COUNT ( ALL + 97 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT DISTINCT - MAX( ALL 38 ) AS col1 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - MAX ( ALL 38 ) AS col1 FROM tab1 AS cor0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4893
SELECT DISTINCT - col0 * 77 DIV - + col0 + + - col0 FROM tab0 AS cor0
----
-10
-20
62

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - col0 * 77 / - + col0 + + - col0 FROM tab0 AS cor0
----
-10
-20
62

query I rowsort
SELECT ALL - col2 * + + col0 - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 - + col2 col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query II rowsort
SELECT ALL - col2 AS col0, ( + - 62 ) AS col1 FROM tab0
----
-10
-62
-47
-62
-99
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col1 FROM tab2 AS cor0
----
-82
-82
-82

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + - COUNT( - col1 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4900
SELECT + - COUNT ( - col1 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 30 * - + ( + col0 ) * - 25 AS col0 FROM tab1 AS cor0
----
38250
63750
68250

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT + + col2 + - + col0 + col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ( + + COUNT( DISTINCT + 39 ) ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4903
SELECT ( + + COUNT ( DISTINCT + 39 ) ) col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT + SUM( DISTINCT + col0 ) DIV - COUNT( * ) AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-4904
SELECT + SUM ( DISTINCT + col0 ) / - COUNT ( * ) AS col2 FROM tab2
----
-61

query I rowsort
SELECT col0 * + - 39 + + + col0 * - col1 - col1 FROM tab1 WHERE NOT - + 28 NOT IN ( + col1, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT - col1 DIV 77 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT - col1 / 77 AS col1 FROM tab2
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 7 NOT IN ( - col2, col2 - col0 - ( - + ( + + col1 ) ) + col1 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 52 + - + col1 AS col2 FROM tab1 AS cor0
----
38
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + COUNT( * ) * - COUNT( DISTINCT 10 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4909
SELECT + COUNT ( * ) * - COUNT ( DISTINCT 10 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT MAX( ALL + - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT MAX ( ALL + - col1 ) FROM tab2
----
-51

query I rowsort
SELECT col2 * + col2 + + 82 * + + col1 FROM tab1
----
10364
3891
8478

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + col0 * 38 >= ( + + 83 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4913
SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT ALL ( - 53 ) AS col2 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - - 67 + + - col0 FROM tab1 AS cor0
----
-18
-24
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT ALL + col1 * + CAST( col1 AS SIGNED ) + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + col1 * + CAST ( col1 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT ALL - col0 DIV ( - col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - col0 / ( - col0 ) FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL AND NOT NULL IN ( + 43 * - col1 + + col2 - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL AND NOT NULL IN ( + 43 * - col1 + + col2 - col0 )
----
0

query I rowsort
SELECT DISTINCT + ( + 33 ) FROM tab0
----
33

query I rowsort
SELECT ALL col0 * col2 + col2 * + - col1 AS col1 FROM tab0 AS cor0
----
-3102
660
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 + col1 - + col1 col2 FROM tab2 AS cor0
----
-46
-46
-46

query II rowsort
SELECT ALL col0 AS col0, + 27 FROM tab0 AS cor0
----
15
27
87
27
97
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT COUNT( DISTINCT col2 ) + 17 + - - 9 AS col1 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4925
SELECT COUNT ( DISTINCT col2 ) + 17 + - - 9 AS col1 FROM tab1 AS cor0
----
29

query II rowsort
SELECT ALL + col2 + 71, - col2 AS col1 FROM tab2 AS cor0
----
111
-40
129
-58
94
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + 19 * + MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
1425

skipif mysql # not compatible
query I rowsort label-4927
SELECT + 19 * + MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
1425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT ALL + col1, + col2 AS col2 FROM tab0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + ( col0 ) * - ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + MAX( ALL - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4931
SELECT + MAX ( ALL - col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4932
SELECT ALL - ( - COUNT( ALL - 92 ) ), CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4932
SELECT ALL - ( - COUNT ( ALL - 92 ) ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
3
NULL

query I rowsort
SELECT - col1 * - 80 AS col0 FROM tab2
----
4080
5360
6160

query II rowsort
SELECT + col2 AS col1, + col0 FROM tab0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + - col0 col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + + col0, - col0 col1 FROM tab0
----
225
-15
7569
-87
9409
-97

query I rowsort
SELECT ALL 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL ( - - ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col0 FROM tab1 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT - - COUNT( DISTINCT col0 ) * + SUM( + 44 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
393

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - - COUNT ( DISTINCT col0 ) * + SUM ( + 44 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
393

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT COUNT( * ) * + + 49 col2 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4942
SELECT DISTINCT COUNT ( * ) * + + 49 col2 FROM tab0 AS cor0
----
147

query II rowsort
SELECT ALL - col1 * - - col1 * col0 + 85 AS col2, col2 AS col2 FROM tab0 cor0
----
-12
99
-38282
10
-98330
47

query I rowsort
SELECT ALL + col1 + - + 31 + + col0 - - ( - ( + - col0 ) ) AS col1 FROM tab2 cor0
----
112
174
186

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT ALL - 2 + 59 DIV + 19 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - 2 + 59 / + 19 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT ALL - 68 AS col0, - col2 FROM tab1
----
-68
-59
-68
-68
-68
-96

query II rowsort
SELECT 61, col2 FROM tab0
----
61
10
61
47
61
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - ( - ( - MAX( + 30 ) ) ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4949
SELECT - ( - ( - MAX ( + 30 ) ) ) AS col1 FROM tab1
----
-30

query I rowsort
SELECT ALL 49 - - 14 AS col0 FROM tab1
----
63
63
63

query II rowsort
SELECT + col2 AS col1, + 0 * + ( - col0 ) * 55 + - ( + col2 ) + - - 89 FROM tab2
----
23
66
40
49
58
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT - col0 - - col2 + + col2 + + col0 * + CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-146
-7636
-9308

skipif mysql # not compatible
query I rowsort label-4952
SELECT - col0 - - col2 + + col2 + + col0 * + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-146
-7636
-9308

query I rowsort
SELECT ALL + + col1 + + 61 * 94 * + 53 FROM tab1 cor0
----
303907
303916
303949

query I rowsort
SELECT DISTINCT + col1 * ( - - 16 ) * + col0 + - col2 FROM tab1 AS cor0
----
11328
6741
68364

query I rowsort
SELECT ALL 25 * + col1 + + + col0 AS col0 FROM tab1 AS cor0
----
1266
210
401

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT col0 DIV - - col0 + - + col1 + + ( - - col0 ) + + ( + col0 ) * + col2 FROM tab0 cor0
----
640
937
9700

skipif mysql # not compatible
query I rowsort label-4956
SELECT col0 / - - col0 + - + col1 + + ( - - col0 ) + + ( + col0 ) * + col2 FROM tab0 cor0
----
640
937
9700

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL + + MAX( + + 19 ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + + MAX ( + + 19 ) FROM tab0 AS cor0
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4961
SELECT + 17 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4961
SELECT + 17 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= - CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 11 col1, col2 FROM tab0 AS cor0
----
11
10
11
47
11
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4963
SELECT + ( - COUNT( * ) ), COUNT( - CAST( NULL AS SIGNED ) ) + - 73 AS col1 FROM tab2 AS cor0
----
-3
-73

skipif mysql # not compatible
query II rowsort label-4963
SELECT + ( - COUNT ( * ) ), COUNT ( - CAST ( NULL AS INTEGER ) ) + - 73 AS col1 FROM tab2 AS cor0
----
-3
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT - 47 DIV - ( + col2 ) FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4964
SELECT - 47 / - ( + col2 ) FROM tab0 AS cor0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL - MAX( ALL - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - MAX ( ALL - col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT 26 + - 63 FROM tab1 WHERE NOT - col1 / + 78 >= + + ( col1 )
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * col2 col0, + col2 * col1 AS col0 FROM tab2
----
1058
1173
2560
3080
4350
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-4968
SELECT ALL COUNT( ALL - - 3 ) AS col2, + SUM( DISTINCT + col1 ) FROM tab1 cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-4968
SELECT ALL COUNT ( ALL - - 3 ) AS col2, + SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
3
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT MIN( + 14 ) col2 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT MIN ( + 14 ) col2 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4970
SELECT + + col2 + - ( - col2 ) - col0 + + - col0 DIV - col2 AS col1 FROM tab2 AS cor0
----
17
2
42

skipif mysql # not compatible
query I rowsort label-4970
SELECT + + col2 + - ( - col2 ) - col0 + + - col0 / - col2 AS col1 FROM tab2 AS cor0
----
17
2
42

query I rowsort
SELECT col1 + 97 + ( 84 ) FROM tab2
----
232
248
258

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT ALL col1 + - - col2 - + 43 DIV + 85 AS col2 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL col1 + - - col2 - + 43 / + 85 AS col2 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col0 + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT - 83 DIV 60 + + - COUNT( * ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 83 / 60 + + - COUNT ( * ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - + 16 * 59 FROM tab0 AS cor0
----
-944
-944
-944

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE col1 >= - col1 AND col2 >= - + col1
----
14
47
5

query II rowsort
SELECT - 48 - col1 * - 71 + - + col2 AS col0, col0 * col2 FROM tab0 AS cor0
----
-76
9603
1433
870
5656
705

query I rowsort
SELECT DISTINCT col0 + col1 * ( + - ( + + col0 ) ) * + 93 + + col0 FROM tab0 AS cor0
----
-112965
-169737
-8827

query I rowsort
SELECT ALL + col2 * 42 * + - 18 - + 68 AS col2 FROM tab2 AS cor0
----
-17456
-30308
-43916

query I rowsort
SELECT ALL - + 74 + + col1 AS col0 FROM tab0 AS cor0
----
-53
-73
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT COUNT( * ) * + 49 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT COUNT ( * ) * + 49 FROM tab0
----
147

query I rowsort
SELECT col0 + - + 8 AS col0 FROM tab0
----
7
79
89

query I rowsort
SELECT DISTINCT - + ( + + 77 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + 22 * + - col0 * col2 FROM tab0 AS cor0
----
-15510
-19140
-211266

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4985
SELECT col0 DIV - CAST( + + 62 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4985
SELECT col0 / - CAST ( + + 62 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - ( - 44 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
125

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - ( - 44 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
125

query I rowsort
SELECT DISTINCT col0 * + - col2 * - + 33 FROM tab0
----
23265
28710
316899

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4988
SELECT col2, + CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4988
SELECT col2, + CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT DISTINCT - col2 DIV + - col2 + - 64 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT - col2 / + - col2 + - 64 FROM tab2 AS cor0
----
-63

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 47 * + col2 + - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT CAST( - + 23 AS SIGNED ) FROM tab1 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-4992
SELECT CAST ( - + 23 AS INTEGER ) FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4993
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + 15 FROM tab2 cor0
----
38
55
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4995
SELECT 29 DIV COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4995
SELECT 29 / COUNT ( * ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT ALL + 85, 43 AS col1 FROM tab0
----
85
43
85
43
85
43

query I rowsort
SELECT 54 * + col2 + - col1 FROM tab1
----
3181
3625
5170

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4998
SELECT 26 + + CAST( - CAST( ( - + col0 ) AS DECIMAL ) AS SIGNED ) + col0 + - col2 FROM tab1
----
137
140
32

skipif mysql # not compatible
query I rowsort label-4998
SELECT 26 + + CAST ( - CAST ( ( - + col0 ) AS REAL ) AS INTEGER ) + col0 + - col2 FROM tab1
----
137
140
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT ( - col2 ) + - + 81 DIV + col2 AS col1 FROM tab1
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-4999
SELECT ( - col2 ) + - + 81 / + col2 AS col1 FROM tab1
----
-60
-69
-96

query I rowsort
SELECT col1 + - + 79 AS col1 FROM tab1 cor0 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT 89 + SUM( ALL + col0 ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
316

skipif mysql # not compatible
query I rowsort label-5001
SELECT 89 + SUM ( ALL + col0 ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
316

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 30 IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL + col1 AS col0, - col1 AS col0 FROM tab1 cor0
----
14
-14
47
-47
5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - + 58 col0 FROM tab0
----
145
155
73

query I rowsort
SELECT col2 + + - col1 - + - col1 + + 95 + - + col0 FROM tab0
----
127
18
97

query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0 WHERE 25 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT + 55 + + - COUNT( * ) * 94 * + - ( - COUNT( * ) ) FROM tab0 cor0
----
-791

skipif mysql # not compatible
query I rowsort label-5007
SELECT + 55 + + - COUNT ( * ) * 94 * + - ( - COUNT ( * ) ) FROM tab0 cor0
----
-791

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT - MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT - MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 73 + - 18 * col2 * - - 48 * col2 AS col1 FROM tab1 AS cor0
----
-3007511
-3995063
-7962551

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT + + MIN( ALL + - 62 ) FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + + MIN ( ALL + - 62 ) FROM tab2 cor0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT ALL - col0 + - - 47 DIV + + col2 * + col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL - col0 + - - 47 / + + col2 * + col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL + col0 + - CAST( + ( - 8 ) AS SIGNED ) * col2 AS col2 FROM tab0
----
167
391
889

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + col0 + - CAST ( + ( - 8 ) AS INTEGER ) * col2 AS col2 FROM tab0
----
167
391
889

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - 95 * + COUNT( * ) AS col1 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-5013
SELECT - 95 * + COUNT ( * ) AS col1 FROM tab1
----
-285

query II rowsort
SELECT + 15 AS col0, - col2 AS col0 FROM tab0
----
15
-10
15
-47
15
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ( - + COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5015
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 AS col2, col1 col2 FROM tab1
----
94
14
94
47
94
5

query II rowsort
SELECT 71 AS col1, col2 AS col1 FROM tab2
----
71
23
71
40
71
58

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE - + ( + ( - 15 ) ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 19 + col2 AS col0 FROM tab2 cor0 WHERE NOT ( ( NOT + 18 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT DISTINCT 58 / + col0 - - col1 - - col1 * - 76 / - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5021
SELECT DISTINCT 58 / + col0 - - col1 - - col1 * - 76 / - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT + - CAST( 81 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
-1134
-3807
-405

skipif mysql # not compatible
query I rowsort label-5022
SELECT + - CAST ( 81 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
-1134
-3807
-405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col1, + 98 FROM tab2 AS cor0
----
23
98
40
98
58
98

query II rowsort
SELECT + col0 * + 61, col1 FROM tab2
----
2806
51
3904
77
4575
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL - COUNT( - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - COUNT ( - col1 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col0 * + + 34 * + col1 FROM tab2
----
-167552
-170850
-79764

query I rowsort
SELECT DISTINCT + + 41 * - 23 FROM tab0 AS cor0
----
-943

query I rowsort
SELECT - - 50 * col1 - + col0 AS col1 FROM tab0 AS cor0
----
-47
4035
963

onlyif mysql # DIV for integer division: 
query I rowsort label-5029
SELECT col2 DIV - 74 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT col2 / - 74 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 92 col1 FROM tab2
----
-4232
-5888
-6900

query I rowsort
SELECT ALL 48 * + col0 FROM tab0
----
4176
4656
720

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( NOT ( col1 ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5032
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( NOT ( col1 ) IS NULL )
----
3

query II rowsort
SELECT ALL - col1 + + + col2, - 10 FROM tab2 WHERE NOT ( - col0 * - ( + col0 ) + - 12 > - 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT ALL col1 DIV - 32 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL col1 / - 32 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT - + ( + - col2 ) AS col1 FROM tab2 WHERE ( NULL <> col2 + col1 + + 16 + - 66 + - col2 - - - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT COUNT( DISTINCT ( + col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT COUNT ( DISTINCT ( + col0 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - + AVG ( DISTINCT - - col0 ) * + 57 FROM tab1 WHERE + col1 = + 49
----
NULL

query I rowsort
SELECT - col1 + col0 * - - 21 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
1006
1695
1773

onlyif mysql # aggregate syntax: 
query II rowsort label-5039
SELECT COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5039
SELECT COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab0
----
3
-3

query I rowsort
SELECT ALL 6 - - + col1 FROM tab0
----
27
7
87

query III rowsort
SELECT * FROM tab0 WHERE + + 61 * - + col2 + + - col0 + + + 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + - col1 AS col0, 89 * - col0 AS col0 FROM tab2 cor0
----
-51
-4094
-67
-6675
-77
-5696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT + - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT + - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 42 - + 36 AS col2, col0 FROM tab1 AS cor0
----
6
51
6
85
6
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 99 AS col0, col0 col0 FROM tab1 AS cor0
----
-99
51
-99
85
-99
91

query I rowsort
SELECT ALL - 27 + ( + - col2 ) FROM tab0 AS cor0
----
-126
-37
-74

query II rowsort
SELECT DISTINCT col0 + - col2 + 71, + 57 * + 31 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT - CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT - CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT + 62 DIV col1 - - + col2 + + - 36 * - 74 FROM tab2 AS cor0
----
2688
2704
2722

skipif mysql # not compatible
query I rowsort label-5049
SELECT + 62 / col1 - - + col2 + + - 36 * - 74 FROM tab2 AS cor0
----
2688
2704
2722

query I rowsort
SELECT + 84 + + - 33 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT 51 * - + ( + - 87 ) FROM tab1
----
4437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT DISTINCT ( col1 ) / - col2 / - col0 * - 97 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT ( col1 ) / - col2 / - col0 * - 97 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5053
SELECT + + 71 + - MAX( DISTINCT - + 61 ) FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT + + 71 + - MAX ( DISTINCT - + 61 ) FROM tab1 WHERE NOT CAST ( NULL AS REAL ) <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col1 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT - - col0 BETWEEN NULL AND + + col1 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - - col0 BETWEEN NULL AND + + col1 * + col2
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + - col0 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - 44 ) AS col0 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT ALL col2 + 12 + + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + ( + 83 ) AS col2 FROM tab2
----
-3818
-5312
-6225

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT - col0 * ( + col0 ) DIV 45 FROM tab2
----
-125
-47
-91

skipif mysql # not compatible
query I rowsort label-5060
SELECT - col0 * ( + col0 ) / 45 FROM tab2
----
-125
-47
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - + col1 AS col2 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 NOT BETWEEN ( 85 * - - col2 + + col1 ) AND + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT + 88 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
79

skipif mysql # not compatible
query I rowsort label-5064
SELECT + 88 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
79

query II rowsort
SELECT + - col0 AS col1, + 57 AS col2 FROM tab1 AS cor0
----
-51
57
-85
57
-91
57

query II rowsort
SELECT + 2, - col1 AS col0 FROM tab2 AS cor0
----
2
-51
2
-67
2
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT - + MIN( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - + MIN ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 <> 21 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 9 col2 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT ALL + CAST( NULL AS SIGNED ) * 71 + + - col0 + col1 * + 36 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + CAST ( NULL AS INTEGER ) * 71 + + - col0 + col1 * + 36 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 + 1 - - col2 col2 FROM tab2 cor0
----
103
68
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > + + 8 * + col1
----
85
5
59

query I rowsort
SELECT DISTINCT - col2 * + - ( col0 ) * col0 AS col0 FROM tab0
----
10575
75690
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT col1 * - 8 - - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT 45 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT col1 * - 8 - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT ( - 44 ) + COUNT( * ) FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT ( - 44 ) + COUNT ( * ) FROM tab0
----
-41

query III rowsort
SELECT * FROM tab2 WHERE - ( + col1 ) * + + ( + - 16 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col1 * - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 11 * 62 FROM tab0
----
-682
-682
-682

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT col2 DIV - col0 * - + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5080
SELECT col2 / - col0 * - + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 WHERE NOT + - col0 / - col1 * - col1 IS NULL
----
10
47
99

query I rowsort
SELECT + col2 * + col2 * + - 72 FROM tab0
----
-159048
-705672
-7200

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 75 >= + col1
----

query I rowsort
SELECT DISTINCT col1 - + 56 FROM tab2
----
-5
11
21

query I rowsort
SELECT ALL col1 - 50 FROM tab1
----
-3
-36
-45

query I rowsort
SELECT DISTINCT + 49 - col0 AS col2 FROM tab1 AS cor0
----
-2
-36
-42

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 / + - ( - - 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL COUNT( - ( - + 6 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL COUNT ( - ( - + 6 ) ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5089
SELECT DISTINCT + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5089
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL - MAX( ALL + + ( ( + col0 ) ) ) col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5090
SELECT ALL - MAX ( ALL + + ( ( + col0 ) ) ) col0 FROM tab1 cor0
----
-91

query I rowsort
SELECT DISTINCT col2 * + - 38 FROM tab0 AS cor0
----
-1786
-3762
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT 2 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5092
SELECT 2 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + ( - 87 ) AS col2 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 * 10 * + col1 FROM tab0
----
-182700
-571050
-96030

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT DISTINCT - col1 DIV ( col2 ) * col0 AS col1 FROM tab2
----
-64
-75
-92

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT - col1 / ( col2 ) * col0 AS col1 FROM tab2
----
-64
-75
-92

query II rowsort
SELECT ALL - col1, col1 AS col0 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5097
SELECT ALL - CAST( NULL AS SIGNED ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5097
SELECT ALL - CAST ( NULL AS INTEGER ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL + COUNT( 93 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5098
SELECT ALL + COUNT ( 93 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT COUNT( * ) - - 36 * + - 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1719

skipif mysql # not compatible
query I rowsort label-5099
SELECT COUNT ( * ) - - 36 * + - 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col0 FROM tab2 cor0
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5101
SELECT - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND - - CAST( + col0 AS DECIMAL ) / - ( + + 76 ) + 23
----

skipif mysql # not compatible
query I rowsort label-5101
SELECT - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND - - CAST ( + col0 AS REAL ) / - ( + + 76 ) + 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL + ( - CAST( ( col2 ) AS SIGNED ) ) + - col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + ( - CAST ( ( col2 ) AS INTEGER ) ) + - col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + 20 ) <= NULL
----

query I rowsort
SELECT ALL col0 - + - col0 + col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 45 + + col0 + - col0 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT + COUNT( - + 83 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5106
SELECT + COUNT ( - + 83 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - ( - col2 ) + 65, + 80 AS col2 FROM tab0 AS cor0
----
112
80
164
80
75
80

query I rowsort
SELECT ALL - - ( col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT + SUM( + - 38 ) + - - 32 AS col1 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT + SUM ( + - 38 ) + - - 32 AS col1 FROM tab2
----
-82

query III rowsort
SELECT * FROM tab2 WHERE - - 64 IS NULL
----

query I rowsort
SELECT ALL 20 FROM tab0 WHERE NOT NULL <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5112
SELECT ALL + ( + - 30 ) + - CAST( + col0 AS SIGNED ) - - 19 - - - col1 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + ( + - 30 ) + - CAST ( + col0 AS INTEGER ) - - 19 - - - col1 + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT + 19 + - COUNT( * ) + - 91, 73 AS col1 FROM tab1
----
-75
73

skipif mysql # not compatible
query II rowsort label-5113
SELECT + 19 + - COUNT ( * ) + - 91, 73 AS col1 FROM tab1
----
-75
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 WHERE NOT 54 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - 63 + 32 FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL - COUNT( * ) * + COUNT( * ) - - - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL - COUNT ( * ) * + COUNT ( * ) - - - COUNT ( * ) FROM tab0
----
-12

query I rowsort
SELECT ALL col1 * + 67 AS col1 FROM tab1 cor0
----
3149
335
938

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT + col2 * - 2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - ( - col0 ) col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT - 73 * - col1, + col2 AS col1 FROM tab0 AS cor0
----
1533
10
5913
47
73
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT ALL COUNT( * ) * - 47 * 16 AS col1 FROM tab0 AS cor0
----
-2256

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL COUNT ( * ) * - 47 * 16 AS col1 FROM tab0 AS cor0
----
-2256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT + + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT + + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT - COUNT( * ) * + 93 + - 18 col2 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5125
SELECT DISTINCT - COUNT ( * ) * + 93 + - 18 col2 FROM tab2 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT - - ( + - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5126
SELECT DISTINCT - - ( + - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT DISTINCT - 4 DIV - - 68 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - 4 / - - 68 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT MAX( DISTINCT - 72 ) AS col2 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-5128
SELECT MAX ( DISTINCT - 72 ) AS col2 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL COUNT( * ) * + + 97 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL COUNT ( * ) * + + 97 FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT ALL + COUNT( DISTINCT - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN + col0 AND - col1 / ( + col1 ) + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT COUNT( * ) DIV - MIN( ALL 40 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT COUNT ( * ) / - MIN ( ALL 40 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 28 FROM tab2 AS cor0 WHERE NOT - col2 * + 1 = NULL
----

query I rowsort
SELECT ALL - col0 + - + col1 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT - 37 / col2 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col2 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 64, + 91 col0 FROM tab2
----
64
91
64
91
64
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL + + ( - - COUNT( * ) ) * - 93 AS col2 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + + ( - - COUNT ( * ) ) * - 93 AS col2 FROM tab0 AS cor0
----
-279

query I rowsort
SELECT - + col0 + 14 * + col1 AS col1 FROM tab2 AS cor0
----
1014
668
863

query I rowsort
SELECT DISTINCT 80 * + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1120
3760
400

query I rowsort
SELECT DISTINCT + + col2 * + col2 * 41 FROM tab0 AS cor0 WHERE 74 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * + + col0 + + 48 AS col1 FROM tab2 cor0
----
1106
2608
4398

query I rowsort
SELECT DISTINCT + col2 + + 93 FROM tab0
----
103
140
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT 34 + + + COUNT( * ) col1 FROM tab1
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5144
SELECT 34 + + + COUNT ( * ) col1 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + MAX( DISTINCT ( + col1 ) ) * - 45 + - 76 + COUNT( * ) FROM tab0
----
-3718

skipif mysql # not compatible
query I rowsort label-5145
SELECT + MAX ( DISTINCT ( + col1 ) ) * - 45 + - 76 + COUNT ( * ) FROM tab0
----
-3718

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT DISTINCT 38 + - COUNT( * ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT 38 + - COUNT ( * ) FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT - COUNT( * ) * - 32 * COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-5147
SELECT - COUNT ( * ) * - 32 * COUNT ( * ) FROM tab2
----
288

query I rowsort
SELECT ALL + + col2 + - + 40 FROM tab0 AS cor0 WHERE NOT 69 IS NULL
----
-30
59
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL - + MIN( ALL ( + col0 ) ) + + MIN( DISTINCT col0 ) * - COUNT( * ) * ( 38 ) AS col2 FROM tab1 AS cor0
----
-5865

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL - + MIN ( ALL ( + col0 ) ) + + MIN ( DISTINCT col0 ) * - COUNT ( * ) * ( 38 ) AS col2 FROM tab1 AS cor0
----
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT - - ( + 14 ) + MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-5150
SELECT - - ( + 14 ) + MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col2 col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT MAX( ALL - 17 ) AS col1 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-5152
SELECT MAX ( ALL - 17 ) AS col1 FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - MAX( ALL - - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5153
SELECT - MAX ( ALL - - col2 ) FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( col0 ) * col1 * + col0 BETWEEN + col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5155
SELECT DISTINCT - SUM( - 11 ) + - COUNT( * ) + - ( - + COUNT( * ) ) * 84, + ( - 23 ) / ( - MAX( 10 ) ) AS col0 FROM tab2 AS cor0 WHERE - col2 >= NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5155
SELECT DISTINCT - SUM ( - 11 ) + - COUNT ( * ) + - ( - + COUNT ( * ) ) * 84, + ( - 23 ) / ( - MAX ( 10 ) ) AS col0 FROM tab2 AS cor0 WHERE - col2 >= NULL
----
NULL
NULL

query I rowsort
SELECT ALL - 0 * col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 + col1 FROM tab0 cor0 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT DISTINCT CAST( - - col2 AS SIGNED ) * - col1 + + 16 * - + 67 * + - 60 AS col0 FROM tab1 AS cor0
----
61124
62976
64025

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) * - col1 + + 16 * - + 67 * + - 60 AS col0 FROM tab1 AS cor0
----
61124
62976
64025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT ALL col2 * + col0 * - col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL col2 * + col0 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= - col0 / + ( - 73 ) - col0
----

query I rowsort
SELECT + - 41 AS col2 FROM tab2 AS cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 / - + col2 * + col0 - + - 32 * + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) * ( COUNT( DISTINCT col2 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) * ( COUNT ( DISTINCT col2 ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + 55 * + + SUM( 19 ) FROM tab0
----
3135

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + 55 * + + SUM ( 19 ) FROM tab0
----
3135

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - col2 * col2 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT DISTINCT + col1 + + - 27 FROM tab0 AS cor0
----
-26
-6
54

query I rowsort
SELECT + ( - 72 ) AS col2 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + 51 + + - 77 * + col1 * - col0 AS col1 FROM tab2 AS cor0
----
180693
379507
386976

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT DISTINCT - - 86 DIV 3 col0 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5170
SELECT DISTINCT - - 86 / 3 col0 FROM tab1 AS cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT + col2 DIV + + col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5171
SELECT + col2 / + + col0 FROM tab1 cor0
----
0
0
1

query II rowsort
SELECT + - 50, - col0 AS col1 FROM tab0 AS cor0
----
-50
-15
-50
-87
-50
-97

query I rowsort
SELECT ALL - col2 * - col0 + - 45 * - col2 FROM tab1 AS cor0
----
7670
9216
9248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 - + col1 col0 FROM tab2 AS cor0
----
-28
-44
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT DISTINCT col0 + + - 5 DIV - - 29 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT col0 + + - 5 / - - 29 FROM tab0
----
15
87
97

query I rowsort
SELECT + col1 * - col2 - - 78 AS col0 FROM tab0
----
-132
-21
-3729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 - col0 col2 FROM tab0
----
-33
-43
39

query I rowsort
SELECT col2 + - 21 AS col0 FROM tab0
----
-11
26
78

query I rowsort
SELECT DISTINCT + col0 - + col2 AS col1 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query III rowsort label-5180
SELECT DISTINCT 74 AS col0, - 85 AS col2, + - SUM( - - col1 ) AS col2 FROM tab0
----
74
-85
-103

skipif mysql # not compatible
query III rowsort label-5180
SELECT DISTINCT 74 AS col0, - 85 AS col2, + - SUM ( - - col1 ) AS col2 FROM tab0
----
74
-85
-103

query I rowsort
SELECT ALL col0 - + col0 * - col1 AS col0 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT - ( + MAX( ALL - 7 ) ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT - ( + MAX ( ALL - 7 ) ) FROM tab2 AS cor0
----
7

query II rowsort
SELECT ALL - col2 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - 12 <> col2 * - 19
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, - col1 * - col2 AS col1 FROM tab2 cor0
----
23
1173
40
3080
58
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT - 87 DIV - 4 AS col0 FROM tab1
----
21
21
21

skipif mysql # not compatible
query I rowsort label-5186
SELECT - 87 / - 4 AS col0 FROM tab1
----
21
21
21

query I rowsort
SELECT - col2 * col0 FROM tab1 cor0 WHERE NOT + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - MIN( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-5188
SELECT - MIN ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-51

query I rowsort
SELECT + col1 * 68 AS col1 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL + ( - COUNT( - 12 ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL + ( - COUNT ( - 12 ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( 80 ) AS col2 FROM tab0
----
80

query II rowsort
SELECT col0 AS col1, col2 FROM tab2
----
46
23
64
40
75
58

query II rowsort
SELECT ALL col0, 39 FROM tab2
----
46
39
64
39
75
39

query I rowsort
SELECT col0 + + - 71 AS col0 FROM tab0
----
-56
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT SUM( ALL - col2 ) * - 49 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
5929

skipif mysql # not compatible
query I rowsort label-5196
SELECT SUM ( ALL - col2 ) * - 49 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT MAX( DISTINCT + + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5197
SELECT MAX ( DISTINCT + + col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5198
SELECT + ( ( CAST( NULL AS SIGNED ) ) ) * - + AVG ( ALL ( + 34 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5198
SELECT + ( ( CAST ( NULL AS INTEGER ) ) ) * - + AVG ( ALL ( + 34 ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 69 + 50 * col0 + 53 FROM tab1 AS cor0
----
2672
4372
4672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT + MAX( + col0 ) * + CAST( NULL AS SIGNED ) + 61 + - + 62 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT + MAX ( + col0 ) * + CAST ( NULL AS INTEGER ) + 61 + - + 62 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT COUNT( ALL + col0 ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5201
SELECT COUNT ( ALL + col0 ) FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - col2 * + ( + col2 ) FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 WHERE NOT 44 NOT BETWEEN ( 67 / col2 + + 8 ) AND + col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 >= + 34
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5206
SELECT ALL * FROM tab1 WHERE + CAST( - col2 AS SIGNED ) * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5206
SELECT ALL * FROM tab1 WHERE + CAST ( - col2 AS INTEGER ) * + col1 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - 45 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT 93 * - 32 - + CAST( NULL AS SIGNED ) * - col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5208
SELECT DISTINCT 93 * - 32 - + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col0 / - 97 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 20 AS col1 FROM tab2
----
-1280
-1500
-920

query I rowsort
SELECT + 28 + - col0 AS col0 FROM tab1
----
-23
-57
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT - 17 + col1 DIV + col0 FROM tab0
----
-12
-17
-17

skipif mysql # not compatible
query I rowsort label-5212
SELECT - 17 + col1 / + col0 FROM tab0
----
-12
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + 6 * SUM( + 78 ) + 66 FROM tab1
----
1470

skipif mysql # not compatible
query I rowsort label-5213
SELECT + 6 * SUM ( + 78 ) + 66 FROM tab1
----
1470

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( + col0 * 81 + - col2 ) >= col2
----

query I rowsort
SELECT - 1 * - 46 AS col0 FROM tab0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE ( 78 ) > ( 10 )
----
-3

skipif mysql # not compatible
query I rowsort label-5216
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE ( 78 ) > ( 10 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT DISTINCT - 20 AS col0 FROM tab2 WHERE NOT ( 1 / - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT - 20 AS col0 FROM tab2 WHERE NOT ( 1 / - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT DISTINCT COUNT( * ) * 71 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT COUNT ( * ) * 71 FROM tab2
----
213

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 AND ( 53 - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT DISTINCT 14 DIV + 30 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT 14 / + 30 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + ( col1 ) * 9 FROM tab1
----
126
423
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT ALL col2 DIV + 30 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL col2 / + 30 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - SUM( - col0 ) * COUNT( * ) FROM tab2 WHERE NOT col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT - SUM ( - col0 ) * COUNT ( * ) FROM tab2 WHERE NOT col2 > NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE col2 = ( - 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE + 57 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE + 57 IS NOT NULL
----
-3

query I rowsort
SELECT col0 - col2 * 79 AS col2 FROM tab1
----
-4576
-5281
-7533

query III rowsort
SELECT * FROM tab2 WHERE ( + ( ( 60 ) ) + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT 75 * - MIN( col2 * - col1 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
291450

skipif mysql # not compatible
query I rowsort label-5228
SELECT 75 * - MIN ( col2 * - col1 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
291450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5229
SELECT 6 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( NULL AS DECIMAL ) AND + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5229
SELECT 6 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS REAL ) AND + col2
----

query I rowsort
SELECT 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT - MIN( DISTINCT 5 ) AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT - MIN ( DISTINCT 5 ) AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT col1 * 32 AS col2 FROM tab0 AS cor0
----
2592
32
672

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 39 + 77 * 49 = 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + - SUM( ALL col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5235
SELECT + - SUM ( ALL col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + COUNT( ALL col0 ) * - COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5236
SELECT + COUNT ( ALL col0 ) * - COUNT ( * ) FROM tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT DISTINCT + COUNT( ALL + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT + COUNT ( ALL + col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT - SUM( - col1 ) FROM tab1 WHERE NOT ( + col2 ) BETWEEN NULL AND - ( - col0 )
----
14

skipif mysql # not compatible
query I rowsort label-5240
SELECT - SUM ( - col1 ) FROM tab1 WHERE NOT ( + col2 ) BETWEEN NULL AND - ( - col0 )
----
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 53 - col2 / + ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT + col1 - ( + col2 + 25 ) FROM tab1 WHERE - ( + 13 ) IS NULL OR CAST( - col1 AS SIGNED ) * - 88 IS NOT NULL
----
-107
-46
-79

skipif mysql # not compatible
query I rowsort label-5243
SELECT + col1 - ( + col2 + 25 ) FROM tab1 WHERE - ( + 13 ) IS NULL OR CAST ( - col1 AS INTEGER ) * - 88 IS NOT NULL
----
-107
-46
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT 17 * COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT 17 * COUNT ( * ) FROM tab0
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( 87 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - 33 col2 FROM tab2
----
-1683
-2211
-2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT - col0 col1 FROM tab2 WHERE col0 * col2 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5247
SELECT - col0 col1 FROM tab2 WHERE col0 * col2 IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 + col1 AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
110
115
64

query I rowsort
SELECT DISTINCT col1 + + ( + col0 ) FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - 15 + + + col1 FROM tab1 AS cor0
----
-1
-10
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5251
SELECT COUNT( DISTINCT + col2 ) DIV MIN( DISTINCT + col0 ) + - 55 * 63 FROM tab0 AS cor0
----
-3465

skipif mysql # not compatible
query I rowsort label-5251
SELECT COUNT ( DISTINCT + col2 ) / MIN ( DISTINCT + col0 ) + - 55 * 63 FROM tab0 AS cor0
----
-3465

query I rowsort
SELECT - + 33 * - col0 * col0 + 73 FROM tab2 AS cor0
----
135241
185698
69901

query I rowsort
SELECT - 25 + - 74 * col1 FROM tab0 AS cor0
----
-1579
-6019
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT - 13 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - 13 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT DISTINCT 32 + col1 AS col2 FROM tab0 AS cor0
----
113
33
53

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( col2 )
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 59 * 78 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 35 + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
107

query I rowsort
SELECT ALL - 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT col2 * col2 * + - col0 AS col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT - - SUM( - 92 ) FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - - SUM ( - 92 ) FROM tab1 AS cor0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5262
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - 9 - 61 * - col1 AS col0 FROM tab0 AS cor0
----
1293
5013
53

query I rowsort
SELECT DISTINCT + - 44 * - + col2 - 40 FROM tab2 AS cor0
----
1720
2512
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT CAST( - col2 AS SIGNED ) - + col2 + col1 FROM tab0 AS cor0
----
-13
-197
1

skipif mysql # not compatible
query I rowsort label-5265
SELECT CAST ( - col2 AS INTEGER ) - + col2 + col1 FROM tab0 AS cor0
----
-13
-197
1

query I rowsort
SELECT + - col1 * + 28 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + col2 + + col1 + 10 FROM tab2
----
127
135
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT ALL 95 / + col0 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL 95 / + col0 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - - + ( - col0 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT ( - col0 ) - - col2 AS col1 FROM tab1 WHERE col2 NOT IN ( + 26 )
----
-23
-26
45

query I rowsort
SELECT ALL + col2 * col1 + - 46 * - col2 * + col0 + + col2 AS col1 FROM tab2
----
120880
204044
49864

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT DISTINCT + 53 * col0 DIV - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-53

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT + 53 * col0 / - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT + + col2 + + - col0 >= 9
----
3

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + col2 + + - col0 >= 9
----
3

query I rowsort
SELECT ALL + + col2 * - - 55 - 64 * - 44 FROM tab1 cor0
----
6061
6556
8096

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 87
----

query I rowsort
SELECT + - 4 * + - 94 * col2 AS col2 FROM tab2 AS cor0
----
15040
21808
8648

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - + col0 BETWEEN + - col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT MAX( 6 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5281
SELECT MAX ( 6 ) AS col2 FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT + - ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + - ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT COUNT( - 46 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5284
SELECT COUNT ( - 46 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 52 col0 FROM tab1 AS cor0
----
-16
-44
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5286
SELECT + CAST( + 3 AS SIGNED ) FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5286
SELECT + CAST ( + 3 AS INTEGER ) FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - 45 + 36 + COUNT( - 22 ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5288
SELECT - 45 + 36 + COUNT ( - 22 ) FROM tab2 cor0
----
-6

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab0 AS cor0 WHERE + 8 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5290
SELECT DISTINCT + COUNT( * ) AS col0, + 44 col0 FROM tab2 cor0
----
3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5290
SELECT DISTINCT + COUNT ( * ) AS col0, + 44 col0 FROM tab2 cor0
----
3
44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 79 / - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 10 / col1 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT NULL NOT IN ( + - col0 * - col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT - COUNT( ALL col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - COUNT ( ALL col0 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col1 FROM tab1
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col1 * + col2 col2 FROM tab2
----
-46
1173
-64
3080
-75
3886

query I rowsort
SELECT - ( + + col2 ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5298
SELECT + COUNT( * ) AS col0, 45 * - + 61 AS col2 FROM tab2 AS cor0
----
3
-2745

skipif mysql # not compatible
query II rowsort label-5298
SELECT + COUNT ( * ) AS col0, 45 * - + 61 AS col2 FROM tab2 AS cor0
----
3
-2745

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT - - 0 DIV + 44 * + 68 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5299
SELECT - - 0 / + 44 * + 68 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 21 + 12 AS col0 FROM tab1 cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT DISTINCT + COUNT( * ) + + + 31 * + - MIN( DISTINCT + - col1 ) FROM tab0 AS cor0
----
2514

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT + COUNT ( * ) + + + 31 * + - MIN ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
2514

query I rowsort
SELECT + col0 * + - col0 - + col2 FROM tab2
----
-2139
-4136
-5683

query I rowsort
SELECT - col0 + 88 AS col0 FROM tab1
----
-3
3
37

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( ( col1 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * - + col2 + - col2 BETWEEN NULL AND + col0 + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL < NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + 2 = + col1
----

query I rowsort
SELECT ALL - + 22 * - - col0 - - + 76 + - 88 FROM tab0 AS cor0
----
-1926
-2146
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + - 71 - - COUNT( * ) + - - COUNT( * ) + + + COUNT( + col2 ) FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----
-71

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + - 71 - - COUNT ( * ) + - - COUNT ( * ) + + + COUNT ( + col2 ) FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + MAX( ALL - 55 ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-5311
SELECT + MAX ( ALL - 55 ) FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT + SUM( ALL col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5312
SELECT + SUM ( ALL col1 ) AS col1 FROM tab2
----
195

query I rowsort
SELECT ALL 17 * + col2 AS col0 FROM tab2
----
391
680
986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT col2 * + - ( + col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT col2 * + - ( + col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT ALL col0 DIV - 90 col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5316
SELECT ALL col0 / - 90 col0 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT - + SUM( - - 50 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT - + SUM ( - - 50 ) FROM tab0 AS cor0
----
-150

query I rowsort
SELECT DISTINCT - ( + + col0 ) * - col1 + + - col0 AS col0 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT DISTINCT - 6 + + - col1 + - - 91 FROM tab0 AS cor0
----
4
64
84

query I rowsort
SELECT + - 87 * + - 84 + 26 AS col1 FROM tab2 AS cor0
----
7334
7334
7334

query I rowsort
SELECT DISTINCT col0 + 82 AS col2 FROM tab2 cor0
----
128
146
157

query I rowsort
SELECT ALL - 48 + + + col1 AS col1 FROM tab2 AS cor0
----
19
29
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT DISTINCT col2 + - col1 col1 FROM tab1 WHERE NOT col2 * + col0 IN ( - CAST( NULL AS SIGNED ) * - col2 + - + col0 + - + col1 * - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5323
SELECT DISTINCT col2 + - col1 col1 FROM tab1 WHERE NOT col2 * + col0 IN ( - CAST ( NULL AS INTEGER ) * - col2 + - + col0 + - + col1 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5324
SELECT - CAST( + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS DECIMAL ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5324
SELECT - CAST ( + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS REAL ) col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 70 * + col1 FROM tab1
----
3290
350
980

query I rowsort
SELECT + - col1 AS col1 FROM tab2 WHERE + col1 <> + col1
----

query I rowsort
SELECT DISTINCT + 97 + ( - col0 ) * + col1 FROM tab1 AS cor0
----
-328
-4180
-617

query II rowsort
SELECT ALL - - col2, col2 * col1 AS col0 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

query I rowsort
SELECT col1 * - - 83 FROM tab2 AS cor0 WHERE ( NOT + 17 IS NULL )
----
4233
5561
6391

query I rowsort
SELECT + 94 + - 81 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT + - SUM( DISTINCT - 55 ) AS col0 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5332
SELECT + - SUM ( DISTINCT - 55 ) AS col0 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT DISTINCT + MIN( DISTINCT + col0 ) - + MAX( DISTINCT + + col0 ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT + MIN ( DISTINCT + col0 ) - + MAX ( DISTINCT + + col0 ) FROM tab0
----
-82

query I rowsort
SELECT + ( 69 ) - - 48 FROM tab2 AS cor0
----
117
117
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5335
SELECT 20 - + COUNT( * ) DIV + 73 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5335
SELECT 20 - + COUNT ( * ) / + 73 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 + - 90 > - col0
----
-2

skipif mysql # not compatible
query I rowsort label-5336
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 + - 90 > - col0
----
-2

query II rowsort
SELECT 68 * - + col0 - col2 * + col0 AS col0, - col2 FROM tab1 AS cor0
----
-10795
-59
-12376
-68
-8364
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 88 NOT BETWEEN + 19 AND ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 88 NOT BETWEEN + 19 AND ( + col0 )
----
0

query II rowsort
SELECT ALL col1, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT - + MIN( - col1 ) col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5340
SELECT DISTINCT - + MIN ( - col1 ) col1 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL AND NOT 95 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * 13 FROM tab1 AS cor0
----
-1105
-1183
-663

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT ALL + - 15 AS col0, ( + 6 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15
18

skipif mysql # not compatible
query II rowsort label-5343
SELECT ALL + - 15 AS col0, ( + 6 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT ALL MIN( DISTINCT - - 9 ) AS col0, COUNT( * ) + + + 6 FROM tab0
----
9
9

skipif mysql # not compatible
query II rowsort label-5344
SELECT ALL MIN ( DISTINCT - - 9 ) AS col0, COUNT ( * ) + + + 6 FROM tab0
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( - + 2 )
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( col1 NOT IN ( + col0 ) )
----
10
47
99

query II rowsort
SELECT DISTINCT + 82 * 62 AS col0, + col0 AS col2 FROM tab2
----
5084
46
5084
64
5084
75

query I rowsort
SELECT - 15 * - 3 * - col1 AS col1 FROM tab2
----
-2295
-3015
-3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5349
SELECT + ( + CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5349
SELECT + ( + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 * col0 - + - col1 FROM tab1 AS cor0
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5351
SELECT ALL - COUNT( * ) DIV - MAX( ALL col2 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - COUNT ( * ) / - MAX ( ALL col2 ) AS col1 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( + col1 ) >= - col0 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IN ( + 71 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5354
SELECT 7 DIV + 66 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5354
SELECT 7 / + 66 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT - col2 DIV col0 + col2 - - - col0 + + col0 * + - col1 FROM tab2 AS cor0
----
-2369
-4952
-5042

skipif mysql # not compatible
query I rowsort label-5355
SELECT - col2 / col0 + col2 - - - col0 + + col0 * + - col1 FROM tab2 AS cor0
----
-2369
-4952
-5042

query I rowsort
SELECT DISTINCT - 39 * - - col1 FROM tab0 AS cor0
----
-3159
-39
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + COUNT( DISTINCT + + col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5357
SELECT + COUNT ( DISTINCT + + col1 ) col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 30 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5359
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 40 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT - CAST ( NULL AS REAL ) + 40 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT MAX( - - col2 ) + - - COUNT( * ) AS col1 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT MAX ( - - col2 ) + - - COUNT ( * ) AS col1 FROM tab2 cor0
----
61

query I rowsort
SELECT DISTINCT + col1 + 18 AS col1 FROM tab2 cor0
----
69
85
95

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL col0 + + - col1 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT - 0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + - ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5365
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5365
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) col0 FROM tab2
----
1

query II rowsort
SELECT ALL + + col0, - col2 + + col2 - - col0 AS col2 FROM tab1 WHERE NOT col2 - + ( + col0 ) <> - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col1 FROM tab1
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * - ( + - col2 ) col2 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT + - 34 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 13 FROM tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 97 + + + 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 96 * - col2 * col2 AS col1 FROM tab1 cor0
----
-334176
-443904
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0, col0 col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT + col2, + 89 FROM tab0 AS cor0
----
10
89
47
89
99
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col2 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL - + MAX( ALL + 90 ) AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - + MAX ( ALL + 90 ) AS col0 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT COUNT( - + col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5377
SELECT COUNT ( - + col1 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5378
SELECT COUNT( + + col1 ) DIV - 84 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5378
SELECT COUNT ( + + col1 ) / - 84 FROM tab0
----
0

query II rowsort
SELECT ALL col0 AS col0, - 76 FROM tab0
----
15
-76
87
-76
97
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT CAST( 32 AS SIGNED ) * + 14 + + col2 AS col2 FROM tab2
----
471
488
506

skipif mysql # not compatible
query I rowsort label-5380
SELECT CAST ( 32 AS INTEGER ) * + 14 + + col2 AS col2 FROM tab2
----
471
488
506

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL - 94 * - - COUNT( * ) * COUNT( DISTINCT + col0 ) FROM tab0
----
-846

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - 94 * - - COUNT ( * ) * COUNT ( DISTINCT + col0 ) FROM tab0
----
-846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - col2 ) FROM tab0
----
NULL

query II rowsort
SELECT ALL + + 48 AS col2, 9 AS col0 FROM tab1 AS cor0
----
48
9
48
9
48
9

query I rowsort
SELECT + - col1 + - col1 * 62 AS col0 FROM tab2 AS cor0
----
-3213
-4221
-4851

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT DISTINCT - - 23 DIV - col0 + + + col0 AS col0 FROM tab0 cor0
----
14
87
97

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT - - 23 / - col0 + + + col0 AS col0 FROM tab0 cor0
----
14
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + + col0 AS col2, - col1 col0 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

query II rowsort
SELECT - ( - + col2 ) AS col2, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL - col1 * 32 + + col2 AS col0 FROM tab1 AS cor0
----
-101
-1436
-352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT col1 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-5390
SELECT col1 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5391
SELECT ALL + CAST( NULL AS DECIMAL ) + + 54, - 50 AS col2 FROM tab1 AS cor0
----
NULL
-50
NULL
-50
NULL
-50

skipif mysql # not compatible
query II rowsort label-5391
SELECT ALL + CAST ( NULL AS REAL ) + + 54, - 50 AS col2 FROM tab1 AS cor0
----
NULL
-50
NULL
-50
NULL
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT ALL + COUNT( - 59 ) DIV + - 50 + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + COUNT ( - 59 ) / + - 50 + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + + 25 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5394
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < - 95
----

skipif mysql # not compatible
query III rowsort label-5394
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < - 95
----

query I rowsort
SELECT col1 - - ( + col0 ) + 18 * - col1 FROM tab1
----
-187
-708
0

query II rowsort
SELECT - 20 * col2 - - col0 + col1 + - col0 * + - 19 * + + col0 * + col1 AS col0, col0 + + + col0 AS col1 FROM tab0
----
176889
194
3019939
174
345431
30

query I rowsort
SELECT 62 FROM tab0 WHERE + - 64 <= NULL
----

query I rowsort
SELECT 45 + + 94 * + col0 FROM tab1
----
4839
8035
8599

query I rowsort
SELECT ALL + 88 - - 8 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT ALL - COUNT( * ), - COUNT( * ) AS col2 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5400
SELECT ALL - COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0
----
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT + col0 DIV - col0 + + col2 + - + ( + col0 ) * - 51 * + col1 FROM tab2
----
119668
251367
256332

skipif mysql # not compatible
query I rowsort label-5401
SELECT + col0 / - col0 + + col2 + - + ( + col0 ) * - 51 * + col1 FROM tab2
----
119668
251367
256332

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + + COUNT( * ) FROM tab2 WHERE - col2 + - 52 + - - col2 - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT + + COUNT ( * ) FROM tab2 WHERE - col2 + - 52 + - - col2 - + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + + 28 col1 FROM tab0
----
110
110
110

query I rowsort
SELECT - 48 + + col1 FROM tab2 AS cor0
----
19
29
3

query I rowsort
SELECT + col2 * - col0 * 84 + - 78 + 48 FROM tab1 cor0
----
-411294
-421290
-519822

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT DISTINCT - 30 + - col0 - + col1 DIV 68 AS col2 FROM tab0 AS cor0
----
-117
-127
-46

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - 30 + - col0 - + col1 / 68 AS col2 FROM tab0 AS cor0
----
-117
-127
-46

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 WHERE - + 18 / + col1 * + col0 + - + 61 + - + 68 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 92 + 29 IS NULL AND NOT col2 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL - - COUNT( * ) col0 FROM tab1 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-5411
SELECT ALL - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT + SUM( + - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5412
SELECT + SUM ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT ( NULL > - 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT 36 DIV + 92 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT 36 / + 92 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + col2 ) * - - col1 + - col1 FROM tab2
----
1122
3003
3819

query II rowsort
SELECT + col0 AS col1, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 31 col2, - 13 * - - col2 + + col2 AS col0 FROM tab1
----
-31
-1152
-31
-708
-31
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + MAX( DISTINCT col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5420
SELECT + MAX ( DISTINCT col1 ) AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT ALL - CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL + - 42, - col2 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 17 * - 17 FROM tab2 cor0
----
289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NULL BETWEEN + + ( - col2 ) * + col1 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL - - ( COUNT( * ) ) * + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - - ( COUNT ( * ) ) * + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT + + 95 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT + - CAST( NULL AS SIGNED ) + col2 + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5430
SELECT + - CAST ( NULL AS INTEGER ) + col2 + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 26 * - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2, 5 AS col2 FROM tab0 AS cor0
----
6
5

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2, 5 AS col2 FROM tab0 AS cor0
----
6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ( + - MAX( DISTINCT + + col1 ) ) + + 46 - + ( + - ( - 3 ) ) + + - MIN( ALL + col0 ) + 21 * - - 81 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
5048

skipif mysql # not compatible
query I rowsort label-5433
SELECT ( + - MAX ( DISTINCT + + col1 ) ) + + 46 - + ( + - ( - 3 ) ) + + - MIN ( ALL + col0 ) + 21 * - - 81 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
5048

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 6 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT - - COUNT( * ) + - 5 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - - COUNT ( * ) + - 5 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - 2 + - - 60 FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL 11 * + + col1 - - 60 FROM tab2
----
621
797
907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT ALL + CAST( NULL AS SIGNED ) + AVG ( 52 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + CAST ( NULL AS INTEGER ) + AVG ( 52 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT 75 * COUNT( * ) AS col0 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-5439
SELECT 75 * COUNT ( * ) AS col0 FROM tab1
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5440
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col1, - 54 - + - ( + 2 ) AS col0 FROM tab0
----
1
-52
21
-52
81
-52

skipif mysql # not compatible
query II rowsort label-5440
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col1, - 54 - + - ( + 2 ) AS col0 FROM tab0
----
1
-52
21
-52
81
-52

query I rowsort
SELECT + 91 - - - col2 AS col1 FROM tab1
----
-5
23
32

query II rowsort
SELECT ALL + col0 * + col1, - 9 - - col2 AS col0 FROM tab1 AS cor0
----
425
50
4277
59
714
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5444
SELECT + 9 AS col2, - col2 + - col1 + col2 + - col0 - + + 29 DIV - 50 * + 48 FROM tab2
----
9
-141
9
-142
9
-97

skipif mysql # not compatible
query II rowsort label-5444
SELECT + 9 AS col2, - col2 + - col1 + col2 + - col0 - + + 29 / - 50 * + 48 FROM tab2
----
9
-141
9
-142
9
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + col2 <> - 16 * col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL - MAX( + 27 ) AS col0 FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL < + 52 - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL - MAX ( + 27 ) AS col0 FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL < + 52 - + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT DISTINCT + MAX( ALL + 93 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT + MAX ( ALL + 93 ) FROM tab2 AS cor0
----
93

query II rowsort
SELECT ALL + col2 AS col1, - col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT - + col2 DIV + - ( + col2 ) - col2 AS col1 FROM tab2 cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-5449
SELECT - + col2 / + - ( + col2 ) - col2 AS col1 FROM tab2 cor0
----
-22
-39
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT DISTINCT + 98 DIV + - 52 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT + 98 / + - 52 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col1 + - col0
----

query I rowsort
SELECT col1 * 84 FROM tab0 cor0
----
1764
6804
84

query I rowsort
SELECT - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1, - col1 + col1, - + col1 * + - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 + - - 46 IN ( + col1, + 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT SUM( - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT SUM ( - col1 ) AS col0 FROM tab0
----
-103

query III rowsort
SELECT * FROM tab1 WHERE NOT 7 + + + col1 - + col2 <= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT - + 63 IS NOT NULL
----

query I rowsort
SELECT + 83 * + + 3 + - 24 FROM tab1 AS cor0
----
225
225
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - SUM( + col1 ) FROM tab1 AS cor0 WHERE - 49 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT - SUM ( + col1 ) FROM tab1 AS cor0 WHERE - 49 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - + 79 ) BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - + 79 ) BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5462
SELECT DISTINCT - COUNT( * ) AS col0, 66 DIV - - ( + 67 ) FROM tab0 WHERE NOT NULL >= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5462
SELECT DISTINCT - COUNT ( * ) AS col0, 66 / - - ( + 67 ) FROM tab0 WHERE NOT NULL >= NULL
----
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT - 50 * + col2 * + + col1 FROM tab0 AS cor0
----
-10500
-190350
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT col2 / + + 99 + - - ( + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5465
SELECT col2 / + + 99 + - - ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - - col1 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
103891
184
2840

query I rowsort
SELECT ALL - - 28 + - 21 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT 8 - - col2 FROM tab0 cor0
----
107
18
55

query I rowsort
SELECT ALL - + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 = + + col0 * - col0
----

query I rowsort
SELECT + 44 - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-30
-73
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 - + col1 col2 FROM tab2 AS cor0
----
12
2
28

query I rowsort
SELECT + 12 + 87 AS col2 FROM tab0 WHERE - ( - + 77 ) * 57 + + col1 IS NOT NULL
----
99
99
99

query I rowsort
SELECT DISTINCT ( - 60 ) * + col2 - - ( - - col1 ) AS col1 FROM tab0
----
-2739
-579
-5939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT ALL + COUNT( * ) - + + 95 + 93 * - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL >= - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL + COUNT ( * ) - + + 95 + 93 * - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL >= - 34
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + 36 AS col2 FROM tab0
----
-51
-61
21

query II rowsort
SELECT - col1 * col0 + col1 + + 44, + col1 * + col0 AS col0 FROM tab1
----
-376
425
-4186
4277
-656
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT - CAST( - 48 AS SIGNED ) AS col2 FROM tab2
----
48
48
48

skipif mysql # not compatible
query I rowsort label-5478
SELECT - CAST ( - 48 AS INTEGER ) AS col2 FROM tab2
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * 61 AS col2, + ( + col0 ) + - 18 + col0 col2 FROM tab1 AS cor0
----
-3111
84
-5185
152
-5551
164

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + col2 * + ( 69 ) * 73 * 31 * col0 col1 FROM tab1 AS cor0 WHERE NOT col2 <= - col1 * - 86 + - 11
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
80

query I rowsort
SELECT 60 AS col1 FROM tab1 cor0
----
60
60
60

query I rowsort
SELECT ALL col0 * - + col2 + + + 72 * - + col1 + + + 88 AS col2 FROM tab1 cor0 WHERE col0 <= 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT ALL + - 92 DIV - ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
4
92

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + - 92 / - ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
4
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE ( col2 / + - col2 + + + 0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE ( col2 / + - col2 + + + 0 ) IS NOT NULL
----
3

query II rowsort
SELECT ALL col0 AS col1, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL 42 * + + ( 15 ) FROM tab2
----
630
630
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT ALL COUNT( * ) DIV + + 22 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL COUNT ( * ) / + + 22 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 60 * + 79 AS col0 FROM tab1
----
4740

query I rowsort
SELECT ALL ( + + col1 ) AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE 86 NOT IN ( col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - 61 * - MIN( ALL + 90 ) FROM tab2
----
5490

skipif mysql # not compatible
query I rowsort label-5495
SELECT - 61 * - MIN ( ALL + 90 ) FROM tab2
----
5490

query I rowsort
SELECT + - 63 FROM tab0 AS cor0 WHERE + col1 / col0 + + + 72 * + col1 > - + 67
----
-63
-63
-63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 98 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL + 2 * - ( - COUNT( - + col1 ) ) + + 59 AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + 2 * - ( - COUNT ( - + col1 ) ) + + 59 AS col0 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT - - col1 FROM tab2 WHERE - col2 + + 56 * - CAST( NULL AS SIGNED ) > + + col0
----

skipif mysql # not compatible
query I rowsort label-5499
SELECT - - col1 FROM tab2 WHERE - col2 + + 56 * - CAST ( NULL AS INTEGER ) > + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5500
SELECT + 7 DIV - 81 + - COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5500
SELECT + 7 / - 81 + - COUNT ( * ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT MIN( - col0 ) FROM tab1 WHERE NULL <= - - col2 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT MIN ( - col0 ) FROM tab1 WHERE NULL <= - - col2 + - col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 33 - + col1 - + 98 * 29 col2, + col2 - + 30 AS col1 FROM tab1
----
-2814
29
-2823
66
-2856
38

query III rowsort
SELECT * FROM tab1 cor0 WHERE 23 - - - 77 * + col1 / 62 IN ( + col1, 74 * + - col0, + col2 * - col2 * + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + 21 + COUNT( * ) AS col1 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-5504
SELECT + 21 + COUNT ( * ) AS col1 FROM tab0 cor0
----
24

query I rowsort
SELECT - 27 / ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - col1 + + + col0 AS col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT 40 * + col2 AS col0 FROM tab2 AS cor0
----
1600
2320
920

query I rowsort
SELECT - - col0 * - - 30 FROM tab2 AS cor0
----
1380
1920
2250

query II rowsort
SELECT DISTINCT + - col1 + - ( + ( - 93 ) ) AS col1, - col1 * + + col0 * - 65 AS col2 FROM tab1 AS cor0
----
46
278005
79
46410
88
27625

query I rowsort
SELECT + + 48 * + + col1 - + + 50 + - + col0 + 58 * - - col2 FROM tab0 AS cor0
----
1451
5643
6549

query I rowsort
SELECT 32 * - 58 FROM tab2 cor0
----
-1856
-1856
-1856

query II rowsort
SELECT DISTINCT + + ( + + col1 ), - col2 + + col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT ALL + col0 DIV + 73 - + col2 AS col1 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + col0 / + 73 - + col2 AS col1 FROM tab1
----
-58
-67
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + + col0 + + - 80 * + col1 <= + 59
----

query II rowsort
SELECT ALL 26 AS col2, col0 FROM tab1
----
26
51
26
85
26
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL + ( - 33 ) * + COUNT( * ) + 64 AS col2 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL + ( - 33 ) * + COUNT ( * ) + 64 AS col2 FROM tab0
----
-35

query I rowsort
SELECT ( - ( - col2 ) ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - - 53 * col0 * - ( ( + - 98 ) ) AS col2 FROM tab1 cor0
----
264894
441490
472654

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 29 / - col0 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + COUNT( * ) * + COUNT( * ) * - - 36 * + + 32 FROM tab1 AS cor0
----
10368

skipif mysql # not compatible
query I rowsort label-5520
SELECT + COUNT ( * ) * + COUNT ( * ) * - - 36 * + + 32 FROM tab1 AS cor0
----
10368

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT + - 90, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-90
3

skipif mysql # not compatible
query II rowsort label-5521
SELECT + - 90, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-90
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5523
SELECT - 39 DIV COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-5523
SELECT - 39 / COUNT ( * ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5524
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - - MAX( ALL - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5525
SELECT - - MAX ( ALL - col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT 53 + + col1 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - + 75 AS col1 FROM tab1 AS cor0 WHERE NULL <= col2 - + col1
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + 99 + + 41 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT + COUNT( * ) + MAX( ALL + 67 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + COUNT ( * ) + MAX ( ALL + 67 ) FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT + + 13 AS col0, COUNT( * ) col0 FROM tab2 AS cor0
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5531
SELECT + + 13 AS col0, COUNT ( * ) col0 FROM tab2 AS cor0
----
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL + ( - COUNT( + ( + col0 ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL + ( - COUNT ( + ( + col0 ) ) ) FROM tab1
----
-3

query II rowsort
SELECT DISTINCT 24 * ( - - 16 ), + col1 AS col1 FROM tab0
----
384
1
384
21
384
81

query III rowsort
SELECT * FROM tab2 WHERE - - col2 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL ( + col2 ) * + + 84 + col0 AS col0 FROM tab0
----
3963
8413
927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5537
SELECT ALL COUNT( * ) DIV - - MAX( ALL - - 54 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL COUNT ( * ) / - - MAX ( ALL - - 54 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT DISTINCT - ( - ( 61 ) ) * - + COUNT( * ) AS col1 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - ( - ( 61 ) ) * - + COUNT ( * ) AS col1 FROM tab0
----
-183

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE - - col2 + + + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE + 84 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT col0 * + - 29 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1334
-1856
-2175

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT ALL - col0 - - 3 DIV - ( col1 ) + - - 94 DIV + 20 FROM tab2 AS cor0
----
-42
-60
-71

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - col0 - - 3 / - ( col1 ) + - - 94 / + 20 FROM tab2 AS cor0
----
-42
-60
-71

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * + + 16 FROM tab2
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT SUM( - - 2 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5545
SELECT SUM ( - - 2 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5546
SELECT 19, + 92 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
19
92
19
92
19
92

skipif mysql # not compatible
query II rowsort label-5546
SELECT 19, + 92 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
19
92
19
92
19
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT + 95 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5547
SELECT + 95 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
98

query I rowsort
SELECT - 99 - - col2 FROM tab2 AS cor0
----
-41
-59
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5549
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> 30 * - ( - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5549
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> 30 * - ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 22 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( - 30 ) * + - 64 * ( - - col1 ) / - col0 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 * - + col1 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + col0 * + - col1 IS NULL
----
23
40
58

query I rowsort
SELECT - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + - 46 AS col0 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT + MIN( ALL + ( - - 23 ) ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5558
SELECT + MIN ( ALL + ( - - 23 ) ) AS col0 FROM tab2 cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT DISTINCT + 66 DIV + col2 col2 FROM tab0 AS cor0 WHERE ( col2 DIV + col2 ) IS NOT NULL
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5559
SELECT DISTINCT + 66 / + col2 col2 FROM tab0 AS cor0 WHERE ( col2 / + col2 ) IS NOT NULL
----
0
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT + CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5560
SELECT + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + - col1 + col0 * - col0 * + col2 + + + col2 AS col1 FROM tab2 AS cor0
----
-163877
-326259
-48696

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT ALL + COUNT( * ) * - CAST( - - COUNT( * ) AS SIGNED ) + 37 AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL + COUNT ( * ) * - CAST ( - - COUNT ( * ) AS INTEGER ) + 37 AS col2 FROM tab2 AS cor0
----
28

query I rowsort
SELECT ALL 86 + col1 AS col2 FROM tab0 AS cor0
----
107
167
87

query I rowsort
SELECT DISTINCT + + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NULL NOT BETWEEN NULL AND + + 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL COUNT( * ) + - - COUNT( * ) * - MIN( DISTINCT - 7 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL COUNT ( * ) + - - COUNT ( * ) * - MIN ( DISTINCT - 7 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
24

query I rowsort
SELECT DISTINCT col1 + - - 80 FROM tab2
----
131
147
157

query I rowsort
SELECT DISTINCT + 23 * - col1 AS col0 FROM tab2
----
-1173
-1541
-1771

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NULL IS NULL ) )
----

query II rowsort
SELECT - ( - col1 ), + col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col1 * + - 40 FROM tab2
----
-2040
-2680
-3080

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( - + col2 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT + ( MAX( + 65 ) ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + ( MAX ( + 65 ) ) FROM tab0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5575
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT col2 - - col1 + 23 + - + 53 DIV + 12 AS col2 FROM tab0 AS cor0
----
119
147
50

skipif mysql # not compatible
query I rowsort label-5576
SELECT col2 - - col1 + 23 + - + 53 / + 12 AS col2 FROM tab0 AS cor0
----
119
147
50

query I rowsort
SELECT - col1 + + - col0 * - col0 AS col2 FROM tab0
----
144
7548
9408

query II rowsort
SELECT + 20 + 13 AS col1, - col0 FROM tab1
----
33
-51
33
-85
33
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + + MIN( + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5579
SELECT + + MIN ( + + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - 64 * + + 74 + col1 AS col2 FROM tab1 AS cor0
----
-4689
-4722
-4731

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + col1 <> - + col0 / + + 6 + - 18 / + col2 - - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5583
SELECT + ( MAX( ALL CAST( NULL AS DECIMAL ) ) ) * 83 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT + ( MAX ( ALL CAST ( NULL AS REAL ) ) ) * 83 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + - ( - 43 ) FROM tab0 AS cor0
----
3483
43
903

query II rowsort
SELECT ALL col2 AS col0, ( 19 ) + + col1 FROM tab1
----
59
24
68
66
96
33

query I rowsort
SELECT - ( - 76 ) FROM tab0
----
76
76
76

query II rowsort
SELECT DISTINCT - col2 * - - col1, ( 81 ) AS col2 FROM tab1 WHERE NOT - col0 NOT IN ( - col2, col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT MAX( ALL + + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT MAX ( ALL + + col1 ) AS col2 FROM tab0
----
81

query II rowsort
SELECT - col2 AS col2, - col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

query II rowsort
SELECT 53 AS col2, 71 AS col1 FROM tab0
----
53
71
53
71
53
71

query II rowsort
SELECT - 11 AS col0, + 85 AS col0 FROM tab0
----
-11
85
-11
85
-11
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 10 NOT BETWEEN 83 AND - col2
----

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab2 cor0
----
79

query I rowsort
SELECT - + col0 * + col0 * ( 52 ) AS col0 FROM tab0 AS cor0
----
-11700
-393588
-489268

query II rowsort
SELECT - 4 AS col0, 82 AS col1 FROM tab1 AS cor0
----
-4
82
-4
82
-4
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5596
SELECT - MIN( DISTINCT + col1 ) + CAST( NULL AS SIGNED ) + - 73 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5596
SELECT - MIN ( DISTINCT + col1 ) + CAST ( NULL AS INTEGER ) + - 73 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5597
SELECT + CAST( + 25 AS SIGNED ) AS col0, col1 + - 82 FROM tab1 AS cor0
----
25
-35
25
-68
25
-77

skipif mysql # not compatible
query II rowsort label-5597
SELECT + CAST ( + 25 AS INTEGER ) AS col0, col1 + - 82 FROM tab1 AS cor0
----
25
-35
25
-68
25
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 * col2 * 35 + col2 col1, 20 FROM tab2 AS cor0
----
117798
20
18538
20
56040
20

query I rowsort
SELECT ALL - col2 - - 12 FROM tab2
----
-11
-28
-46

query I rowsort
SELECT + 1 + - + col1 FROM tab0 AS cor0
----
-20
-80
0

query I rowsort
SELECT col0 + + 79 AS col1 FROM tab2 AS cor0
----
125
143
154

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT - + SUM( + + col2 ) + - COUNT( * ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-124
-3

skipif mysql # not compatible
query II rowsort label-5602
SELECT - + SUM ( + + col2 ) + - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-124
-3

query I rowsort
SELECT ALL 91 + - + 30 + 59 AS col1 FROM tab0 AS cor0
----
120
120
120

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT - + col1 DIV 45 + - + col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-82

skipif mysql # not compatible
query I rowsort label-5604
SELECT - + col1 / 45 + - + col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-82

query I rowsort
SELECT ALL - - 70 * + col0 FROM tab0 AS cor0
----
1050
6090
6790

query I rowsort
SELECT DISTINCT - - ( + - 10 ) FROM tab1 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT DISTINCT + COUNT( * ) * + 9 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT + COUNT ( * ) * + 9 FROM tab0 AS cor0
----
27

query I rowsort
SELECT ALL - 80 * + + col2 - + - 0 * 80 AS col0 FROM tab0 AS cor0
----
-3760
-7920
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT - COUNT( * ) * 49 * + + ( - 3 ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
438

skipif mysql # not compatible
query I rowsort label-5609
SELECT - COUNT ( * ) * 49 * + + ( - 3 ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
438

query II rowsort
SELECT + col1 AS col0, - col0 * - col1 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL - COUNT( ALL + col0 ) * SUM( ALL + - ( 51 ) ) * SUM( ALL - + col1 ) FROM tab1 cor0
----
-30294

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - COUNT ( ALL + col0 ) * SUM ( ALL + - ( 51 ) ) * SUM ( ALL - + col1 ) FROM tab1 cor0
----
-30294

query I rowsort
SELECT col2 * - - col1 * - ( - - col2 ) FROM tab2 cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT + 69 + MAX( + col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
127

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT + 69 + MAX ( + col2 ) FROM tab2 WHERE NOT NULL IS NOT NU